/*
Theme Name: HISPAX - Ecosistema Financiero Web3
Description: Tema profesional de WordPress que replica exactamente el diseño y funcionalidades de hispax.com. Ecosistema financiero Web3 para hispanohablantes con diseño moderno, responsivo y optimizado para conversión.
Author: Desarrollador WordPress
Version: 1.0.0
License: GPL v2 or later
Text Domain: hispax
Domain Path: /languages
Tags: one-page, business, fintech, web3, blockchain, responsive, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
    /* Colores primarios */
    --primary-blue: #3B82F6;
    --primary-orange: #F59E0B;
    --primary-purple: #8B5CF6;
    --primary-green: #10B981;
    --primary-pink: #EC4899;
    --primary-teal: #14B8A6;
    
    /* Colores secundarios */
    --gold: #F59E0B;
    --dark-blue: #1E3A8A;
    --light-gray: #F8F9FA;
    --white: #FFFFFF;
    --black: #000000;
    --text-gray: #6B7280;
    --text-dark: #374151;
    
    /* Tipografía */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Espaciado */
    --max-width: 1200px;
    --container-padding: 2rem;
    --section-spacing: 5rem;
    --element-spacing: 2rem;
    --small-spacing: 1rem;
    
    /* Border radius */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3.5rem;
    font-weight: var(--font-bold);
}

h2 {
    font-size: 2.5rem;
    font-weight: var(--font-bold);
}

h3 {
    font-size: 1.875rem;
    font-weight: var(--font-semibold);
}

h4 {
    font-size: 1.5rem;
    font-weight: var(--font-semibold);
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-blue);
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-spacing) 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col {
    flex: 1;
    padding: 0 1rem;
}

.col-half {
    flex: 0 0 50%;
    padding: 0 1rem;
}

.col-third {
    flex: 0 0 33.333%;
    padding: 0 1rem;
}

.col-quarter {
    flex: 0 0 25%;
    padding: 0 1rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--container-padding);
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 0.5rem;
}

.nav-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Colores específicos del menú */
.nav-menu .menu-home a {
    background-color: var(--primary-blue);
    color: var(--white);
}

.nav-menu .menu-ecosistema a {
    background-color: var(--primary-orange);
    color: var(--white);
}

.nav-menu .menu-comunidad a {
    background-color: var(--primary-purple);
    color: var(--white);
}

.nav-menu .menu-fundacion a {
    background-color: var(--primary-green);
    color: var(--white);
}

.nav-menu .menu-acerca a {
    background-color: var(--primary-pink);
    color: var(--white);
}

.nav-menu a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-md);
    font-weight: var(--font-semibold);
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #D97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    padding: 8rem 0 5rem;
    background-color: var(--light-gray);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-tagline {
    color: var(--primary-teal);
    font-size: 0.875rem;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-bold);
    color: var(--dark-blue);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    color: var(--primary-teal);
    font-size: 1.25rem;
    font-weight: var(--font-semibold);
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.hero-badge {
    display: inline-block;
    background-color: var(--white);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-weight: var(--font-semibold);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
}

/* ==========================================================================
   PRODUCTS SECTION
   ========================================================================== */

.products-section {
    background-color: var(--primary-teal);
    color: var(--white);
}

.products-header {
    text-align: center;
    margin-bottom: 4rem;
}

.products-title {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.products-description {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
}

.product-icon img {
    width: 60px;
    height: 60px;
}

.product-title {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-description {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.product-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-section {
    background-color: var(--light-gray);
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.features-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-number {
    font-size: 3rem;
    font-weight: var(--font-bold);
    color: var(--primary-teal);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-gray);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablets */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .col-half,
    .col-third,
    .col-quarter {
        flex: 0 0 100%;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #E5E7EB;
    }
    
    .nav-menu a {
        padding: 1rem;
        border-radius: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --section-spacing: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-up-delay-1 {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.fade-in-up-delay-2 {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

