/* ==============================================================================
   SISTEMA DE DISEÑO VISUAL FLAI (CLEAN LIGHT ICE-BLUE & DARK CHARCOAL PILLS)
   ============================================================================== */

:root {
    /* Paleta de Colores Flai (Lienzo Blanco/Azul Hielo con Cápsulas Carbón Oscuro) */
    --bg-primary: #ffffff;                  /* Fondo base blanco impoluto */
    --bg-secondary: #f4f8ff;                /* Fondo secundario azul hielo suave */
    --bg-card: #ffffff;                     /* Tarjetas blancas limpias */
    --border-color: #e2e8f0;                /* Bordes finos grises gráciles */
    
    --text-main: #0a0f1d;                   /* Titulares en gris carbón muy oscuro (Casi negro) */
    --text-muted: #475569;                  /* Gris pizarra para descripciones */
    
    /* Acentos Oscuros & Neón */
    --accent-dark: #0a0f1d;                 /* Color oscuro principal de cápsulas Flai */
    --accent-dark-hover: #1e293b;           /* Hover de botones carbón */
    --accent-light-btn: #f1f5f9;            /* Botón secundario suave */
    --accent-purple: #7c3aed;               /* Violeta neón sutil */
    --accent-lilac: #c084fc;
    --accent-green: #10b981;                /* Punto verde de status activo */
    
    /* Estados */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Bordes y Fuentes */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-pill: 40px;                    /* Cápsulas totalmente redondeadas estilo Flai */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    background-image: linear-gradient(180deg, #ffffff 0%, #f0f6ff 50%, #f8fafc 100%);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* STICKY HEADER ESTILO FLAI (BARRA CÁPSULA FLOTANTE O DECORADA) */
header {
    max-width: 1240px;
    margin: 15px auto 0;
    width: 95%;
    padding: 10px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a0f1d;                    /* Cápsula carbón oscuro */
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 25px rgba(10, 15, 29, 0.15);
    z-index: 1000;
    position: sticky;
    top: 15px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo span {
    color: var(--accent-lilac);
}

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

.logo-img-full {
    height: 44px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #ffffff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* CONTENEDOR PRINCIPAL */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* BOTONES ESTILO FLAI (PILL BUTTONS) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-pill);       /* Forma de cápsula redonda exacta */
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary {
    background: #0a0f1d;                    /* Botón carbón oscuro exacto de la captura 1 */
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(10, 15, 29, 0.2);
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 15, 29, 0.3);
}

.btn-secondary {
    background: #f1f5f9;                    /* Botón gris/azul suave de la captura 1 */
    color: #0a0f1d;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* BOTÓN DE ACCIÓN NEÓN "+ AGREGAR..." ALTA VISIBILIDAD (AURAFLOW STYLED) */
.btn-add-neon {
    background: #0a0f1d !important;
    color: #ffffff !important;
    border: 1px solid var(--accent-lilac) !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25), 0 0 10px rgba(192, 132, 252, 0.15) !important;
    font-weight: 800 !important;
    padding: 10px 22px !important;
    border-radius: var(--radius-pill) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88rem;
}

.btn-add-neon:hover {
    background: #1e293b !important;
    border-color: #d946ef !important;
    box-shadow: 0 6px 22px rgba(217, 70, 239, 0.4), 0 0 15px rgba(168, 85, 247, 0.3) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

.btn-add-neon i {
    color: var(--accent-lilac);
    font-size: 0.95rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ETIQUETA CÁPSULA SEED / BADGE ESTILO FLAI */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0a0f1d;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* HERO SECTION */
.hero-section {
    text-align: center;
    padding: 60px 0 40px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    color: #0a0f1d;
    letter-spacing: -1.5px;
    line-height: 1.08;
}

/* TEXTO VIOLETA NEÓN Y RESPLANDOR DE MARCA */
.violet-neon {
    color: #8b5cf6;
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 50%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-shadow: 0 0 25px rgba(139, 92, 246, 0.35);
}

/* VISIBILIDAD GARANTIZADA DE TODA LA WEB */
[data-animate="show-up"] {
    opacity: 1 !important;
    transform: none !important;
}

/* DEMO CANVAS ESTILO CAPTURA (Fondo Azul Hielo con Rayas Verticales) */
.hero-demo-container {
    margin-top: 50px;
    background: linear-gradient(180deg, #f0f6ff 0%, #e6f0fa 100%);
    background-image: repeating-linear-gradient(90deg, rgba(226, 232, 240, 0.4), rgba(226, 232, 240, 0.4) 1px, transparent 1px, transparent 20px);
    border: 1px solid #dbeafe;
    border-radius: 32px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-demo-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 35px;
    width: 100%;
    align-items: center;
}

/* PESTAÑAS / BOTONES DE RUBRO COMPACTOS A LO ANCHO DEL CELULAR */
.demo-tabs-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    max-width: 380px;
    margin: 0 auto 18px;
    width: 100%;
}

.demo-tab-pill {
    flex: 1;
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 7px 10px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.demo-tab-pill:hover {
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
    border-color: #a855f7;
}

.demo-tab-pill.active {
    background: #0a0f1d;
    color: #ffffff;
    border-color: #0a0f1d;
    box-shadow: 0 4px 12px rgba(10, 15, 29, 0.2);
}

.demo-tab-pill.active i {
    color: var(--accent-lilac);
}

/* MARCO REALISTA IPHONE 16 PRO (ESTILO EXECUTIVE PRODUCT FLAI) */
.iphone-16-pro-frame {
    width: 350px;
    height: 610px;
    background: #ffffff;
    border-radius: 48px;
    padding: 10px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18), 0 0 0 3px #e4e4e7, 0 0 0 5px #27272a;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
}

/* BOTONES LATERALES DE TITANIO DEL IPHONE 16 PRO */
.iphone-16-pro-frame::before {
    content: '';
    position: absolute;
    top: 110px;
    left: -7px;
    width: 4px;
    height: 48px;
    background: #a1a1aa;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 60px 0 #a1a1aa, 0 120px 0 #a1a1aa;
}

/* DYNAMIC ISLAND (ISLA DINÁMICA IPHONE 16 PRO) */
.dynamic-island {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 28px;
    background: #000000;
    border-radius: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.dynamic-island-camera {
    width: 12px;
    height: 12px;
    background: #111115;
    border-radius: 50%;
    border: 1.5px solid #1c1c24;
}

.dynamic-island-sensor {
    width: 8px;
    height: 8px;
    background: #0a0a0f;
    border-radius: 50%;
}

/* PANTALLA INTERNA DEL CELULAR EN TONO CLARO */
.iphone-screen {
    width: 100%;
    height: 100%;
    background: #f8fafc;                     /* Fondo blanco claro ultra limpio */
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* BARRA SUPERIOR Y TÍTULO "MESSAGES" EN TONO CLARO */
.phone-whatsapp-header {
    background: #ffffff;
    padding: 45px 20px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
}

.phone-contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-contact-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.phone-contact-status {
    font-size: 0.78rem;
    color: #00a884;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone-contact-status::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #00a884;
    border-radius: 50%;
    display: inline-block;
}

/* CUERPO DEL CHAT EN TONO CLARO */
.phone-chat-body {
    flex: 1;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    background: #f8fafc;
}

/* BURBUJAS DE CHAT FLAI ESTILO EJECUTIVO EN TONO CLARO */
.chat-bubble {
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 0.84rem;
    line-height: 1.45;
    max-width: 90%;
    position: relative;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    animation: bubbleAppear 0.4s ease forwards;
}

.chat-user {
    background: #ffffff;                    /* Mensaje del cliente en tarjeta blanca */
    color: #0f172a;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    border: 1px solid #e2e8f0;
}

.chat-bot {
    background: #252d3a;                    /* Mensaje del bot en tarjeta oscura elegante (Estilo Flai) */
    color: #ffffff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bot strong {
    color: #ffffff;
}

.chat-bot-avatar-badge {
    position: absolute;
    top: 14px;
    left: -38px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.chat-bot-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
}

.live-sync-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.sync-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.sync-card-item i {
    font-size: 1.6rem;
}

/* BENTO GRID EN LIGHT MODE CLEAN */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.bento-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.bento-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #0a0f1d;
    margin-bottom: 20px;
}

.bento-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: #0a0f1d;
    margin-bottom: 10px;
}

.bento-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.metric-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.2rem;
    color: #0a0f1d;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

/* BARRAS DE CONVERSIÓN RECURRENTES */
.section-cta-bar {
    margin-top: 35px;
    padding: 24px 30px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.section-cta-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a0f1d;
}

/* TABLA DE PRECIOS */
.pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.pricing-card.popular {
    border: 2px solid #0a0f1d;
    box-shadow: 0 12px 35px rgba(10, 15, 29, 0.1);
}

.popular-badge {
    position: absolute;
    top: -14px;
    right: 25px;
    background: #0a0f1d;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 12px;
    text-transform: uppercase;
}

.price-val {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.2rem;
    color: #0a0f1d;
    margin: 15px 0 5px;
    letter-spacing: -1px;
}

.price-val span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-features-list {
    list-style: none;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.pricing-features-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.95rem;
    color: #334155;
    position: relative;
    cursor: pointer;
    outline: none;
}

.pricing-features-list li i.fa-check {
    color: var(--success-color);
}

.feature-item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #334155;
    width: 100%;
}

.info-icon {
    margin-left: auto;
    font-size: 0.78rem;
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.pricing-features-list li:hover .info-icon,
.pricing-features-list li:focus .info-icon {
    color: #8b5cf6;
    transform: scale(1.15);
}

/* CAJA DESPLEGABLE LITERMENTE DEBAJO DE CADA ESPECIFICACIÓN (TONO CLARO DE LA LANDING) */
.feature-tooltip-box {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 12px;
    margin-top: 0;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
    width: 100%;
    box-sizing: border-box;
}

.pricing-features-list li:hover .feature-tooltip-box,
.pricing-features-list li:focus .feature-tooltip-box,
.pricing-features-list li:focus-within .feature-tooltip-box {
    max-height: 120px;
    opacity: 1;
    padding: 10px 14px;
    margin-top: 6px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

/* BOTÓN FLOTANTE FIJO INFERIOR DERECHO "TALK TO FLAI" (CAPTURA 1, 2 Y 3) */
.talk-to-flai-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0a0f1d;
    color: #ffffff;
    border-radius: var(--radius-pill);
    padding: 14px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(10, 15, 29, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.25s ease;
}

.talk-to-flai-floating:hover {
    background: #1e293b;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 35px rgba(10, 15, 29, 0.4);
}

/* ==============================================================================
   MARCO DE CELULAR SMARTPHONE & ANIMACIÓN EN VIVO DE CHAT
   ============================================================================== */
.phone-mockup-frame {
    width: 320px;
    margin: 0 auto;
    background: #0f172a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25), 0 0 0 2px #334155;
    position: relative;
}

.phone-mockup-screen {
    background: linear-gradient(180deg, #f0f6ff 0%, #e6f0fa 100%);
    border-radius: 30px;
    padding: 20px 16px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    position: relative;
}

.phone-notch {
    width: 110px;
    height: 18px;
    background: #0f172a;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin: 0 auto 15px;
}

.animated-bubble {
    opacity: 0;
    transform: translateY(15px);
    animation: bubbleAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animated-bubble.delay-1 { animation-delay: 0.3s; }
.animated-bubble.delay-2 { animation-delay: 2.0s; }
.animated-bubble.delay-3 { animation-delay: 4.0s; }
.animated-bubble.delay-4 { animation-delay: 5.5s; }

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

/* ACCORDEÓN DE PREGUNTAS FRECUENTES (FAQS) */
.faq-accordion-container {
    max-width: 850px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-accordion-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.faq-accordion-item:hover {
    border-color: #cbd5e1;
}

.faq-accordion-header {
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: #0a0f1d;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-accordion-header i {
    font-size: 1rem;
    color: #64748b;
    transition: transform 0.3s ease;
}

.faq-accordion-item.active .faq-accordion-header i {
    transform: rotate(180deg);
    color: #0a0f1d;
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-accordion-item.active .faq-accordion-content {
    max-height: 250px;
    padding: 0 24px 20px;
}

/* FORMULARIO DE ONBOARDING EN TARJETAS LIMPIAS */
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: #0a0f1d;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0a0f1d;
    margin-bottom: 8px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    color: #0a0f1d;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0a0f1d;
    background: #ffffff;
}

/* STEPPER */
.stepper {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.step-btn {
    flex: 1;
    padding: 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    color: #64748b;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-btn.active {
    background: #0a0f1d;
    color: #ffffff;
    border-color: #0a0f1d;
}

.step-card {
    display: none;
}

.step-card.active {
    display: block;
}

.staff-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.staff-inline-schedule {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}

.staff-schedule-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0a0f1d;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 29, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: #0a0f1d;
}

@media (max-width: 768px) {
    .hero-demo-container {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .section-cta-bar {
        flex-direction: column;
        text-align: center;
    }
}

/* PARTNERS MARQUEE INFINITO (ESTILO FLAI MONOCHROME SLIDER) */
.partners-marquee-container {
    width: 100%;
    max-width: 950px;
    margin: 45px auto 10px;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.partners-title {
    color: #64748b;
    font-size: 0.82rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 22px;
    text-align: center;
}

.partners-marquee-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: marquee-scroll 22s linear infinite;
}

.partners-marquee-track:hover {
    animation-play-state: paused;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    opacity: 0.85;
    transition: opacity 0.3s ease, color 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #e2e8f0;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.partner-logo-item i {
    font-size: 1.25rem;
}

.partner-logo-item:hover {
    opacity: 1;
    color: #0a0f1d;
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(10, 15, 29, 0.08);
}

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

/* ==============================================================================
   ACORDEONES COLAPSABLES (SETTINGS DASHBOARD)
   ============================================================================== */
.collapsible-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.25s ease;
}

.collapsible-card:hover {
    border-color: #cbd5e1;
}

.collapsible-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
    transition: background 0.2s ease;
}

.collapsible-header:hover {
    background: #f8fafc;
}

.collapsible-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.collapsible-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: #0a0f1d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.collapsible-counter-badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.collapsible-chevron {
    font-size: 0.95rem;
    color: #64748b;
    transition: transform 0.3s ease;
}

.collapsible-card.active .collapsible-chevron {
    transform: rotate(180deg);
    color: #0a0f1d;
}

.collapsible-card.active .collapsible-header {
    border-bottom: 1px solid var(--border-color);
}

.collapsible-body {
    display: none;
    padding: 24px;
    background: #ffffff;
}

.collapsible-card.active .collapsible-body {
    display: block;
}

.collapsible-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.55;
}

/* FORMULARIO DE AGREGAR ITEM EN CAJA CONTENEDORA */
.collapsible-form-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.collapsible-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .collapsible-form-row {
        grid-template-columns: 1fr;
    }
}

.collapsible-add-btn {
    width: 100%;
    background: #0a0f1d;
    color: #ffffff;
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.collapsible-add-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* TARJETAS DE ITEMS (ESPACIOS, SERVICIOS, EMPLEADOS, FAQS, DIAS CERRADOS) */
.item-display-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.item-display-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.item-badge-type {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-purple);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 4px;
}

.item-title-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: #0a0f1d;
}

.item-subtitle-info {
    font-size: 0.88rem;
    color: var(--accent-purple);
    font-weight: 700;
    margin-top: 2px;
}

.item-delete-btn {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.item-delete-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: scale(1.08);
}

/* ==============================================================================
   TARJETA DE EMPLEADO / PROFESIONAL (DÍAS ARRIBA A LA DERECHA Y PANEL DE HORARIOS)
   ============================================================================== */
.staff-item-row {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 14px;
    display: flex;
    align-items: center; /* Centrado vertical del input del nombre respecto a la columna derecha */
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.staff-item-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(10, 15, 29, 0.04);
}

.staff-left-col {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
}

.staff-left-col input {
    width: 100%;
    margin-bottom: 0;
}

.staff-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.staff-top-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* PILLS DE DÍAS DE TRABAJO INDIVIDUAL POR EMPLEADO */
.staff-inline-days {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.staff-day-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.staff-day-pill input {
    display: none;
}

.staff-day-pill span {
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #f1f5f9;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.staff-day-pill input:checked + span {
    background: var(--accent-purple);
    color: #ffffff;
    border-color: var(--accent-purple);
}

/* Día activo en edición en el panel */
.staff-day-span.active-editing-day {
    box-shadow: 0 0 0 2px #0a0f1d, 0 0 0 4px var(--accent-lilac) !important;
    transform: translateY(-1px);
    font-weight: 800;
}

.staff-active-day-tag {
    color: var(--accent-purple);
    font-weight: 700;
    margin-left: 2px;
}

.btn-remove-staff {
    background: #ffffff;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-staff:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
    transform: scale(1.06);
}

.staff-day-pill-wrapper {
    position: relative;
    display: inline-block;
}

.staff-day-has-custom::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background: #ec4899;
    border-radius: 50%;
    border: 1px solid #ffffff;
}

@media (max-width: 640px) {
    .staff-item-row {
        flex-direction: column;
        align-items: stretch;
    }
    .staff-right-col {
        align-items: stretch;
    }
    .staff-top-bar {
        justify-content: space-between;
    }
}

/* ==============================================================================
   VISTA EN CELULARES Y TABLETS
   Ajustes para que ninguna sección quede más ancha que la pantalla (antes había que
   desplazarse de costado). Solo aplican por debajo de 768px / 480px: en computadora no cambia nada.
   ============================================================================== */
@media (max-width: 768px) {
    header {
        width: calc(100% - 20px);
        padding: 8px 12px 8px 16px;
        gap: 10px;
        top: 10px;
        margin-top: 10px;
    }
    .logo {
        font-size: 1.15rem;
    }
    .logo-img {
        height: 34px;
    }
    .logo-img-full {
        height: 36px;
    }
    .header-right {
        gap: 6px;
        min-width: 0;
        flex-shrink: 1;
    }
    /* Textos secundarios del encabezado: no entran junto al logo en un celular */
    .header-right .status-badge,
    .header-right .support-email {
        display: none;
    }
    .header-right .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    /* La landing ya tiene el botón flotante de WhatsApp: en el encabezado sobra */
    .header-right a[href^="https://wa.me"] {
        display: none;
    }

    /* Los botones pueden partir el texto en dos líneas en vez de estirar la página */
    .btn {
        white-space: normal;
        flex-shrink: 1;
        max-width: 100%;
        text-align: center;
    }

    .hero-section {
        padding: 36px 0 24px;
    }
    .hero-demo-container {
        padding: 18px 12px;
        border-radius: 24px;
    }
    .hero-demo-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .iphone-16-pro-frame {
        max-width: 100%;
    }
    .phone-mockup-frame {
        max-width: 100%;
    }

    .talk-to-flai-floating {
        right: 14px;
        bottom: 14px;
        padding: 12px 18px;
        font-size: 0.88rem;
    }

    .container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.1rem;
        letter-spacing: -1px;
    }
    .header-right .btn-sm i {
        display: none;
    }
}
