/* inicio.css - Landing page SmartFile */

/* El hero ocupa 100vh, no necesita el espaciador de la navbar */
.np-spacer { display: none; }

:root {
    --bg-color: #e8edf4; /* gris azulado suave */
    --surface-color: #e8edf4;
    --shadow-light: #f5f8fc;
    --shadow-dark: #c5cdd8;
    --font-sans: 'Manrope', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --text-main: #2d3142;
    --text-muted: #44495a;
    --accent-blue: #4facfe;
    --accent-blue-dark: #2563eb; /* Azul más oscuro para texto */
    --accent-purple: #a18cd1;
    --gemini-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gemini-gradient-text: linear-gradient(90deg, #2E3192 0%, #008B8B 100%);
    --radius-md: 24px;
    --radius-full: 999px;
    --container-width: 1440px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; background:var(--bg-color); color:var(--text-main); }
body {
    font-family:var(--font-sans);
    line-height:1.6;
    overflow-x:hidden;
    background:
        radial-gradient(circle at 84% 8%, rgba(114, 170, 255, 0.2) 0%, rgba(114, 170, 255, 0) 26%),
        radial-gradient(circle at 83% 38%, rgba(105, 226, 214, 0.14) 0%, rgba(105, 226, 214, 0) 24%),
        linear-gradient(180deg, #edf3fb 0%, #e8edf4 28%, #e8edf4 100%);
    background-repeat: no-repeat;
}
a { text-decoration:none; color:inherit; transition:var(--transition-fast); }
img, svg, video { display:block; max-width:100%; }

.neo-out { background:var(--surface-color); border-radius:var(--radius-md); box-shadow:12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light); transition: box-shadow var(--transition-fast), transform var(--transition-fast); }
.neo-out:hover { box-shadow:18px 18px 30px var(--shadow-dark), -18px -18px 30px var(--shadow-light); transform: translateY(-2px); }
.neo-in { background:var(--surface-color); border-radius:var(--radius-md); box-shadow: inset 8px 8px 16px var(--shadow-dark), inset -8px -8px 16px var(--shadow-light); }
.neo-convex { background: linear-gradient(145deg, #ffffff, #d6d8dd); box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light); }

/* Contenedor de imágenes con fondo blanco y efecto hacia afuera */
.image-frame-white {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: center;
    /* Sombra hacia afuera con efecto de glow */
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 16px 48px rgba(0, 0, 0, 0.08),
        0 24px 64px rgba(0, 0, 0, 0.04);
    transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.image-frame-white:hover {
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.10),
        0 32px 80px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.display-text { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 0.96; }
.gradient-text { background: var(--gemini-gradient-text); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight:600; margin-bottom:1rem; }
.h3 { font-size:1.5rem; font-weight:600; margin-bottom:0.5rem; }
.p-lead { font-size:1.25rem; color:var(--text-muted); max-width:700px; }
.p-text { font-size:1rem; color:var(--text-muted); }
.mono { font-family:var(--font-mono); text-transform:uppercase; letter-spacing:0.1em; font-size:0.85rem; font-weight:700; color:var(--text-main); }

/* Badge con mejor contraste (accesibilidad WCAG AA - ratio 7:1) */
.badge-new .mono { color: #0d2137; font-weight: 800; }

.container { width:100%; max-width:var(--container-width); margin:0 auto; padding:0 clamp(20px, 5vw, 60px); }
.section { padding: clamp(68px, 11vh, 128px) 0; }
.grid { display:grid; gap: clamp(20px, 4vw, 60px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width:1024px){ .grid-3 { grid-template-columns: repeat(2, 1fr);} }
@media (max-width:768px){ .grid-3, .grid-2 { grid-template-columns: 1fr;} }

/* Buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; padding:16px 36px; border-radius:var(--radius-full); font-weight:700; font-size:1rem; line-height:1.1; transition:all var(--transition-fast); }
.btn-primary { background:var(--text-main); color:var(--bg-color); box-shadow:6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light); }
.btn-neo { color:var(--text-main); }

/* Hero */
#hero {
    min-height: clamp(680px, 84vh, 780px);
    height:auto;
    display:flex;
    align-items:flex-start;
    position:relative;
    overflow:hidden;
    padding-top: 152px;
    padding-bottom: 36px;
    background:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0) 34%),
        linear-gradient(180deg, rgba(237, 243, 251, 0.22) 0%, rgba(232, 237, 244, 0) 100%);
}
#hero::before,
#hero::after {
    content:"";
    position:absolute;
    pointer-events:none;
    border-radius:50%;
    filter: blur(48px);
    z-index:0;
}
#hero::before {
    top:-8%;
    right:-8%;
    width:420px;
    height:420px;
    background: radial-gradient(circle, rgba(128, 181, 255, 0.24) 0%, rgba(128, 181, 255, 0.12) 38%, rgba(128, 181, 255, 0) 72%);
}
#hero::after {
    right:8%;
    bottom:6%;
    width:340px;
    height:340px;
    background: radial-gradient(circle, rgba(112, 229, 216, 0.18) 0%, rgba(112, 229, 216, 0.09) 38%, rgba(112, 229, 216, 0) 72%);
}
#hero .container { position: relative; z-index: 10; }
.hero-shell { position: relative; z-index: 10; }
.hero-grid { display:grid; grid-template-columns: minmax(0, 1fr); }
.hero-content { position:relative; z-index:10; max-width:800px; }
.hero-content .display-text { max-width: 11ch; font-size: clamp(2.48rem, 5.9vw, 4.9rem); }
.badge-new { display:inline-flex; align-items:center; padding:8px 20px; border-radius:var(--radius-full); background: rgba(255,255,255,0.85); margin-bottom: 28px; }
.badge-dot { width:8px; height:8px; background:#10b981; border-radius:50%; margin-right:10px; box-shadow:0 0 10px #10b981; animation: badge-pulse 2s ease-in-out infinite; }
@keyframes badge-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.hero-brand-inline {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 38px;
    padding: 20px 34px 20px 22px;
    border-radius: 999px;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(255,255,255,0.88);
    box-shadow: 0 24px 42px rgba(183, 197, 218, 0.25);
    backdrop-filter: blur(18px);
}
.hero-brand-inline-logo {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    box-shadow: 0 16px 26px rgba(181, 195, 216, 0.32);
}
.hero-brand-inline-text {
    font-size: clamp(1.6rem, 2.12vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1f2a44;
}
.hero-actions {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 14px;
}
#webgl-container { position:absolute; top:5%; right:0; width:60%; height:80%; z-index:1; opacity:0.97; filter: saturate(1.05) brightness(1.02) blur(0.6px); mask-image: linear-gradient(to right, transparent 5%, black 35%), linear-gradient(to bottom, black 70%, transparent 95%); mask-composite: intersect; -webkit-mask-image: linear-gradient(to right, transparent 5%, black 35%), linear-gradient(to bottom, black 70%, transparent 95%); -webkit-mask-composite: source-in; }
#features.section { padding-top: clamp(28px, 5vh, 52px); }

/* Cards */
.feature-card { padding:40px; display:flex; flex-direction:column; height:100%; contain: layout style; }
.feature-icon { width:80px; height:80px; border-radius:16px; display:flex; align-items:center; justify-content:center; margin-bottom:30px; color:var(--accent-blue); }
.icon-svg { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* Benchmarks */
.benchmark-graph { margin-top:60px; display:flex; flex-direction:column; gap:30px; }
.bar-track { flex:1; height:40px; border-radius:10px; position:relative; overflow:hidden; background: rgba(0,0,0,0.05); }
.bar-fill { 
    height:100%; 
    border-radius:10px; 
    display:flex; 
    align-items:center; 
    justify-content:flex-end; 
    padding-right:20px; 
    color:white; 
    font-weight:700; 
    width:100%;
    transform: scaleX(0);
    transform-origin: left;
    will-change: transform;
}
.bar-gemini { background: var(--gemini-gradient); box-shadow: 0 10px 20px rgba(79,172,254,0.3); }

/* Footer */
footer { padding:100px 0; background:var(--surface-color); }

/* Reveal */
.reveal-up { opacity:0; transform: translateY(60px); }

/* Hero LCP optimization: mostrar contenido crítico inmediatamente */
#hero .reveal-up:first-child,
#hero h1.reveal-up,
#hero .p-lead.reveal-up {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accesibilidad: Ocultar visualmente pero mantener para lectores de pantalla */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (max-width:1200px){
    .hero-content .display-text { max-width: 10.5ch; }
}

@media (max-width:1024px){
    .hero-content { max-width: 720px; }
    #webgl-container { width:58%; height:76%; right:-4%; }
    #hero { min-height: clamp(640px, 78vh, 720px); padding-top: 136px; padding-bottom: 32px; }
}

@media (max-width:768px){
    .display-text { font-size:3rem; }
    .hero-content { text-align:center; margin:0 auto; }
    .hero-content .display-text { max-width: none; }
    .hero-brand-inline { justify-content: center; margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    #webgl-container { width:100%; opacity:0.3; mask-image:none; -webkit-mask-image:none; right:0; top:6%; height:72%; }
    #hero { min-height:560px; padding:120px 0 28px; }
}

/* Footer responsive */
@media (max-width:768px){
    footer .footer-content { flex-direction: column !important; gap:24px !important; }
    footer .footer-links { flex-direction: column !important; gap:24px !important; }
}

/* Minimalist section typography */
.minimal-section .h3 { font-size: 2.3rem; }
.minimal-section .p-text { font-size: 1.28rem; }

/* Modern accordion styles (inspirado en base.html) */
.modern-accordion .accordion-item { border:none; background:transparent; margin-bottom:0.5rem; }
.modern-accordion .accordion-button { background:#ffffff; border:1px solid #e9eef5; border-radius:12px; box-shadow:0 2px 10px rgba(0,0,0,0.04); padding:0.9rem 1.1rem; color:#1e293b; width:100%; text-align:left; font-size:1.2rem; cursor:pointer; }
.modern-accordion .accordion-button:hover { box-shadow:0 3px 14px rgba(0,0,0,0.06); background:#fefefe; }
.modern-accordion .accordion-button:not(.collapsed) { box-shadow:0 4px 16px rgba(0,0,0,0.06); }
.modern-accordion .accordion-body { background:#ffffff; border-radius:12px; margin-top:0.5rem; box-shadow:0 2px 10px rgba(0,0,0,0.04); padding:1rem; }
/* Panels animados sin Bootstrap JS */
.accordion-panel { max-height:0; overflow:hidden; transition:max-height .3s ease; }
.accordion-button.active + .accordion-panel { max-height: 600px; }

/* Modal de video */
.sf-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 3000; }
.sf-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 3001; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.sf-modal.open, .sf-modal-backdrop.open { opacity: 1; pointer-events: auto; }
.sf-modal-content { width: min(1000px, 92vw); border-radius: 16px; overflow: hidden; }
.sf-modal-header { display:flex; justify-content:flex-end; padding: 10px; background: rgba(255,255,255,0.6); backdrop-filter: blur(8px); }
.sf-modal-body { background: rgba(255,255,255,0.95); }
.sf-modal-close { background: var(--surface-color); border-radius: 999px; padding: 8px 12px; font-weight:700; box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light); }
.sf-video-wrap { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; }
.sf-video-wrap video { position: absolute; inset: 0; width:100%; height:100%; object-fit: contain; background:#000; }
.sf-modal-footer { display:flex; justify-content: flex-end; gap: 10px; padding: 10px 14px; background: var(--surface-color); }

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Animación de pulso sutil para atraer atención */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    animation: whatsapp-pulse 2s ease-out infinite;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
        font-size: 28px;
    }
}

/* Carrusel de reseñas con controles */
.resenas-carousel-slide-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 80px;
}

.resenas-carousel-slide {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.resenas-carousel-track-slide {
    display: flex;
    width: fit-content;
    transition: transform 0.6s ease-in-out;
}

.resena-card-slide {
    flex-shrink: 0;
    width: 800px;
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinear arriba en vez de centrar */
    min-height: 300px; /* Altura mínima aumentada */
    box-sizing: border-box;
}

/* Botones de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface-color);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    transition: all var(--transition-fast);
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 700;
}

.carousel-btn:hover {
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
    transform: translateY(-50%) scale(1.1);
    color: var(--accent-blue);
}

.carousel-btn:active {
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: -60px;
}

.carousel-btn-next {
    right: -60px;
}

/* Indicadores (puntos) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--shadow-dark);
    cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
    padding: 0;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.1);
    will-change: transform;
}

.carousel-indicator:hover {
    background: var(--accent-blue);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--surface-color), 0 0 0 5px var(--accent-blue);
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 992px) {
    .resenas-carousel-slide-wrapper {
        padding: 0 60px;
        max-width: 100%;
    }
    
    .resena-card-slide {
        width: 700px; /* Ancho fijo en tablet */
        padding: 40px 30px;
    }
    
    .carousel-btn-prev {
        left: 5px;
    }
    
    .carousel-btn-next {
        right: 5px;
    }
    
    .carousel-btn {
        width: 54px;
        height: 54px;
        font-size: 1.3rem;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .resenas-carousel-slide-wrapper {
        max-width: 100%;
        padding: 0 60px;
    }
    
    .resenas-carousel-slide {
        padding: 20px 8px; /* Más padding lateral */
    }
    
    .resena-card-slide {
        /* Ancho más conservador para asegurar que no se corte */
        width: calc(100vw - 130px);
        max-width: 460px;
        padding: 30px 20px; /* Más padding interno para evitar cortes */
        min-height: 320px;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .carousel-btn-prev {
        left: 5px;
    }
    
    .carousel-btn-next {
        right: 5px;
    }
    
    .carousel-indicators {
        margin-top: 20px;
        gap: 8px;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
    
    .carousel-indicator.active {
        width: 10px;
        height: 10px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .resenas-carousel-slide-wrapper {
        padding: 0 54px;
    }
    
    .resenas-carousel-slide {
        padding: 20px 10px;
    }
    
    .resena-card-slide {
        width: calc(100vw - 118px);
        max-width: 100%;
        padding: 28px 18px;
        min-height: 300px;
    }
    
    /* Ajustar tamaño de texto en reseñas para móviles */
    .resena-card-slide .p-text {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
    }
    
    .carousel-btn {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }
    
    .carousel-btn-prev {
        left: 4px;
    }
    
    .carousel-btn-next {
        right: 4px;
    }
}

/* Prevenir overflow horizontal en todas las pantallas */
.resena-card-slide {
    overflow: hidden;
}

.resena-card-slide p {
    word-break: break-word;
    overflow-wrap: break-word;
}
