/* ==============================================
   MOBILE-FIRST CSS - BASES MEJORADAS
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores */
    --primary-color: #0066ff;
    --primary-dark: #004ecc;
    --secondary-color: #0f172a;
    --accent-color: #38bdf8;
    --text-color: #1e293b;
    --text-light: #64748b;
    --light-bg: #f0f9ff;
    --white: #ffffff;
    --gray-light: #e2e8f0;
    --gray: #94a3b8;

    /* Sombras */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Bordes y transiciones */
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fuentes */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);

    /* Espaciados responsive */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
}

/* Variables responsive para tablet */
@media (min-width: 768px) {
    :root {
        --spacing-xs: 10px;
        --spacing-sm: 20px;
        --spacing-md: 30px;
        --spacing-lg: 40px;
        --spacing-xl: 60px;
        --spacing-2xl: 80px;
    }
}

/* Variables responsive para desktop */
@media (min-width: 1024px) {
    :root {
        --spacing-xs: 12px;
        --spacing-sm: 24px;
        --spacing-md: 36px;
        --spacing-lg: 48px;
        --spacing-xl: 72px;
        --spacing-2xl: 96px;
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==============================================
   ELEMENTOS DE FONDO - RESPONSIVE
   ============================================== */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.03) 0%, rgba(0, 102, 255, 0) 70%);
    filter: blur(15px);
    opacity: 0.3;
    transition: var(--transition);
}

/* Círculos móvil */
.circle-1 {
    width: clamp(150px, 40vw, 200px);
    height: clamp(150px, 40vw, 200px);
    top: -50px;
    right: -50px;
}

.circle-2 {
    width: clamp(120px, 30vw, 150px);
    height: clamp(120px, 30vw, 150px);
    bottom: -30px;
    left: -30px;
}

.circle-3 {
    width: clamp(80px, 20vw, 100px);
    height: clamp(80px, 20vw, 100px);
    top: 30%;
    left: 5%;
    display: none;
}

.bg-grid,
.bg-lines {
    display: none;
}

/* Tablet - círculos más grandes */
@media (min-width: 768px) {
    .circle-1 {
        width: clamp(250px, 35vw, 300px);
        height: clamp(250px, 35vw, 300px);
    }

    .circle-2 {
        width: clamp(180px, 25vw, 200px);
        height: clamp(180px, 25vw, 200px);
    }

    .circle-3 {
        display: block;
        width: clamp(120px, 18vw, 150px);
        height: clamp(120px, 18vw, 150px);
    }
}

/* Desktop - grid y líneas */
@media (min-width: 1024px) {
    .circle-1 {
        width: 350px;
        height: 350px;
        filter: blur(20px);
    }

    .circle-2 {
        width: 250px;
        height: 250px;
        filter: blur(20px);
    }

    .circle-3 {
        width: 180px;
        height: 180px;
    }

    .bg-grid {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image:
            linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
        background-size: 40px 40px;
        opacity: 0.3;
    }

    .bg-lines {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background:
            linear-gradient(90deg, transparent 50%, rgba(0, 102, 255, 0.02) 50%),
            linear-gradient(transparent 50%, rgba(0, 102, 255, 0.02) 50%);
        background-size: 100px 100px;
        opacity: 0.2;
    }
}

/* ==============================================
   CONTENEDORES - SISTEMA RESPONSIVE MEJORADO
   ============================================== */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding: 0 var(--spacing-md);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
        padding: 0 var(--spacing-lg);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1280px;
    }
}

/* ==============================================
   TIPOGRAFÍA - SISTEMA FLUID RESPONSIVE
   ============================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Tipografía fluid con clamp() */
h1 {
    font-size: clamp(1.875rem, 4vw + 1rem, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw + 0.75rem, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
}

h4 {
    font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.5rem);
}

p {
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 1vw + 0.5rem, 1.1rem);
    line-height: 1.7;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(0, 102, 255, 0.15);
    z-index: -1;
    border-radius: 2px;
}

/* ==============================================
   LOGO - RESPONSIVE
   ============================================== */
.logo-container {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
}

.logo-img {
    height: clamp(30px, 5vw, 45px);
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw + 0.5rem, 1.6rem);
    font-weight: 700;
    color: var(--secondary-color);
    display: inline-block;
}

.logo-highlight {
    color: var(--primary-color);
}

/* ==============================================
   BOTONES - RESPONSIVE MEJORADO
   ============================================== */
.btn {
    display: inline-block;
    padding: clamp(12px, 2vw, 16px) clamp(20px, 3vw, 32px);
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before,
.btn:focus::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: rgba(0, 102, 255, 0.05);
    transform: translateY(-2px);
}

/* Botones auto-width en tablet+ */
@media (min-width: 768px) {
    .btn {
        width: auto;
        min-width: 140px;
    }
}

/* ==============================================
   SISTEMA DE IDIOMA - OPTIMIZADO
   ============================================== */
/* ==============================================
   SISTEMA DE IDIOMA - OPTIMIZADO
   ============================================== */
/* Oculta el contenido que NO coincide con el idioma del html */
html[lang="es"] [data-lang="en"]:not(.lang-btn),
html[lang="en"] [data-lang="es"]:not(.lang-btn) {
    display: none !important;
}

/* 
   NOTA: No forzamos 'display: block' ni 'display: inline' en los visibles.
   Dejamos que el elemento use su display natural o el definido en otras clases.
*/

/* ==============================================
   NAVEGACIÓN - RESPONSIVE COMPLETO
   ============================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    padding: 0;
}

.navbar.scrolled {
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px var(--spacing-sm);
    height: 60px;
    position: relative;
}

/* Menú hamburguesa - móvil */
.menu-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.menu-line {
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 3px 0;
    transition: var(--transition);
    display: block;
}

.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Overlay para menú móvil */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menú de navegación móvil */
.nav-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85%, 400px);
    height: 100vh;
    background-color: var(--white);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding-top: 80px;
}

.nav-menu-container.active {
    right: 0;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.nav-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 18px var(--spacing-md);
    display: block;
    transition: var(--transition);
    font-size: clamp(1rem, 2vw, 1.15rem);
    -webkit-tap-highlight-color: transparent;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color);
    background-color: rgba(0, 102, 255, 0.05);
    padding-left: calc(var(--spacing-md) + 8px);
}

/* Selector de idioma */
.language-switcher-mobile {
    padding: var(--spacing-md);
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.language-switcher-desktop {
    display: none;
}

.lang-btn {
    padding: 10px 20px;
    background: none;
    border: 2px solid var(--gray-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 20px;
    color: var(--text-light);
    flex: 1;
    -webkit-tap-highlight-color: transparent;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.lang-btn:not(.active):hover,
.lang-btn:not(.active):focus {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Tablet - menú sigue siendo hamburguesa */
@media (min-width: 768px) {
    .nav-container {
        padding: 12px var(--spacing-md);
        height: 70px;
    }

    .nav-menu-container {
        width: min(60%, 450px);
    }
}

/* Desktop - menú horizontal */
@media (min-width: 1024px) {
    .navbar {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: min(90%, 1200px);
        background-color: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(16px) saturate(180%);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .navbar.scrolled {
        top: 10px;
        background-color: rgba(255, 255, 255, 0.85);
    }

    .nav-container {
        padding: 10px var(--spacing-lg);
    }

    .menu-toggle {
        display: none;
    }

    .nav-overlay {
        display: none;
    }

    .nav-menu-container {
        position: static;
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
        padding: 0;
        transition: none;
        right: 0;
        overflow-y: visible;
    }

    .nav-menu {
        flex-direction: row;
        align-items: center;
    }

    .nav-menu li {
        border-bottom: none;
        margin: 0 5px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .nav-link:hover,
    .nav-link:focus {
        padding-left: 16px;
        background-color: rgba(0, 102, 255, 0.08);
    }

    .language-switcher-mobile {
        display: none;
    }

    .language-switcher-desktop {
        display: flex;
        gap: 5px;
        background-color: rgba(0, 0, 0, 0.03);
        border-radius: 30px;
        padding: 4px;
        border: 1px solid rgba(0, 0, 0, 0.02);
    }

    .lang-btn {
        padding: 6px 14px;
        width: auto;
        flex: 0;
    }
}

/* ==============================================
   SECCIÓN HERO - RESPONSIVE MEJORADO
   ============================================== */
.hero {
    padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-2xl);
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
    color: var(--text-light);
    margin: 0 auto var(--spacing-md);
    max-width: 100%;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 100%;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-top: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.funnel-visual {
    width: 100%;
    max-width: min(90%, 300px);
    position: relative;
}

.funnel-layer {
    width: 100%;
    height: clamp(50px, 10vw, 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    margin: 0 auto;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.funnel-layer:hover {
    transform: scale(1.02);
}

.layer-1 {
    background: linear-gradient(135deg, var(--primary-color), #3385ff);
    width: 90%;
    border-radius: 8px 8px 0 0;
}

.layer-2 {
    background: linear-gradient(135deg, #3385ff, #66a3ff);
    width: 75%;
}

.layer-3 {
    background: linear-gradient(135deg, #66a3ff, #99c2ff);
    width: 60%;
}

.layer-4 {
    background: linear-gradient(135deg, #99c2ff, #c2d9ff);
    width: 45%;
    border-radius: 0 0 8px 8px;
}

/* Tablet */
@media (min-width: 768px) {
    .hero {
        min-height: calc(100vh - 40px);
    }

    .hero-subtitle {
        max-width: 600px;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: 100%;
    }

    .funnel-visual {
        max-width: min(70%, 400px);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero {
        padding: calc(120px + var(--spacing-xl)) 0 var(--spacing-2xl);
    }

    .hero-subtitle {
        max-width: 700px;
    }

    .funnel-visual {
        max-width: 450px;
    }
}

/* ==============================================
   SECCIONES GENERALES - RESPONSIVE
   ============================================== */
.section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: block;
    width: 100%;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 100%;
    margin: 0 auto var(--spacing-lg);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    padding: 0 var(--spacing-sm);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .section-subtitle {
        max-width: 80%;
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .section-subtitle {
        max-width: 700px;
    }
}

/* ==============================================
   SECCIÓN IMPORTANCIA - GRID RESPONSIVE
   ============================================== */
.importance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.importance-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 102, 255, 0.05);
}

.importance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--primary-color);
    transition: height 0.3s ease;
}

.importance-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.importance-card:hover::before {
    height: 100%;
}

.importance-icon {
    width: clamp(50px, 10vw, 60px);
    height: clamp(50px, 10vw, 60px);
    background-color: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    transition: var(--transition);
}

.importance-icon svg {
    width: clamp(24px, 5vw, 28px);
    height: clamp(24px, 5vw, 28px);
    fill: var(--primary-color);
}

.importance-card:hover .importance-icon {
    transform: scale(1.1) rotate(5deg);
}

.importance-card h3 {
    margin-bottom: 12px;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.importance-card p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--text-light);
    line-height: 1.6;
}

/* Tablet - 2 columnas */
@media (min-width: 640px) {
    .importance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Desktop - 3 columnas */
@media (min-width: 1024px) {
    .importance-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-xl);
    }
}

/* ==============================================
   SECCIÓN FUNNELS - GRID AVANZADO
   ============================================== */
.funnels-section {
    background-color: #f8fafc;
    position: relative;
}

.funnels-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.funnel-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.funnel-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 102, 255, 0.2);
}

.funnel-img {
    height: clamp(160px, 30vw, 200px);
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.funnel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.funnel-card:hover .funnel-img img {
    transform: scale(1.05);
}

.funnel-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.funnel-content h3 {
    margin-bottom: 12px;
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    color: var(--secondary-color);
}

.funnel-content p {
    color: var(--text-light);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
}

.funnel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--spacing-md);
}

.tag {
    background-color: #f0f9ff;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: clamp(0.7rem, 1.2vw, 0.8rem);
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.funnel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: clamp(10px, 2vw, 14px);
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.funnel-link:hover,
.funnel-link:focus {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.section-note {
    text-align: center;
    margin-top: var(--spacing-xl);
    color: var(--text-light);
    font-size: clamp(0.8rem, 1.3vw, 0.95rem);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tablet - 2 columnas */
@media (min-width: 640px) {
    .funnels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop - 3 columnas */
@media (min-width: 1024px) {
    .funnels-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: var(--spacing-xl);
    }
}

/* ==============================================
   SECCIÓN METODOLOGÍA - LAYOUT ADAPTATIVO
   ============================================== */
.methodology-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.process-steps {
    margin-top: var(--spacing-md);
}

.process-step {
    display: flex;
    margin-bottom: var(--spacing-md);
    background-color: rgba(0, 102, 255, 0.03);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.process-step:hover {
    border-color: rgba(0, 102, 255, 0.1);
    background-color: rgba(0, 102, 255, 0.05);
    transform: translateX(5px);
}

.step-number {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-right: var(--spacing-sm);
    min-width: clamp(40px, 8vw, 50px);
    opacity: 0.7;
}

.step-content h4 {
    margin-bottom: 8px;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.step-content p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
}

/* Diagrama de tecnología */
.tech-diagram {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-xl) 0;
}

.diagram-element {
    width: clamp(80px, 18vw, 110px);
    height: clamp(80px, 18vw, 110px);
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    margin: var(--spacing-sm) 0;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    border: 2px solid rgba(0, 102, 255, 0.1);
}

.diagram-element:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-hover);
}

.diagram-element svg {
    width: clamp(26px, 5vw, 35px);
    height: clamp(26px, 5vw, 35px);
    fill: var(--primary-color);
    margin-bottom: 8px;
}

.diagram-element span {
    font-weight: 600;
    color: var(--text-color);
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    display: block;
    text-align: center;
}

.diagram-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    z-index: 1;
    border-radius: 2px;
}

/* Desktop - layout de 2 columnas */
@media (min-width: 1024px) {
    .methodology-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }

    .tech-diagram {
        display: flex;
        padding: var(--spacing-lg);
    }
}

/* ==============================================
   SECCIÓN CONTACTO - RESPONSIVE
   ============================================== */
.contact-section {
    background-color: var(--light-bg);
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.social-links {
    margin-top: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    padding: clamp(12px, 2vw, 16px) 0;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-light);
}

.social-link:last-child {
    border-bottom: none;
}

.social-link:hover,
.social-link:focus {
    color: var(--primary-color);
    padding-left: 8px;
}

.social-link i {
    font-size: clamp(1rem, 2vw, 1.2rem);
    width: clamp(28px, 5vw, 35px);
    margin-right: var(--spacing-sm);
}

.social-link span {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.contact-form {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 102, 255, 0.05);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.form-group {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: clamp(12px, 2vw, 16px) 0;
    border: none;
    border-bottom: 2px solid var(--gray-light);
    background: transparent;
    font-family: var(--font-main);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
    min-height: clamp(100px, 20vw, 120px);
}

.form-group label {
    position: absolute;
    top: 14px;
    left: 0;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
    display: none;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.form-group label[data-lang].active-label {
    display: block;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:valid+label,
.form-group textarea:valid+label {
    top: -12px;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    color: var(--primary-color);
}

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    display: none;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
}

.form-message.success {
    background-color: rgba(0, 200, 83, 0.1);
    color: #00a652;
    display: block;
    border: 1px solid rgba(0, 200, 83, 0.2);
}

.form-message.error {
    background-color: rgba(255, 0, 0, 0.1);
    color: #d32f2f;
    display: block;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

/* Tablet - 2 columnas */
@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }

    .contact-form {
        padding: var(--spacing-lg);
    }
}

/* Desktop - ajustes */
@media (min-width: 1024px) {
    .contact-container {
        grid-template-columns: 2fr 3fr;
    }
}

/* ==============================================
   FOOTER - RESPONSIVE
   ============================================== */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo .logo-container {
    margin-bottom: 12px;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    line-height: 1.6;
}

.footer-section h4 {
    margin-bottom: var(--spacing-sm);
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--white);
    padding-left: 8px;
}

.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(38px, 8vw, 44px);
    height: clamp(38px, 8vw, 44px);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.footer-social a:hover,
.footer-social a:focus {
    background-color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
}

/* Tablet - 2 columnas */
@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
}

/* Desktop - 4 columnas */
@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr repeat(3, 1fr);
        gap: var(--spacing-2xl);
    }
}

/* ==============================================
   ANIMACIONES MEJORADAS
   ============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.importance-card,
.funnel-card,
.process-step,
.diagram-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.importance-card.animate-in,
.funnel-card.animate-in,
.process-step.animate-in,
.diagram-element.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Animación de hover para imágenes */
@media (hover: hover) {
    .funnel-img {
        overflow: hidden;
    }
}

/* ==============================================
   UTILIDADES RESPONSIVE
   ============================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: var(--spacing-md);
}

.mb-20 {
    margin-bottom: var(--spacing-md);
}

.mt-40 {
    margin-top: var(--spacing-xl);
}

.mb-40 {
    margin-bottom: var(--spacing-xl);
}

/* Utilidades de visibilidad responsive */
.hide-mobile {
    display: none;
}

.show-mobile {
    display: block;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }

    .show-mobile {
        display: none;
    }
}

/* ==============================================
   MEJORAS DE ACCESIBILIDAD
   ============================================== */
/* Focus visible para navegación por teclado */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reducción de movimiento para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==============================================
   MEJORAS DE RENDIMIENTO
   ============================================== */
/* Will-change para elementos animados */
.btn,
.funnel-card,
.importance-card,
.nav-link {
    will-change: transform;
}

/* Optimización de fuentes */
@supports (font-variation-settings: normal) {
    body {
        font-feature-settings: "kern" 1, "liga" 1;
        font-variant-ligatures: common-ligatures;
        text-rendering: optimizeLegibility;
    }
}

/* ==============================================
   CONTENEDOR PARA IMÁGENES RESPONSIVE
   ============================================== */
.responsive-img {
    width: 100%;
    height: auto;
    display: block;
}

.img-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.img-container::before {
    content: '';
    display: block;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==============================================
   PRINT STYLES
   ============================================== */
@media print {

    .navbar,
    .footer,
    .btn,
    .language-switcher-mobile,
    .language-switcher-desktop,
    .menu-toggle {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a {
        text-decoration: underline;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
    }
}

/* ==============================================
   NUEVAS SECCIONES (OPTIMIZACIÓN Y SOCIAL PROOF)
   ============================================== */

/* Tipos de Funnel (Estrategia) */
.funnel-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.funnel-type-item {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.funnel-type-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 102, 255, 0.3);
}

/* Menú de Filtros */
.filter-menu {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--gray-light);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-light);
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
}

.funnel-type-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    display: inline-block;
}

.funnel-type-item h4 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.funnel-type-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Sección de Prueba Social */
.social-proof-section {
    background-color: var(--light-bg);
    padding: var(--spacing-xl) 0;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.testimonial-stars {
    color: #fbbf24;
    /* Amber 400 */
    font-size: 1.2rem;
    letter-spacing: 3px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    font-size: 1rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    border-top: 1px solid var(--gray-light);
    padding-top: var(--spacing-sm);
}

.testimonial-author strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Ajuste de Contacto Reducido */
.contact-info .social-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.social-link.featured-social {
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.social-link.featured-social:hover {
    background: #128C7E;
    transform: translateY(-2px);
    color: white;
    padding-left: 20px;
    /* Override default hover padding change if needed */
}

.social-link.featured-social i {
    color: white;
    margin-right: 10px;
}