/* ===================================
   LOSE DIGITAL CLOUD — macOS Sonoma/Sequoia Design Language
   =================================== */

:root {
    /* Paleta Fotorrealista / Dark Theme */
    --primary-blue: #2B8FFF;
    --primary-blue-hover: #3C9AFF;
    --light-blue: rgba(43, 143, 255, 0.15);
    --accent-orange: #FF9F0A;
    --accent-orange-hover: #F08700;

    /* Texto */
    --dark-text: #FFFFFF;
    --secondary-text: #A0A5B0;
    --tertiary-text: #86868B;
    --light-text: #FFFFFF;

    /* Superficies y Fondos */
    --bg-base: #0a0c10;
    --surface-white: rgba(15, 20, 25, 0.45);
    --surface-elevated: rgba(30, 35, 45, 0.6);
    --surface-secondary: rgba(0, 0, 0, 0.3);

    /* Bordes y Divisores */
    --border-color: rgba(255, 255, 255, 0.12);
    --border-light: rgba(255, 255, 255, 0.08);

    /* Sombras Fotorrealistas */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255,255,255,0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255,255,255,0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 2px 2px rgba(255,255,255,0.15);

    /* Alias de compatibilidad */
    --light-bg: rgba(0, 0, 0, 0.2);
    --surface-color: var(--surface-white);
    --shadow-soft: var(--shadow-sm);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-base);
    background-image: url('../main_bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--dark-text);
    /* SF Pro equivalent: -apple-system usa SF Pro en macOS/iOS */
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: -1;
    pointer-events: none;
}

/* --- VIDEO DE FONDO (Desactivado para estética limpia macOS) --- */
#background-video-container { display: none; }
#video-overlay { display: none; }

/* --- BARRA DE PROGRESO ESTILO macOS --- */
.progress-container { width: 100%; height: 3px; position: fixed; top: 0; left: 0; z-index: 9999; background: transparent; }
.progress-bar { height: 3px; background: var(--primary-blue); width: 0%; transition: width 0.15s ease-out; border-radius: 0 2px 2px 0; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; width: 100%; }

h1, h2, h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--dark-text);
}

p, .sub-headline, li {
    text-align: justify;
    text-justify: inter-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    margin-bottom: 1rem;
}

/* --- GLASS PANEL UTILITY --- */
.glass-panel {
    background: var(--surface-white);
    border: 1px solid var(--border-light);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(35px) saturate(140%);
    -webkit-backdrop-filter: blur(35px) saturate(140%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* ===================================
   ENCABEZADO — Barra macOS translúcida
   =================================== */
.main-header {
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    /* Glassmorphism oscuro fotorrealista */
    background: rgba(10, 15, 20, 0.65);
    backdrop-filter: saturate(140%) blur(25px);
    -webkit-backdrop-filter: saturate(140%) blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
}
.header-content { display: flex; justify-content: space-between; align-items: center; width: 100%; flex-wrap: wrap; gap: 1rem; }
.header-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--dark-text); }
.header-logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.header-logo span { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--dark-text); }

.main-header nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.header-email { color: var(--secondary-text); font-weight: 500; font-size: 0.9rem; text-decoration: none; transition: color 0.2s ease; display: flex; align-items: center; gap: 0.4rem; }
.header-email:hover { color: var(--primary-blue); }

/* --- BOTONES estilo macOS --- */
.cta-button {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 980px; /* Pill — característica de botones Apple */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    letter-spacing: -0.01em;
}
.cta-button:hover { 
    background-color: var(--primary-blue-hover); 
    transform: scale(1.05); 
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.5); 
}

.offer-button {
    background-color: var(--accent-orange);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
}
.offer-button:hover { 
    background-color: var(--accent-orange-hover); 
    transform: scale(1.05); 
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.6); 
}

.pay-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: var(--primary-blue);
    color: #FFFFFF;
    width: 100%;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 980px;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}
.pay-button:hover { 
    background-color: var(--primary-blue-hover); 
    transform: scale(1.03); 
    box-shadow: 0 0 25px rgba(0, 102, 204, 0.5); 
}
.pay-button svg { fill: currentColor; width: 20px; height: 20px; }

/* ===================================
   HERO
   =================================== */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 5rem 0 4rem;
    min-height: 75vh;
    flex-wrap: wrap;
}
.hero-content { flex: 1; min-width: 300px; }
.hero-demo { flex: 0 0 45%; height: auto; display: flex; justify-content: center; }
.hero-demo img { max-width: 100%; height: auto; border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--shadow-md); }

.hero h1 {
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    letter-spacing: -0.04em;
    line-height: 1.05;
}
.hero .sub-headline {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 400;
    max-width: 650px;
    margin-bottom: 2.5rem;
    color: var(--secondary-text);
    line-height: 1.6;
    letter-spacing: -0.01em;
    text-align: justify;
}
.hero-highlight {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--accent-orange);
    display: block;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-align: justify;
    text-justify: inter-word;
}

/* ===================================
   SECCIONES Y GRID
   =================================== */
.section { padding: 5rem 0; background-color: transparent; }
.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--dark-text);
    letter-spacing: -0.03em;
}
.section-title span { color: var(--primary-blue); }

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

/* ===================================
   TARJETAS — Ventanas macOS
   =================================== */
.value-card, .kpi-card, .pricing-card, .contact-form, .chat-window {
    background-color: var(--surface-white);
    border: 1px solid var(--border-light);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px; /* Rounded corners */
    padding: 2.2rem 2rem;
    transition: all 0.25s ease;
    color: var(--dark-text);
    text-decoration: none;
    display: block;
    height: auto;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
}
.value-card:hover, .kpi-card:hover {
    border-color: var(--border-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.value-card h3, .pricing-card h3 {
    color: var(--dark-text);
    margin-bottom: 0.9rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.value-card p, .kpi-label, .pricing-card p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}
.value-card strong { color: var(--dark-text); font-weight: 600; }

.value-card.service-item {
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Text at bottom */
    min-height: 700px;
}

.service-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    mix-blend-mode: normal; /* Normal so it's a solid background */
    z-index: 1;
    filter: brightness(0.9);
    transition: all 0.4s ease;
}

.value-card.service-item:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 1px var(--accent-orange), 0 0 25px rgba(255, 159, 10, 0.4), var(--shadow-lg);
    transform: translateY(-6px);
}

.value-card.service-item:hover .service-icon {
    filter: brightness(1.2);
    transform: scale(1.04);
}

.value-card.service-item:hover .service-info {
    background-color: rgba(245, 248, 255, 0.92);
    border-top-color: rgba(255, 255, 255, 1);
}

.service-info {
    position: relative;
    z-index: 2;
    /* Vidrio opaco blanco fotorealista */
    background-color: rgba(235, 242, 252, 0.88);
    backdrop-filter: blur(30px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(30px) saturate(200%) brightness(1.05);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    padding: 1.5rem 1.8rem;
    margin: 0;
    text-align: left;
    width: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255,255,255,0.8);
}

/* Noise grain layer via ::before — no URL conflicts */
.service-info::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    opacity: 0.04;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4t5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/ghTLTMeV29a/959CVMEEbLALhlEbSzPyljkrD5etm42S0uO0oFiCECHe6kpkIJN1bX68e/P9csKMBBDgYJcVuqowf5t3/KM6UNMtVO1dU9X7WJ3vYGXRXE9mLX8RcRVU8/x4aE64NDXBxKSHBiMHViqCF4V6RQKDNRNA7bdGUWXJnhEkpqiWCv5mZYyEKqZJkCWHFSCqApYISHnO7EJYMEFpxJYg6MHYD6ACMakiHAVDoqGCoAgkTJAzRhMqIPzf3WQAA");
    pointer-events: none;
}

/* All children sit above the noise layer */
.service-info > * {
    position: relative;
    z-index: 1;
}

.service-info h3 {
    color: #0A1628 !important;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.service-info p, .service-info ul, .service-info li {
    color: #1E293B !important;
}
.service-info p {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 0;
}

/* ===================================
   GRID-2 CARDS (Community Manager / TI)
   Override: image as fixed strip, text below
   =================================== */
.grid-2 .value-card.service-item {
    min-height: auto;
    flex-direction: column;
    justify-content: flex-start;
}
.grid-2 .value-card.service-item .service-icon {
    position: relative;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
}
.grid-2 .value-card.service-item .service-info {
    border-top: none;
    box-shadow: none;
    flex-grow: 1;
}

.service-info strong {
    color: #0A1628 !important;
    font-weight: 700;
}

.service-info .setup-badge {
    border-color: var(--accent-orange) !important;
    color: #7C3000 !important;
    background-color: rgba(255, 159, 10, 0.2) !important;
    font-size: 0.75rem !important;
}

@media (min-width: 768px) {
    .value-card.service-item {
        min-height: 500px;
    }
}

#grilla-servicios {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    #grilla-servicios {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop for wide cards */
    }
}

/* ===================================
   INDICADORES CLICK — macOS style links
   =================================== */
.service-item {
    cursor: pointer;
    position: relative;
}
.service-info::after {
    content: "Pinche aquí para ver detalles →";
    display: block;
    margin-top: 1.2rem;
    color: #1E3A8A; /* Dark blue for light glass */
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}
.value-card.service-item:hover .service-info::after {
    color: #D97706; /* Accent orange on hover */
    transform: translateX(4px);
}
.service-item:active {
    transform: scale(0.985);
    box-shadow: var(--shadow-sm);
}

/* --- Eliminado el neón, estilo Apple sobrio --- */
.neon-20hz { color: var(--accent-orange); font-weight: 800; }

/* ===================================
   CASO DE ÉXITO
   =================================== */
.case-study-section { padding: 5rem 0; background: var(--surface-white); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.case-study-content {
    background-color: var(--bg-base);
    padding: 3rem;
    border-radius: 18px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.case-study-content h2 {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.03em;
}
.interactive-review:hover { transform: translateY(-2px); box-shadow: var(--shadow-md) !important; }

/* ===================================
   FOOTER
   =================================== */
.main-footer {
    text-align: center;
    padding: 3.5rem 2rem 2.5rem;
    border-top: 1px solid var(--border-light);
    color: var(--secondary-text);
    background-color: var(--bg-base);
    font-size: 0.9rem;
}
.main-footer p { 
    margin-bottom: 0.5rem; 
    text-align: center !important; 
}
.footer-link { color: var(--secondary-text); text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
.footer-link:hover { color: var(--primary-blue); }

/* ===================================
   FORMULARIO
   =================================== */
.contact-form { max-width: 580px; margin: 0 auto; }
.form-group { margin-bottom: 1.2rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.4rem; color: var(--dark-text); font-size: 0.88rem; font-weight: 600; letter-spacing: -0.01em; }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--dark-text);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--surface-white);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}
.form-control::placeholder { color: var(--tertiary-text); }
textarea.form-control { resize: vertical; min-height: 120px; }
.submit-btn { width: 100%; border: none; cursor: pointer; margin-top: 0.75rem; }
.status-msg { margin-top: 1rem; font-size: 0.9rem; display: none; text-align: center; font-weight: 500; color: var(--primary-blue); }

/* ===================================
   KPIs
   =================================== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.kpi-card { text-align: center; }
.kpi-number { font-size: 3rem; font-weight: 800; color: var(--primary-blue); display: block; margin-bottom: 0.4rem; letter-spacing: -0.04em; }
.kpi-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--secondary-text); }

.methodology-steps { display: flex; flex-wrap: wrap; gap: 2rem; text-align: center; justify-content: space-between; margin-top: 3rem; }
.step { flex: 1; min-width: 200px; }
.step-icon { font-size: 2rem; color: var(--primary-blue); margin-bottom: 0.75rem; font-weight: 800; letter-spacing: -0.03em; }
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--dark-text); }
.step p { font-size: 0.92rem; color: var(--secondary-text); text-align: justify; text-justify: inter-word; }

.setup-badge {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 980px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

/* ===================================
   PRICING (WEB3 GLASSMORPHISM)
   =================================== */
.pricing-section { text-align: center; padding-top: 4rem; }
.pricing-card-web3 {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem; /* rounded-3xl */
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(2, 6, 23, 0.4); /* bg-slate-950/40 */
    padding: 2.5rem;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: left;
}
.pricing-card-web3:hover {
    border-color: rgba(6, 182, 212, 0.5); /* hover:border-cyan-500/50 */
    box-shadow: 0 0 50px -12px rgba(6, 182, 212, 0.3);
}

.holographic-glow {
    position: absolute;
    right: -5rem;
    top: -5rem;
    height: 10rem;
    width: 10rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #06b6d4, #d946ef); /* from-cyan-500 to-fuchsia-500 */
    opacity: 0.2;
    filter: blur(3rem);
    pointer-events: none;
}

.ley-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background-color: rgba(6, 182, 212, 0.1); /* bg-cyan-500/10 */
    padding: 0.125rem 0.75rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #22d3ee; /* text-cyan-400 */
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.pricing-header h3 {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff;
}
.pricing-header p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8; /* text-slate-400 */
}

.pricing-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    text-align: center;
}
.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}
.metric-value.highlight {
    color: #22d3ee;
}
.metric-label {
    font-size: 0.625rem; /* text-[10px] */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b; /* text-slate-500 */
    margin-top: 0.2rem;
}

.pricing-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.price-amount {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
}
.price-period {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5rem;
    color: #94a3b8;
}

.pricing-guarantee {
    font-size: 0.75rem;
    color: #34d399; /* text-emerald-400 */
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.pulse-dot {
    height: 0.375rem;
    width: 0.375rem;
    border-radius: 50%;
    background-color: #34d399;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.pricing-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.cta-web2 {
    width: 100%;
    border-radius: 0.75rem;
    background: linear-gradient(to right, #06b6d4, #2563eb);
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.cta-web2:hover {
    background: linear-gradient(to right, #22d3ee, #3b82f6);
}
.cta-web3 {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}
.cta-web3:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.cta-web3 svg {
    height: 1rem;
    width: 1rem;
    fill: currentColor;
    color: #22d3ee;
}

.card-logos { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; }
.card-logos svg { height: 20px; filter: grayscale(100%); opacity: 0.4; transition: opacity 0.2s ease; }
.card-logos svg:hover { opacity: 0.8; }


/* ===================================
   CHAT WIDGET
   =================================== */
.chat-widget { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000; display: flex; align-items: center; gap: 1rem; }
.chat-cta-text {
    background-color: var(--surface-white);
    color: var(--dark-text);
    padding: 0.55rem 1.1rem;
    border-radius: 980px;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    animation: bounce 2s infinite;
    white-space: nowrap;
    pointer-events: none;
    position: relative;
    letter-spacing: -0.01em;
}
.chat-cta-text::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 7px 0 7px 7px;
    border-style: solid;
    border-color: transparent transparent transparent var(--border-light);
    display: none;
}

@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateX(0); } 40% { transform: translateX(8px); } 60% { transform: translateX(4px); } }

.chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: none;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
    z-index: 10;
}
.chat-toggle:hover { transform: scale(1.06); background-color: var(--primary-blue-hover); box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4); }
.chat-toggle svg { stroke: white; }

.chat-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 2rem);
    height: 460px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.25s ease;
    padding: 0;
    background: var(--surface-white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    border-radius: 18px;
}
.chat-header {
    padding: 1rem;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-light);
    font-weight: 700;
    color: var(--dark-text);
    text-align: center;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.chat-messages { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.92rem; scroll-behavior: smooth; }
.message { padding: 0.7rem 1rem; border-radius: 14px; max-width: 82%; word-wrap: break-word; line-height: 1.5; font-size: 0.92rem; }
.user-msg { align-self: flex-end; background: var(--bg-base); color: var(--dark-text); border: 1px solid var(--border-light); border-radius: 14px 14px 4px 14px; }
.ai-msg { align-self: flex-start; background: var(--primary-blue); color: #ffffff; border-radius: 14px 14px 14px 4px; }
.chat-input-area { padding: 0.75rem; display: flex; gap: 0.5rem; border-top: 1px solid var(--border-light); background: var(--bg-base); }
.chat-input {
    flex: 1;
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.55rem 1rem;
    color: var(--dark-text);
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
}
.chat-input:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1); }
.chat-input::placeholder { color: var(--tertiary-text); }

.timezone-container { font-size: 0.82rem; color: var(--secondary-text); margin-top: 1.5rem; font-weight: 500; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===================================
   DESTELLOS DE LUZ (STARFIELD)
   =================================== */
#starfield {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.star {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8), 0 0 20px 4px rgba(0, 113, 227, 0.4);
    opacity: 0;
    animation: twinkle linear infinite;
}
@keyframes twinkle {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* ===================================
   RESPONSIVE — Mobile First
   =================================== */
@media (min-width: 769px) { .chat-cta-text::after { display: block; } }

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .header-content { flex-direction: column; justify-content: center; gap: 0.8rem; }
    .main-header nav { justify-content: center; width: 100%; gap: 0.6rem; }
    .header-email { font-size: 0.85rem; }
    .cta-button, .offer-button { padding: 0.55rem 1rem; font-size: 0.85rem; }

    /* Evitar desborde en pantallas pequeñas ocultando el email del header */
    @media (max-width: 480px) {
        .header-email { display: none !important; }
    }

    .hero-section { flex-direction: column; text-align: center; padding: 3rem 0 2.5rem; gap: 2rem; min-height: unset; }
    .hero-demo { width: 100%; margin-top: 0; display: flex; justify-content: center; }
    .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }

    .section { padding: 3rem 0; }
    .section-title { font-size: 1.85rem; margin-bottom: 2rem; }
    .case-study-content { padding: 1.5rem; }

    .value-card, .kpi-card, .pricing-card { padding: 1.5rem; border-radius: 14px; }

    .chat-widget { flex-direction: column; align-items: flex-end; gap: 0.5rem; right: 1rem; bottom: 1rem; }
    .chat-cta-text { animation: bounce-mobile 2s infinite; font-size: 0.82rem; }
    .chat-cta-text::after { display: block; right: 22px; top: 100%; transform: none; border-width: 7px 7px 0 7px; border-color: var(--border-light) transparent transparent transparent; }

    @keyframes bounce-mobile { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } 60% { transform: translateY(-4px); } }

    .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 1rem; }
    .methodology-steps { flex-direction: column; gap: 1.5rem; }
    .pricing-card { max-width: 100%; }
}

/* ===================================
   BANNER LEY 21.719 — estilo macOS Alert
   =================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 20, 0.95);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-top: 1px solid var(--border-light);
    padding: 2rem;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner p {
    font-size: 0.9rem;
    color: var(--dark-text);
    line-height: 1.6;
    margin: 0;
    text-align: center;
    max-width: 800px;
}
.cookie-banner p a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}
.cookie-banner p a:hover { text-decoration: underline; }
.cookie-banner .cookie-buttons { display: flex; gap: 1rem; justify-content: center; width: 100%; }
.cookie-banner button {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 980px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    font-family: inherit;
}
.cookie-banner button:hover {
    background-color: var(--primary-blue-hover);
    transform: scale(1.02);
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===================================
   ANIMACIÓN PULSE (botón sonido video)
   =================================== */
@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(255, 159, 10, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(255, 159, 10, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 159, 10, 0); }
}

/* ===================================
   FOOTER / CERTIFICATIONS
   =================================== */
.certifications { text-align: center; margin-top: 2rem; }
.certifications h4 { font-weight: 600; color: var(--tertiary-text); margin-bottom: 1rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.cert-logos { display: flex; justify-content: center; align-items: center; gap: 2rem; opacity: 0.7; flex-wrap: wrap; }
.cert-logos svg { 
    height: 36px; 
    fill: var(--secondary-text); 
    transition: opacity 0.2s ease, fill 0.2s ease; 
}
.cert-logos svg:hover { 
    opacity: 1; 
    fill: var(--primary-blue); 
}
