/* =================================================================== */
/* ====           STYLES.CSS REFINADO Y ORGANIZADO                ==== */
/* =================================================================== */

/* =================================================== */
/* 1. CONFIGURACIÓN GENERAL Y UTILIDADES
/* =================================================== */

body {
    font-family: 'Inter', sans-serif;
}

.parallax {
    transition: transform 0.1s linear;
}

/* =================================================== */
/* 2. COMPONENTES REUTILIZABLES (BOTONES, TARJETAS)
/* =================================================== */

/* --- 2.1. Botones CTA (Call to Action) --- */

.cta-button {
    display: inline-block;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
    text-align: center;
}
.cta-button:hover {
    filter: brightness(1.1);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.1);
}

.cta-button-light {
    display: inline-block;
    background-color: #e5e7eb;
    color: #0A192F;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: opacity 0.3s ease, transform 0.2s ease;
}
.cta-button-light:hover {
    background-color: #d1d5db; /* fallback si no se usa el otro hover */
    opacity: 0.9;
    transform: translateY(-2px);
}

.cta-button-outline {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #64FFDA; /* brand-green */
    color: #64FFDA; /* brand-green */
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease-in-out;
    text-align: center;
}
.cta-button-outline:hover {
    background-color: #64FFDA; /* brand-green */
    color: #0A192F; /* brand-blue */
    transform: translateY(-2px);
}

/* --- 2.2. Enlaces de Navegación --- */

.nav-link { /* Para el footer */
    font-size: 0.875rem;
    font-weight: 600;
    color: #8892B0; /* brand-slate */
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}
.nav-link:hover {
    color: #F8F8FF; /* brand-white */
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #64FFDA; /* brand-green */
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

.nav-link-header { /* Para el header principal */
    font-size: 0.875rem;
    font-weight: 600;
    color: #F8F8FF; /* brand-white */
    transition: color 0.3s ease, opacity 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}
.nav-link-header:hover {
    opacity: 0.9;
}
.nav-link-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #64FFDA; /* brand-green */
    transition: width 0.3s ease;
}
.nav-link-header:hover::after {
    width: 100%;
}

/* --- 2.3. Botón Fantasma (Header) --- */

.ghost-button {
    display: inline-block;
    border: 2px solid #64FFDA;
    color: #64FFDA;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    font-size: 0.875rem;
}
.ghost-button:hover {
    background-color: #64FFDA;
    color: #0A192F;
}


/* =================================================== */
/* 3. ESTILOS POR SECCIÓN ESPECÍFICA
/* =================================================== */

/* --- 3.1. Sección "Problema" (Feature Cards) --- */

.feature-card-light {
    text-align: center;
    padding: 1rem;
}
.feature-card-light .icon-container-light {
    background-color: rgba(10, 25, 47, 0.05); /* brand-blue con opacidad */
    color: #0A192F;
    width: 4rem; height: 4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}
.feature-card-light:hover .icon-container-light {
    transform: scale(1.1) rotate(-5deg);
    background-color: rgba(100, 255, 218, 0.2);
}

/* --- 3.2. Sección Prisma de la Claridad (GSAP) --- */

#prisma-seccion-animada {
    height: 300vh;
    position: relative;
    overflow: hidden;
}
#prisma-seccion-animada .prisma-contenedor-fijo {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#prisma-seccion-animada #prisma-svg-animado {
    width: 90%;
    max-width: 550px;
    height: 100%;
    overflow: visible;
}
#prisma-seccion-animada #prisma-cuerpo {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(110, 231, 255, 0.6);
    stroke-width: 1.5px;
}
#prisma-seccion-animada #prisma-nucleo {
    fill: #4ade80;
    filter: drop-shadow(0 0 10px #4ade80);
}
#prisma-seccion-animada .rayo-entrada,
#prisma-seccion-animada .rayo-refractado,
#prisma-seccion-animada #rayo-laser-salida {
    fill: none;
    stroke-linecap: round;
}
#prisma-seccion-animada .rayo-entrada {
    stroke: #FFFFFF;
    stroke-width: 1px;
}
#prisma-seccion-animada .rayo-refractado { stroke-width: 2px; }
#prisma-seccion-animada #rayo-refractado-1 { stroke: #22d3ee; }
#prisma-seccion-animada #rayo-refractado-2 { stroke: #34d399; }
#prisma-seccion-animada #rayo-refractado-3 { stroke: #a78bfa; }

#prisma-seccion-animada #rayo-laser-salida {
    stroke: #4ade80;
    stroke-width: 4px;
    filter: drop-shadow(0 0 8px #4ade80); 
}
#prisma-seccion-animada .prisma-texto {
    position: absolute;
    width: 90%;
    max-width: 650px; /* Tamaño ajustado para ser más grande */
    padding: 1.2rem;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    opacity: 0;
    color: #E5E7EB;
    top: 70%; 
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}
#prisma-seccion-animada .prisma-texto h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #4ade80;
    font-size: 1.8rem;
}
#prisma-seccion-animada .prisma-texto p {
    font-size: 1.2rem;
    color: #D1D5DB;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    #prisma-seccion-animada .prisma-texto {
        top: 72%;
        max-width: 280px;
    }
}
/* Fondo animado para la sección del Prisma */
#prisma-seccion-animada .prisma-contenedor-fijo.bg-brand-blue {
    position: relative; 
    z-index: 0;
}
#prisma-seccion-animada .prisma-contenedor-fijo.bg-brand-blue::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1; 
    background: 
        url(https://www.transparenttextures.com/patterns/stardust.png) repeat,
        radial-gradient(
            ellipse at center, 
            rgba(15, 43, 78, 0) 0%,
            rgba(5, 14, 25, 0.8) 100%
        );
    animation: drift 90s linear infinite;
    opacity: 0.5;
}

/* --- 3.3. Sección "Cómo Funciona" (Step Cards) --- */

.step-card {
    background-color: #F9FAFB; /* Antes: white. Ahora es un gris muy claro */
    padding: 2rem;
    border-radius: 0.75rem; /* Un poco más redondeado */
    border: 1px solid rgba(10, 25, 47, 0.05); /* Un borde sutil */
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.step-card:hover {
    transform: translateY(-8px); /* Elevación sutil */
    box-shadow: 0 20px 25px -5px rgba(10,25,47,0.1), 0 10px 10px -5px rgba(10,25,47,0.04);
}
.step-number {
    font-size: 6rem;
    font-weight: 900;
    color: rgba(10, 25, 47, 0.05); /* Color base del número */
    position: absolute;
    top: -1rem;
    left: 0.5rem;
    z-index: -1;
    line-height: 1;
    transition: color 0.3s ease;
}
.step-card:hover .step-number {
    color: rgba(100, 255, 218, 0.2); /* Color al pasar el mouse */
}
/* No cambiamos textos ni línea, se mantienen como estaban */
.step-line {
    position: absolute; top: 50%; left: 10%; right: 10%; height: 2px;
    background-image: linear-gradient(to right, #64FFDA 50%, transparent 50%);
    background-size: 16px 2px; z-index: 0;
}

/* --- 3.4. Testimonios --- */

.testimonial {
    position: relative;
    border-left: none;
    padding-left: 3rem;
}
.testimonial::before {
    content: '“';
    position: absolute;
    left: -1rem;
    top: -2rem;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(10, 25, 47, 0.05); /* brand-blue muy transparente */
    z-index: -1;
    line-height: 1;
}

/* --- 3.5. Portfolio (Stats Bar) --- */

.stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(10, 25, 47, 0.5); /* brand-blue con opacidad */
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(136, 146, 176, 0.2); /* brand-slate con opacidad */
}
.stat-item {
    text-align: center;
}
.stat-value {
    display: block;
    font-size: 1.875rem;
    font-weight: 800;
    color: #F8F8FF; /* brand-white */
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #8892B0; /* brand-slate */
    margin-top: 0.25rem;
    letter-spacing: 0.05em;
}

/* --- 3.6. Precios --- */

.pricing-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 2.5rem 2rem;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.07);
}
.pricing-card ul {
    list-style: none; padding: 0; margin-top: 1.5rem; margin-bottom: 2rem;
}
.pricing-card.popular {
    border: 2px solid #64FFDA;
    position: relative;
}
.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #64FFDA; /* Color de acento para la píldora */
    color: #0A192F; /* Texto oscuro para contraste */
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- 3.7. FAQ --- */

.faq-item {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem 0;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0A192F;
    cursor: pointer;
}
.faq-arrow {
    transition: transform 0.3s ease-in-out;
    color: #8892B0;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.faq-answer p {
    padding-bottom: 1.5rem;
    color: #8892B0;
    line-height: 1.6;
}
.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

/* --- 3.8. Componente Flotante (CTA) --- */

.floating-cta {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: #64FFDA;
    color: #0A192F;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2), 0 8px 10px -6px rgba(0,0,0,0.2);
    transform: translateY(200%);
    transition: transform 0.4s ease-in-out;
    z-index: 50;
    opacity: 0;
}
.floating-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

/* --- 3.9. Placeholder Calendly --- */

.calendly-placeholder {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #8892B0;
    padding: 2rem;
    text-align: center;
}


/* =================================================== */
/* 4. ANIMACIONES GLOBALES
/* =================================================== */

/* --- 4.1. Animación de Fondo (Pulse) --- */

.animation-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(136, 146, 176, 0.1) 1px, transparent 0);
  background-size: 30px 30px;
}
.pulse {
  position: absolute;
  background-color: #64FFDA;
  width: 4px; height: 4px;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 12px 2px #64FFDA, 0 0 24px 5px rgba(100, 255, 218, 0.5); 
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.pulse:nth-child(1) { animation: flow-1 9s 0s linear infinite; }
.pulse:nth-child(2) { animation: flow-2 4s 1.5s linear infinite; }
.pulse:nth-child(3) { animation: flow-3 11s 2.5s linear infinite; }
.pulse:nth-child(4) { animation: flow-4 7s 4s linear infinite; }
.pulse:nth-child(5) { animation: flow-5 10s 5s linear infinite; }
.pulse:nth-child(6) { animation: flow-6 8s 0.5s linear infinite; }

@keyframes flow-1 {
  0%   { opacity: 0; transform: translate(0, 0); } 20%, 80% { opacity: 0.7; } 100% { opacity: 0; transform: translate(80vw, -70vh); }
}
@keyframes flow-2 {
  0%   { opacity: 0; transform: translate(0, 0); } 20%, 80% { opacity: 0.7; } 100% { opacity: 0; transform: translate(100vw, 50vh); }
}
@keyframes flow-3 {
  0%   { opacity: 0; transform: translate(0, 0); } 20%, 80% { opacity: 0.6; } 100% { opacity: 0; transform: translate(70vw, -20vh); }
}
@keyframes flow-4 {
  0%   { opacity: 0; transform: translate(0, 0); } 20%, 80% { opacity: 0.5; } 100% { opacity: 0; transform: translate(-90vw, -40vh); }
}
@keyframes flow-5 {
  0%   { opacity: 0; transform: translate(0, 0); } 20%, 80% { opacity: 0.8; } 100% { opacity: 0; transform: translate(-80vw, 80vh); }
}
@keyframes flow-6 {
  0%   { opacity: 0; transform: translate(0, 0); } 20%, 80% { opacity: 0.6; } 100% { opacity: 0; transform: translate(20vw, -120vh); }
}

/* --- 4.2. Animación de Fondo (Prisma Drift) --- */

@keyframes drift {
    from { background-position: 0 0; }
    to { background-position: 1000px 500px; }
}

/* --- 4.3. Animación de Scroll (Fade In) --- */

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0ms);
}
.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 4.4. Animación de Scroll (Línea de Pasos) --- */

.step-line {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s ease-in-out;
}
.animated-line-container.animate-line .step-line {
    transform: scaleX(1);
}


/* =================================================== */
/* 5. ESTILOS HEREDADOS O NO UTILIZADOS
/* (Se mantienen por referencia pero no están en uso activo en el HTML principal)
/* =================================================== */

.solution-card {
    background-color: rgba(10, 25, 47, 0.9);
    border-radius: 0.75rem;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(136, 146, 176, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}
.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px -5px rgba(100, 255, 218, 0.15);
    border-color: rgba(100, 255, 218, 0.3);
}
.solution-icon {
    background-color: rgba(100, 255, 218, 0.1);
    color: #64FFDA;
    width: 3.5rem; height: 3.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0; bottom: 0;
    width: 3px;
    background-color: rgba(10, 25, 47, 0.1);
}
.timeline-item {
    position: relative;
    padding-left: 70px;
    width: 100%;
}
.timeline-icon {
    position: absolute;
    left: 0; top: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    background-color: #F8F8FF;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(10, 25, 47, 0.1);
    color: #0A192F;
    z-index: 10;
}
.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 400px;
}
@media (min-width: 768px) {
    .timeline-line { left: 50%; transform: translateX(-50%); }
    .timeline-item { width: 50%; padding-left: 0; padding-right: 50px; }
    .timeline-icon { left: auto; right: -24px; }
    .timeline-item.self-start { align-self: flex-start; padding-right: 50px; padding-left: 0; }
    .timeline-item.self-start .timeline-icon { left: auto; right: -24px; }
    .timeline-item.md\:self-end { align-self: flex-end; padding-left: 50px; padding-right: 0; }
    .timeline-item.md\:self-end .timeline-icon { left: -24px; right: auto; }
}