/* ==========================================================================
   SEINLAB - Sitio Web Corporativo Oficial
   Sistema de Diseño y Estilos Modernos Glassmorphic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Paleta Oficial SEINLAB */
    --primary: #0C2B59;          /* Azul Oxford */
    --primary-rgb: 12, 43, 89;
    --primary-hover: #081e3e;
    
    --secondary: #0070C0;        /* Azul Médico */
    --secondary-rgb: 0, 112, 192;
    --secondary-hover: #005a9b;
    
    --success: #00B8D4;          /* Cian Premium / Turquesa Clínico */
    --success-rgb: 0, 184, 212;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #00B8D4;

    --bg-app: #ECF0F3;           /* Gris Plata */
    --bg-card: rgba(255, 255, 255, 0.88); /* Blanco Puro glassmorphic */
    --bg-card-rgb: 255, 255, 255;
    --border-color: rgba(180, 195, 205, 0.45);
    
    --text-main: #1e293b;        /* Gris Carbón / Slate 800 */
    --text-muted: #566978;       /* Slate 500 */
    
    --sidebar-bg: linear-gradient(180deg, rgba(236, 240, 243, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    --sidebar-text: #36454F;
    --navbar-bg: rgba(255, 255, 255, 0.92);
    --shadow: 0 10px 30px 0 rgba(12, 43, 89, 0.08);
    --shadow-hover: 0 20px 40px 0 rgba(12, 43, 89, 0.16);
    --glass-blur: blur(14px);
}

[data-theme="dark"] {
    --primary: #0070C0;
    --primary-rgb: 0, 112, 192;
    --primary-hover: #005a9b;
    
    --secondary: #00B8D4;
    --secondary-rgb: 0, 184, 212;
    --secondary-hover: #009cb4;

    --bg-app: #071936;
    --bg-card: rgba(12, 43, 89, 0.85);
    --bg-card-rgb: 12, 43, 89;
    --border-color: rgba(255, 255, 255, 0.12);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --navbar-bg: rgba(8, 25, 54, 0.92);
    --shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 20px 45px 0 rgba(0, 184, 212, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.35s ease, color 0.35s ease;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utilidades y Efectos de Fondo */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

.bg-gradient-accent {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--success) 100%) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

[data-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, #ffffff, var(--secondary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(var(--secondary-rgb), 0.4);
}

/* Decoración Blobs de Fondo */
.blob-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 184, 212, 0.25) 0%, rgba(0, 112, 192, 0.1) 70%);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(12, 43, 89, 0.2) 0%, rgba(0, 184, 212, 0.08) 70%);
    top: 40%;
    left: -150px;
}

/* ==========================================================================
   Header y Barra de Navegación
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: var(--navbar-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-info {
    background: rgba(12, 43, 89, 0.04);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0;
    font-size: 0.82rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .topbar-info {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.08);
}

.site-header .navbar-wrapper {
    padding: 10px 0;
}

.site-header.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.site-header.scrolled .topbar-info {
    display: none;
}

.navbar-brand-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.navbar-brand:hover .navbar-brand-img {
    transform: scale(1.04);
}

.nav-link {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-main) !important;
    padding: 8px 16px !important;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary) !important;
    background: rgba(var(--secondary-rgb), 0.08);
}

/* Botones de Estilo Corporativo */
.btn-seinlab-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 11px 24px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-seinlab-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary-hover) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35);
    color: #ffffff !important;
}

.btn-seinlab-secondary {
    background: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary) !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 11px 22px;
    border-radius: 12px;
    border: 1px solid rgba(var(--secondary-rgb), 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-seinlab-secondary:hover {
    background: var(--secondary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--secondary-rgb), 0.3);
}

.btn-seinlab-portal {
    background: linear-gradient(135deg, #0070C0 0%, #00B8D4 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 184, 212, 0.3);
    transition: all 0.3s ease;
}

.btn-seinlab-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 184, 212, 0.45);
    color: #ffffff !important;
}

/* ==========================================================================
   Hero Section con Video de Fondo Dinámico
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: #06152B;
}

.hero-video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-video-bg-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
}

.hero-video-bg-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    transform: scale(1.18); /* Oculta barras negras de bordes de YouTube */
}

.hero-video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(6, 21, 43, 0.88) 0%, 
        rgba(12, 43, 89, 0.80) 50%, 
        rgba(0, 112, 192, 0.70) 100%
    );
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    z-index: 2;
}

[data-theme="dark"] .hero-video-bg-overlay {
    background: linear-gradient(
        135deg, 
        rgba(3, 10, 20, 0.94) 0%, 
        rgba(6, 21, 43, 0.88) 50%, 
        rgba(10, 30, 60, 0.82) 100%
    );
}

.hero-text-col .hero-title {
    color: #ffffff;
}

.hero-text-col .hero-desc {
    color: rgba(255, 255, 255, 0.86);
}

.hero-text-col .hero-trust-badges {
    color: rgba(255, 255, 255, 0.82) !important;
}

.btn-hero-sound {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 11px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-hero-sound:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-sound.unmuted {
    background: rgba(0, 184, 212, 0.35);
    border-color: var(--success);
    color: #ffffff !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--secondary-rgb), 0.12);
    border: 1px solid rgba(var(--secondary-rgb), 0.25);
    color: var(--secondary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

[data-theme="dark"] .hero-badge {
    background: rgba(0, 184, 212, 0.15);
    border-color: rgba(0, 184, 212, 0.3);
    color: var(--success);
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-desc {
    font-size: 1.12rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 580px;
}

.hero-card-preview, .hero-video-showcase {
    position: relative;
    border-radius: 24px;
    z-index: 2;
}

.hero-video-card {
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(12, 43, 89, 0.18);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: all 0.35s ease;
}

.hero-video-card:hover {
    box-shadow: 0 25px 60px rgba(0, 112, 192, 0.28);
    border-color: rgba(var(--secondary-rgb), 0.5);
    transform: translateY(-3px);
}

.hero-card-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    transition: transform 0.6s ease;
}

.hero-card-preview:hover img {
    transform: scale(1.03);
}

.floating-badge {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatAnim 4s ease-in-out infinite alternate;
}

.floating-badge-1 {
    top: 25px;
    right: -15px;
}

.floating-badge-2 {
    bottom: 30px;
    left: -15px;
    animation-delay: 1.8s;
}

@keyframes floatAnim {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-12px); }
}

/* Barra de Estadísticas */
.stats-bar {
    padding: 40px 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 6px;
}

[data-theme="dark"] .stat-number {
    color: var(--success);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Buscador Rápido de Exámenes
   ========================================================================== */
.search-exam-box {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 12px 16px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-exam-input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 1.05rem;
    color: var(--text-main);
    outline: none;
}

.search-exam-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* ==========================================================================
   Especialidades y Áreas Clínicas
   ========================================================================== */
.section-title-wrap {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--secondary);
    margin-bottom: 8px;
    display: block;
}

[data-theme="dark"] .section-tag {
    color: var(--success);
}

.section-headline {
    font-size: 2.3rem;
    margin-bottom: 14px;
}

.specialty-card {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.specialty-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.15) 0%, rgba(var(--success-rgb), 0.2) 100%);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 22px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .specialty-icon-box {
    color: var(--success);
    background: rgba(0, 184, 212, 0.15);
}

.specialty-card:hover .specialty-icon-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    transform: rotate(5deg) scale(1.08);
}

.specialty-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.specialty-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.specialty-tag-pill {
    font-size: 0.75rem;
    background: rgba(var(--secondary-rgb), 0.08);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

[data-theme="dark"] .specialty-tag-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #38bdf8;
}

/* ==========================================================================
   Tabla / Catálogo Interactivo de Exámenes & Paginación
   ========================================================================== */
.exam-table-card {
    padding: 30px;
    border-radius: 24px;
}

.exam-table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    padding: 14px 18px;
}

.exam-table td {
    padding: 16px 18px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
}

.exam-badge-cat {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-weight: 600;
}

[data-theme="dark"] .exam-badge-cat {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

/* Paginación Moderna SEINLAB */
.pagination-seinlab {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.pagination-seinlab .page-item {
    margin: 0;
}

.pagination-seinlab .page-link {
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pagination-seinlab .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--secondary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(var(--secondary-rgb), 0.35);
}

.pagination-seinlab .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: transparent;
}

.pagination-seinlab .page-link:hover:not(.active) {
    background: rgba(var(--secondary-rgb), 0.12);
    color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-1px);
}

/* Banner de Contacto y Ubicación en Hero */
.hero-contact-banner {
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.contact-banner-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(var(--secondary-rgb), 0.12);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.hero-contact-banner:hover .contact-banner-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    transform: scale(1.08);
}

/* ==========================================================================
   Sección: Consulta de Resultados y Tecnología
   ========================================================================== */
.portal-showcase-box {
    background: linear-gradient(135deg, var(--primary) 0%, #071f40 100%);
    border-radius: 28px;
    padding: 60px 50px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(12, 43, 89, 0.25);
}

.portal-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.portal-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 184, 212, 0.2);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Convenios Corporativos y Empresas
   ========================================================================== */
.corporate-card {
    padding: 35px 30px;
    text-align: center;
    height: 100%;
}

.corporate-icon-circle {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.12), rgba(var(--success-rgb), 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: var(--secondary);
}

[data-theme="dark"] .corporate-icon-circle {
    color: var(--success);
}

/* ==========================================================================
   Preguntas Frecuentes (FAQ Accordion)
   ========================================================================== */
.accordion-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-button {
    background: transparent !important;
    color: var(--text-main) !important;
    font-size: 1.02rem;
    font-weight: 600;
    padding: 20px 24px;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--secondary) !important;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    color: var(--success) !important;
}

.accordion-body {
    color: var(--text-muted);
    font-size: 0.94rem;
    padding: 20px 24px;
}

/* ==========================================================================
   Sección de Contacto y Sucursal
   ========================================================================== */
.contact-info-card {
    padding: 35px;
    background: linear-gradient(135deg, var(--primary) 0%, #0a2347 100%);
    color: #ffffff;
    border-radius: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--success);
    flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--navbar-bg);
    border-top: 1px solid var(--border-color);
    padding: 70px 0 30px;
    margin-top: 80px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    display: block;
    margin-bottom: 10px;
    transition: all 0.25s ease;
}

.footer-link:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

[data-theme="dark"] .footer-link:hover {
    color: var(--success);
}

.footer-bottom {
    padding-top: 25px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Mapa de Ubicación de la Sucursal
   ========================================================================== */
.branch-map-card {
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.branch-map-wrapper {
    position: relative;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    background: var(--bg-app);
}

.branch-map-wrapper iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
    border-radius: 16px;
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    z-index: 1040;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    color: #ffffff !important;
}

/* Floating Back to Top Button */
.floating-back-to-top {
    position: fixed;
    bottom: 98px;
    right: 34px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
    z-index: 1039;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.floating-back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-back-to-top:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--success) 100%);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 184, 212, 0.45);
    color: #ffffff !important;
}

/* ==========================================================================
   Media Queries & Responsividad
   ========================================================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-section {
        padding: 120px 0 60px;
    }
    .floating-badge {
        position: static;
        margin-top: 12px;
        animation: none;
    }
    .portal-showcase-box {
        padding: 35px 25px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.95rem;
    }
    .section-headline {
        font-size: 1.75rem;
    }
    .stats-bar {
        margin-top: 0;
    }
    .stat-number {
        font-size: 2rem;
    }
    .floating-whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    .floating-back-to-top {
        bottom: 78px;
        right: 23px;
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
}
