/* 
   ==========================================================================
   ESTILOS INSTITUCIONALES - CLÍNICA BESSONE
   CSS PURO - SIN FRAMEWORKS
   Centralizado en: Principal.css
   ==========================================================================
*/

/* 0. FONTS*/
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/montserrat-v31-cyrillic_cyrillic-ext_latin_latin-ext-regular.woff2') format('woff2');
}

/* Ejemplo para Inter Regular */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/inter-v20-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext-regular.woff2') format('woff2');
}

/* 1. VARIABLES DE MARCA */
:root {
    --verde-bessone: #006837;
    --verde-claro: #8BC53F;
    --gris-fondo: #f4f7f6;
    --blanco: #ffffff;
    --negro-suave: #1c1917;
    --texto-principal: #44403c;
    --texto-secundario: #78716c;
    --borde-suave: #e7e5e4;
    --rojo-error: #a51d1d;
    --sombra-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --sombra-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --fuente-base: 'Montserrat', sans-serif;
    --fuente-secundaria: 'Inter', sans-serif;
    --fuente-logo: 'Open Sans', Arial, sans-serif;
}

/* 2. RESET Y BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--fuente-base);
    background-color: var(--gris-fondo);
    color: var(--texto-principal);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 3. LAYOUT UTILS (Para mantener la flexibilidad) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

/* 3.1 Utilities */
.mb-8 {
    margin-bottom: 2rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4, .grid-cols-5 {
        grid-template-columns: 1fr;
    }

    .md-flex-col {
        flex-direction: column;
    }
}

/* 4. COMPONENTES: HEADER */
.top-bar {
    background: var(--verde-bessone);
    color: white;
    padding: 0.5rem 5%;
    font-size: 0.8rem;
    font-weight: 500;
}

.header-bessone {
    background: var(--blanco);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--texto-principal);
}

    .nav-link:hover, .nav-link.active {
        color: var(--verde-bessone);
    }

/* 5. COMPONENTES: BOTONES */
.btn-bessone {
    background: var(--verde-bessone);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-bessone:hover {
        background: var(--verde-claro);
        transform: translateY(-2px);
    }

/* 6. COMPONENTES: TARJETAS DINÁMICAS (Especialidades/Checks) */
.card-bessone {
    background: var(--blanco);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

    .card-bessone:hover {
        box-shadow: var(--sombra-hover);
        transform: translateY(-5px);
        border-color: var(--borde-suave);
    }

/* ICONOS DINÁMICOS - EL SECRETO DEL DISEÑO */
.icon-container {
    width: 3rem;
    height: 3rem;
    background-color: var(--gris-fondo);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: var(--verde-bessone);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.05);
}

/* Cuando el padre (.group) recibe hover */
.group:hover .icon-container, .card-bessone:hover .icon-container {
    background-color: var(--verde-bessone) !important;
    color: var(--verde-claro) !important;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 15px -3px rgba(0, 104, 55, 0.2);
}

/* 7. CHECK ITEMS (Obras Sociales) */
.check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    transition: 0.3s;
    cursor: default;
}

    .check-item:hover {
        background: var(--blanco);
        box-shadow: var(--sombra-card);
    }

    .check-item span {
        font-weight: 700;
        color: var(--texto-principal);
        transition: 0.3s;
    }

    .check-item:hover span {
        color: var(--verde-bessone);
    }

/* 8. FOOTER */
.footer-bessone {
    background: var(--negro-suave);
    color: var(--blanco);
    padding: 4rem 5%;
}

.footer-title {
    color: var(--verde-claro);
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--texto-secundario);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

    .footer-link:hover {
        color: var(--verde-claro);
    }

/* 9. ANIMACIONES Y EFECTOS */
.hero-overlay-image {
    position: absolute;
    inset: 0;
    background-color: var(--verde-bessone);
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: blur(2px) brightness(0.6) saturate(0.8);
}

.animate-zoom {
    animation: slow-zoom 20s infinite alternate;
}

@keyframes slow-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

.logo {
    text-decoration: none;
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md-flex {
        display: flex;
    }

    .md-block {
        display: block;
    }
}

/* Soporte nativo para Bootstrap Collapse sin romper el diseño custom */
.collapse:not(.show) {
    display: none !important;
}

.collapsing {
    position: relative;
    height: 0;
    overflow: hidden;
    transition: height .35s ease;
}

/* Cambio visual del ícono de menú hamburguesa a 'X' según atributo aria-expanded */
[aria-expanded="true"] .icon-menu {
    display: none !important;
}

[aria-expanded="true"] .icon-close {
    display: block !important;
}

[aria-expanded="false"] .icon-menu {
    display: block !important;
}

[aria-expanded="false"] .icon-close {
    display: none !important;
}

@media (min-width: 768px) {
    .md-flex {
        display: flex;
    }

    .md-block {
        display: block;
    }

    .md-hidden {
        display: none !important;
    }
}

/* 10. TIMELINE (Historia) */
.timeline-container {
    position: relative;
    padding: 2rem 0;
}

    /* La línea vertical */
    .timeline-container::before {
        content: '';
        position: absolute;
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--borde-suave);
    }

@media (min-width: 768px) {
    .timeline-container::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .timeline-item {
        flex-direction: row;
        align-items: center;
    }

        .timeline-item.right {
            flex-direction: row-reverse;
        }
}

/* El círculo del año */
.timeline-dot {
    position: absolute;
    left: 11px;
    width: 20px;
    height: 20px;
    background: var(--verde-claro);
    border-radius: 50%;
    border: 4px solid var(--blanco);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 10;
}

@media (min-width: 768px) {
    .timeline-dot {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-content {
    width: 100%;
    padding-left: 50px;
}

@media (min-width: 768px) {
    .timeline-content {
        width: 45%;
        padding-left: 0;
    }

    .timeline-item.left .timeline-content {
        text-align: right;
        padding-right: 30px;
    }

    .timeline-item.right .timeline-content {
        text-align: left;
        padding-left: 30px;
    }
}

.year-label {
    font-size: 2rem;
    font-weight: 800;
    color: var(--verde-bessone);
    display: block;
    margin-bottom: 0.5rem;
}

.logo {
    font-family: var(--fuente-logo);
    font-weight: 600;
    font-style: normal;
    float: left;
}

    .logo em {
        font-family: initial;
        font-weight: bold;
        font-size: 28px;
    }

/* Forzar a que cualquier SVG generado por Lucide tenga tamaño real */
svg.lucide,
.lucide,
i[data-lucide] svg {
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.msj-ok {
    display: none;
    background: #e6f3eb;
    border: 1px solid #cce8d6;
    color: var(--verde-bessone);
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.msj-error {
    display: none;
    background: #f3e6e6;
    border: 1px solid #e8cccc;
    color: var(--rojo-error);
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}