/* ==========================================================================
   1. PALETA CORPORATIVA & RESET BASE
   ========================================================================== */
:root {
    --navy-primary: #0D3B66;
    --navy-dark: #051A2E;
    --teal-emerald: #00A88F;
    --amber-gold: #F4A261;
    --amber-dark: #E76F51;

    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;

    --bg-navy-light: rgba(13, 59, 102, 0.08);
    --bg-teal-light: rgba(0, 168, 143, 0.08);
    --bg-amber-light: rgba(244, 162, 97, 0.12);

    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 4px 20px rgba(13, 59, 102, 0.06);
    --shadow-hover: 0 12px 30px rgba(0, 168, 143, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
}

.text-navy { color: var(--navy-primary) !important; }
.text-teal { color: var(--teal-emerald) !important; }
.text-amber { color: var(--amber-gold) !important; }

.icon-navy { color: var(--navy-primary); }
.icon-teal { color: var(--teal-emerald); }
.icon-amber { color: var(--amber-dark); }

.bg-navy-light { background: var(--bg-navy-light); }
.bg-teal-light { background: var(--bg-teal-light); }
.bg-amber-light { background: var(--bg-amber-light); }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ==========================================================================
   2. NAVBAR & MENÚ HAMBURGUESA FUNCIONAL
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 1.8rem; 
}

.nav-item { 
    text-decoration: none; 
    color: var(--text-dark); 
    font-family: var(--font-head); 
    font-weight: 600; 
    font-size: 0.92rem; 
    transition: var(--transition); 
}

.nav-item:hover, .nav-item.active { 
    color: var(--teal-emerald); 
}

.hamburger { 
    display: none; 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    color: var(--navy-primary); 
    cursor: pointer; 
    padding: 0.5rem;
    z-index: 1001;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary { background: var(--navy-primary); color: var(--white); }
.btn-accent { background: var(--amber-gold); color: var(--white); box-shadow: 0 4px 14px rgba(244, 162, 97, 0.35); }
.btn-outline { border: 2px solid var(--white); color: var(--white); background: rgba(13, 59, 102, 0.3); backdrop-filter: blur(4px); }
.btn-outline:hover { background: var(--white); color: var(--navy-primary); }
.btn-block { width: 100%; justify-content: center; }
.btn:hover { transform: translateY(-2px); opacity: 0.95; }

/* ==========================================================================
   3. HERO SECTION & SLIDER RESPONSIVE
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 8rem 1rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 580px;
    background-color: var(--navy-dark);
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-slide {
    display: none;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 2.5rem 1rem;
    border-radius: 16px;
    animation: fadeInSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.hero-slide.active {
    display: block;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 26, 46, 0.94) 0%, rgba(13, 59, 102, 0.88) 100%);
    border-radius: 16px;
    z-index: 1;
}

.hero-container-content {
    position: relative;
    z-index: 2;
    padding: 0 0.5rem;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 168, 143, 0.2);
    border: 1px solid var(--teal-emerald);
    color: var(--white);
    border-radius: 30px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 1rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.text-gradient {
    background: linear-gradient(135deg, var(--teal-emerald), #4fd1c5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 0.98rem;
    color: #E2E8F0;
    max-width: 750px;
    margin: 0 auto 1.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-actions { 
    display: flex; 
    gap: 0.8rem; 
    justify-content: center; 
    flex-wrap: wrap;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: var(--teal-emerald);
    border-color: var(--teal-emerald);
}

.hero-prev { left: 5px; }
.hero-next { right: 5px; }

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    position: relative;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--teal-emerald);
    width: 28px;
    border-radius: 6px;
}

/* ==========================================================================
   4. SECCIONES, NOSOTROS & PESTAÑAS RESPONSIVE
   ========================================================================== */
.section { padding: 3.5rem 0; }
.bg-light { background-color: var(--bg-light); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.2rem;
    padding: 0 1rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.1rem;
    border-radius: 30px;
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.badge-navy { background: var(--bg-navy-light); color: var(--navy-primary); }
.badge-teal { background: var(--bg-teal-light); color: var(--teal-emerald); }

.section-title {
    font-size: 1.8rem;
    color: var(--navy-primary);
    margin-bottom: 0.4rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tabs-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.2rem;
}

.tabs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    background: var(--bg-light);
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.tab-btn i { font-size: 1.35rem; }

.tab-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.tab-btn-text span { font-size: 0.75rem; color: var(--text-muted); }
.tab-btn-text strong { font-family: var(--font-head); font-size: 0.95rem; color: var(--navy-primary); }

.tab-btn:hover, .tab-btn.active {
    background: var(--white);
    border-color: var(--teal-emerald);
    box-shadow: 0 4px 14px rgba(0, 168, 143, 0.12);
}

.tabs-display {
    padding: 1rem;
    display: flex;
    align-items: center;
}

.tab-pane { display: none; width: 100%; }
.tab-pane.active { display: block; animation: fadeIn 0.25s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.pane-tag {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    background: var(--bg-light);
}

.pane-card h3 {
    font-size: 1.3rem;
    color: var(--navy-primary);
    margin-bottom: 0.7rem;
}

.pane-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.pane-intro {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
}

.axiom-quote {
    padding: 0.9rem 1.2rem;
    background: var(--bg-teal-light);
    border-left: 4px solid var(--teal-emerald);
    border-radius: 6px;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.axiom-quote p { font-size: 0.9rem; color: var(--navy-primary); margin-bottom: 0; }

.values-executive-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
    width: 100%;
}

.val-item {
    background: var(--bg-light);
    padding: 1rem 0.4rem;
    border-radius: 10px;
    text-align: center;
    border-top: 4px solid var(--navy-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.val-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: var(--white);
}

.val-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.card-navy { border-top-color: var(--navy-primary); }
.card-navy .val-icon-box { color: var(--navy-primary); }

.card-teal { border-top-color: var(--teal-emerald); }
.card-teal .val-icon-box { color: var(--teal-emerald); }

.card-amber { border-top-color: var(--amber-gold); }
.card-amber .val-icon-box { color: var(--amber-dark); }

.val-item h4 {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy-primary);
    line-height: 1.2;
}

/* ==========================================================================
   5. SERVICIOS (Grid simétrico de 3 columnas para equilibrar 5 tarjetas perfectamente)
   ========================================================================== */
.services-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .services-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-dashboard {
        grid-template-columns: 1fr;
    }
}

.srv-box {
    background: var(--white);
    padding: 1.6rem;
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.srv-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--teal-emerald);
}

.srv-icon-bg {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.srv-box h3 {
    font-size: 1.05rem;
    color: var(--navy-primary);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.srv-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.srv-btn {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 26, 46, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active { display: flex; }

.modal-card {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    padding: 1.8rem;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 18px 36px rgba(0,0,0,0.22);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-light);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: var(--navy-primary);
}

.modal-card h3 { font-size: 1.2rem; color: var(--navy-primary); margin-bottom: 0.6rem; }
.modal-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.modal-card ul { list-style: none; }
.modal-card li { padding: 0.5rem 0; border-bottom: 1px solid var(--bg-light); font-size: 0.85rem; display: flex; align-items: flex-start; gap: 0.6rem; }
.modal-card li i { color: var(--teal-emerald); margin-top: 3px; }

/* ==========================================================================
   6. METODOLOGÍA
   ========================================================================== */
.methodology-timeline-wrapper {
    position: relative;
}

.methodology-stepper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.2rem;
}

.step-card {
    background: var(--white);
    padding: 1.5rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.step-card:hover, .step-card.active {
    border-color: var(--teal-emerald);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.step-num-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.bg-teal { background: linear-gradient(135deg, var(--teal-emerald), #008773); }
.bg-navy { background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark)); }
.bg-amber { background: linear-gradient(135deg, var(--amber-gold), var(--amber-dark)); }

.step-info h4 {
    font-size: 1.1rem;
    color: var(--navy-primary);
    margin-bottom: 0.4rem;
}

.step-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   7. CONTACTO & FORMULARIO RESPONSIVE
   ========================================================================== */
.section-contact {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(13, 59, 102, 0.08);
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-info-panel h2 {
    font-size: 1.7rem;
    color: var(--navy-primary);
    margin-bottom: 0.8rem;
}

.contact-info-panel p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.8rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    padding: 0.8rem 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.method-item:hover {
    background: var(--bg-teal-light);
    transform: translateX(4px);
}

.method-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--navy-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.method-icon.instagram-gradient {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.method-item span { font-size: 0.72rem; color: var(--text-muted); display: block; }
.method-item strong { font-family: var(--font-head); font-size: 0.9rem; color: var(--navy-primary); word-break: break-all; }

.form-wrapper { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group label {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy-primary);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.75rem 0.9rem;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--teal-emerald);
    box-shadow: 0 0 0 3px rgba(0, 168, 143, 0.15);
}

.checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    margin: 0.2rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--teal-emerald);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.checkbox-group label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
}

.form-feedback {
    padding: 0.8rem;
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: 0.82rem;
    display: none;
    text-align: center;
}

/* ==========================================================================
   8. CHATBOT MARCELLA AI ASSISTANT
   ========================================================================== */
.chatbot-wrapper {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 3000;
}

.chatbot-trigger {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-emerald), var(--navy-primary));
    color: var(--white);
    border: 2px solid var(--white);
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 168, 143, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.marcella-trigger-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-trigger:hover {
    transform: scale(1.08);
}

.chat-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--amber-dark);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

.chatbot-box {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 480px;
    max-width: calc(100vw - 2rem);
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(13, 59, 102, 0.22);
    border: 1px solid rgba(0,0,0,0.08);
    flex-direction: column;
    overflow: hidden;
    animation: chatUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-box.active { display: flex; }

@keyframes chatUp {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
    background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark));
    color: var(--white);
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info { display: flex; align-items: center; gap: 0.7rem; }

.marcella-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-emerald), var(--navy-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
}

.chat-header-info strong { display: block; font-family: var(--font-head); font-size: 0.9rem; line-height: 1.1; }
.chat-status { font-size: 0.7rem; opacity: 0.88; display: flex; align-items: center; gap: 0.3rem; }
.chat-status i { font-size: 0.45rem; }

.chat-header-actions { display: flex; align-items: center; gap: 0.6rem; }

.chat-wa-direct {
    color: #25D366;
    font-size: 1.25rem;
    text-decoration: none;
    transition: var(--transition);
}

.chat-wa-direct:hover { transform: scale(1.15); }

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.8;
}

.chat-close:hover { opacity: 1; }

.chat-body {
    flex: 1;
    padding: 0.9rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: var(--bg-light);
}

.msg-bubble {
    max-width: 88%;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    font-size: 0.84rem;
    line-height: 1.45;
    animation: fadeIn 0.2s ease;
}

.msg-bot {
    background: var(--white);
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.msg-user {
    background: var(--teal-emerald);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-footer {
    padding: 0.7rem;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-input-row {
    display: flex;
    gap: 0.4rem;
}

.chat-input-row input {
    flex: 1;
    padding: 0.55rem 0.8rem;
    border: 1px solid #CBD5E1;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    outline: none;
}

.chat-input-row input:focus {
    border-color: var(--teal-emerald);
}

.chat-input-row button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy-primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.chat-input-row button:hover {
    background: var(--teal-emerald);
}

.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-height: 140px;
    overflow-y: auto;
}

.qr-btn {
    background: var(--bg-light);
    border: 1px solid var(--teal-emerald);
    color: var(--teal-emerald);
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.qr-btn:hover {
    background: var(--teal-emerald);
    color: var(--white);
}

.chat-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    margin-right: 0.2rem;
    padding: 0.4rem 0.75rem;
    background: var(--navy-primary);
    color: var(--white);
    border-radius: 6px;
    font-family: var(--font-head);
    font-size: 0.72rem;
    text-decoration: none;
    font-weight: 700;
}

.chat-action-link.wa-link { background: #25D366; }
.chat-action-link.call-link { background: var(--amber-gold); color: var(--white); }

/* ==========================================================================
   9. FOOTER CORPORATIVO RESPONSIVE
   ========================================================================== */
.footer {
    background: var(--navy-primary);
    color: var(--white);
    padding: 3.5rem 0 0;
    margin-top: 0;
    border-top: 4px solid var(--teal-emerald);
}

.footer-content-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-brand-info .footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 0.8rem;
    object-fit: contain;
}

.footer-brand-info p {
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.footer-socials {
    display: flex;
    gap: 0.8rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.social-icon.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icon.whatsapp { background-color: #25D366; }
.social-icon.phone { background-color: var(--amber-gold); }

.social-icon:hover { transform: translateY(-3px); opacity: 0.9; }

.footer-col h4 {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--amber-gold);
    margin-bottom: 1rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.footer-links a i { font-size: 0.65rem; color: var(--teal-emerald); }
.footer-links a:hover { color: var(--white); transform: translateX(4px); }

.footer-legal-text {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.4;
    margin-bottom: 0.9rem;
}

.footer-badge-secure {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 168, 143, 0.15);
    border: 1px solid var(--teal-emerald);
    color: var(--teal-emerald);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.footer-bottom {
    background: var(--navy-dark);
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.75;
}

/* ==========================================================================
   11. BANNER DE COOKIES MODERNO & NO INVASIVO
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    width: 100%;
    z-index: 4000;
    background: rgba(5, 26, 46, 0.96);
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--teal-emerald);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    padding: 1.2rem 1rem;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.cookie-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-teal-light);
    color: var(--teal-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    font-size: 0.98rem;
    color: var(--white);
    margin-bottom: 0.2rem;
    font-family: var(--font-head);
}

.cookie-text p {
    font-size: 0.82rem;
    color: #CBD5E1;
    line-height: 1.4;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.cookie-btn-accept {
    background: var(--teal-emerald);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 168, 143, 0.3);
}

.cookie-btn-accept:hover {
    background: #008773;
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   12. MEDIA QUERIES (ADAPTACIÓN MÓVIL)
   ========================================================================== */
@media (max-width: 991px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(0,0,0,0.05);
        gap: 1.2rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .footer-content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-section {
        padding: 7rem 0.5rem 3rem;
    }

    .hero-slide {
        padding: 2rem 0.8rem;
    }

    .hero-prev { left: 2px; }
    .hero-next { right: 2px; }

    .tabs-dashboard {
        grid-template-columns: 1fr;
        padding: 0.8rem;
    }

    .tabs-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .tab-btn {
        flex-shrink: 0;
        padding: 0.7rem 0.9rem;
    }

    .tab-btn-text {
        display: none;
    }

    .values-executive-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-card-grid {
        grid-template-columns: 1fr;
        padding: 1.2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .cookie-icon-box {
        display: none;
    }
    .cookie-actions {
        width: 100%;
        justify-content: stretch;
    }
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}