/* =========================================
   1. RESET & VARIABLES GLOBALES
   ========================================= */
:root {
    /* COLORES DE MARCA (DENTAL TECH) */
    --primary-cyan: #00f2ff; /* Cyan Clínico Brillante */
    --secondary-blue: #0077b6;
    --accent-purple: #7b2cbf;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --bg-dark: #050510;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* COLORES WHATSAPP DARK MODIFICADOS */
    --wp-bg: #0b141a;
    --wp-header: #202c33;
    --wp-msg-bot: #202c33;   
    --wp-msg-user: var(--primary-cyan); /* User usa el color de marca */
    --wp-text-user: #000;

    --font-main: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

* {
    margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth;
}

html, body {
    width: 100%; min-height: 100vh; overflow-x: hidden;
    background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-main);
}

/* Fondo Animado */
/* --- CAPA 1: CANVAS (FONDO ANIMADO) --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    background: radial-gradient(circle at center, #1a1c29 0%, #000000 100%);
}

/* --- CAPA 2: CONTENIDO --- */
.app-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 100px;
}

.app-container {
    position: relative; z-index: 1; width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 20px;
}

/* =========================================
   2. HEADER FINAL (Con Máscara de Fusión)
   ========================================= */

header {
    display: flex;
    justify-content: flex-end; /* Botón a la derecha */
    align-items: center;
    padding: 0 5%;
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    
    /* ALTURA GRANDE */
    height: 180px; 
    z-index: 1000;

    /* FONDO NEBULA VIOLETA */
    /* Centro negro (detrás del logo) -> Violeta -> Transparente */
    background: radial-gradient(
        ellipse at top center, 
        #000000 30%,              
        rgba(138, 43, 226, 0.45) 60%, 
        transparent 95%           
    );

    border: none;
    box-shadow: none; 
    backdrop-filter: blur(4px);
}

/* WRAPPER DEL LOGO */
.logo-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    
    /* Ancho amplio para que la máscara no corte antes de tiempo */
    width: 400px; 
    height: 100%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: transparent;
    z-index: 10;
}

/* IMAGEN DEL LOGO (Efecto Máscara Fuerte) */
.logo-img-main {
    height: 100%;  
    width: auto;   
    max-width: 100%;
    object-fit: contain;

    /* 1. MÁSCARA MÁS AGRESIVA */
    /* Antes empezaba en 50%, ahora en 30%. El desvanecimiento es mucho más notable. */
    -webkit-mask-image: radial-gradient(
        ellipse at center, 
        black 30%,           /* Solo el centro (30%) es totalmente sólido */
        rgba(0,0,0,0.6) 55%, /* A mitad de camino ya es muy transparente */
        transparent 85%      /* Los bordes desaparecen por completo antes de llegar al final */
    );
    mask-image: radial-gradient(
        ellipse at center, 
        black 30%, 
        rgba(0,0,0,0.6) 55%, 
        transparent 85%
    );

    /* 2. FUSIÓN Y LIMPIEZA */
    mix-blend-mode: screen; 
    border: none;
    border-radius: 0;
    
    /* 3. BRILLO NEÓN INTENSO (Compensa la transparencia) */
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.8)) 
            drop-shadow(0 0 40px rgba(138, 43, 226, 0.6));
    
    /* Animación */
    animation: energy-pulse 4s ease-in-out infinite;
    transition: transform 0.4s ease, -webkit-mask-image 0.4s ease;
}

/* Animación Respiración */
@keyframes energy-pulse {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.02); opacity: 1; }
}

/* BOTÓN LOGIN */
.nav-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s;
    backdrop-filter: blur(4px);
}

.nav-btn:hover {
    background: var(--primary-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--primary-cyan);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    header { height: 140px; }
    .logo-img-main { height: 100%; }
}

@media (max-width: 600px) {
    header { 
        height: 100px; 
        background: radial-gradient(
            ellipse at top center, 
            #000000 40%, 
            rgba(138, 43, 226, 0.4) 80%, 
            transparent 100%
        );
    }
    .logo-wrapper { width: 200px; }
    .logo-img-main { height: 100%; }
}

/* BOTÓN LOGIN (Flotando a la derecha) */
.nav-btn {
    background: rgba(0, 0, 0, 0.5); /* Fondo semitransparente para leerse */
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.nav-btn:hover {
    background: var(--primary-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--primary-cyan);
}

/* Ajuste Móvil */
@media (max-width: 768px) {
    header { height: 120px; }
    .logo-img-main { height: 100px; }
    /* En móvil oscurecemos un poco más el fondo para leer el menú */
    header {
        background: radial-gradient(
            ellipse at top center, 
            #000000 30%, 
            rgba(138, 43, 226, 0.2) 70%, 
            transparent 100%
        );
    }
}

.nav-btn {
    color: var(--primary-cyan); text-decoration: none; padding: 8px 20px; border: 1px solid var(--primary-cyan);
    border-radius: 50px; font-size: 0.9rem; font-weight: 600; transition: 0.3s;
}
.nav-btn:hover { background: var(--primary-cyan); color: #000; box-shadow: 0 0 20px var(--primary-cyan); }

/* =========================================
   3. HERO SECTION (DENTAL)
   ========================================= */
.hero {
    min-height: 90vh; display: flex; align-items: center; padding-top: 200px; position: relative;
}

.hero-grid {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; width: 100%;
}

.badge {
    display: inline-block; background: rgba(0, 242, 255, 0.1); color: var(--primary-cyan);
    padding: 6px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 700;
    border: 1px solid rgba(0, 242, 255, 0.3); margin-bottom: 25px; letter-spacing: 1px;
}

h1.typewriter-container {
    font-family: var(--font-display); font-size: clamp(1rem, 2.5vw, 2.5rem);
    line-height: 1.1; margin-bottom: 20px; color: #fff; min-height: 140px; display: block;
}
#typewriter-text { color: #fff; }
.cursor { display: inline-block; color: var(--primary-cyan); animation: blink 1s step-end infinite; }

h2 {
    font-family: var(--font-main); font-size: 1.1rem; color: var(--text-muted);
    margin-bottom: 18px; font-weight: 300; line-height: 1.6; max-width: 90%;
}

.highlight-gradient {
    background: linear-gradient(90deg, var(--primary-cyan), #00aaff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700;
}

/* CTA Buttons */
.cta-group { display: flex; gap: 15px; flex-wrap: wrap; }

.btn-primary {
    background: var(--primary-cyan); color: #000; padding: 14px 28px; border-radius: 10px;
    text-decoration: none; font-weight: 800; display: inline-flex; align-items: center; gap: 8px;
    transition: 0.3s; border: none; cursor: pointer; font-size: 1rem;
}
.btn-primary:hover { box-shadow: 0 0 25px rgba(0, 242, 255, 0.6); transform: translateY(-3px); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px; padding: 10px 20px; text-decoration: none; display: flex; flex-direction: column;
    justify-content: center; transition: 0.3s; color: #fff; cursor: pointer; min-width: 180px;
}
.btn-secondary:hover { border-color: var(--primary-cyan); background: rgba(0, 242, 255, 0.05); }
.btn-text { font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }
.file-support { display: flex; gap: 10px; font-size: 0.7rem; color: var(--text-muted); }
.dot { width: 6px; height: 6px; background: var(--primary-cyan); border-radius: 50%; display: inline-block; }

/* =========================================
   4. HERO VISUAL (CHAT 3D)
   ========================================= */
.hero-visual {
    position: relative; height: 500px; display: flex; justify-content: center; align-items: center;
    perspective: 1000px;
}

#chat-wrapper {
    position: relative; width: 340px; height: 100%; z-index: 10;
}

.card-chat {
    width: 100%; height: 90%; background-color: var(--wp-bg);
    border-radius: 35px; border: 8px solid #1f2c34; overflow: hidden;
    display: flex; flex-direction: column; box-shadow: 0 30px 60px rgba(0,0,0,0.7);
    transform: rotateY(-15deg); animation: floatChat 6s ease-in-out infinite;
    font-family: Helvetica, Arial, sans-serif;
}

.chat-header {
    background-color: var(--wp-header); padding: 15px; display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.chat-avatar {
    width: 40px; height: 40px; background: var(--primary-cyan); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.chat-avatar::after { content: '🧠'; } /* Icono Psicopedagogico */

.chat-body {
    flex: 1; padding: 20px 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
    background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
    background-size: 300px; background-blend-mode: soft-light;
}
.chat-body::-webkit-scrollbar { width: 0; } /* Scroll oculto */

.chat-message {
    padding: 10px 14px; border-radius: 12px; max-width: 85%; font-size: 0.9rem; line-height: 1.4;
    position: relative; animation: popIn 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.chat-message.bot { background: var(--wp-msg-bot); color: #fff; align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-message.user { background: var(--wp-msg-user); color: #000; align-self: flex-end; border-bottom-right-radius: 2px; font-weight: 500; }

/* Decoración Flotante */
.card-file {
    position: absolute; left: -30px; top: 15%; width: 120px; height: 120px;
    background: rgba(30, 30, 40, 0.9); border: 1px solid var(--border-color); border-radius: 15px;
    display: flex; align-items: center; justify-content: center; font-size: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); transform: rotateY(20deg);
    animation: float 6s ease-in-out infinite 1s; z-index: 5;
}

/* =========================================
   5. MARQUEE & FEATURES (BENTO)
   ========================================= */
.tech-marquee {
    background: #0b0d14; padding: 20px 0; overflow: hidden; position: relative; z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); margin: 60px 0;
}
.marquee-content { display: flex; gap: 60px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-content span {
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
    color: rgba(255,255,255,0.3); text-transform: uppercase;
}

.features-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h3 { color: var(--primary-cyan); font-size: 0.9rem; letter-spacing: 3px; margin-bottom: 10px; font-weight: 700; }
.section-header h2 { font-family: var(--font-display); font-size: 2.5rem; color: #fff; }
.text-highlight { color: var(--primary-cyan); }

.bento-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px;
}
.bento-card {
    background: rgba(20, 25, 35, 0.6); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between;
    transition: 0.3s; backdrop-filter: blur(10px); min-height: 220px;
}
.bento-card:hover { transform: translateY(-5px); border-color: var(--primary-cyan); }

.card-wide { grid-column: span 2; display: flex; flex-direction: row; align-items: center; }
.card-icon { font-size: 2rem; margin-bottom: 15px; width: 50px; height: 50px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.bento-card h4 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 10px; color: #fff; }
.bento-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

.toggle-visual {
    background: #0f172a; padding: 5px; border-radius: 30px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-color);
}
.toggle-btn { font-size: 0.7rem; font-weight: bold; padding: 5px 10px; color: #555; }
.toggle-btn.active { color: #000; background: var(--primary-cyan); border-radius: 20px; }

/* =========================================
   6. PRICING (4 CARDS)
   ========================================= */
.pricing-section { padding: 80px 0; }
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 50px; margin-top: 20px; }
.currency-label.active { color: #fff; font-weight: bold; text-shadow: 0 0 10px var(--primary-cyan); }

/* Switch */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #2a2a35; transition: .4s; border-radius: 34px; border: 1px solid rgba(255,255,255,0.2); }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary-cyan); }
input:checked + .slider:before { transform: translateX(24px); }

.pricing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    flex: 1 1 500px;
    max-width: 536px;
    background: #071126;
    border: 1px solid #1a3f67;
    border-radius: 18px;
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    position: relative; transition: none;
}
.pricing-card:hover { border-color: #00bfe6; box-shadow: none; transform: none; }

/* Destacada */
.pricing-card.featured {
    background: #071126;
    border: 1px solid #00bfe6;
    transform: none; z-index: 2;
}
.pricing-card.featured:hover { transform: none; }

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #16d8ff;
    color: #05111c;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.56rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.plan-name { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 10px; text-align: center; font-weight: 700; }
.plan-price { display: flex; justify-content: center; align-items: baseline; margin-bottom: 5px; color: #fff; }
.currency-symbol { font-size: 1.2rem; color: var(--text-muted); }
.amount { font-size: 2.2rem; font-weight: 700; font-family: var(--font-display); }
.period { font-size: 0.85rem; color: var(--text-muted); margin-left: 5px; }
.plan-desc { text-align: center; font-size: 0.58rem; color: #6f8aa5; margin-bottom: 10px; font-style: italic; min-height: 20px; border-bottom: 1px solid #163048; padding-bottom: 11px; }
.item-limit { background: #1a2c44; color: #12d8ff; text-align: center; padding: 5px 8px; border-radius: 999px; font-weight: 700; font-size: 0.62rem; margin: 0 auto 12px; width: 96%; }

.plan-features { list-style: none; margin-bottom: 25px; flex: 1; padding: 0; }
.compact-list li { display: flex; gap: 8px; font-size: 0.85rem; color: #e2e8f0; margin-bottom: 8px; align-items: center; }
.compact-list li.disabled { opacity: 0.5; text-decoration: line-through; }
.plan-quote-box {
    margin-top: 16px;
    border: 1px solid rgba(0,240,255,0.25);
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(170deg, rgba(4, 17, 34, 0.85) 0%, rgba(5, 28, 49, 0.6) 100%);
}
.plan-quote-title {
    display: block;
    margin-bottom: 10px;
    color: #d8faff;
    letter-spacing: 0.03em;
}
.plan-option-group-title {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #83dfff;
    margin: 12px 0 8px;
}
.plan-option-list {
    display: grid;
    gap: 8px;
}
.plan-option {
    position: relative;
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 10px;
    background: rgba(10, 25, 45, 0.45);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.plan-option:hover {
    border-color: rgba(0, 240, 255, 0.45);
    background: rgba(9, 37, 63, 0.55);
}
.plan-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.plan-option-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(125, 170, 201, 0.7);
    background: rgba(4, 15, 25, 0.8);
    box-shadow: inset 0 0 0 2px rgba(2, 10, 20, 0.8);
}
.plan-option-text {
    font-size: 0.84rem;
    color: #cce6ff;
    line-height: 1.25;
}
.plan-option input:checked + .plan-option-check {
    border-color: #00f0ff;
    background: radial-gradient(circle at 50% 50%, #00f0ff 0 45%, rgba(0, 240, 255, 0.15) 46% 100%);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15), inset 0 0 0 2px rgba(0, 24, 40, 0.7);
}
.plan-quote-total {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,240,255,0.2);
    color: #fff;
}

.full-width { width: 100%; }

.denia-pricing { align-items: stretch; overflow: hidden; border-radius: 12px; }
.denia-pricing .pricing-card:first-child { border-top-left-radius: 18px; border-bottom-left-radius: 18px; }
.denia-pricing .pricing-card:last-child { border-top-right-radius: 18px; border-bottom-right-radius: 18px; }
.denia-card { background: #071126; border: 1px solid #00bfe6; padding: 16px 14px; }
.denia-plan-kicker { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.56rem; color: #8aa0b8; margin-bottom: 4px; }
.denia-group-title { margin: 14px 0 8px; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.54rem; color: #7e95ac; font-weight: 700; }
.denia-module-list { display: grid; gap: 7px; }
.denia-module {
    position: relative;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: center;
    border: 1px solid #294665;
    border-radius: 8px;
    background: #112238;
    padding: 9px 10px;
    cursor: pointer;
}
.denia-module input { position: absolute; opacity: 0; pointer-events: none; }
.denia-module-mark { width: 11px; height: 11px; border-radius: 2px; border: 1px solid #4e6782; background: transparent; }
.denia-module input:checked + .denia-module-mark { background: #15d7ff; border-color: #15d7ff; box-shadow: none; }
.denia-module-text { font-size: 0.69rem; color: #c7ddf5; line-height: 1.15; display: flex; justify-content: space-between; gap: 10px; }
.denia-module-text small { color: #7090ad; font-size: 0.64rem; letter-spacing: 0.08em; }
.denia-support-option .denia-module-mark { border-radius: 50%; }
.denia-total-row {
    margin-top: 14px;
    border-top: 1px solid #163048;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    color: #bfd4ea;
}
.denia-total-row span { text-transform: uppercase; font-size: 0.52rem; letter-spacing: 0.2em; font-weight: 700; }
.denia-total-row span small { display: block; font-size: 0.58rem; letter-spacing: 0; text-transform: none; margin-top: 2px; color: #6f8aa4; font-weight: 500; }
.denia-total-row strong { font-size: 2.08rem; color: #fff; line-height: 1; font-family: var(--font-display); }
.denia-plan-btn { margin-top: 12px; border-radius: 10px; font-weight: 800; background: #2fc7df; color: #05131f; font-size: 0.86rem; padding: 13px 14px; }
.denia-outline-btn { background: transparent; border: 1px solid #17d9ff; color: #17d9ff; }
.denia-corporate-list { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 8px; }
.denia-corporate-list li { color: #c9dff4; font-size: 0.68rem; position: relative; padding-left: 16px; }
.denia-corporate-list li::before { content: "◉"; color: #13d8ff; font-size: 0.5rem; position: absolute; left: 0; top: 4px; }
.denia-note { margin-top: auto; border-top: 1px solid #163048; padding-top: 18px; color: #6f8aa4; font-size: 0.52rem; text-align: center; letter-spacing: 0.12em; text-transform: uppercase; }

/* Pricing exacto (card_planes) */
.cards-cotizador-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
}
.card-plan {
    background: #131721;
    border-radius: 2.5rem;
    border: 1px solid #1e293b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}
.card-organization {
    border: 0;
    box-shadow: none;
}
.cards-cotizador-wrap .popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    background: #22d3ee;
    color: #020617;
    font-size: 10px;
    font-weight: 900;
    padding: 6px 20px;
    border-radius: 999px;
    letter-spacing: .14em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}
.plan-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: 10px;
    font-weight: 700;
}
.plan-topline i { font-size: 10px; line-height: 1; }
.plan-topline-cyan { color: #22d3ee; opacity: 1; }
.plan-title {
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.plan-subtitle {
    margin: 0 0 28px;
    color: #64748b;
    font-size: 12px;
}
.plan-chip-wrap { margin-bottom: 20px; }
.plan-chip {
    background: rgba(8, 47, 73, 0.45);
    color: #22d3ee;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.2);
}
.plan-chip-gray {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}
.plan-section { margin-bottom: 30px; }
.plan-section-title {
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: 10px;
    font-weight: 700;
    margin: 0 0 14px;
}
.module-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #1e293b;
    background: rgba(15, 23, 42, 0.4);
    margin-bottom: 10px;
    cursor: pointer;
}
.module-card input { position: absolute; opacity: 0; pointer-events: none; }
.module-left { display: flex; align-items: center; gap: 12px; }
.checkbox-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #334155;
    background: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.check-icon { display: none; font-size: 12px; color: #020617; font-weight: 900; }
.module-card.active {
    border-color: #06b6d4;
    background-color: rgba(6, 182, 212, 0.05);
    box-shadow: inset 0 0 10px rgba(6, 182, 212, 0.05);
}
.module-card.active .checkbox-box {
    background: #22d3ee;
    border-color: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}
.module-card.active .check-icon { display: inline; }
.module-name { color: #cbd5e1; font-size: 14px; font-weight: 500; }
.module-price { color: #64748b; font-size: 11px; font-family: monospace; }
.support-option {
    display: block;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #1e293b;
    background: rgba(15, 23, 42, 0.4);
    margin-bottom: 10px;
    cursor: pointer;
}
.support-option input { position: absolute; opacity: 0; pointer-events: none; }
.support-left { display: flex; align-items: center; gap: 12px; }
.radio-outer {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.radio-inner {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #020617;
    display: none;
}
.support-option.active {
    border-color: #06b6d4;
    background-color: rgba(6, 182, 212, 0.05);
}
.support-option.active .radio-outer {
    border-color: #06b6d4;
    background: #06b6d4;
}
.support-option.active .radio-inner { display: block; }
.support-title { display: block; color: #e2e8f0; font-size: 14px; font-weight: 500; }
.support-subtitle { display: block; color: #64748b; font-size: 10px; margin-top: 2px; }
.plan-summary-pricing {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}
.summary-title {
    margin: 0;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .2em;
}
.summary-subtitle { margin: 0; color: #64748b; font-size: 10px; }
#individual-total {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #fff;
}
.plan-btn-primary,
.plan-btn-outline {
    width: 100%;
    text-align: center;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    display: block;
    text-decoration: none;
}
.plan-btn-primary:hover,
.plan-btn-primary:focus,
.plan-btn-primary:visited,
.plan-btn-outline:hover,
.plan-btn-outline:focus,
.plan-btn-outline:visited {
    text-decoration: none;
}
.plan-btn-primary {
    background: #22d3ee;
    color: #020617;
}
.plan-btn-outline {
    border: 2px solid rgba(34, 211, 238, 0.5);
    color: #22d3ee;
}
.corporate-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.corporate-list li {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 18px;
    position: relative;
    padding-left: 30px;
}
.corporate-list li::before {
    content: "◉";
    color: rgba(34, 211, 238, 0.8);
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 8px;
    border: 1px solid rgba(34, 211, 238, 0.1);
    background: rgba(34, 211, 238, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
.organization-footer {
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid rgba(30, 41, 59, 0.5);
}
.organization-note {
    color: #64748b;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
    text-align: center;
    margin: 0 0 18px;
}

@media (max-width: 900px) {
    .cards-cotizador-wrap {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .card-plan {
        border-radius: 24px;
        padding: 24px 18px;
    }
}

/* Add-ons (Catalog) */
.catalog-details { margin-top: 60px; background: rgba(255,255,255,0.02); padding: 40px; border-radius: 20px; border: 1px dashed var(--border-color); }
.catalog-header { text-align: center; margin-bottom: 30px; }
.catalog-header h4 { font-size: 1.4rem; color: var(--primary-cyan); margin-bottom: 10px; }
.catalog-intro { max-width: 700px; margin: 0 auto 20px; color: var(--text-muted); font-size: 0.9rem; }
.requirements-box { background: rgba(0, 242, 255, 0.05); border: 1px dashed var(--primary-cyan); padding: 15px; border-radius: 10px; display: inline-flex; align-items: center; gap: 10px; color: var(--primary-cyan); font-size: 0.9rem; }

.packs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 30px; }
.pack-item { background: var(--card-bg); border: 1px solid var(--border-color); padding: 25px 20px; border-radius: 15px; text-align: center; position: relative; transition: 0.3s; }
.pack-item:hover { transform: translateY(-5px); border-color: var(--primary-cyan); }
.pack-item.featured-pack { border-color: var(--primary-cyan); background: rgba(0, 242, 255, 0.05); }
.pack-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--primary-cyan); color: #000; padding: 2px 10px; font-size: 0.7rem; border-radius: 10px; font-weight: bold; }
.pack-title { font-weight: 700; margin-bottom: 5px; color: #fff; }
.pack-features { list-style: none; font-size: 0.8rem; color: var(--text-muted); margin-top: 15px; text-align: left; }
.small-note { text-align: center; font-size: 0.75rem; color: #64748b; margin-top: 20px; font-style: italic; }

/* =========================================
   7. TESTIMONIOS & FAQ
   ========================================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testi-card { background: var(--card-bg); padding: 25px; border-radius: 16px; border: 1px solid var(--border-color); }
.testi-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #000; }
.user-name { font-weight: bold; font-size: 0.95rem; }
.user-role { font-size: 0.75rem; color: var(--text-muted); }
.stars { margin-left: auto; color: #FFD700; }

.faq-section { padding: 80px 0; max-width: 800px; margin: 0 auto; }
.faq-container { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; transition: 0.3s; }
.faq-item[open] { border-color: var(--primary-cyan); background: rgba(0, 242, 255, 0.05); }
summary { padding: 20px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--primary-cyan); }
summary::after { content: '+'; font-size: 1.5rem; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-content { padding: 0 20px 20px; color: var(--text-main); line-height: 1.6; font-size: 0.95rem; }

/* =========================================
   8. FOOTER & CTA FINAL
   ========================================= */
.final-cta { padding: 80px 0; display: flex; justify-content: center; position: relative; }
.cta-content {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), #050510); padding: 60px 40px; border-radius: 30px;
    text-align: center; width: 100%; max-width: 900px; border: 1px solid rgba(255,255,255,0.2); 
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.1); position: relative; z-index: 2;
}
.cta-content h2 { font-size: 2.2rem; color: #fff; margin-bottom: 15px; font-family: var(--font-display); }
.cta-buttons { margin-top: 28px; }
.cta-glow { position: absolute; width: 300px; height: 300px; background: var(--primary-cyan); filter: blur(150px); opacity: 0.2; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 15px rgba(37, 211, 102, 0.6); z-index: 1000; transition: transform 0.3s ease; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img { width: 35px; height: 35px; }

footer { text-align: center; padding: 50px 0; color: #666; font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 50px; }

/* =========================================
   9. RESPONSIVE (MEDIA QUERIES)
   ========================================= */
@media (max-width: 1024px) {
    .pricing-container { max-width: 980px; }
    .pricing-card { flex: 1 1 400px; max-width: 480px; }
    .pricing-card.featured { transform: scale(1); }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 60px; }
    .hero-visual { height: 400px; transform: scale(0.9); margin-top: -20px; }
    .hero-text { order: 1; }
    .cta-group { justify-content: center; }
    .bento-grid { grid-template-columns: 1fr; }
    .card-wide { grid-column: auto; flex-direction: column; text-align: center; }
    h1.typewriter-container { min-height: 120px; font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .pricing-container { flex-direction: column; align-items: center; }
    .pricing-card { width: 100%; max-width: 100%; margin-bottom: 20px; }
    .pricing-card.featured { order: -1; transform: scale(1); }
    .packs-grid { grid-template-columns: 1fr; }
    
    .card-chat { border-width: 4px; border-radius: 20px; transform: none; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
    .hero-visual { transform: scale(0.8); margin-left: -5%; }
    .card-file { display: none; } /* Ocultar decoración en móvil para limpiar */
}

/* =========================================
   10. ANIMACIONES
   ========================================= */
@keyframes soft-float { 0% { transform: translateY(0); } 100% { transform: translateY(-5px); } }
@keyframes core-pulse { 0% { opacity: 0.2; scale: 0.9; } 100% { opacity: 0.5; scale: 1.1; } }
@keyframes float { 0%, 100% { transform: rotateY(20deg) translateY(0); } 50% { transform: rotateY(20deg) translateY(-10px); } }
@keyframes floatChat { 0%, 100% { transform: rotateY(-15deg) translateY(0); } 50% { transform: rotateY(-15deg) translateY(-10px); } }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 50% { opacity: 0; } }

/* =========================================
   9. RESPONSIVE (MEDIA QUERIES) - CORREGIDO
   ========================================= */

/* --- TABLETS Y LAPTOPS PEQUEÑAS (1024px hacia abajo) --- */
@media (max-width: 1024px) {
    /* Ajustes generales de grillas */
    .pricing-container { max-width: 980px; }
    .pricing-card { flex: 1 1 400px; max-width: 480px; }
    .pricing-card.featured { transform: scale(1); }
    
    /* Ajuste Header/Hero: Bajamos un poco más el Hero */
    .hero { padding-top: 200px; } 
}

/* --- TABLETS (900px hacia abajo) --- */
@media (max-width: 900px) {
    /* 1. Ajuste Header */
    header { height: 140px; }
    .logo-img-main { height: 100%; }

    /* 2. Ajuste Hero (Para que no se encime) */
    /* Header mide 140px + 40px de aire = 180px */
    .hero { padding-top: 180px; } 

    /* Ajustes de contenido */
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 60px; }
    .hero-visual { height: 400px; transform: scale(0.9); margin-top: -20px; }
    .hero-text { order: 1; } /* Texto abajo, visual arriba (opcional) o normal */
    .cta-group { justify-content: center; }
    
    .bento-grid { grid-template-columns: 1fr; }
    .card-wide { grid-column: auto; flex-direction: column; text-align: center; }
    h1.typewriter-container { min-height: 120px; font-size: 2.5rem; }
}

/* --- TABLET PEQUEÑA / MÓVIL GRANDE (768px hacia abajo) --- */
@media (max-width: 768px) {
    /* 1. Ajuste Header */
    header { 
        height: 120px; 
        /* Oscurecemos un poco el fondo para leer mejor */
        background: radial-gradient(
            ellipse at top center, 
            #000000 30%, 
            rgba(138, 43, 226, 0.25) 70%, 
            transparent 100%
        );
    }

    /* 2. Ajuste Hero */
    .hero { padding-top: 160px; }

    /* Contenido */
    .pricing-container { flex-direction: column; align-items: center; }
    .pricing-card { width: 100%; max-width: 100%; margin-bottom: 20px; }
    .pricing-card.featured { order: -1; transform: scale(1); }
    .packs-grid { grid-template-columns: 1fr; }
    
    .card-chat { border-width: 4px; border-radius: 20px; transform: none; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
    .hero-visual { transform: scale(0.8); margin-left: -5%; }
    .card-file { display: none; }
}

/* --- MÓVIL (600px hacia abajo) - AQUÍ ARREGLAMOS LA SUPERPOSICIÓN --- */
@media (max-width: 600px) {
    /* 1. HEADER: Cambiamos la estrategia de distribución */
    header { 
        height: 100px; 
        padding: 0 20px;
        /* Usamos space-between para separar Logo (Izq) y Botón (Der) */
        justify-content: space-between; 
        
        background: radial-gradient(
            ellipse at top center, 
            #000000 40%, 
            rgba(138, 43, 226, 0.4) 80%, 
            transparent 100%
        );
    }
    
    /* 2. LOGO: Quitamos la posición absoluta para que no choque */
    .logo-wrapper { 
        position: relative; /* Ya no flota en el centro ignorando a los demás */
        left: auto; 
        top: auto; 
        transform: none; /* Quitamos el centrado forzado */
        
        width: auto; /* Que ocupe lo que necesite la imagen */
        height: 100%;
        max-width: 60%; /* Para dejarle espacio al botón */
        
        justify-content: flex-start; /* Alineado a la izquierda */
    }
    
    .logo-img-main { 
        height: 80%; /* Un pelín más chico para dar aire */
        /* Ajustamos la máscara para que no corte el lado izquierdo ahora que está al borde */
        -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
        mask-image: linear-gradient(to right, black 80%, transparent 100%);
    }

    /* 3. BOTÓN: Ajuste de tamaño */
    .nav-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
        white-space: nowrap; /* Que no se rompa el texto */
    }

    /* 4. HERO: Bajamos el contenido */
    /* Header 100px + espacio extra */
    .hero { 
        padding-top: 140px; 
        min-height: auto; /* Quitamos altura mínima forzada en móvil */
        padding-bottom: 60px;
    }
    
    /* Texto más chico en móvil */
    h1.typewriter-container { font-size: 2rem; min-height: 100px; }
}

/* =========================================
   ESTILOS APP (LOGIN, SIGNUP, DASHBOARD)
   ========================================= */

/* Reutilizamos las variables del root anterior */
:root {
    --sidebar-width: 260px;
    --header-height: 80px;
    --card-glass: rgba(30, 41, 59, 0.7);
}

/* --- Layout de Autenticación (Centrado) --- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1c29 0%, #000000 100%);
    padding: 20px;
}

.auth-card {
    background: var(--card-glass);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.1);
    animation: soft-float 6s ease-in-out infinite;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    height: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--primary-cyan));
}

/* --- Formularios --- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    transition: 0.3s;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.step-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.signup-section-card {
    background: linear-gradient(180deg, rgba(18, 24, 49, 0.92), rgba(10, 14, 31, 0.92));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.signup-plan-card {
    padding: 20px 22px;
}

.signup-plan-card-compact {
    margin-bottom: 0;
}

.signup-plan-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signup-plan-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.18);
    color: #8cefff;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.signup-plan-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.signup-plan-main-compact {
    display: block;
}

.signup-plan-main h4 {
    font-size: 1.08rem;
    color: #fff;
    margin-bottom: 6px;
}

.signup-plan-main p {
    color: #8ea0b8;
    font-size: 0.9rem;
    line-height: 1.55;
}

.signup-plan-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.signup-plan-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #d8e2f0;
    font-size: 0.9rem;
    font-weight: 600;
}

.signup-plan-link {
    color: #9adfff;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.signup-plan-link:hover {
    color: #cff4ff;
}

.signup-plan-field {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.signup-plan-field strong {
    color: #f2f6ff;
    font-size: 0.92rem;
}

.signup-plan-field span {
    color: #8ea0b8;
    font-size: 0.78rem;
}

.signup-section-header {
    margin-bottom: 18px;
}

.signup-section-header-icon {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.signup-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(96, 112, 255, 0.24), rgba(96, 112, 255, 0.1));
    border: 1px solid rgba(130, 145, 255, 0.2);
    color: #b8c4ff;
    flex: 0 0 auto;
}

.signup-icon-badge-alt {
    background: linear-gradient(180deg, rgba(0, 242, 255, 0.18), rgba(0, 242, 255, 0.08));
    border-color: rgba(0, 242, 255, 0.18);
    color: #91f6ff;
}

.signup-section-header h4 {
    font-size: 1.18rem;
    margin-bottom: 6px;
    color: #fff;
}

.signup-section-header p {
    color: #71809d;
    font-size: 0.84rem;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.signup-form-grid {
    display: grid;
    gap: 15px;
}

.signup-form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-hint {
    display: block;
    margin-top: 8px;
    color: #8ea0b8;
    font-size: 0.78rem;
    line-height: 1.45;
}

.signup-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) 290px;
    gap: 18px;
    align-items: start;
}

.signup-stage-main {
    min-width: 0;
}

.signup-stage-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
}

.signup-side-card {
    background: #0b0e14;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 18px;
}

.signup-side-card h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    margin-bottom: 12px;
    color: #eef4ff;
}

.signup-side-list {
    margin: 0;
    padding-left: 18px;
    color: #8fa0bc;
    font-size: 0.82rem;
    line-height: 1.6;
}

.signup-side-card-soft {
    background: rgba(255,255,255,0.04);
}

.signup-side-tag {
    display: inline-block;
    margin-bottom: 10px;
    color: #6f82ff;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.signup-side-card-soft p {
    color: #92a3bd;
    font-size: 0.82rem;
    line-height: 1.6;
}

.signup-next-btn {
    justify-content: space-between;
    border-radius: 999px;
    padding-inline: 18px;
}

.signup-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}

.signup-actions-final {
    margin-top: 30px;
}

.signup-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 14px;
    min-height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: 0.25s ease;
    text-decoration: none;
}

.signup-btn-secondary {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: #d7e0ef;
}

.signup-btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
}

.signup-btn-primary {
    background: linear-gradient(90deg, #5f6fff 0%, var(--primary-cyan) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(27, 113, 255, 0.2);
}

.signup-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(27, 113, 255, 0.26);
}

.signup-btn-confirm {
    min-width: 220px;
}

.signup-btn.is-hidden {
    display: none;
}

.signup-optional-grid .form-group {
    margin-bottom: 0;
}

.form-group-spacer {
    visibility: hidden;
    margin-bottom: 0;
}

/* Resumen del Plan en Signup */
.plan-summary {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid var(--accent-purple);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- DASHBOARD LAYOUT --- */
.dashboard-body {
    background: #050510;
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
}

.nav-item a:hover, .nav-item a.active {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-cyan);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 20px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

/* KPI Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-glass);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card h3 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.stat-card .number { font-size: 2rem; font-weight: 700; color: #fff; }
.stat-card .trend { font-size: 0.8rem; margin-top: 5px; }
.trend.positive { color: #00ff88; }
.trend.negative { color: #ff4d4d; }

/* Tabla de Turnos */
.recent-appointments {
    background: var(--card-glass);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.table-responsive { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; color: #fff; }
.table th { text-align: left; padding: 15px; color: var(--text-muted); border-bottom: 1px solid var(--border-color); font-size: 0.9rem; }
.table td { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-confirmed { background: rgba(0, 242, 255, 0.15); color: var(--primary-cyan); }
.status-pending { background: rgba(255, 165, 0, 0.15); color: orange; }
.status-cancelled { background: rgba(255, 77, 77, 0.15); color: #ff4d4d; }

/* RESPONSIVE DASHBOARD */
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: 0.3s; }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .mobile-menu-btn { display: block; font-size: 1.5rem; background: none; border: none; color: #fff; cursor: pointer; }
}
@media (min-width: 901px) { .mobile-menu-btn { display: none; } }

/* =========================================
   2. COMPONENTES UI (Botones, Forms)
   ========================================= */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    border: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-purple), var(--primary-cyan));
    color: #fff;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

.full-width { width: 100%; justify-content: center; }

/* Formularios */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.9rem; }
.form-input, .form-select {
    width: 100%; padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    outline: none; transition: 0.3s;
}
.form-input:focus, .form-select:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

/* =========================================
   3. AUTH LAYOUT (Login & Signup)
   ========================================= */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--card-glass);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.05);
}

.signup-auth-card {
    max-width: 1120px;
    background:
        radial-gradient(circle at top right, rgba(0, 242, 255, 0.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(123, 44, 191, 0.12), transparent 32%),
        rgba(5, 8, 24, 0.92);
}

.signup-auth-header {
    text-align: left;
    max-width: 720px;
    margin-bottom: 30px;
}

.signup-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.18);
    color: #9fdcf2;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}

.signup-feedback {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.signup-feedback-success {
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: #d9fbff;
}

.signup-feedback-error {
    background: rgba(255, 77, 77, 0.08);
    border: 1px solid rgba(255, 77, 77, 0.18);
    color: #ffd8d8;
}

.signup-feedback-error div + div {
    margin-top: 6px;
}

.signup-auth-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    margin-bottom: 14px;
}

.signup-auth-header h1 span {
    background: linear-gradient(90deg, #6f82ff 0%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.signup-auth-header p {
    color: #90a1bc;
    max-width: 560px;
    line-height: 1.6;
    font-size: 0.96rem;
}

.signup-auth-card .form-label {
    font-size: 0.98rem;
}

.signup-auth-card .form-input,
.signup-auth-card .form-select,
.signup-auth-card textarea.form-input {
    font-size: 1rem;
    line-height: 1.45;
}

.signup-auth-card .form-input::placeholder,
.signup-auth-card .form-select::placeholder,
.signup-auth-card textarea.form-input::placeholder {
    font-size: 0.98rem;
}

/* Wizard 3 Pasos */
.steps-indicator {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 30px;
    position: relative;
}
.steps-indicator::before {
    content: none;
}
.step-item {
    min-width: 0;
}
.step-badge {
    width: 100%;
    min-height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.step-dot {
    width: 24px; height: 24px; background: rgba(17, 23, 46, 0.95); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 7px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; transition: 0.3s;
    font-size: 0.72rem;
    color: #697893;
}
.step-label {
    font-size: 0.72rem;
    color: #8a97af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}
.step-dot.active {
    background: linear-gradient(135deg, #1c5cff 0%, var(--primary-cyan) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 18px rgba(0, 242, 255, 0.24);
}
.step-badge:has(.step-dot.active) {
    border-color: rgba(0, 242, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 0 0 1px rgba(0, 242, 255, 0.05);
}
.step-dot.completed { background: var(--primary-cyan); border-color: var(--primary-cyan); color: #000; }

.step-content { display: none; animation: fadeIn 0.5s ease; }
.step-content.active { display: block; }

@media (max-width: 768px) {
    .signup-auth-card {
        padding: 28px 20px;
    }

    .steps-indicator {
        gap: 8px;
    }

    .step-item {
        min-width: 0;
    }

    .step-badge {
        min-height: 62px;
        padding: 8px 6px;
        border-radius: 12px;
    }

    .step-label {
        white-space: normal;
        line-height: 1.25;
        letter-spacing: 0.06em;
        font-size: 0.63rem;
    }

    .signup-form-grid-2,
    .signup-form-grid-3 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-group-spacer {
        display: none;
    }

    .signup-section-card {
        padding: 18px;
        margin-bottom: 14px;
    }

    .signup-plan-card {
        padding: 18px;
    }

    .signup-plan-main {
        flex-direction: column;
        gap: 12px;
    }

    .signup-plan-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .signup-section-header {
        margin-bottom: 12px;
    }

    .signup-section-header h4 {
        margin-bottom: 3px;
        font-size: 1.08rem;
    }

    .signup-form-grid {
        gap: 10px;
    }

    .signup-stage {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .signup-stage-side {
        position: static;
        gap: 12px;
    }

    .signup-side-card {
        padding: 14px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-label {
        margin-bottom: 5px;
        font-size: 0.82rem;
    }

    .form-input,
    .form-select {
        padding: 11px 13px;
    }

    .signup-auth-card .form-label {
        font-size: 0.92rem;
    }

    .signup-auth-card .form-input,
    .signup-auth-card .form-select,
    .signup-auth-card textarea.form-input {
        font-size: 0.98rem;
    }

    .signup-auth-card .form-input::placeholder,
    .signup-auth-card .form-select::placeholder,
    .signup-auth-card textarea.form-input::placeholder {
        font-size: 0.95rem;
    }

    .signup-plan-chip {
        font-size: 0.84rem;
    }

    .signup-plan-link {
        font-size: 0.88rem;
    }

    .signup-section-header p {
        font-size: 0.78rem;
    }

    .signup-auth-header {
        margin-bottom: 22px;
    }

    .signup-auth-header p {
        font-size: 0.88rem;
    }

    .signup-kicker {
        margin-bottom: 12px;
    }

    .signup-next-btn {
        margin-top: 2px;
    }

    .signup-actions,
    .signup-actions-final {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
        margin-top: 18px;
    }

    .signup-btn,
    .signup-btn-confirm {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        font-size: 0.88rem;
    }
}

/* Tarjetas de Selección (Signup) */
.selection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-bottom: 20px; }
.selection-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
    padding: 20px; border-radius: 12px; cursor: pointer; text-align: center; position: relative; transition: 0.3s;
}
.selection-card:hover { background: rgba(255,255,255,0.08); }
.selection-card.selected { border-color: var(--primary-cyan); background: rgba(0, 242, 255, 0.05); }
.selection-card .check-icon {
    position: absolute; top: 10px; right: 10px; color: var(--primary-cyan);
    opacity: 0; transform: scale(0); transition: 0.3s;
}
.selection-card.selected .check-icon { opacity: 1; transform: scale(1); }

body.dashboard-body {
    background: radial-gradient(circle at top right, #1a1c29 0%, #050510 100%);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    z-index: 100;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }

/* Card Estado Plan */
.plan-status-card {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}
.status-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.85rem; color: var(--text-muted); }
.plan-badge { font-weight: bold; color: #fff; text-transform: uppercase; font-size: 0.75rem; padding: 2px 6px; border-radius: 4px; }
.plan-consultorio { background: var(--accent-purple); }
.plan-clinica { background: var(--primary-cyan); color: #000; }
.plan-residente { background: #666; }

.usage-container { margin-top: 10px; }
.usage-text { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 5px; }
.progress-bg { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.progress-val { height: 100%; background: var(--primary-cyan); border-radius: 3px; }

/* Menú */
.menu-label { font-size: 0.75rem; text-transform: uppercase; color: #64748b; margin: 20px 0 10px; font-weight: 600; letter-spacing: 1px; }

.menu-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
    margin-bottom: 5px;
    font-size: 0.95rem;
    cursor: pointer;
}
.menu-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.menu-item.active { background: rgba(0, 242, 255, 0.1); color: var(--primary-cyan); border: 1px solid rgba(0, 242, 255, 0.2); }
.menu-item.locked { opacity: 0.5; cursor: not-allowed; }
.lock-icon { margin-left: auto; font-size: 0.8rem; }

.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border-color); }
.logout-btn { display: flex; align-items: center; gap: 10px; color: #ff4d4d; text-decoration: none; font-size: 0.9rem; }

/* --- CONTENIDO PRINCIPAL (LAYOUT CORRECTO) --- */
.main-content {
    margin-left: var(--sidebar-width); /* Empuja el contenido a la derecha */
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
}

/* Header NO FLOTANTE (Bloque sólido) */
.dash-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* Se queda arriba pero ocupa espacio */
    top: 0;
    z-index: 90;
    height: 90px;
}
.header-text h1 { font-family: 'Space Grotesk'; font-size: 1.5rem; margin-bottom: 5px; }
.header-text p { color: var(--text-muted); font-size: 0.9rem; }
.highlight-text { color: var(--primary-cyan); font-weight: 600; }

.btn-secondary { background: rgba(255,255,255,0.1); border: 1px solid var(--border-color); color: #fff; padding: 8px 16px; border-radius: 6px; cursor: pointer; }

/* PANELES Y FORMULARIOS */
.panel-section { padding: 40px; display: none; /* Oculto por defecto */ }
.panel-section.active { display: block; animation: fadeIn 0.4s ease; }
.hidden-panel { display: none !important; }

.dash-grid { display: grid; gap: 30px; }

.dash-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.card-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.2); }
.card-header h3 { font-size: 1.1rem; color: #fff; }

.form-grid { padding: 25px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group.full-width { grid-column: 1 / -1; }
.input-group label { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
.input-group input, .input-group select, .input-group textarea {
    background: rgba(0,0,0,0.3); border: 1px solid var(--border-color); color: #fff;
    padding: 12px; border-radius: 8px; font-family: 'Inter'; width: 100%;
}
.input-group input:focus, .input-group textarea:focus { border-color: var(--primary-cyan); }
.hint-text { font-size: 0.8rem; color: #666; margin-bottom: 5px; }

/* Zona de Upload */
.upload-area {
    padding: 40px; text-align: center; border: 2px dashed var(--border-color);
    margin: 20px; border-radius: 10px; transition: 0.3s;
}
.upload-area:hover { border-color: var(--primary-cyan); background: rgba(0, 242, 255, 0.05); }
.upload-icon { font-size: 2.5rem; display: block; margin-bottom: 15px; }
.file-types-grid { display: flex; gap: 10px; justify-content: center; margin: 15px 0; }
.type-badge { background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 20px; font-size: 0.75rem; }

.form-footer { padding: 20px; text-align: right; }
.btn-primary { background: var(--primary-cyan); color: #000; border: none; padding: 12px 24px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 0 15px rgba(0, 242, 255, 0.3); }

/* --- RESPONSIVE MOBILE --- */
.floating-menu-btn { display: none; }
.sidebar-overlay { display: none; }

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); width: 280px; box-shadow: 5px 0 20px rgba(0,0,0,0.5); }
    .sidebar.active { transform: translateX(0); }
    
    .main-content { margin-left: 0; width: 100%; }
    
    .dash-header { padding: 15px 20px; height: auto; flex-direction: column; align-items: flex-start; gap: 10px; }
    .header-actions { display: none; }
    
    .floating-menu-btn {
        display: block; position: fixed; bottom: 20px; right: 20px;
        background: var(--primary-cyan); color: #000; border: none;
        width: 50px; height: 50px; border-radius: 50%;
        font-size: 1.5rem; z-index: 200; cursor: pointer;
        box-shadow: 0 5px 15px rgba(0, 242, 255, 0.4);
    }
    
    .sidebar-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.8); z-index: 90; backdrop-filter: blur(3px);
    }
    .sidebar-overlay.active { display: block; }

    .panel-section { padding: 20px; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

body.dashboard-body {
    background: radial-gradient(circle at top right, #1a1c29 0%, #050510 100%);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- SIDEBAR & LAYOUT (Igual que antes) --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    z-index: 100;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.sidebar-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.plan-status-card { background: rgba(0,0,0,0.3); padding: 15px; border-radius: 10px; border: 1px solid var(--border-color); margin-bottom: 30px; }
.status-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.85rem; color: var(--text-muted); }
.plan-badge { font-weight: bold; color: #fff; text-transform: uppercase; font-size: 0.75rem; padding: 2px 6px; border-radius: 4px; }
.plan-consultorio { background: var(--accent-purple); }
.plan-clinica { background: var(--primary-cyan); color: #000; }
.plan-residente { background: #666; }
.usage-container { margin-top: 10px; }
.usage-text { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 5px; }
.progress-bg { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.progress-val { height: 100%; background: var(--primary-cyan); border-radius: 3px; }

.menu-label { font-size: 0.75rem; text-transform: uppercase; color: #64748b; margin: 20px 0 10px; font-weight: 600; letter-spacing: 1px; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 12px 15px; color: var(--text-muted); text-decoration: none; border-radius: 8px; transition: 0.2s; margin-bottom: 5px; font-size: 0.95rem; cursor: pointer; }
.menu-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.menu-item.active { background: rgba(0, 242, 255, 0.1); color: var(--primary-cyan); border: 1px solid rgba(0, 242, 255, 0.2); }
.menu-item.locked { opacity: 0.5; cursor: not-allowed; }
.lock-icon { margin-left: auto; font-size: 0.8rem; }
.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border-color); }
.logout-btn { display: flex; align-items: center; gap: 10px; color: #ff4d4d; text-decoration: none; font-size: 0.9rem; }

.main-content { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); display: flex; flex-direction: column; }
.dash-header { background: rgba(15, 23, 42, 0.95); border-bottom: 1px solid var(--border-color); padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 90; height: 90px; }
.header-text h1 { font-family: 'Space Grotesk'; font-size: 1.5rem; margin-bottom: 5px; }
.header-text p { color: var(--text-muted); font-size: 0.9rem; }
.highlight-text { color: var(--primary-cyan); font-weight: 600; }
.btn-secondary { background: rgba(255,255,255,0.1); border: 1px solid var(--border-color); color: #fff; padding: 8px 16px; border-radius: 6px; cursor: pointer; }

/* PANELES GENERALES */
.panel-section { padding: 40px; display: none; }
.panel-section.active { display: block; animation: fadeIn 0.4s ease; }
.hidden-panel { display: none !important; }
.dash-grid { display: grid; gap: 30px; }
.dash-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.card-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.2); }
.card-header h3 { font-size: 1.1rem; color: #fff; }

/* FORMS */
.form-grid { padding: 25px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group.full-width { grid-column: 1 / -1; }
.input-group label { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
.input-group input, .input-group select, .input-group textarea { background: rgba(0,0,0,0.3); border: 1px solid var(--border-color); color: #fff; padding: 12px; border-radius: 8px; font-family: 'Inter'; width: 100%; }
.input-group input:focus { border-color: var(--primary-cyan); }
.upload-area { padding: 40px; text-align: center; border: 2px dashed var(--border-color); margin: 20px; border-radius: 10px; transition: 0.3s; }
.upload-area:hover { border-color: var(--primary-cyan); background: rgba(0, 242, 255, 0.05); }
.btn-primary { background: var(--primary-cyan); color: #000; border: none; padding: 12px 24px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.form-footer { padding: 20px; text-align: right; }

/* --- ESTILOS ESPECÍFICOS NUEVOS --- */

/* 1. AGENDA (Timeline) */
.calendar-wrapper { padding: 20px; }
.calendar-controls { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; }
.time-slot { display: flex; border-bottom: 1px solid rgba(255,255,255,0.05); min-height: 80px; }
.ts-time { width: 80px; padding: 10px; color: var(--text-muted); font-size: 0.8rem; border-right: 1px solid rgba(255,255,255,0.1); }
.ts-content { flex: 1; padding: 10px; position: relative; }
.appointment-card {
    background: rgba(138, 43, 226, 0.2); border-left: 3px solid var(--accent-purple);
    padding: 10px; border-radius: 4px; font-size: 0.9rem; width: 90%;
    cursor: pointer; transition: 0.2s;
}
.appointment-card:hover { transform: scale(1.01); background: rgba(138, 43, 226, 0.3); }
.appointment-card.cleaning { border-color: var(--primary-cyan); background: rgba(0, 242, 255, 0.1); }
.appointment-card.gap { border-color: transparent; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 20px); color: #aaa; border: 1px dashed #555; }

/* 2. PACIENTES (Tabla) */
.toolbar { padding: 20px; display: flex; gap: 15px; border-bottom: 1px solid var(--border-color); }
.search-box { flex: 1; position: relative; }
.search-box input { width: 100%; background: #0f172a; border: 1px solid var(--border-color); padding: 10px 35px 10px 15px; color: #fff; border-radius: 8px; }
.search-icon { position: absolute; right: 10px; top: 12px; color: #666; }

.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th { text-align: left; padding: 15px 20px; color: var(--text-muted); font-size: 0.85rem; border-bottom: 1px solid var(--border-color); }
.data-table td { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #fff; font-size: 0.9rem; }
.status-dot { height: 8px; width: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.st-active { background: var(--success); }
.st-inactive { background: #666; }
.action-btn { background: none; border: none; color: var(--primary-cyan); cursor: pointer; margin-right: 10px; }

/* 3. FINANZAS (Gráficos CSS) */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding: 20px; }
.kpi-box { background: rgba(255,255,255,0.03); padding: 20px; border-radius: 10px; text-align: center; }
.kpi-value { font-size: 1.8rem; font-weight: bold; margin: 10px 0; }
.val-green { color: var(--success); }
.val-red { color: var(--danger); }

.chart-container { height: 250px; display: flex; align-items: flex-end; justify-content: space-between; padding: 20px 40px; gap: 10px; border-bottom: 1px solid #333; margin: 20px; }
.chart-bar { flex: 1; background: var(--primary-cyan); opacity: 0.6; border-radius: 4px 4px 0 0; position: relative; transition: height 1s ease; max-width: 40px; }
.chart-bar:hover { opacity: 1; }
.chart-bar span { position: absolute; bottom: -25px; width: 100%; text-align: center; font-size: 0.75rem; color: #aaa; }

/* 4. EQUIPO (Cards) */
.team-grid { padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.member-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: 10px; padding: 20px; text-align: center; }
.avatar-large { width: 80px; height: 80px; background: #333; border-radius: 50%; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #666; }
.toggle-switch { position: relative; display: inline-block; width: 40px; height: 20px; margin-top: 10px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #555; transition: .4s; border-radius: 20px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--success); }
input:checked + .slider:before { transform: translateX(20px); }

/* MOBILE */
.floating-menu-btn { display: none; }
.sidebar-overlay { display: none; }
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); width: 280px; box-shadow: 5px 0 20px rgba(0,0,0,0.5); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; width: 100%; }
    .dash-header { padding: 15px 20px; height: auto; flex-direction: column; align-items: flex-start; gap: 10px; }
    .floating-menu-btn { display: block; position: fixed; bottom: 20px; right: 20px; background: var(--primary-cyan); color: #000; border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; z-index: 200; box-shadow: 0 5px 15px rgba(0, 242, 255, 0.4); }
    .sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 90; backdrop-filter: blur(3px); }
    .sidebar-overlay.active { display: block; }
    .panel-section { padding: 15px; }
    .calendar-controls { flex-direction: column; align-items: flex-start; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
