/* CSS VARIABLES - CUSTOM PALETTE SUITED TO COOP CONTENT (Teal/Blue & Gold Accent) */
:root {
    --bs-primary: #11698e;       /* Tealish Medical Dark Blue */
    --bs-secondary: #f8b400;     /* Muted Warm Gold for Accents / CTAs */
    --bs-dark: #192e35;          /* Rich Dark Slate */
    --bs-light: #faf8f5;         /* Elegant Warm White / Cream */
    --bs-secondary-dark: #2c444e;
}

/* GLOBAL CONFIGURATIONS */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bs-light);
    color: #4a5568;
    overflow-x: hidden;
}

.text-primary { color: var(--bs-primary) !important; }
.bg-primary { background-color: var(--bs-primary) !important; }
.text-dark { color: var(--bs-dark) !important; }
.bg-dark { background-color: var(--bs-dark) !important; }
.bg-light { background-color: var(--bs-light) !important; }

/* BUTTON CUSTOM STYLING */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #0b5271 !important;
    border-color: #0b5271 !important;
}
.btn-secondary {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: #dfa200 !important;
    border-color: #dfa200 !important;
}
.btn-outline-white {
    color: #fff;
    border-color: #fff;
    background-color: transparent;
}
.btn-outline-white:hover {
    background-color: #fff;
    color: var(--bs-primary);
}


/* Control de efectos dinámicos en la galería */
.group-gallery {
    cursor: pointer;
}

.group-gallery .transform {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efecto Zoom en la foto sin salirse del contenedor */
.group-gallery:hover .group-hover-scale {
    transform: scale(1.08);
}

/* Botón transparente adaptado */
.btn-outline-white {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.1);
}
.btn-outline-white:hover {
    background-color: #ffffff;
    color: #11698e;
    border-color: #ffffff;
}

/* SECTION PADDINGS */
.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* HERO SECTION WITH BACKGROUND IMAGE */
/* Asegura la altura del contenedor principal y corrige el comportamiento flex con carruseles */
.hero-section.carousel {
    min-height: 75vh;
    display: flex !important; /* Forza el flex incluso con lógica interna de Bootstrap */
    flex-direction: column;
    justify-content: center;
}

/* Evita distorsiones en los elementos hijos del slider */
.hero-section .carousel-inner {
    display: flex;
    align-items: center;
}

.hero-section .carousel-item {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-slide {
    /* 1. Fuerza a la imagen a cubrir todo el espacio sin deformarse */
    background-size: cover; 
    
    /* 2. Centra la imagen para que el recorte en móviles sea simétrico */
    background-position: center center; 
    
    /* 3. Evita que la imagen se duplique si el contenedor es muy grande */
    background-repeat: no-repeat; 
    
    /* 4. Define el alto que deseas que ocupe en la pantalla */
    height: 75vh;       /* 75% del alto de la ventana del navegador */
    min-height: 500px;  /* Altura mínima segura para pantallas pequeñas/móviles */
}

/* JOIN SECTION WITH BACKGROUND IMAGE */
.join-section {
    background: linear-gradient(rgba(25, 46, 53, 0.85), rgba(17, 105, 142, 0.85)), 
                url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?auto=format&fit=crop&q=80&w=1600') no-repeat center center;
    background-size: cover;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* CONTACT BOX FORM COLOR (Brand Color Background) */
.contact-box {
    background-color: var(--bs-primary);
    border: 1px solid rgba(255,255,255,0.1);
}

/* HOVER LIFTS AND CARD LAYOUTS */
.divider {
    width: 60px;
    height: 4px;
    border-radius: 2px;
}
.icon-box {
    width: 65px;
    height: 65px;
}
.bg-light-primary { background-color: rgba(17, 105, 142, 0.1); }
.bg-light-success { background-color: rgba(40, 167, 69, 0.1); }
.bg-light-warning { background-color: rgba(248, 180, 0, 0.1); }

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
}

/* MULTIMEDIA HOVER OVERLAYS */
.media-hover img {
    transition: transform 0.5s ease;
}
.media-hover:hover img {
    transform: scale(1.05);
}
.media-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

/* FOOTER EXTRA */
.bg-secondary-dark {
    background-color: var(--bs-secondary-dark);
}
.social-icon:hover {
    background-color: var(--bs-secondary) !important;
    color: var(--bs-dark) !important;
    transform: translateY(-3px);
}

/* HELPER UTILITIES */
.max-w-xl { max-width: 600px; }
.max-w-2xl { max-width: 750px; }
.tracking-wider { letter-spacing: 0.05em; }
.fs-7 { font-size: 0.85rem; }
.italic { font-style: italic; }

/* BOUNCE ANIMATION */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.animate-bounce {
    display: inline-block;
    animation: bounce 2s infinite;
}
