/* ==========================================================================
   1. ESTRUCTURA Y CUERPO
   ========================================================================== */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    background: url("logos/fondo2.webp") no-repeat center center fixed;
    background-size: cover;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.9;
    z-index: -1;
}

main {
    flex: 1 0 auto;
}

/* ==========================================================================
   2. SECCIÓN MULTIMEDIA (SIMÉTRICA) - ¡AQUÍ ESTÁ LA CORRECCIÓN!
   ========================================================================== */
.media-container {
    position: relative;
    width: 100%;
    height: 550px; /* Altura fija para que ambos sean idénticos */
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.media-container:hover {
    transform: translateY(-5px);
}

.media-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   3. MARQUESINA DE NOTICIAS (AZUL)
   ========================================================================== */
.notice-bar {
    width: 100%;
    background: linear-gradient(135deg, #0d6efd 0%, #0046b1 100%);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 15px 0;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 10;
}

.notice-text {
    display: inline-block;
    animation: scrollNotice 40s linear infinite;
}

.notice-text span {
    display: inline-block;
    padding-right: 50px;
}

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

.notice-bar:hover .notice-text {
    animation-play-state: paused;
}

/* ==========================================================================
   4. MARQUESINA DE LOGOS (IMAGE TRACK)
   ========================================================================== */
.image-marquee {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.image-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: scrollImages 40s linear infinite; 
}

.iconito {
    height: 70px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: transform 0.3s;
}

.iconito:hover {
    transform: scale(1.1);
    opacity: 1;
}

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

/* ==========================================================================
   5. BUSCADOR Y TARJETAS
   ========================================================================== */
.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    top: 50%; left: 15px;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #555;
    z-index: 5;
}

.search-box input {
    padding-left: 45px;
    font-size: 1.1rem;
    height: 50px;
    background-color: #E6F7FF !important;
    border-radius: 10px;
    border: 1px solid #b3e5fc;
}

#busquedaa {
    border: 3px solid transparent;
    border-radius: 10px;
    background:
        linear-gradient(#E6F7FF, #E6F7FF) padding-box,
        conic-gradient(from var(--angle), #00aaff, #d471fcff, #fa1b1bff, #00aaff) border-box;
    animation: spinBorder 3s linear infinite;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes spinBorder {
    to { --angle: 360deg; }
}

.card-custom {
    border: none;
    background: transparent;
    box-shadow: none;
}

.card-custom img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
}

/* ==========================================================================
   6. BOTONES Y PESTAÑAS FLOTANTES
   ========================================================================== */
.btn-maps {
    position: absolute;
    background: transparent;
    color: #fff;
    font-weight: bold;
    padding: 10px 16px;
    border-radius: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid red;
    font-size: 1rem;
    animation: neonGlow 1.5s infinite alternate;
    transition: background 0.3s, color 0.3s;
    z-index: 10;
}

@keyframes neonGlow {
    0% { border-color: red; box-shadow: 0 0 5px red, 0 0 15px red; }
    100% { border-color: blue; box-shadow: 0 0 5px blue, 0 0 15px blue; }
}

.btn-maps.bunker1 { bottom: 65px; right: 15px; }
.btn-maps.bunker2 { bottom: 15px; right: 15px; }
.btn-left { bottom: 15px; left: 15px; }

.floating-tab {
    position: fixed;
    top: 20px; right: 0;
    z-index: 9999;
    transform: translateX(2%);
    transition: transform 0.4s ease;
}

.floating-tab img {
    height: 120px;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.floating-tab:hover { transform: translateX(0); }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
footer {
    flex-shrink: 0;
    background: #212529;
    border-top: 3px solid #00aaff;
    color: #fff;
    padding: 20px 0;
}

footer .system-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #00cfff;
}

/* ==========================================================================
   8. RESPONSIVO
   ========================================================================== */
@media (max-width: 768px) {
    .btn-maps { font-size: 0.8rem; padding: 6px 12px; }
    .floating-tab { top: auto; bottom: 125px; left: 15px; right: auto; transform: none; }
    .floating-tab img { height: 80px; border-radius: 12px; }
    .media-container { height: 450px; } /* Más pequeño en móviles */
}

@media (max-width: 480px) {
    .btn-maps { font-size: 0.65rem; padding: 4px 8px; bottom: 20px; }
}
/* ==========================================================================
   EFECTOS LENTE (GLASSMORPHISM)
   ========================================================================== */

/* 1. Fundir la barra con el cuerpo */
.navbar-glass {
    background: rgba(255, 255, 255, 0.65) !important; /* Blanco muy translúcido */
    backdrop-filter: blur(15px); /* Desenfoque fuerte del fondo */
    -webkit-backdrop-filter: blur(15px); /* Soporte para Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Borde sutil iluminado */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); /* Sombra casi invisible */
}

/* 2. Efecto lente para la consulta de medicamentos */
.hero-glass {
    background: rgba(255, 255, 255, 0.75); /* Fondo blanco cristalino */
    backdrop-filter: blur(12px); /* Desenfoque del ladrillo */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 25px; /* Bordes suaves estilo app */
    padding: 40px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); /* Sombra para despegarlo del fondo */
    border: 1px solid rgba(255, 255, 255, 0.6); /* Brillo en el borde superior */
    max-width: 900px;
    margin: 0 auto; /* Centrado perfecto */
}

/* ==========================================================================


.btn-boomker {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid transparent;
}

/* Boomker 1 (Rojo Translúcido) */
.btn-boomker-1 {
    background-color: rgba(220, 53, 69, 0.1); 
    color: #dc3545 !important;
    border-color: rgba(220, 53, 69, 0.3);
}

.btn-boomker-1:hover {
    background-color: #dc3545;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
}

/* Boomker 2 (Azul Translúcido) */
.btn-boomker-2 {
    background-color: rgba(13, 110, 253, 0.1); 
    color: #0d6efd !important;
    border-color: rgba(13, 110, 253, 0.3);
}

.btn-boomker-2:hover {
    background-color: #0d6efd;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.3);
    border-color: #0d6efd;
}

/* Efecto hover suave para el botón de Inicio */
.btn-primary[href="indexv.php"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4) !important;
}