/* Variables */
:root {
    --color-bg: #1d1d1f;
    --color-bg-secondary: #161617;
    --color-text: #f5f5f7;
    --color-text-secondary: #a1a1a6;
    --color-accent: #5D5FEF;
    --color-primary-blue: #2C48D1;
    --color-border: #424245;
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
    --glass-border: rgba(255, 255, 255, 0.22);
    --glass-shadow: 0 10px 22px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --glass-bg-strong: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: var(--font-weight-regular);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(1200px 600px at 50% -10%, rgba(93, 95, 239, 0.12), transparent 60%);
}

/* LOGO ARRIBA IZQUIERDA - TAMAÑO IGUAL VERSIÓN 1 */
.hero-logo {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    z-index: 2;
    height: 60px;
    width: auto;
    max-width: 320px;
    display: block;
}

@media (max-width: 768px) {
    .hero-logo {
        height: 45px;
        top: 1rem;
        left: 1rem;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

/* SLOGAN HERO - COLOR SOLIDO */
.hero-slogan {
    color: var(--color-primary-blue);
    display: block;
    margin-top: 0.75rem;
}

/* Canvas de partículas del hero */
.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    opacity: 1;
    pointer-events: auto;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title,
.hero-subtitle,
.hero .cta-button {
    opacity: 0;
    transform: translateY(12px);
    animation: heroFade 0.8s ease forwards;
}

.hero-subtitle {
    animation-delay: 0.08s;
}

.hero .cta-button {
    animation-delay: 0.16s;
}

@keyframes heroFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: var(--font-weight-regular);
}

/* Buttons */
.cta-button {
    background: linear-gradient(135deg, #2A3FC4 0%, #1B2A8C 100%);
    color: #ffffff;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30, 52, 255, 0.14);
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120px 40px at 30% 0%, rgba(255, 255, 255, 0.5), transparent 70%);
    opacity: 0.45;
    pointer-events: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 52, 255, 0.18);
    filter: saturate(0.98);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button:hover::before {
    opacity: 0.9;
}

.cta-button-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Sections */
section {
    padding: var(--spacing-xl) 0;
}

/* Alternancia de fondos sutiles por seccion */
.solucion {
    background: radial-gradient(1000px 500px at 50% -10%, rgba(93, 95, 239, 0.10), transparent 60%);
}

.equipo {
    background: radial-gradient(1000px 500px at 50% -10%, rgba(93, 95, 239, 0.10), transparent 60%);
}

.casos {
    background-color: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.casos::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 600px at 50% -10%, rgba(93, 95, 239, 0.18), transparent 60%);
    opacity: 1;
    pointer-events: none;
}

.casos .container {
    position: relative;
    z-index: 1;
}

.faq {
    background-color: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 600px at 50% -10%, rgba(93, 95, 239, 0.18), transparent 60%);
    opacity: 1;
    pointer-events: none;
}

.faq .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-top: -1rem;
    margin-bottom: 2.25rem;
}

/* ===== PROBLEMA SECTION ===== */
.problema {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.problema::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 600px at 50% -10%, rgba(93, 95, 239, 0.20), transparent 60%),
                radial-gradient(900px 500px at 10% 110%, rgba(93, 95, 239, 0.12), transparent 60%);
    opacity: 1;
    pointer-events: none;
}

.problema .container {
    position: relative;
    z-index: 1;
}

#problema .section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text);
}

/* SEGUNDO SIGNO DE PREGUNTA EN VIOLETA */
#problema .section-title::after {
    content: '?';
    color: var(--color-accent);
}

/* QUOTES GRID */
.problem-quotes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.quote-card {
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.7s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.quote-icon {
    color: var(--color-accent);
    margin-bottom: 1rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-icon .icon-svg {
    width: 44px;
    height: 44px;
}

.quote-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text);
    font-style: italic;
    margin: 0;
}

/* ESTADÍSTICA SIMPLE */
.problem-stat-simple {
    text-align: center;
    margin: 2rem 0 2.5rem;
    padding: 0;
}

.stat-simple-number {
    font-size: 5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-blue);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-simple-text {
    font-size: 1.5rem;
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.stat-simple-reason {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    font-style: italic;
    display: block;
    opacity: 0.9;
}

/* CTA FINAL */
.problem-cta {
    text-align: center;
    padding: 1rem 0;
    margin-top: 1rem;
}

.problem-cta h3 {
    font-size: 1.75rem;
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
}

/* ===== RECUADRO DEL 80% - ESTILO SIMPLE ===== */
.deliverables.problem-stat-wrapper {
    max-width: 1000px; /* Igual que .problem-quotes */
    width: 100%;
    margin: 2.5rem auto 2rem;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

/* Contenido centrado dentro del recuadro ancho */
.deliverables.problem-stat-wrapper .problem-stat-simple {
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.deliverables.problem-stat-wrapper .stat-simple-number {
    color: var(--color-primary-blue);
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.deliverables.problem-stat-wrapper .stat-simple-text {
    font-size: 1.375rem;
    margin-bottom: 0.25rem;
}

.deliverables.problem-stat-wrapper .stat-simple-reason {
    font-size: 1.125rem;
    font-style: normal;
    font-weight: var(--font-weight-medium);
}

.deliverables.problem-stat-wrapper + .case-extra {
    margin-top: 2rem;
}



/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .problem-quotes {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }
    
    .quote-card {
        padding: 1.5rem;
    }
    
    .quote-icon {
        font-size: 2rem;
    }
    
    .quote-text {
        font-size: 1rem;
    }
    
    .stat-simple-number {
        font-size: 4rem;
        color: var(--color-primary-blue);
    }
    
    .stat-simple-text {
        font-size: 1.25rem;
    }
    
    .stat-simple-reason {
        font-size: 1.125rem;
    }
    
    .problem-cta h3 {
        font-size: 1.5rem;
    }

    /* Recuadro del 80% en móvil */
    .deliverables.problem-stat-wrapper {
        max-width: 500px; /* Igual que .problem-quotes en móvil */
        padding: 1.5rem;
        margin: 2rem auto;
    }
    
    .deliverables.problem-stat-wrapper .stat-simple-number {
        font-size: 3.5rem;
    }
    
    .deliverables.problem-stat-wrapper .stat-simple-text {
        font-size: 1.25rem;
    }
    
    .deliverables.problem-stat-wrapper .stat-simple-reason {
        font-size: 1rem;
    }
}



/* ===== SOLUCIÓN SECTION ===== */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.solution-column {
    padding: 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.solution-column:hover {
    border-color: var(--color-accent);
}

.solution-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.solution-column ul {
    list-style: none;
    padding-left: 0;
}

.solution-column li {
    padding-left: 0;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--color-text-secondary);
    list-style: none;
}

.solution-column .check {
    display: inline-block;
    color: var(--color-accent);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Evitar checks duplicados en iOS si queda CSS cacheado */
.solution-column li::before {
    content: none !important;
    display: none !important;
}

.deliverables {
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.deliverables::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 220px at 50% 0%, rgba(255, 255, 255, 0.22), transparent 60%);
    opacity: 0.4;
    pointer-events: none;
}

.deliverables-title {
    font-size: 1.35rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    color: var(--color-text);
    letter-spacing: 0.02em;
    text-shadow: 0 6px 16px rgba(44, 72, 209, 0.4);
    display: inline-block;
    position: relative;
}

.deliverables-title::after {
    content: '';
    display: block;
    height: 2px;
    width: 70%;
    margin: 0.5rem auto 0;
    background: linear-gradient(90deg, transparent, rgba(44, 72, 209, 0.8), transparent);
}

.deliverable-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.deliverable-items span {
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--color-text);
    font-weight: var(--font-weight-regular);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.deliverable-items span:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

/* BOTÓN CON ESPACIO IGUAL ARRIBA Y ABAJO */
#solucion {
    padding-bottom: 3rem;
}

#solucion .cta-button {
    display: block;
    margin: 2rem auto;
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero {
        padding: var(--spacing-lg) 0;
    }

    .hero-logo {
        height: 52px;
    }

    .hero-title {
        max-width: 22ch;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        max-width: 36ch;
        margin-left: auto;
        margin-right: auto;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .solution-grid {
        gap: 1.5rem;
    }
    
    .solution-column {
        padding: 1.5rem;
    }
    
    .deliverables {
        padding: 2rem;
    }
    
    .deliverable-items {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-final-card {
        padding: 3.5rem 2.75rem;
    }

    .cta-final-text {
        max-width: 520px;
    }
}

@media (max-width: 768px) {
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .deliverable-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .deliverables {
        padding: 1.5rem;
    }
    
    #solucion .cta-button {
        width: 100%;
        padding: 1rem;
        margin: 1.5rem auto;
    }
}

/* FIX ESPECÍFICO PARA BOTÓN EN SOLUCIÓN - AGREGAR AL FINAL DEL ARCHIVO */
section#solucion .container > .cta-button {
    margin: 2rem auto !important;
    display: block !important;
}


/* Casos Section */

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
}

.case-card {
    padding: var(--spacing-md);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: border-color 0.3s ease;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.case-card:hover {
    border-color: var(--color-accent);
}

.case-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-semibold);
}

.case-card p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9375rem;
}

.case-result {
    color: var(--color-primary-blue) !important;
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5rem;
}

.case-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    margin-bottom: 0.75rem;
}

/* Texto adicional de casos */
/* Callouts (Problema + Casos) */
.callout {
    text-align: center;
    margin-top: 2.25rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.callout-minimal {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.callout-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.callout-text {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    max-width: 680px;
    margin: 0.25rem auto 1rem;
}

.callout-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    justify-content: center;
}

.callout-chip {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--color-text);
    font-size: 0.9rem;
    white-space: nowrap;
}

.callout-chip::before {
    content: "• ";
    color: var(--color-primary-blue);
}

/* Equipo Section - MODIFICADO */
.equipo-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

/* DIFERENCIADORES 4 EN LÍNEA - SIN FONDO OSCURO */
.equipo .differentiators {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem; /* Espacio entre cajas ligeramente reducido */
    margin-bottom: var(--spacing-lg);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.equipo .diff-item {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 140px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.equipo .diff-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.equipo .diff-icon {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipo .diff-icon .icon-svg {
    width: 32px;
    height: 32px;
}

.equipo .diff-item h4 {
    font-size: 1rem; /* Tamaño normal */
    margin-bottom: 0.5rem; /* MÁS espacio entre título y descripción */
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    line-height: 1.3;
}

.equipo .diff-item p {
    color: var(--color-text-secondary);
    font-size: 0.8125rem; 
    line-height: 1.4;
    margin: 0;
    font-weight: var(--font-weight-regular);
}

.tech-stack {
    text-align: center;
    padding: 3rem 0 2.5rem;
    border-top: none;
    border-radius: 0;

}

.tech-title {
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.95rem;
}

.tech-logos {
    position: relative;
    overflow: hidden;
    display: block;
    justify-content: flex-start;
    align-items: center;
    margin-top: 0;
    padding: 0.5rem 0;
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.tech-logos span {
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: transparent;
    transition: border-color 0.3s ease; /* SOLO border-color */
    font-weight: var(--font-weight-medium);
    cursor: default;
    white-space: nowrap;
}

/* Slider continuo de tecnologias */
.tech-marquee {
    display: flex;
    width: max-content;
    gap: 1rem;
    align-items: center;
    animation: techScroll 34s linear infinite;
}

.tech-track {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@keyframes techScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .tech-marquee {
        animation-duration: 40s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-subtitle,
    .hero .cta-button {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* nuevo */
.tech-logos span:hover {
    border-color: var(--color-accent); /* SOLO cambia el border */
}

/* fin nuevo */

/* FAQ Section */

.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

/* Highlight superior para glass cards */
.solution-column::before,
.deliverable-items span::before,
.case-card::before,
.equipo .diff-item::before,
.faq-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 220px at 50% 0%, rgba(255, 255, 255, 0.25), transparent 60%);
    opacity: 0.35;
    pointer-events: none;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md);
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.3s ease;
    font-family: inherit;
}

.faq-question:hover {
    opacity: 0.7;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 var(--spacing-md);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.faq-answer p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ===== CTA FINAL SECTION - SIN EMAIL ===== */
.cta-final {
    text-align: center;
    padding: 7rem 0;
    background: radial-gradient(1000px 500px at 50% -10%, rgba(93, 95, 239, 0.10), transparent 60%);
    border-top: 1px solid rgba(93, 95, 239, 0.15);
    border-bottom: 1px solid rgba(93, 95, 239, 0.15);
    position: relative;
    overflow: hidden;
}


.cta-final .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.cta-final-card {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--glass-shadow);
    padding: 4rem 3.5rem;
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-final-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 300px at 50% 0%, rgba(255, 255, 255, 0.25), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.cta-final .section-title {
    font-size: clamp(2.5rem, 5.5vw, 3rem);
    margin-bottom: 1.25rem;
    color: var(--color-text);
    line-height: 1.1;
    word-wrap: normal;
    hyphens: none;
    white-space: normal;
}

.cta-final-text {
    font-size: 1.375rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    font-weight: var(--font-weight-regular);
}

/* Boteon CTA Final */
.cta-final .cta-button-large {
    display: block; 
    margin: 0 auto; 
    padding: 1.125rem 3rem; 
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold); 
    text-decoration: none;
}

/* ===== RESPONSIVE CTA ===== */
@media (max-width: 768px) {
    .cta-final {
        padding: 5rem 0;
    }

    .cta-final-card {
        padding: 3rem 2rem;
    }
    
    .cta-final .section-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        padding: 0 0.5rem;
    }
    
    .cta-final-text {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    .cta-final .cta-button-large {
        width: 90%;
        max-width: 400px;
        padding: 1.125rem 2rem;
        font-size: 1.125rem;
        border-radius: 12px; 
    }
}

/* ===== FOOTER COMPACTO Y ALINEADO ===== */
.footer {
    padding: 2rem var(--spacing-md) 1.5rem var(--spacing-md);
    background: var(--color-bg-secondary);
    border-top: 1px solid rgba(93, 95, 239, 0.1);
}

.footer .container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Primera línea: Logo + slogan JUNTOS */
.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem; /* Logo y slogan más cerca */
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.footer-logo img {
    height: 28px;
    width: auto;
    display: block;
}

.footer-slogan {
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
}

/* Slogan del footer en color solido */
.footer-slogan-text {
    color: var(--color-primary-blue);
    display: inline-block;
}

/* Segunda línea: Navegación COMPACTA */
.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0.25rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(93, 95, 239, 0.08);
    border-bottom: 1px solid rgba(93, 95, 239, 0.08);
}

.footer-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-group-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-secondary);
    opacity: 0.7;
}

.footer-group-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.75rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
}

/* Ocultar enlace Inicio en footer si aparece por cache */
.footer-links a[href="#hero"] {
    display: none;
}

.footer-links a:hover {
    color: var(--color-text);
    background: rgba(93, 95, 239, 0.05);
}

/* Contacto con un poco más de énfasis */
.footer-links .contact-link {
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary-blue);
}

.manage-cookies-link {
    color: var(--color-text-secondary);
}

/* Tercera línea: Copyright */
.footer-bottom {
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(93, 95, 239, 0.05);
    width: 100%;
}

.footer-bottom p {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.7;
}

/* ===== RESPONSIVE FOOTER - MEJORADO ===== */
/*@media (max-width: 768px) {
    .footer {
        padding: 1.5rem var(--spacing-md) 1.25rem var(--spacing-md);
    }
    
    .footer-top {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-logo img {
        height: 24px;
    }
    
    .footer-slogan {
        font-size: 0.85rem;
    }
    
    .footer-links {
        gap: 0.5rem 1.25rem;
        padding: 0.75rem 0;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
    
    .footer-bottom {
        margin-top: 0.25rem;
        padding-top: 0.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
    }
}*/

/*@media (max-width: 768px) {
    .footer {
        padding: 1.5rem var(--spacing-sm) 1.25rem var(--spacing-sm);
    }
    
    .footer-top {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-logo img {
        height: 24px;
    }
    
    .footer-slogan {
        font-size: 0.85rem;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem 0;
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .footer-links a {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.02);
        transition: all 0.2s ease;
    }
    
    .footer-links a:hover {
        background: rgba(93, 95, 239, 0.08);
    }
    
    .footer-links a:nth-child(8)::before {
        content: none;
    }
    
    .footer-bottom {
        margin-top: 0.5rem;
        padding-top: 0.75rem;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
        line-height: 1.4;
    }
}*/

@media (max-width: 768px) {
    .footer {
        padding: 1.5rem var(--spacing-md) 1.25rem var(--spacing-md);
    }
    
    .footer-top {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-logo img {
        height: 24px;
    }
    
    .footer-slogan {
        font-size: 0.85rem;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.75rem 0;
        margin: 0.5rem 0;
        text-align: center;
    }

    .footer-group {
        gap: 0.35rem;
    }

    .footer-group-links {
        gap: 0.4rem 0.6rem;
    }

    .footer-links a {
        font-size: 0.7rem;
        padding: 0.15rem 0.35rem;
        border-radius: 4px;
        white-space: nowrap;
    }
    
    .footer-bottom {
        margin-top: 0.5rem;
        padding-top: 0.75rem;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
        line-height: 1.4;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .footer-group-links {
        gap: 0.35rem 0.5rem;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background-color: var(--color-bg);
    margin: 2% auto;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    position: relative;
    max-height: 90vh;
    overflow: hidden;
}

.modal-close {
    color: var(--color-text-secondary);
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 10000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--color-accent);
    color: var(--color-text);
}

#tallyFormContainer {
    width: 100%;
    height: 80vh;
    min-height: 500px;
}

#tallyFormContainer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FIX GLOBAL PARA GRIDS */
.problem-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cases-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.solution-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .equipo .differentiators {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem; /* nuevo */
        max-width: 800px;
    }

    /* nuevo tambien */
    .equipo .diff-item {
        min-height: 130px;
    }
    /* */
    
    .problem-grid,
    .cases-grid,
    .differentiators,
    .solution-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }

    .hero-logo {
        height: 45px;
    }

    .hero-subtitle {
        line-height: 1.5;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-top: -0.5rem;
        margin-bottom: 2rem;
    }

    .equipo .differentiators {
        grid-template-columns: 1fr;
        max-width: 500px;
        /*gap: var(--spacing-sm);*/
        gap: 0.875rem;
    }
    
    .equipo .diff-item {
        /*min-height: 180px;
        padding: var(--spacing-sm);*/
        padding: 0.875rem 1rem;
        min-height: 120px;
    }
    
    .equipo .diff-icon {
        font-size: 2rem;
    }
    
    .problem-grid,
    .cases-grid,
    .differentiators,
    .solution-grid {
        grid-template-columns: 1fr !important;
        max-width: 500px;
    }
}

@media (max-width: 820px) {
    .problem-quotes {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .problem-grid,
    .cases-grid,
    .differentiators,
    .solution-grid {
        max-width: 100%;
        gap: 1rem;
    }
}

/* Responsive stack*/
@media (max-width: 768px) {
    .tech-logos {
        gap: 0.75rem;
    }
    
    .tech-logos span {
        padding: 0.5rem 1.25rem;
        font-size: 0.8125rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}
