/* ==========================================================================
   ECOIMAGEN SALUD - CORE DESIGN SYSTEM & STYLES
   Style: Apple Premium / High-Tech Futuristic / Glassmorphism Dark Mode
   ========================================================================== */

/* 1. CONFIGURACIÓN DE VARIABLES Y TEMAS */
:root {
    --bg-primary: #f8fafc; /* Fondo claro modernísimo */
    --bg-secondary: #ffffff; /* Paneles internos puros */
    --accent-blue: #0a3a75; /* Azul oscuro corporativo Ecoimagen Salud */
    --accent-cyan: #0066cc; /* Azul medio de logotipo Ecoimagen Salud */
    --text-primary: #0f172a; /* Texto principal oscuro */
    --text-secondary: #334155; /* Texto secundario gris slate */
    --text-muted: #64748b; /* Gris suave */
    
    /* Variables de Glassmorphism Claro */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(10, 58, 117, 0.08);
    --glass-border-hover: rgba(0, 102, 204, 0.3);
    --glass-shadow: 0 10px 30px rgba(10, 58, 117, 0.05);
    --glass-shadow-hover: 0 15px 35px rgba(10, 58, 117, 0.12), 0 0 25px rgba(0, 102, 204, 0.08);
    
    /* Transiciones */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* 2. RESET GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 3. AURAS DE FONDO ANIMADAS (Drifting Glow Spheres) */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f1f5f9 100%);
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.07; /* Brillo muy sutil para modo claro */
    pointer-events: none;
    transition: var(--transition-smooth);
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    animation: drift-slow 25s infinite alternate ease-in-out;
}

.glow-2 {
    bottom: -15%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    animation: drift-reverse 30s infinite alternate ease-in-out;
}

.glow-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    opacity: 0.03;
    animation: pulse-glow 15s infinite alternate ease-in-out;
}

@keyframes drift-slow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 80px) scale(1.1); }
}

@keyframes drift-reverse {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-120px, -60px) scale(0.9); }
}

@keyframes pulse-glow {
    0% { opacity: 0.05; transform: translate(-50%, -50%) scale(0.95); }
    100% { opacity: 0.12; transform: translate(-50%, -50%) scale(1.05); }
}

/* 4. ENCABEZADO / NAVBAR */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 58, 117, 0.05);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff; /* Fondo blanco para resaltar el logo azul */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 12px rgba(10, 58, 117, 0.35);
    overflow: hidden;
    padding: 3px;
}

.navbar-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text .logo-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.logo-text .logo-name span {
    color: var(--accent-cyan);
    font-weight: 800;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(10, 58, 117, 0.05);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none !important;
    color: #0b4a80 !important;
    background: #ffffff !important;
    border: 1.5px solid #0b4a80 !important;
    padding: 0.55rem 1.25rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(11, 74, 128, 0.15);
}

.nav-btn span {
    color: #0b4a80 !important;
    font-weight: 700;
}

.nav-btn svg, .nav-btn i {
    width: 16px;
    height: 16px;
    stroke: #0b4a80 !important;
    color: #0b4a80 !important;
    transition: transform 0.25s ease;
}

.nav-btn:hover {
    background: #0b4a80 !important;
    color: #ffffff !important;
    border-color: #0b4a80 !important;
    box-shadow: 0 4px 14px rgba(11, 74, 128, 0.35);
    transform: translateY(-2px);
}

.nav-btn:hover span {
    color: #ffffff !important;
}

.nav-btn:hover svg, .nav-btn:hover i {
    stroke: #ffffff !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

/* 5. HERO / CONTENIDO PRESENTACIÓN */
.main-content {
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 2.5rem auto 1.5rem;
    padding: 0 1.5rem;
}

.hero-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(0, 234, 255, 0.08);
    border: 1px solid rgba(0, 234, 255, 0.25);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    box-shadow: 0 0 12px rgba(0, 234, 255, 0.1);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* 6. MAQUETACIÓN SWIPER 3D (Modo Libro apilado) */
.swiper-section {
    width: 100%;
    max-width: 1400px;
    padding: 1.5rem 1rem 3rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-swiper {
    width: 380px;
    height: 600px;
    padding-top: 0.5rem !important;
    padding-bottom: 3.5rem !important;
    overflow: visible !important;
}

/* 7. TARJETA DE SERVICIO (GLASSMORPHISM CLARO) */
.service-card, .tech-service-card {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover, .tech-service-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-8px);
}

/* Aura de luz interna en la tarjeta al pasar el ratón */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(0, 234, 255, 0.15), transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 1;
}

.service-card:hover .card-glow, .tech-service-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    overflow-y: auto;
}

/* Cabecera de la Tarjeta */
.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.service-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper, .tech-service-card:hover .service-icon-wrapper {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(10, 58, 117, 0.25);
    transform: scale(1.05);
}

.service-icon-wrapper i {
    width: 24px;
    height: 24px;
}

.service-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Descripción */
.service-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.5em; /* Asegura tamaño uniforme */
}

/* Contenedor de Imagen de Soporte / Equipo */
.image-placeholder {
    width: 100%;
    flex: 1;
    min-height: 120px;
    border-radius: 14px;
    background: rgba(10, 58, 117, 0.03);
    border: 1.5px dashed rgba(10, 58, 117, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card:hover .image-placeholder {
    border-color: rgba(0, 102, 204, 0.35);
    background: rgba(0, 102, 204, 0.05);
}

.placeholder-icon {
    width: 32px;
    height: 32px;
    opacity: 0.6;
    color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.service-card:hover .placeholder-icon {
    color: var(--accent-blue);
    opacity: 0.9;
    transform: scale(1.1);
}

.image-placeholder span {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Estilo para cuando el usuario inserte la etiqueta img real */
.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    position: absolute;
    top: 0;
    left: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.service-card:hover .service-img {
    transform: scale(1.04);
}

/* Botón de Códigos CUPS */
.cups-btn {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, rgba(10, 58, 117, 0.06), rgba(0, 102, 204, 0.09));
    border: 1.5px solid rgba(10, 58, 117, 0.2);
    border-radius: 14px;
    color: var(--accent-blue);
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(10, 58, 117, 0.05);
}

.cups-btn i {
    width: 18px;
    height: 18px;
    color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.cups-btn:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.25);
    transform: translateY(-2px);
}

.cups-btn:hover i {
    color: #ffffff;
    transform: scale(1.15);
}

.cups-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-cyan);
    color: #ffffff;
}

.cups-btn.active i {
    transform: rotate(180deg);
}

/* 8. PANEL DESPLEGABLE CUPS (GLASSMORPHISM CLARO) */
.cups-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0; /* Cerrado por defecto */
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(10, 58, 117, 0.08);
    border-radius: 24px;
    z-index: 10;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Altura del panel abierto */
.cups-panel.open {
    height: 100%;
}

.cups-panel-inner {
    padding: 2.25rem 2rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(10, 58, 117, 0.05);
}

.panel-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: -0.01em;
}

/* Contenedor de Tabla */
.table-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Scrollbar Personalizado del Panel */
.table-container::-webkit-scrollbar {
    width: 4px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(10, 58, 117, 0.02);
    border-radius: 99px;
}

.table-container::-webkit-scrollbar-thumb {
    background: rgba(10, 58, 117, 0.1);
    border-radius: 99px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Tabla Minimalista CUPS */
.cups-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.cups-table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.75rem;
    font-size: 0.7rem;
}

.cups-table td {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(10, 58, 117, 0.04);
    vertical-align: top;
    line-height: 1.4;
    color: var(--text-secondary);
}

.cups-table tr:last-child td {
    border-bottom: none;
}

.cups-code {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 700;
    width: 80px;
}

/* Mensaje si la lista de CUPS está vacía */
.cups-table tbody:empty::after {
    content: "Códigos en actualización. Pronto disponibles.";
    display: block;
    padding: 2rem 0;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
    text-align: center;
    width: 100%;
}

/* 9. CONTROLES PERSONALIZADOS SWIPER */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.2) !important;
    opacity: 1 !important;
    width: 8px !important;
    height: 8px !important;
    transition: var(--transition-smooth) !important;
}

.swiper-pagination-bullet-active {
    background: var(--accent-cyan) !important;
    width: 24px !important;
    border-radius: 4px !important;
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.5);
}

.swiper-button-prev, .swiper-button-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text-primary) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(10, 58, 117, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 6px 20px rgba(10, 58, 117, 0.06) !important;
    z-index: 20 !important;
}

.swiper-button-prev {
    left: calc(50% - 260px) !important;
}

.swiper-button-next {
    right: calc(50% - 260px) !important;
}

.swiper-button-prev::after, .swiper-button-next::after {
    font-size: 1.1rem !important;
    font-weight: bold;
}

.swiper-button-prev:hover, .swiper-button-next:hover {
    background: var(--bg-secondary) !important;
    border-color: var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

/* 10. HINTS & ACCESORIOS DE LA INTERFAZ */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0.7;
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.scroll-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    animation: pulse-line 2s infinite ease-in-out;
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.3; width: 30px; }
    50% { opacity: 1; width: 60px; }
}

/* 11. PIE DE PÁGINA (FOOTER) */
.app-footer {
    width: 100%;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 12. RESPONSIVIDAD (Ajustes para Tablet y Móvil) */

/* Pantallas grandes y portátiles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .service-card, .tech-service-card {
        width: 340px;
        height: 550px;
    }
    .image-placeholder {
        min-height: 120px;
    }
}

/* Tablet y Móvil */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem 1.5rem;
    }
    .main-nav {
        gap: 0.75rem;
    }
    .nav-link {
        display: none; /* Simplificamos en móvil */
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .service-card, .tech-service-card {
        width: 300px;
        height: 530px;
        border-radius: 20px;
    }
    .card-content {
        padding: 1.5rem;
    }
    .image-placeholder {
        min-height: 100px;
    }
    .swiper-button-prev, .swiper-button-next {
        display: none !important; /* Ocultar flechas en pantallas táctiles */
    }
}

/* Dispositivos Móviles Pequeños */
@media (max-width: 480px) {
    .logo-text p {
        display: none; /* Ocultamos lema en móvil muy pequeño */
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .service-card, .tech-service-card {
        width: 280px;
        height: 510px;
    }
    .image-placeholder {
        min-height: 80px;
    }
}

/* ==========================================================================
   13. PANTALLA DE PORTADA (Lock Screen / Intro Screen)
   ========================================================================== */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: #090f1d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
    overflow: hidden;
}

.intro-screen.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.intro-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(9, 15, 29, 0.85) 0%, rgba(9, 15, 29, 0.55) 45%, rgba(9, 15, 29, 0.15) 100%), url('../img/cover_bg.jpg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-content-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.intro-left-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3.5rem;
    animation: fadeInLeft 1s ease-out;
}

.intro-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.intro-title-large {
    font-family: 'Outfit', sans-serif;
    font-size: 5.6rem;
    font-weight: 900;
    font-style: italic;
    color: #ffffff;
    line-height: 0.95;
    letter-spacing: -0.01em;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.intro-title-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 4.6rem;
    font-weight: 350;
    font-style: italic;
    color: #ffffff;
    line-height: 0.95;
    letter-spacing: 0.01em;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.intro-brush-line {
    width: 90%;
    height: 5px;
    background: linear-gradient(to right, #ffffff 65%, rgba(255, 255, 255, 0));
    border-radius: 99px;
    margin-top: 1rem;
}

.intro-actions-group {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.intro-enter-btn {
    padding: 1.1rem 2.5rem;
    background: #0f4c81;
    border: 1px solid #1e70b8;
    border-radius: 99px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(15, 76, 129, 0.4);
}

.intro-enter-btn:hover {
    background: #1765a3;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 76, 129, 0.6);
}

.intro-enter-btn i {
    color: #ffffff;
    transition: transform 0.3s ease;
}

.intro-enter-btn:hover i {
    transform: translateX(5px);
}

.intro-info-btn {
    padding: 1.1rem 2.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 99px;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.intro-info-btn span {
    color: #ffffff !important;
    font-weight: 700;
}

.intro-info-btn svg, .intro-info-btn i {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.intro-info-btn:hover {
    background: #ffffff !important;
    color: #0b4a80 !important;
    border-color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.intro-info-btn:hover span {
    color: #0b4a80 !important;
}

.intro-info-btn:hover svg, .intro-info-btn:hover i {
    color: #0b4a80 !important;
    stroke: #0b4a80 !important;
}

.intro-footer-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.intro-brand-logo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 2.5px solid #ffffff;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    object-fit: contain;
    padding: 2px;
}

.intro-brand-details h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.3rem;
    font-weight: 750;
    color: #ffffff;
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.intro-brand-details p {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.intro-right-panel {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.intro-mascot-img {
    height: 92%;
    max-height: 760px;
    object-fit: contain;
    transform-origin: bottom center;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3));
    /* animation: floatMascot 4.5s ease-in-out infinite; */
}

@keyframes floatMascot {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(0.5deg);
    }
}

/* Responsivo para portada programada */
@media (max-width: 992px) {
    .intro-content-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        justify-content: center;
        gap: 1.5rem;
        padding: 2.5rem 1.5rem 2rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    .intro-left-panel {
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        width: 100%;
    }
    .intro-title-large {
        font-size: 3.2rem;
    }
    .intro-title-sub {
        font-size: 2.4rem;
    }
    .intro-brush-line {
        margin: 0.5rem auto 0 auto;
        width: 80%;
    }
    .intro-actions-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 0.75rem;
    }
    .intro-enter-btn, .intro-info-btn {
        width: 100%;
        justify-content: center;
        padding: 0.95rem 1.75rem;
        font-size: 1.05rem;
    }
    .intro-footer-brand {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        margin-top: 0.25rem;
    }
    .intro-brand-logo {
        width: 64px;
        height: 64px;
    }
    .intro-brand-details h3 {
        font-size: 1.75rem;
    }
    .intro-brand-details p {
        font-size: 0.8rem;
    }
    .intro-right-panel {
        justify-content: center;
        align-items: flex-end;
        width: 100%;
        padding-bottom: 2rem; /* Margen respirable para los pies del doctor */
        margin-top: 0.5rem;
    }
    .intro-mascot-img {
        height: auto;
        max-height: 42vh;
        max-width: 320px;
        width: 85%;
        object-fit: contain;
        margin: 0 auto;
        display: block;
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.45));
    }
}

/* Círculos Concéntricos de Fondo (Inspirado en el Logotipo) */
.logo-circles-back {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.circle-ring {
    position: absolute;
    border: 1px solid rgba(10, 58, 117, 0.2);
    border-radius: 50%;
    transform-origin: center center;
}

.ring-1 {
    width: 270px;
    height: 270px;
    border-style: dashed;
    animation: spin-clockwise 25s infinite linear;
}

.ring-2 {
    width: 330px;
    height: 330px;
    border-color: rgba(0, 102, 204, 0.15);
    animation: spin-counter-clockwise 35s infinite linear;
}

.ring-3 {
    width: 390px;
    height: 390px;
    border-style: dotted;
    animation: spin-clockwise 45s infinite linear;
}

/* Animaciones del Avatar SVG */
.character-group {
    animation: float-avatar 4s infinite alternate ease-in-out;
    transform-origin: 200px 340px;
}

.tablet-pulse-line {
    stroke-dasharray: 60;
    stroke-dashoffset: 120;
    animation: heartbeat-line 2.2s infinite linear;
}

.scan-ring-outer {
    animation: spin-clockwise 18s infinite linear;
    transform-origin: 200px 200px;
}

/* Keyframes de Animaciones */
@keyframes float-avatar {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

@keyframes heartbeat-line {
    to { stroke-dashoffset: 0; }
}

@keyframes spin-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-counter-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* ==========================================================================
   14. PANEL DE COMPROMISO CORPORATIVO
   ========================================================================== */
.compromiso-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20000;
    background: rgba(248, 250, 252, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.compromiso-panel.open {
    opacity: 1;
    pointer-events: all;
}

.compromiso-container {
    position: relative;
    width: 90%;
    max-width: 760px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(10, 58, 117, 0.08);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(10, 58, 117, 0.05), 0 0 40px rgba(10, 58, 117, 0.1);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    transform: translateY(40px) scale(0.96);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.compromiso-panel.open .compromiso-container {
    transform: translateY(0) scale(1);
}

.compromiso-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(10, 58, 117, 0.08);
    background: rgba(10, 58, 117, 0.04);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.compromiso-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffffff;
    transform: rotate(90deg);
}

.compromiso-close-btn i {
    width: 18px;
    height: 18px;
}

.compromiso-scroll-content {
    overflow-y: auto;
    max-height: 70vh;
    padding-right: 1rem;
}

.compromiso-scroll-content::-webkit-scrollbar {
    width: 4px;
}

.compromiso-scroll-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.compromiso-scroll-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

.logo-area-panel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    object-fit: contain;
}

.logo-area-panel h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.panel-compromiso-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.compromiso-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.compromiso-paragraphs p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.panel-highlight {
    font-size: 1.05rem !important;
    color: var(--text-primary) !important;
    line-height: 1.7 !important;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Responsividad de la portada */
@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 600px;
        text-align: center;
    }
    
    .intro-left {
        align-items: center;
    }
    
    .intro-title-main {
        font-size: 3.2rem;
    }
    
    .intro-tagline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .intro-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .intro-grid {
        gap: 2rem;
    }
    
    .intro-title-main {
        font-size: 2.6rem;
    }
    
    .intro-tagline {
        font-size: 1.1rem;
    }
    
    .intro-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .intro-enter-btn, .intro-info-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 0.95rem 2rem;
        font-size: 1.05rem;
    }
    
    .compromiso-container {
        padding: 2rem 1.5rem;
    }
    
    .panel-compromiso-title {
        font-size: 1.65rem;
    }
}

@media (max-width: 480px) {
    .intro-title-main {
        font-size: 2.1rem;
    }
    
    .svg-avatar-container {
        max-width: 280px;
    }
    
    .ring-1 { width: 180px; height: 180px; }
    .ring-2 { width: 220px; height: 220px; }
    .ring-3 { width: 260px; height: 260px; }
}

/* ==========================================================================
   NUEVAS OPTIMIZACIONES - PASO A PASO (LATO, CONTRASTE Y EFECTO LIBRO)
   ========================================================================== */

/* 1. ANULACIÓN GLOBAL DE FUENTE (Lato) */
body, button, input, select, textarea, table, th, td, h1, h2, h3, h4, h5, h6, span, a, p {
    font-family: 'Lato', sans-serif !important;
}

/* 2. CORRECCIONES DE CONTRASTE (Degradados Corporativos en Texto) */
.hero-title, .panel-compromiso-title {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.intro-title-main span {
    background: linear-gradient(135deg, var(--accent-blue) 20%, var(--accent-cyan) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* 3. CONTROL DE PANTALLAS (SPA Transitions) */
.screen-container {
    width: 100%;
    min-height: 100vh;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
    z-index: 10;
    display: none;
    overflow-x: hidden;
}

.screen-container.active-screen {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 20;
    display: block;
}

.screen-container.hidden-screen {
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    display: none !important;
}

.app-header {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s;
}

.app-header.hidden-header {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* 4. ESTILOS PASO 2: MISION, VISION Y COMPROMISO */
.mission-screen {
    padding: 120px 2rem 50px;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.mission-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    width: 100%;
}

.mission-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mission-right {
    display: flex;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-5px);
}

.card-watermark {
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 5.5rem;
    font-weight: 900;
    color: rgba(10, 58, 117, 0.03);
    z-index: 1;
    pointer-events: none;
    letter-spacing: -0.05em;
}

.mission-card-title {
    font-family: 'Lato', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
    letter-spacing: -0.01em;
}

.title-icon {
    width: 24px;
    height: 24px;
}

.icon-blue {
    color: var(--accent-cyan);
}

.mission-card-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
    text-align: justify;
}

.compromiso-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.compromiso-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    overflow-y: auto;
    max-height: 440px;
    padding-right: 0.5rem;
}

.compromiso-body::-webkit-scrollbar {
    width: 4px;
}

.compromiso-body::-webkit-scrollbar-track {
    background: rgba(10, 58, 117, 0.02);
}

.compromiso-body::-webkit-scrollbar-thumb {
    background: rgba(10, 58, 117, 0.1);
    border-radius: 99px;
}

.compromiso-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

.mission-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
}

/* Botones de Acción Generales */
.action-btn {
    padding: 1rem 2.25rem;
    border-radius: 99px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.back-btn {
    background: rgba(10, 58, 117, 0.03);
    border: 1px solid rgba(10, 58, 117, 0.08);
    color: var(--text-secondary);
}

.back-btn:hover {
    background: rgba(10, 58, 117, 0.08);
    border-color: rgba(10, 58, 117, 0.2);
    transform: translateX(-3px);
}

.next-btn {
    background: var(--accent-blue);
    border: 1px solid var(--accent-cyan);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(10, 58, 117, 0.3);
}

.next-btn:hover {
    box-shadow: 0 10px 25px rgba(10, 58, 117, 0.45), 0 0 15px rgba(0, 102, 204, 0.4);
    transform: translateX(3px);
}

/* 5. ESTILOS PASO 3: DASHBOARD CENTRAL DE SERVICIOS */
.dashboard-screen {
    padding: 120px 0 50px;
    width: 100%;
    max-width: none;
    margin: 0;
    background-color: #ffffff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.dashboard-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: center;
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.dashboard-header-area {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.01em;
    color: var(--accent-cyan);
    line-height: 1.05;
    text-transform: uppercase;
    opacity: 0; /* Hidden before entry animation */
}

.dashboard-title span {
    display: block;
    font-size: 3.6rem;
    font-weight: 900;
    font-style: italic;
    color: var(--accent-blue) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    letter-spacing: -0.02em;
    margin-top: 2px;
}

.dashboard-title-line {
    width: 0; /* Hidden before entry animation */
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 0;
    margin-top: 5px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 3rem;
    width: 100%;
}

.services-col {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dashboard-service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    font-style: italic;
    color: var(--accent-cyan) !important;
    transition: var(--transition-smooth);
    box-shadow: none !important;
    text-transform: uppercase;
    opacity: 0; /* Hidden before staggered slide-in */
}

.service-item-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: transparent !important;
    color: inherit !important;
    transition: var(--transition-smooth);
}

.service-item-icon-wrapper i {
    width: 20px;
    height: 20px;
}

/* Hover effects */
.dashboard-service-item:hover {
    transform: translateX(8px);
    color: var(--accent-blue) !important;
}

.dashboard-service-item:hover .service-item-icon-wrapper {
    background: transparent !important;
    color: inherit !important;
    transform: scale(1.1);
}

/* Custom styles for ESTUDIOS DE MAMA (Pink) */
.dashboard-service-item.service-mama {
    color: #e0536c !important;
}

.dashboard-service-item.service-mama:hover {
    color: #db2777 !important;
}

/* Custom styles for LABORATORIO CLINICO (Gold/Orange) */
.dashboard-service-item.service-laboratorio {
    color: #d1901a !important;
}

.dashboard-service-item.service-laboratorio:hover {
    color: #d97706 !important;
}

.dashboard-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

.dashboard-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-images-wrapper {
    position: relative;
    width: 480px;
    height: 480px;
}

.decorative-circle-solid {
    position: absolute;
    border-radius: 50%;
    background-color: #0a3a75;
    width: 440px;
    height: 440px;
    top: 20px;
    right: -100px;
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 15px 35px rgba(10, 58, 117, 0.1);
}

.decorative-circle-dashed {
    position: absolute;
    border-radius: 50%;
    border: 2.5px dashed #0066cc;
    width: 490px;
    height: 490px;
    top: -5px;
    right: -125px;
    z-index: 1;
    pointer-events: none;
}

.dashboard-circle {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(10, 58, 117, 0.15);
    background: #ffffff;
    border: none;
    transition: var(--transition-smooth);
    z-index: 2;
}

.dashboard-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08); /* Zoom slightly to center and hide white leaks */
    transition: var(--transition-smooth);
}

.circle-glow-ring {
    display: none;
}

.circle-1 {
    width: 170px;
    height: 170px;
    top: 10px;
    left: 60px;
    z-index: 4;
}

.circle-2 {
    width: 330px;
    height: 330px;
    top: 75px;
    right: -30px;
    z-index: 3;
}

.circle-3 {
    width: 170px;
    height: 170px;
    bottom: 10px;
    left: 80px;
    z-index: 4;
}

.dashboard-circle:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(10, 58, 117, 0.25);
    z-index: 10;
}

.dashboard-circle:hover img {
    transform: scale(1.15); /* Match scale(1.08) default */
}

/* ==========================================================================
   ANIMACIONES DE ENTRADA EN EL DASHBOARD DE SERVICIOS
   ========================================================================== */

/* Ejecución al activar la pantalla */
.dashboard-screen.active-screen .dashboard-title {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dashboard-screen.active-screen .dashboard-title-line {
    animation: expandWidth 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.dashboard-screen.active-screen .dashboard-service-item {
    animation: fadeInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dashboard-screen.active-screen .dashboard-circle {
    opacity: 0;
    animation: scaleInCircle 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Delays escalonados para servicios - Columna 1 */
.dashboard-screen.active-screen .services-col:first-child .dashboard-service-item:nth-child(1) { animation-delay: 0.10s; }
.dashboard-screen.active-screen .services-col:first-child .dashboard-service-item:nth-child(2) { animation-delay: 0.14s; }
.dashboard-screen.active-screen .services-col:first-child .dashboard-service-item:nth-child(3) { animation-delay: 0.18s; }
.dashboard-screen.active-screen .services-col:first-child .dashboard-service-item:nth-child(4) { animation-delay: 0.22s; }
.dashboard-screen.active-screen .services-col:first-child .dashboard-service-item:nth-child(5) { animation-delay: 0.26s; }
.dashboard-screen.active-screen .services-col:first-child .dashboard-service-item:nth-child(6) { animation-delay: 0.30s; }
.dashboard-screen.active-screen .services-col:first-child .dashboard-service-item:nth-child(7) { animation-delay: 0.34s; }
.dashboard-screen.active-screen .services-col:first-child .dashboard-service-item:nth-child(8) { animation-delay: 0.38s; }

/* Delays escalonados para servicios - Columna 2 */
.dashboard-screen.active-screen .services-col:last-child .dashboard-service-item:nth-child(1) { animation-delay: 0.18s; }
.dashboard-screen.active-screen .services-col:last-child .dashboard-service-item:nth-child(2) { animation-delay: 0.22s; }
.dashboard-screen.active-screen .services-col:last-child .dashboard-service-item:nth-child(3) { animation-delay: 0.26s; }
.dashboard-screen.active-screen .services-col:last-child .dashboard-service-item:nth-child(4) { animation-delay: 0.30s; }
.dashboard-screen.active-screen .services-col:last-child .dashboard-service-item:nth-child(5) { animation-delay: 0.34s; }
.dashboard-screen.active-screen .services-col:last-child .dashboard-service-item:nth-child(6) { animation-delay: 0.38s; }
.dashboard-screen.active-screen .services-col:last-child .dashboard-service-item:nth-child(7) { animation-delay: 0.42s; }
.dashboard-screen.active-screen .services-col:last-child .dashboard-service-item:nth-child(8) { animation-delay: 0.46s; }

/* Delays de entrada para los círculos de imágenes */
.dashboard-screen.active-screen .circle-2 { animation-delay: 0.2s; }
.dashboard-screen.active-screen .circle-1 { animation-delay: 0.45s; }
.dashboard-screen.active-screen .circle-3 { animation-delay: 0.55s; }

/* Definición de Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 320px;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleInCircle {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 6. ESTILOS PASO 4: INTERFAZ DE CARRUSEL DE TARJETAS */
.swiper-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.swiper-back-nav {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    z-index: 90;
    padding: 1rem 3rem;
    display: flex;
    justify-content: flex-start;
}

.swiper-back-btn {
    background: rgba(10, 58, 117, 0.05);
    border: 1px solid rgba(10, 58, 117, 0.08);
    color: var(--text-secondary);
    padding: 0.65rem 1.5rem;
    border-radius: 99px;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.swiper-back-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-cyan);
    color: #ffffff;
    transform: translateX(-3px);
    box-shadow: 0 6px 15px rgba(10, 58, 117, 0.15);
}

.swiper-back-btn i {
    width: 16px;
    height: 16px;
}

/* Limitador de profundidad de mazo Swiper */
.swiper-slide-active + .swiper-slide + .swiper-slide,
.swiper-slide-active + .swiper-slide + .swiper-slide ~ .swiper-slide {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.swiper-slide:not(.swiper-slide-active) {
    opacity: 0.35 !important;
    pointer-events: none;
}

/* 7. REDISEÑO HOLOGRÁFICO TECNOLÓGICO DE PLACEHOLDERS */
.image-placeholder {
    width: 100%;
    height: 180px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(10, 58, 117, 0.02) 0%, rgba(0, 102, 204, 0.07) 100%) !important;
    border: 1px solid rgba(0, 102, 204, 0.15) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--accent-cyan) !important;
    transition: var(--transition-smooth);
    margin-bottom: auto;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 102, 204, 0.02);
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 15px 15px;
    background-image: 
        linear-gradient(to right, rgba(0, 102, 204, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 102, 204, 0.03) 1px, transparent 1px);
    pointer-events: none;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 234, 255, 0.8), transparent);
    box-shadow: 0 0 8px rgba(0, 234, 255, 0.6);
    animation: scanner-sweep 3.5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes scanner-sweep {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.service-card:hover .image-placeholder {
    background: linear-gradient(135deg, rgba(10, 58, 117, 0.04) 0%, rgba(0, 102, 204, 0.12) 100%) !important;
    border-color: rgba(0, 102, 204, 0.3) !important;
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.05), inset 0 0 15px rgba(0, 102, 204, 0.05);
}

/* 8. RESPONSIVIDAD ADICIONAL */
@media (max-width: 1024px) {
    .mission-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .compromiso-card {
        height: auto;
    }
    .compromiso-body {
        max-height: 280px;
    }
    .dashboard-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .circle-images-wrapper {
        width: 340px;
        height: 340px;
        margin: 0 auto;
    }
    .circle-1 { width: 125px; height: 125px; top: 0px; left: 40px; }
    .circle-2 { width: 240px; height: 240px; top: 50px; right: -20px; }
    .circle-3 { width: 125px; height: 125px; bottom: 0px; left: 50px; }
}

@media (max-width: 768px) {
    .mission-screen, .dashboard-screen {
        padding-top: 100px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .dashboard-title {
        font-size: 2.2rem;
    }
    .swiper-back-nav {
        padding: 0.75rem 1.5rem;
        top: 75px;
    }
}

/* 9. PANTALLA DE TECNOLOGÍA (MENÚ DE CATEGORÍAS) */
.technology-screen {
    padding: 120px 2rem 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.tech-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.tech-header-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.tech-tag {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    background: rgba(0, 234, 255, 0.08);
    border: 1px solid rgba(0, 234, 255, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    display: inline-block;
    margin-bottom: 1rem;
}

.tech-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 850;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.tech-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Grid del Menú de Tecnología */
.tech-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.tech-menu-card {
    position: relative;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow-glass);
    padding: 1.75rem;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out both;
}

.tech-menu-card:nth-child(2) { animation-delay: 0.1s; }
.tech-menu-card:nth-child(3) { animation-delay: 0.2s; }
.tech-menu-card:nth-child(4) { animation-delay: 0.3s; }

.tech-menu-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 234, 255, 0.4);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.08), var(--shadow-glass);
}

.tech-menu-card-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 100% 0%, rgba(0, 234, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.tech-menu-card-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(0, 102, 204, 0.15);
    background-color: rgba(10, 58, 117, 0.03);
    box-shadow: 0 4px 10px rgba(10, 58, 117, 0.05);
    transition: var(--transition-smooth);
}

.tech-menu-card:hover .tech-menu-card-image {
    border-color: var(--accent-cyan);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.2);
}

.tech-menu-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tech-menu-badge {
    font-size: 0.72rem;
    font-weight: 750;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tech-menu-card-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.tech-menu-card-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.tech-menu-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    transition: var(--transition-smooth);
}

.tech-menu-card:hover .tech-menu-arrow {
    background: var(--accent-blue);
    color: white;
    transform: translateX(3px);
}

.tech-menu-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* 10. PASO 6: DETALLE DE TECNOLOGÍA SWIPER */
.tech-swiper-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(185deg, #f6f8fb 0%, #edf1f7 100%);
    overflow-x: hidden;
}

/* Estilos de Imagen en Swiper Detalle */
.tech-detail-image-wrapper {
    width: 100%;
    aspect-ratio: 1.8;
    border-radius: 12px;
    overflow: hidden;
    margin: 1rem 0 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
}

.tech-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botón de Especificaciones */
.specs-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 102, 204, 0.15);
    border-radius: 14px;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.specs-btn:hover {
    background: rgba(0, 102, 204, 0.05);
    border-color: var(--accent-blue);
}

.specs-btn.active, .cups-btn.active {
    background: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
    color: white !important;
    z-index: 12 !important;
}

.specs-btn .btn-arrow {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.specs-btn.active .btn-arrow {
    transform: rotate(180deg);
}

/* Panel Desplegable de Especificaciones Técnicas */
.specs-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0; /* Cerrado por defecto */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(10, 58, 117, 0.08);
    border-radius: 24px;
    z-index: 10;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.specs-panel.open {
    height: 100%;
}

.specs-panel-inner {
    padding: 2.25rem 2rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.specs-panel-inner .panel-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.01em;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 550;
    line-height: 1.45;
}

.specs-list li i {
    color: var(--accent-cyan);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Estilos de Swiper Especializados */
.tech-portfolio-swiper {
    width: 380px;
    height: 530px;
    padding-top: 0.5rem !important;
    padding-bottom: 3.5rem !important;
    overflow: visible !important;
}

.tech-swiper-pagination {
    bottom: 15px !important;
}

/* Flechas de Navegación */
.tech-swiper-button-prev,
.tech-swiper-button-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(0, 102, 204, 0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 20 !important;
}

.tech-swiper-button-prev {
    left: calc(50% - 260px) !important;
}

.tech-swiper-button-next {
    right: calc(50% - 260px) !important;
}

.tech-swiper-button-prev i,
.tech-swiper-button-next i {
    width: 20px;
    height: 20px;
    transition: var(--transition-smooth);
}

.tech-swiper-button-prev:hover,
.tech-swiper-button-next:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-50%) scale(1.05) !important;
}

/* Responsividad para Tecnología */
@media (max-width: 992px) {
    .technology-screen {
        padding: 100px 1.5rem 3.5rem 1.5rem;
    }
    .tech-wrapper {
        gap: 2.5rem;
    }
    .tech-menu-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .tech-title {
        font-size: 2.4rem;
    }
    .tech-detail-image-wrapper {
        aspect-ratio: 1.6;
    }
    .tech-portfolio-swiper {
        width: 340px;
        height: 520px;
    }
    .tech-swiper-button-prev, .tech-swiper-button-next {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .technology-screen {
        padding: 95px 1.25rem 3.5rem 1.25rem;
    }
    .tech-title {
        font-size: 2.1rem;
    }
    .tech-subtitle {
        font-size: 1rem;
    }
    .tech-portfolio-swiper {
        width: 300px;
        height: 500px;
    }
}

@media (max-width: 640px) {
    .tech-menu-card {
        grid-template-columns: 68px 1fr auto;
        gap: 0.85rem;
        padding: 1.15rem 1rem;
        border-radius: 16px;
    }
    .tech-menu-card-image {
        width: 64px;
        height: 64px;
    }
    .tech-menu-card-info h3 {
        font-size: 1.1rem;
    }
    .tech-menu-card-info p {
        font-size: 0.82rem;
    }
    .tech-menu-arrow {
        width: 34px;
        height: 34px;
    }
    .tech-menu-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
        align-items: stretch;
    }
    .tech-menu-actions .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .technology-screen {
        padding: 85px 1rem 3rem 1rem;
    }
    .tech-wrapper {
        gap: 1.75rem;
    }
    .tech-title {
        font-size: 1.8rem;
    }
    .tech-subtitle {
        font-size: 0.92rem;
    }
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    .tech-portfolio-swiper {
        width: 280px;
        height: 480px;
    }
}

@media (max-width: 380px) {
    .tech-menu-card {
        grid-template-columns: 54px 1fr auto;
        gap: 0.65rem;
        padding: 0.9rem 0.75rem;
    }
    .tech-menu-card-image {
        width: 52px;
        height: 52px;
    }
    .tech-menu-card-info h3 {
        font-size: 1rem;
    }
    .tech-menu-card-info p {
        font-size: 0.78rem;
    }
    .tech-menu-arrow {
        width: 30px;
        height: 30px;
    }
}

/* ==========================================================================
   PANTALLA DE DETALLE EXCLUSIVA DE RESONANCIA MAGNÉTICA (RMN)
   ========================================================================== */

.rmn-detail-screen {
    background: var(--bg-primary);
    overflow-y: auto;
}

.rmn-visualizer-section {
    width: 100%;
    padding: 1.5rem 0 3.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Contenedor interactivo apaisado de la máquina (RMN) */
.rmn-interactive-container {
    position: relative;
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 1000 / 580;
    height: auto;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-hover);
    overflow: hidden;
    background: var(--bg-secondary);
}

/* Imagen de fondo */
.rmn-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Overlay de contraste */
.rmn-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(9, 15, 29, 0.45) 0%, rgba(9, 15, 29, 0.2) 100%);
    z-index: 2;
    pointer-events: none;
}

/* SVG para las líneas conectoras (solo visible en desktop) */
.rmn-connector-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.rmn-connector-svg .connector-line {
    fill: none;
    stroke-width: 2.5;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    opacity: 0;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    filter: drop-shadow(0 0 3px rgba(0, 210, 255, 0.4));
}

.rmn-connector-svg .connector-line.active {
    stroke-dashoffset: 0;
    opacity: 0.95;
}

/* Hotspots Interactivos */
.rmn-connector-svg .connector-hotspot {
    pointer-events: auto;
    cursor: pointer;
}

.rmn-connector-svg .hotspot-ring {
    fill: none;
    stroke: #00d2ff;
    stroke-width: 2;
    opacity: 0.7;
    animation: hotspotPulse 2.2s infinite ease-out;
}

/* Retardos en el pulso de cada hotspot para que se vea más dinámico y orgánico */
.rmn-connector-svg .hotspot-2 .hotspot-ring {
    animation-delay: 0.7s;
}
.rmn-connector-svg .hotspot-3 .hotspot-ring {
    animation-delay: 1.4s;
}

.rmn-connector-svg .hotspot-core {
    fill: #ffffff;
    stroke: #0877bd;
    stroke-width: 2.5;
    r: 6px;
    transition: r 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
}

.rmn-connector-svg .connector-hotspot:hover .hotspot-core,
.rmn-connector-svg .connector-hotspot.active .hotspot-core {
    fill: #00d2ff;
    stroke: #ffffff;
    r: 8.5px;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.9));
}

@keyframes hotspotPulse {
    0% {
        r: 6px;
        opacity: 0.9;
        stroke-width: 1.5px;
    }
    50% {
        opacity: 0.65;
    }
    100% {
        r: 22px;
        opacity: 0;
        stroke-width: 1px;
    }
}

/* Burbujas de información flotantes (Callouts) - Azul Corporativo y Fuente Blanca (Lato) */
.rmn-callout {
    position: absolute;
    z-index: 4;
    background: #0877bd;
    font-family: 'Lato', sans-serif !important;
    border-radius: 16px;
    padding: 1.5rem 1.8rem;
    box-shadow: 0 12px 30px rgba(8, 119, 189, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    
    /* Estado inicial para transición controlada por JS */
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.rmn-callout.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rmn-callout p {
    font-family: 'Lato', sans-serif !important;
    margin: 0;
    line-height: 1.6;
    font-size: 0.88rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.rmn-callout .callout-header {
    font-family: 'Lato', sans-serif !important;
    font-weight: 700;
    font-size: 0.96rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
    letter-spacing: 0.01em;
}

.rmn-callout .callout-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.rmn-callout .callout-list li {
    font-family: 'Lato', sans-serif !important;
    font-size: 0.84rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.01em;
}

.rmn-callout .callout-list li span {
    color: rgba(255, 255, 255, 0.85);
    font-weight: bold;
}

/* Coordenadas de posicionamiento de las burbujas en desktop */
.rmn-interactive-container .callout-left-top {
    top: 15%;
    left: 4%;
    width: 29%;
}

.rmn-interactive-container .callout-right-top {
    top: 15%;
    right: 4%;
    width: 32%;
}

.rmn-interactive-container .callout-right-bottom {
    bottom: 10%;
    right: 4%;
    width: 32%;
}

/* ==========================================================================
   AJUSTES RESPONSIVOS RMN (TABLET Y MÓVIL)
   ========================================================================== */

@media (max-width: 1024px) {
    /* Reducir el padding y tamaño de letra en las burbujas para RMN en pantallas medianas (tablets) */
    .rmn-callout {
        padding: 1rem 1.25rem !important;
        border-radius: 12px !important;
    }
    .rmn-callout p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    .rmn-callout .callout-header {
        font-size: 0.88rem !important;
        margin-bottom: 0.4rem !important;
    }
    .rmn-callout .callout-list {
        gap: 0.4rem !important;
    }
    .rmn-callout .callout-list li {
        font-size: 0.76rem !important;
    }
}

@media (max-width: 850px) {
    /* Ajustar anchos y coordenadas para RMN */
    .rmn-interactive-container .callout-left-top {
        width: 32% !important;
        top: 10% !important;
        left: 2% !important;
    }
    .rmn-interactive-container .callout-right-top {
        width: 38% !important;
        top: 10% !important;
        right: 2% !important;
    }
    .rmn-interactive-container .callout-right-bottom {
        width: 38% !important;
        bottom: 5% !important;
        right: 2% !important;
    }
}

@media (max-width: 768px) {
    /* Ocultar líneas conectoras */
    .rmn-connector-svg {
        display: none !important;
    }

    /* Convertir el contenedor en un scroll vertical */
    .rmn-interactive-container {
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        height: auto !important;
        width: calc(100% - 2rem) !important;
        max-width: 480px !important;
        border-radius: 20px !important;
        margin: 0 auto;
    }

    /* La imagen se coloca al inicio con alto fijo */
    .rmn-bg-image {
        position: relative !important;
        width: 100% !important;
        height: 230px !important;
    }

    .rmn-bg-overlay {
        position: absolute !important;
        width: 100% !important;
        height: 230px !important;
        z-index: 2 !important;
    }

    /* Burbujas se apilan estáticamente */
    .rmn-interactive-container .rmn-callout {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: calc(100% - 2.5rem) !important;
        margin: 1.25rem 1.25rem 0 1.25rem !important;
        box-shadow: 0 4px 15px rgba(8, 119, 189, 0.15) !important;
        border-radius: 16px !important;
        padding: 1.25rem !important;
        background: #0877bd !important;
        border: none !important;
        color: #ffffff !important;
        animation: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .rmn-interactive-container .rmn-callout p,
    .rmn-interactive-container .rmn-callout .callout-header,
    .rmn-interactive-container .rmn-callout .callout-list li,
    .rmn-interactive-container .rmn-callout .callout-list li span {
        color: #ffffff !important;
    }

    .rmn-interactive-container .callout-right-bottom {
        margin-bottom: 1.5rem !important;
    }
}

/* ==========================================================================
   PANTALLA DE DETALLE EXCLUSIVA DE TOMOGRAFÍA COMPUTARIZADA (TAC)
   ========================================================================== */

.tac-detail-screen {
    background: var(--bg-primary);
    overflow-y: auto;
}

.tac-visualizer-section {
    width: 100%;
    padding: 1.5rem 0 3.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Contenedor interactivo apaisado de la máquina (TAC) */
.tac-interactive-container {
    position: relative;
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 1000 / 580;
    height: auto;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-hover);
    overflow: hidden;
    background: var(--bg-secondary);
}

/* Imagen de fondo */
.tac-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Overlay de contraste */
.tac-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(9, 15, 29, 0.45) 0%, rgba(9, 15, 29, 0.2) 100%);
    z-index: 2;
    pointer-events: none;
}

/* SVG para las líneas conectoras (solo visible en desktop) */
.tac-connector-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.tac-connector-svg .connector-line {
    fill: none;
    stroke-width: 2.5;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    opacity: 0;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    filter: drop-shadow(0 0 3px rgba(0, 210, 255, 0.4));
}

.tac-connector-svg .connector-line.active {
    stroke-dashoffset: 0;
    opacity: 0.95;
}

/* Hotspots Interactivos */
.tac-connector-svg .connector-hotspot {
    pointer-events: auto;
    cursor: pointer;
}

.tac-connector-svg .hotspot-ring {
    fill: none;
    stroke: #00d2ff;
    stroke-width: 2;
    opacity: 0.7;
    animation: hotspotPulseTAC 2.2s infinite ease-out;
}

/* Retardos en el pulso de cada hotspot */
.tac-connector-svg .hotspot-2 .hotspot-ring {
    animation-delay: 0.7s;
}
.tac-connector-svg .hotspot-3 .hotspot-ring {
    animation-delay: 1.4s;
}

.tac-connector-svg .hotspot-core {
    fill: #ffffff;
    stroke: #0877bd;
    stroke-width: 2.5;
    r: 6px;
    transition: r 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
}

.tac-connector-svg .connector-hotspot:hover .hotspot-core,
.tac-connector-svg .connector-hotspot.active .hotspot-core {
    fill: #00d2ff;
    stroke: #ffffff;
    r: 8.5px;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.9));
}

@keyframes hotspotPulseTAC {
    0% {
        r: 6px;
        opacity: 0.9;
        stroke-width: 1.5px;
    }
    50% {
        opacity: 0.65;
    }
    100% {
        r: 22px;
        opacity: 0;
        stroke-width: 1px;
    }
}

/* Burbujas de información flotantes (Callouts) */
.tac-callout {
    position: absolute;
    z-index: 4;
    background: #0877bd;
    font-family: 'Lato', sans-serif !important;
    border-radius: 16px;
    padding: 1.5rem 1.8rem;
    box-shadow: 0 12px 30px rgba(8, 119, 189, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    
    /* Estado inicial para transición controlada por JS */
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.tac-callout.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tac-callout p {
    font-family: 'Lato', sans-serif !important;
    margin: 0;
    line-height: 1.6;
    font-size: 0.88rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.tac-callout .callout-header {
    font-family: 'Lato', sans-serif !important;
    font-weight: 700;
    font-size: 0.96rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
    letter-spacing: 0.01em;
}

.tac-callout .callout-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.tac-callout .callout-list li {
    font-family: 'Lato', sans-serif !important;
    font-size: 0.84rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.01em;
}

.tac-callout .callout-list li span {
    color: rgba(255, 255, 255, 0.85);
    font-weight: bold;
}

/* Coordenadas de posicionamiento de las burbujas en desktop */
.tac-interactive-container .callout-left-top {
    top: 15%;
    left: 4%;
    width: 29%;
}

.tac-interactive-container .callout-right-top {
    top: 12%;
    right: 4%;
    width: 34%;
}

.tac-interactive-container .callout-right-bottom {
    bottom: 8%;
    right: 4%;
    width: 34%;
}

/* ==========================================================================
   AJUSTES RESPONSIVOS TAC (TABLET Y MÓVIL)
   ========================================================================== */

@media (max-width: 1024px) {
    /* Reducir el padding y tamaño de letra en las burbujas para TAC en pantallas medianas (tablets) */
    .tac-callout {
        padding: 1rem 1.25rem !important;
        border-radius: 12px !important;
    }
    .tac-callout p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    .tac-callout .callout-header {
        font-size: 0.88rem !important;
        margin-bottom: 0.4rem !important;
    }
    .tac-callout .callout-list {
        gap: 0.4rem !important;
    }
    .tac-callout .callout-list li {
        font-size: 0.76rem !important;
    }
}

@media (max-width: 850px) {
    /* Ajustar anchos y coordenadas para TAC */
    .tac-interactive-container .callout-left-top {
        width: 32% !important;
        top: 10% !important;
        left: 2% !important;
    }
    .tac-interactive-container .callout-right-top {
        width: 38% !important;
        top: 10% !important;
        right: 2% !important;
    }
    .tac-interactive-container .callout-right-bottom {
        width: 38% !important;
        bottom: 5% !important;
        right: 2% !important;
    }
}

@media (max-width: 768px) {
    /* Ocultar líneas conectoras */
    .tac-connector-svg {
        display: none !important;
    }

    /* Convertir el contenedor en un scroll vertical */
    .tac-interactive-container {
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        height: auto !important;
        width: calc(100% - 2rem) !important;
        max-width: 480px !important;
        border-radius: 20px !important;
        margin: 0 auto;
    }

    /* La imagen se coloca al inicio con alto fijo */
    .tac-bg-image {
        position: relative !important;
        width: 100% !important;
        height: 230px !important;
    }

    .tac-bg-overlay {
        position: absolute !important;
        width: 100% !important;
        height: 230px !important;
        z-index: 2 !important;
    }

    /* Burbujas se apilan estáticamente */
    .tac-interactive-container .tac-callout {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: calc(100% - 2.5rem) !important;
        margin: 1.25rem 1.25rem 0 1.25rem !important;
        box-shadow: 0 4px 15px rgba(8, 119, 189, 0.15) !important;
        border-radius: 16px !important;
        padding: 1.25rem !important;
        background: #0877bd !important;
        border: none !important;
        color: #ffffff !important;
        animation: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .tac-interactive-container .tac-callout p,
    .tac-interactive-container .tac-callout .callout-header,
    .tac-interactive-container .tac-callout .callout-list li,
    .tac-interactive-container .tac-callout .callout-list li span {
        color: #ffffff !important;
    }

    .tac-interactive-container .callout-right-bottom {
        margin-bottom: 1.5rem !important;
    }
}

/* ==========================================================================
   NUEVOS ESTILOS PARA PESTAÑAS DE TOMÓGRAFO Y SECCIÓN DE ECOGRAFÍA
   ========================================================================== */

/* Grupo de pestañas (Segmented control estilo Apple) */
.tech-tab-group {
    display: inline-flex;
    background: rgba(10, 58, 117, 0.04);
    border: 1px solid rgba(10, 58, 117, 0.08);
    padding: 4px;
    border-radius: 99px;
    margin-top: 1.5rem;
    gap: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tech-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 99px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tech-tab-btn i {
    width: 16px;
    height: 16px;
}

.tech-tab-btn:hover {
    color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.5);
}

.tech-tab-btn.active {
    background: var(--bg-secondary);
    color: var(--accent-blue);
    box-shadow: 0 4px 10px rgba(10, 58, 117, 0.08);
    border: 1px solid rgba(10, 58, 117, 0.05);
}

/* Ocultar/Mostrar Tomógrafos y Equipos RX, Arco en C, DEXA, Unidades Móviles */
.tac-interactive-container.hidden-device,
.rx-interactive-container.hidden-device,
.arcoc-interactive-container.hidden-device,
.dexa-interactive-container.hidden-device,
.unidades-moviles-interactive-container.hidden-device {
    display: none !important;
}

/* Balanza de tarjetas de tecnología si es impar */
@media (min-width: 993px) {
    .tech-menu-card:last-child:nth-child(odd) {
        grid-column: span 2;
    }
}

/* Estilos de Detalle de Ecógrafos */
.eco-detail-screen {
    background: var(--bg-primary);
    overflow-y: auto;
}

.eco-visualizer-section {
    width: 100%;
    padding: 2.5rem 0 4.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Split layout para los ecógrafos */
.eco-split-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 15px 35px rgba(10, 58, 117, 0.04);
    border-radius: 28px;
    padding: 3rem;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.eco-split-container.hidden-device {
    display: none !important;
}

.eco-split-container.eco-reverse {
    flex-direction: row-reverse;
}

.eco-image-column {
    flex: 1;
    max-width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-machine-img {
    max-height: 480px;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(10, 58, 117, 0.15));
    transition: var(--transition-smooth);
}

.eco-machine-img:hover {
    transform: scale(1.03);
}

.eco-content-column {
    flex: 1.2;
    max-width: 52%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.eco-text-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.eco-badge {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
}

.eco-title {
    font-family: 'Lato', sans-serif !important;
    font-size: 3.25rem;
    font-weight: 900;
    color: #0a73b7;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.eco-brush-line {
    width: 150px;
    height: 4px;
    background: #0a73b7;
    border-radius: 99px;
    margin-top: 0.5rem;
}

.eco-description {
    font-family: 'Lato', sans-serif !important;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #0b6197; /* Blue description text like in user screenshot */
    margin: 0;
    text-align: justify;
}

/* Carrusel de escaneos */
.eco-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    width: 100%;
}

.eco-swiper-nav-btn {
    border: none;
    background: #0a73b7;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(10, 115, 183, 0.25);
    flex-shrink: 0;
    z-index: 5;
}

.eco-swiper-nav-btn i {
    width: 20px;
    height: 20px;
}

.eco-swiper-nav-btn:hover {
    background: #085a90;
    transform: scale(1.08);
}

.eco-gallery-swiper {
    flex-grow: 1;
    max-width: 400px;
    height: 110px;
    overflow: hidden;
    padding: 5px 0;
}

.eco-gallery-swiper .swiper-slide {
    width: 120px !important;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.eco-gallery-swiper .swiper-slide:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 115, 183, 0.2);
    border-color: #00eaff;
}

.eco-gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsividad para Ecógrafos */
@media (max-width: 992px) {
    .eco-split-container {
        padding: 2.25rem;
        gap: 2.5rem;
    }
    .eco-title {
        font-size: 2.75rem;
    }
    .eco-description {
        font-size: 0.98rem;
    }
}

@media (max-width: 850px) {
    .eco-split-container,
    .eco-split-container.eco-reverse {
        flex-direction: column !important;
        gap: 2rem;
        padding: 2rem;
    }
    .eco-image-column,
    .eco-content-column {
        max-width: 100% !important;
        width: 100%;
    }
    .eco-image-column {
        order: -1 !important; /* Machine always top on mobile */
    }
    .eco-machine-img {
        max-height: 340px;
    }
    .eco-text-header,
    .eco-description {
        text-align: center !important;
    }
    .eco-brush-line {
        margin: 0.5rem auto 0;
    }
    .eco-carousel-wrapper {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .eco-title {
        font-size: 2rem;
    }
    .eco-carousel-wrapper {
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
    }
    .eco-swiper-nav-btn {
        width: 36px;
        height: 36px;
    }
    .eco-gallery-swiper {
        max-width: 210px;
        height: 95px;
    }
    .eco-gallery-swiper .swiper-slide {
        width: 100px !important;
        height: 85px;
    }
}

/* ==========================================
   PANTALLA DE NUESTRAS SEDES
   ========================================== */
.sedes-screen {
    padding: 120px 2rem 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.sedes-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.sedes-header-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.sedes-tag {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    background: rgba(0, 234, 255, 0.08);
    border: 1px solid rgba(0, 234, 255, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    display: inline-block;
    margin-bottom: 1rem;
}

.sedes-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #0a3a75;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.sedes-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sedes-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Selector de sedes en formato Apple Segmented Control */
.sedes-tabs {
    display: inline-flex;
    background: rgba(10, 58, 117, 0.04);
    border: 1px solid rgba(10, 58, 117, 0.08);
    padding: 4px;
    border-radius: 99px;
    gap: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 100%;
    overflow-x: auto;
}

.sede-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 99px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.sede-tab-btn i {
    width: 18px;
    height: 18px;
}

.sede-tab-btn:hover {
    color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.5);
}

.sede-tab-btn.active {
    background: var(--bg-secondary);
    color: var(--accent-blue);
    box-shadow: 0 4px 10px rgba(10, 58, 117, 0.08);
    border: 1px solid rgba(10, 58, 117, 0.05);
}

/* Tarjetas de Panel de Sede */
.sedes-panels {
    width: 100%;
    max-width: 1000px;
    position: relative;
    min-height: 420px;
}

.sede-panel-card {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow-hover);
    padding: 3rem;
    overflow: hidden;
    position: relative;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sede-panel-card.active-panel {
    display: block;
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sede-panel-card.hidden-panel {
    display: none !important;
}

.sede-card-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 234, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.sede-panel-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.sede-info-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sede-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--accent-blue);
    background: rgba(10, 58, 117, 0.05);
    padding: 0.35rem 1rem;
    border-radius: 99px;
}

.sede-info-main h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #0a3a75;
}

.sede-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sede-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.sede-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.sede-detail-item i {
    width: 22px;
    height: 22px;
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.sede-detail-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sede-detail-item strong {
    font-size: 0.9rem;
    color: #0a3a75;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sede-detail-item span {
    font-size: 1rem;
    color: var(--text-secondary);
}

.sede-facade-area {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(10, 58, 117, 0.04);
    background: rgba(10, 58, 117, 0.02);
    position: relative;
    display: flex;
}

.sede-facade-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sede-facade-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sede-facade-area:hover .sede-facade-img {
    transform: scale(1.04);
}

.sede-facade-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    background: rgba(10, 58, 117, 0.03);
    text-align: center;
    padding: 2rem;
}

.sede-facade-placeholder i {
    width: 48px;
    height: 48px;
    color: rgba(10, 58, 117, 0.15);
}

.sede-facade-placeholder span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Responsive para Sedes */
@media (max-width: 991px) {
    .sede-panel-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sede-panel-card {
        padding: 2rem;
    }
    
    .sede-info-main h3 {
        font-size: 1.75rem;
    }
    
    .sedes-tabs {
        border-radius: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sede-tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Botón para ver galería */
.view-gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--accent-blue);
    border: 1px solid var(--accent-cyan);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 99px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(10, 58, 117, 0.15);
    transition: var(--transition-smooth);
    margin-top: 1.5rem;
    align-self: flex-start;
}

.view-gallery-btn i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.view-gallery-btn:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.25);
}

.view-gallery-btn:hover i {
    transform: scale(1.1);
}

.view-gallery-btn:active {
    transform: translateY(1px);
}

/* Modal de Galería de Sedes */
.sede-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    pointer-events: none;
}

.sede-modal.active-modal {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sede-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
}

.sede-modal-content {
    width: 90%;
    max-width: 900px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(10, 58, 117, 0.25);
    border-radius: 28px;
    padding: 2.5rem;
    z-index: 10001;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.sede-modal.active-modal .sede-modal-content {
    transform: scale(1);
}

.sede-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 58, 117, 0.05);
    border: 1px solid rgba(10, 58, 117, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.sede-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.15);
    transform: rotate(90deg);
}

.sede-modal-header {
    margin-bottom: 2rem;
}

.sede-modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0a3a75;
}

.sede-modal-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.sede-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Elementos de Galería dentro del Modal */
.sede-gallery-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sede-image-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 10px rgba(10, 58, 117, 0.04);
    background: rgba(10, 58, 117, 0.02);
}

.sede-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sede-gallery-item:hover .sede-gallery-img {
    transform: scale(1.05);
}

.sede-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    background: rgba(10, 58, 117, 0.03);
    text-align: center;
    padding: 1rem;
}

.sede-img-placeholder i {
    width: 32px;
    height: 32px;
    color: rgba(10, 58, 117, 0.2);
}

.sede-img-placeholder span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.sede-img-caption {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
}

@media (max-width: 768px) {
    .sede-modal-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .sede-modal-content {
        padding: 1.5rem;
    }
}

/* Zoom overlay para los contenedores de fotos de sedes */
.sede-image-container {
    cursor: pointer;
}

/* Evitar hover y cursor en los placeholders vacíos */
.sede-image-container:has(.sede-img-placeholder[style*="display: flex"]),
.sede-image-container:has(.sede-img-placeholder[style*="display: block"]) {
    cursor: default !important;
    pointer-events: none !important;
}

.sede-img-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 58, 117, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.sede-image-container:hover .sede-img-hover-overlay {
    opacity: 1;
}

.sede-img-hover-overlay i {
    color: #ffffff;
    width: 32px;
    height: 32px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sede-image-container:hover .sede-img-hover-overlay i {
    transform: scale(1);
}

/* Lightbox de Imagen (Visualizador) */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    pointer-events: none;
}

.image-lightbox.active-lightbox {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 11001;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: var(--transition-smooth);
    z-index: 11003;
}

.lightbox-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    z-index: 11002;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox.active-lightbox .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    object-fit: contain;
}

.lightbox-caption {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    text-align: center;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   15. OPTIMIZACIONES RESPONSIVAS FINALES (MÓVIL Y TABLET)
   ========================================================================== */

/* Optimizaciones generales para Tablet y Móvil */
@media (max-width: 991px) {
    /* Intro / Portada */
    .intro-content-wrapper {
        grid-template-columns: 1fr;
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }
    .intro-mascot-img {
        max-height: 40vh;
        margin-top: 0.5rem;
    }
    
    /* Misión y Visión */
    .mission-wrapper {
        grid-template-columns: 1fr;
    }
    .mission-screen {
        padding-top: 100px;
    }

    /* Dashboard */
    .dashboard-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .dashboard-right {
        display: none; /* Ocultamos los círculos 3D en móvil para dar espacio a los servicios */
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Pantallas de Detalle Tecnológico */
    .tech-detail-screen {
        padding: 90px 1.5rem 30px;
    }
    .tech-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Swiper y Carruseles */
    .swiper-section {
        padding-top: 1rem;
    }
    .portfolio-swiper, .tech-portfolio-swiper {
        width: 100%;
        max-width: 340px;
        height: auto;
        min-height: 500px;
    }
    .service-card, .tech-service-card {
        width: 100%;
        height: 100%;
        min-height: 480px;
    }
}

/* Optimizaciones específicas para móviles pequeños */
@media (max-width: 480px) {
    /* Botones y Tipografía de Portada */
    .intro-content-wrapper {
        padding: 1.75rem 1.25rem 2.5rem;
        gap: 1.25rem;
    }
    .intro-left-panel {
        gap: 1.25rem;
    }
    .intro-title-large {
        font-size: 2.6rem;
    }
    .intro-title-sub {
        font-size: 2rem;
    }
    .intro-actions-group {
        flex-direction: column;
        width: 100%;
        max-width: 290px;
        gap: 0.65rem;
    }
    .intro-enter-btn, .intro-info-btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
    .intro-brand-logo {
        width: 54px;
        height: 54px;
    }
    .intro-brand-details h3 {
        font-size: 1.45rem;
    }
    .intro-right-panel {
        padding-bottom: 2.5rem; /* Margen respirable clave en móviles pequeños */
    }
    .intro-mascot-img {
        max-height: 38vh;
        max-width: 280px;
    }

    /* Navbar */
    .header-container {
        padding: 1rem;
    }
    .logo-text .logo-name {
        font-size: 1rem;
    }
    .logo-icon-wrapper {
        width: 36px;
        height: 36px;
    }
    
    /* Swiper / Tarjetas */
    .portfolio-swiper, .tech-portfolio-swiper {
        max-width: 300px;
        min-height: 480px;
    }
    .service-card, .tech-service-card {
        min-height: 460px;
        padding: 1.5rem;
    }
    .card-content {
        padding: 1rem;
    }
    .image-placeholder {
        height: 120px;
    }
    
    /* Ajustes varios */
    .mission-screen {
        padding: 80px 1rem 30px;
    }
    .glass-card {
        padding: 1.5rem;
    }
    .sede-panel-card {
        padding: 1.5rem;
    }
    .hero-title {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   17. REDISEÑO RESPONSIVO MÓVIL PANTALLAS DE TECNOLOGÍA
   ========================================================================== */

@media (max-width: 991px) {
    /* Pantalla contenedora de detalle: espacio suficiente para el header fijo + botón de regresar */
    .tech-detail-screen,
    .rmn-detail-screen,
    .tac-detail-screen,
    .eco-detail-screen {
        padding: 130px 1rem 40px 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Secciones visualizadoras */
    .rmn-visualizer-section,
    .eco-visualizer-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Pestañas de alternancia de equipos (flex-wrap adaptable y compacto) */
    .tech-tab-group {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 0.5rem !important;
        padding: 0.5rem !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.7) !important;
        backdrop-filter: blur(15px) !important;
        margin: 0 auto 1.5rem auto !important;
    }

    .tech-tab-btn {
        flex: 1 1 auto !important;
        min-width: 130px !important;
        max-width: 100% !important;
        width: auto !important;
        justify-content: center !important;
        padding: 0.65rem 1rem !important;
        font-size: 0.85rem !important;
        border-radius: 99px !important;
    }

    /* Navegación y Botón Volver */
    .swiper-back-nav {
        top: 72px !important;
        padding: 0.5rem 1rem !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        display: flex !important;
        justify-content: center !important;
    }

    .swiper-back-btn {
        width: 100% !important;
        max-width: 480px !important;
        margin: 0 auto !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: 0 4px 15px rgba(10, 58, 117, 0.08) !important;
        border: 1px solid rgba(0, 102, 204, 0.2) !important;
        padding: 0.6rem 1.25rem !important;
    }

    /* Contenedores interactivos principales (Centrados en pantalla de teléfono) */
    .rmn-interactive-container, 
    .tac-interactive-container, 
    .rx-interactive-container,
    .arcoc-interactive-container,
    .dexa-interactive-container,
    .mamografia-interactive-container,
    .unidades-moviles-interactive-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        transform: none !important;
        margin: 0 auto !important;
        align-self: center !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    /* Imagen Hero de la sala del equipo */
    .rmn-bg-image,
    .tac-bg-image {
        position: relative !important;
        width: 100% !important;
        height: 220px !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 30px rgba(10, 58, 117, 0.12) !important;
        border: 1px solid rgba(10, 58, 117, 0.08) !important;
        margin: 0 0 1.25rem 0 !important;
    }

    .rmn-bg-overlay,
    .tac-bg-overlay {
        border-radius: 20px !important;
    }

    /* Ocultar SVG en móvil para mantener la interfaz limpia */
    .rmn-connector-svg,
    .tac-connector-svg {
        display: none !important;
    }

    /* Tarjetas de información / Callouts en flujo vertical centrado */
    .rmn-callout,
    .tac-callout {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 1rem 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        border-radius: 18px !important;
        padding: 1.2rem 1.35rem !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid rgba(10, 58, 117, 0.12) !important;
        box-shadow: 0 8px 25px rgba(10, 58, 117, 0.06) !important;
        backdrop-filter: blur(10px) !important;
        box-sizing: border-box !important;
    }

    .rmn-callout .callout-header,
    .tac-callout .callout-header {
        font-size: 1.05rem !important;
        color: #0a3a75 !important;
        margin-bottom: 0.5rem !important;
    }

    .rmn-callout p,
    .tac-callout p {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
        color: var(--text-secondary) !important;
    }

    .rmn-callout .callout-list li,
    .tac-callout .callout-list li {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        color: var(--text-secondary) !important;
    }
}


/* ==========================================================================
   16. ESTILOS PRESENTACIÓN UNIDADES MÓVILES (MOCKUP INTRO)
   ========================================================================== */
.moviles-intro-banner-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 3rem auto;
    padding: 1.5rem;
}

.moviles-intro-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    background: #ffffff;
    border-radius: 32px;
    padding: 3rem 2.5rem;
    box-shadow: 0 15px 40px rgba(10, 58, 117, 0.06);
    border: 1px solid rgba(10, 58, 117, 0.08);
    position: relative;
    overflow: hidden;
}

.moviles-intro-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.moviles-title-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.moviles-title-sub {
    font-family: 'Outfit', sans-serif !important;
    font-size: 3.8rem !important;
    font-weight: 300 !important;
    font-style: italic !important;
    color: #0088cc !important;
    letter-spacing: 0.02em !important;
    line-height: 0.9 !important;
    margin: 0 !important;
}

.moviles-title-main {
    font-family: 'Outfit', sans-serif !important;
    font-size: 5.2rem !important;
    font-weight: 900 !important;
    font-style: italic !important;
    color: #0066cc !important;
    letter-spacing: -0.02em !important;
    line-height: 0.9 !important;
    margin: 0 !important;
}

.moviles-title-line {
    width: 85%;
    height: 5px;
    background: linear-gradient(90deg, #0066cc 0%, #00bfff 70%, transparent 100%);
    border-radius: 99px;
    margin-top: 0.8rem;
    margin-bottom: 1.5rem;
}

.moviles-text-p1, .moviles-text-p2 {
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
    color: #005599 !important;
    font-style: italic !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
    text-align: justify !important;
}

.moviles-buttons-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: center;
}

.movil-btn {
    padding: 0.75rem 2.4rem;
    border-radius: 99px;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-movil-01 {
    border: 2px solid #e64980;
    color: #e64980 !important;
    box-shadow: 0 4px 15px rgba(230, 73, 128, 0.12);
}

.btn-movil-01:hover {
    background: #e64980;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 73, 128, 0.3);
}

.btn-movil-02 {
    border: 2px solid #0066cc;
    color: #0066cc !important;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.12);
}

.btn-movil-02:hover {
    background: #0066cc;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

/* Marco Curvo Fotografía Derecha */
.moviles-intro-right {
    height: 100%;
    min-height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moviles-curved-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: flex;
}

.moviles-curved-mask {
    width: 100%;
    height: 100%;
    border-top-left-radius: 50% 100%;
    border-bottom-left-radius: 50% 100%;
    overflow: hidden;
    position: relative;
    box-shadow: -10px 0 25px rgba(0, 102, 204, 0.15);
}

.moviles-curved-border {
    position: absolute;
    top: 0;
    left: -8px;
    width: 100%;
    height: 100%;
    border-top-left-radius: 50% 100%;
    border-bottom-left-radius: 50% 100%;
    border-left: 8px solid #0066cc;
    pointer-events: none;
    z-index: 5;
}

.moviles-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.moviles-curved-mask:hover .moviles-banner-img {
    transform: scale(1.04);
}

/* Responsividad para el Banner */
@media (max-width: 991px) {
    .moviles-intro-container {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    
    .moviles-title-sub {
        font-size: 2.6rem !important;
    }
    
    .moviles-title-main {
        font-size: 3.4rem !important;
    }
    
    .moviles-intro-right, .moviles-curved-wrapper {
        min-height: 280px;
    }
    
    .moviles-curved-mask, .moviles-curved-border {
        border-radius: 20px;
        border-left: none;
    }
    
    .moviles-buttons-group {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .moviles-intro-container {
        padding: 1.5rem 1.15rem;
        border-radius: 24px;
    }

    .moviles-title-sub {
        font-size: 2rem !important;
    }
    
    .moviles-title-main {
        font-size: 2.7rem !important;
    }

    .moviles-text-p1, .moviles-text-p2 {
        font-size: 0.95rem !important;
        text-align: left !important;
    }
    
    .moviles-buttons-group {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
    }
    
    .movil-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 1rem !important;
    }

    .moviles-intro-right, .moviles-curved-wrapper {
        min-height: 220px;
    }
}

@media (max-width: 480px) {
    .moviles-title-sub {
        font-size: 1.8rem !important;
    }
    
    .moviles-title-main {
        font-size: 2.4rem !important;
    }
}

/* ==========================================================================
   MODAL INTERACTIVO DE CÓDIGOS CUPS (GLASSMORPHISM & ACCESIBILIDAD)
   ========================================================================== */
.cups-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 25, 47, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cups-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cups-modal-container {
    width: 100%;
    max-width: 850px;
    max-height: 85vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 246, 255, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 24px 60px rgba(10, 58, 117, 0.28), 0 0 0 1px rgba(10, 58, 117, 0.08);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cups-modal-overlay.open .cups-modal-container {
    transform: scale(1) translateY(0);
}

.cups-modal-header {
    padding: 1.25rem 2rem;
    background: linear-gradient(90deg, #0a3a75 0%, #0066cc 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cups-modal-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cups-modal-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.cups-modal-icon-badge i,
.cups-modal-icon-badge svg {
    width: 24px;
    height: 24px;
}

.cups-modal-title {
    font-family: 'Outfit', 'Lato', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.cups-modal-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 2px;
}

.cups-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cups-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.cups-modal-close i,
.cups-modal-close svg {
    width: 20px;
    height: 20px;
}

.cups-modal-toolbar {
    padding: 1.25rem 2rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(10, 58, 117, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.cups-search-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.cups-search-icon {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: #0066cc;
    pointer-events: none;
}

.cups-modal-search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.75rem;
    border: 2px solid rgba(10, 58, 117, 0.12);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #0a3a75;
    background: #f8fbff;
    transition: all 0.25s ease;
}

.cups-modal-search-input:focus {
    outline: none;
    border-color: #0066cc;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12);
}

.cups-search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #88a4c8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.cups-search-clear:hover {
    color: #e64980;
}

.cups-search-clear i,
.cups-search-clear svg {
    width: 18px;
    height: 18px;
}

.cups-stat-badge {
    background: rgba(0, 102, 204, 0.08);
    color: #0066cc;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    white-space: nowrap;
}

.cups-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #ffffff;
}

.cups-modal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cups-modal-table th {
    position: sticky;
    top: 0;
    background: #edf4fc;
    color: #0a3a75;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid rgba(10, 58, 117, 0.1);
    z-index: 2;
}

.cups-modal-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(10, 58, 117, 0.06);
    font-size: 0.95rem;
    color: #334e68;
    vertical-align: middle;
    transition: background 0.15s ease;
}

.cups-modal-table tbody tr:hover td {
    background: rgba(0, 102, 204, 0.04);
}

.cups-code-badge {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-weight: 800;
    font-size: 0.92rem;
    color: #0052a3;
    background: #e6f0fa;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 102, 204, 0.18);
}

.btn-copy-code {
    background: #f0f6ff;
    border: 1px solid rgba(0, 102, 204, 0.2);
    color: #0066cc;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-copy-code:hover {
    background: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}

.btn-copy-code.copied {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

.btn-copy-code i,
.btn-copy-code svg {
    width: 14px;
    height: 14px;
}

.cups-highlight {
    background: #ffe066;
    color: #000000;
    font-weight: 700;
    padding: 0 2px;
    border-radius: 3px;
}

.cups-modal-empty {
    padding: 3.5rem 2rem;
    text-align: center;
    color: #829ab1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.cups-modal-empty i,
.cups-modal-empty svg {
    width: 42px;
    height: 42px;
    color: #bcccdc;
}

.cups-modal-footer {
    padding: 1rem 2rem;
    background: #f8fbff;
    border-top: 1px solid rgba(10, 58, 117, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: #627d98;
}

.cups-modal-footer span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cups-modal-footer span i,
.cups-modal-footer span svg {
    width: 16px;
    height: 16px;
    color: #0066cc;
}

.cups-btn-secondary {
    background: #e4eefb;
    border: none;
    color: #0a3a75;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cups-btn-secondary:hover {
    background: #d0e2f9;
}

@media (max-width: 640px) {
    .cups-modal-container {
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
    }
    
    .cups-modal-header {
        padding: 1rem 1.25rem;
    }

    .cups-modal-toolbar {
        padding: 1rem 1.25rem;
        flex-direction: column;
        align-items: stretch;
    }

    .cups-modal-footer {
        padding: 0.85rem 1.25rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}
