

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');



/* Variables de colores según paleta del usuario */
:root {
    --primary-blue: #1d202b; /* Azul oscuro */
    /* --secondary-blue: #3b82f6; Azul claro */
    --secondary-blue: #293447; /* Azul intermedio */
    --accent-orange: #db6007; /* Naranja */
    --dark-gray: #374151; /* Gris oscuro */
    --light-gray: #f3f4f6; /* Gris claro */
    --white: #ffffff;
    --black: #000000;
}

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


body {
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    font-size: 17px;;
}

.border-color{
    /* border-color:  !important; */
    box-shadow: 5px 5px 10px ;

}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header.header--overlay {
    position: fixed;
    width: 100%;
    background: transparent;
    box-shadow: none;
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.header.header--overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    opacity: 0;
    transition: opacity 0.6s ease;
}

.header.header--overlay.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header.header--overlay.is-scrolled::before {
    opacity: 1;
}

.header.header--dynamic .navbar {
    position: relative;
    z-index: 1;
    padding: 1rem 0;
    transition: padding 0.45s ease;
}

.header.header--dynamic .navbar-logo,
.header.header--dynamic .navbar-text-logo,
.header.header--dynamic .nav-link {
    transition: max-height 0.45s ease, max-width 0.45s ease, padding 0.45s ease, font-size 0.45s ease, opacity 0.45s ease, margin 0.45s ease;
}

.header.header--dynamic .navbar.is-compact {
    padding: 0.35rem 0 !important;
}

.header.header--dynamic .navbar.is-compact .navbar-logo {
    max-height: 48px !important;
}

.header.header--dynamic .navbar.is-compact .navbar-text-logo {
    max-height: 28px !important;
}

.header.header--dynamic .navbar.is-compact .navbar-text-logo {
    max-width: 0 !important;
    margin-left: 0 !important;
    opacity: 0 !important;
    transform: scaleX(0);
    transform-origin: left center;
    visibility: hidden;
    pointer-events: none;
}

.header.header--dynamic .navbar.is-compact .nav-link {
    padding: 0.25rem 0.7rem !important;
    font-size: 0.95rem;
}

@media (max-width: 991px) {
    .header.header--overlay {
        position: sticky; /* o "relative", según cómo lo tengas armado en desktop */
        background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }

    .header.header--overlay::before {
        display: none; /* ya no hace falta el fade de scroll en mobile, el fondo es fijo */
    }

    /* El menú desplegable de Bootstrap también necesita fondo sólido propio */
    .navbar-collapse {
        background: var(--primary-blue);
        margin-top: 0.5rem;
        padding: 1rem;
        border-radius: 8px;
    }
}


.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white) !important;
    gap: 0.75rem;
    flex-wrap: wrap;
}

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

.navbar-logo{
    max-height: 70px;
    width: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}
.navbar-text-logo {
    max-height: 35px;
    width: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.navbar-text-logo {
    max-width: 200px;
}

@media (max-width: 767px) {
    .navbar-brand {
        gap: 0.5rem;
    }

    .navbar-logo{
        max-height: 60px;
    }
    .navbar-text-logo {
        max-height: 30px;
        margin-left: 35px;
    }
}

@media (max-width: 991px) {
    .navbar {
        position: relative; /* para que el collapse absolute se ancle acá */
    }

    .navbar-collapse {
        position: absolute;
        top: 100%; /* lo pega justo debajo del navbar */
        left: 0;
        right: 0;
        background: var(--primary-blue);
        margin-top: 0.5rem;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
        z-index: 1050; /* por encima del contenido del hero */
        max-height: 80vh;
        overflow-y: auto; /* por si el menú es más largo que la pantalla */
    }
}

.section-fade {
    position: absolute;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1;
    pointer-events: none;
}

.section-fade--top {
    top: 0;
    background: linear-gradient(to bottom, rgba(3, 7, 18, 0.97), transparent);
}

.section-fade--bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.95), transparent);
}

@media (max-width: 767px) {
    .section-fade { height: 90px; }
}

.services-section,
.about-section,
.authorities-section,
.institutional-section,
.treatment-section {
    position: relative;
}

.hero-section::before { z-index: -2; }
.hero-video { z-index: -1; }
.hero-section::after { z-index: 0; }
.hero-section .container { z-index: 1; }

/* .hero-video {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* o "50% 0%" */
    /* z-index: -1; */

/* 
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 30%,
        black 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 300%,
        black 120%
    );

    opacity: 0.85;
} */

/* @media (max-width: 991px) {
    .hero-video {
        display: none; 
    }
} */ 

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-orange) !important;
}

.navbar-toggler {
    border-color: var(--white);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.5) 45%, rgba(2, 6, 23, 0.9) 100%),
        url('../img/modern-crop-u100-transformed.png') center 35% / cover no-repeat;
    background-attachment: scroll;
    animation: hero-image-breathe 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hero-section::before {
        background-position: 55% 35%;
    }
}

/* .galeriaSeccion{
    justify-content: center;
    display: flex;
    width: auto;
    height: 600px;
    contain: layout paint;
}
.galeriaSeccion-item{
    position: relative;
    flex: 1 1 0;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0px 0px 12px 8px #000000;
    transform: scaleX(1);
    transform-origin: center;
    transition: transform 0.6s ease;
    will-change: transform;
}
.galeriaSeccion-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 1s ease;
    
}
.galeriaSeccion-item:first-child {
    transform-origin: left center;
}
.galeriaSeccion-item:last-child {
    transform-origin: right center;
}
.galeriaSeccion-item::after{
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.78) 0%, rgba(3, 7, 18, 0.5) 35%, rgba(3, 7, 18, 0.1) 68%, transparent 100%);
    pointer-events: none;
}
.galeriaSeccion-caption{
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1rem 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--white);
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0s linear 0s;
}
.galeriaSeccion-caption h2 {
    position: absolute;
    bottom: 150%;
    left: 50%;
    width: 100%;
    max-width: calc(100% - 1.5rem);
    margin: 0;
    padding: 0.45rem 1rem;
    transform: translate(-50%, 50%);
    background: rgba(8, 16, 36, 0.05);
    box-shadow: 0 0 5px 5px rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border-radius: 10px;
    font-size: 2rem;
    line-height: 1.2;
}
.galeriaSeccion-caption span {
    display: block;
    font-size: 1.5rem;
    line-height: 1.2;
}
.galeriaSeccion-item:hover{
    transform: scaleX(1.35);
    z-index: 2;
}
.galeriaSeccion-item:hover img,
.galeriaSeccion-item:focus-within img{
    opacity: 1;
   
}
.galeriaSeccion-item:hover .galeriaSeccion-caption,
.galeriaSeccion-item:focus-within .galeriaSeccion-caption{
    opacity: 1;
    transition: opacity 0.2s ease 1s;
}

@media screen and (max-width: 767px) {
    .galeriaSeccion{
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 1rem;
        height: auto;
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    .galeriaSeccion-item,
    .galeriaSeccion-item:hover{
        width: 100%;
        min-height: 360px;
        height: 360px;
        flex-grow: 0;
    }
    .galeriaSeccion-caption{
        opacity: 1;
        transition: none;
    }
    .galeriaSeccion-caption h2 {
        position: relative;
        bottom: auto;
        left: auto;
        width: auto;
        max-width: none;
        margin: 0 0 0.75rem;
        padding: 0;
        transform: none;
        background: none;
        box-shadow: none;
        font-size: 1.35rem;
    }
    .galeriaSeccion-caption span {
        font-size: 1rem;
    }
    .galeriaSeccion-item:hover img{
        opacity: 1;
        filter: contrast(120%);
    }
} */



@keyframes hero-image-breathe {
    from {
        transform: scale(1.02);
    }
    to {
        transform: scale(1.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 0.95;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 1.5rem;
    position: relative;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    max-width: 760px;
}

.hero-title span {
    display: block;
    color: var(--accent-orange);
}

.text-orange{
    color: var(--accent-orange);
}

@media (min-width: 992px) and (max-height: 800px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.text-orange{
    color: var(--accent-orange)
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    position: relative;
.galeriaSeccion-item::after{
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.78) 35%, rgba(3, 7, 18, 0.2) 68%, transparent 100%);
    pointer-events: none;
}
    max-width: 720px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-buttons {
    position: relative;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
    z-index: 2;
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1rem;
    }
}

/* Fondos y contraste de las vistas internas */
.history-section {
    padding: 5rem 0;
    color: var(--white);
    background: linear-gradient(135deg, rgba(6, 59, 76, 0.97), rgba(8, 35, 94, 0.94)), url('../img/captura1.png') center/cover fixed no-repeat;
    overflow: hidden;
}

.history-intro {
    max-width: 850px;
    padding: 4rem 0 5rem;
    position: relative;
}

.history-kicker {
    color: var(--accent-orange);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.history-title {
    font-size: clamp(3rem, 7vw, 6.4rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 2rem;
    max-width: 800px;
    text-wrap: balance;
}

.history-title span {
    color: var(--accent-orange);
}

.history-lead {
    border-left: 3px solid var(--accent-orange);
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.55;
    margin: 0;
    max-width: 730px;
    padding-left: 1.25rem;
}

.history-scroll-cue {
    align-items: center;
    color: var(--white);
    display: inline-flex;
    font-size: 0.9rem;
    gap: 0.75rem;
    margin-top: 2.5rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.history-scroll-cue i {
    color: var(--accent-orange);
    animation: history-arrow-bounce 1.6s ease-in-out infinite;
}

.history-content {
    max-width: 980px;
    position: relative;
}

.history-content > .row {
    position: relative;
    z-index: 1;
}

.history-content .col-lg-12 {
    padding-left: 3.5rem;
}

.history-marker {
    background: rgba(255, 255, 255, 0.25);
    bottom: 0;
    left: 0.7rem;
    position: absolute;
    top: 0;
    width: 2px;
}

.history-marker::before {
    background: var(--accent-orange);
    border: 5px solid rgba(6, 59, 76, 0.95);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(219, 96, 7, 0.6);
    content: '';
    height: 18px;
    left: -8px;
    position: absolute;
    top: 0;
    width: 18px;
}

.history-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease var(--history-delay), transform 0.7s ease var(--history-delay);
}

.history-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.history-image {
    margin: 2.5rem 0;
}

@media (min-width: 768px) {
    .history-image--right {
        float: right;
        margin: 0.5rem 0 1.5rem 2rem;
        width: 42%;
    }

    .history-image--left {
        float: left;
        margin: 0.5rem 2rem 1.5rem 0;
        width: 46%;
    }

    .history-image--pair {
        display: grid;
        gap: 0.35rem;
        grid-template-columns: 1fr 1fr;
    }

    .history-image--pair h6 {
        grid-column: 1 / -1;
    }

    .history-content::after {
        clear: both;
        content: '';
        display: table;
    }
}

.history-image img {
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease;
}

.history-image img:hover {
    transform: scale(1.02);
}

.history-sources {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin-top: 3rem;
    padding-top: 1.5rem;
}

@keyframes history-arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@media (max-width: 767px) {
    .history-intro { padding: 2rem 0 3.5rem; }
    .history-content .col-lg-12 { padding-left: 2rem; }
    .history-marker { left: 0.25rem; }
    .history-image--right,
    .history-image--left {
        float: none;
        width: 100%;
    }
}

.visitas-section {
    padding: 5rem 0;
    color: var(--white);
    background: linear-gradient(315deg, rgba(37, 75, 99, 0.95), rgba(5, 11, 26, 0.91)), url('../img/captura3.png') center/cover no-repeat;
}

.history-section .section-subtitle,
.history-section .text-muted,
.visitas-section .text-muted {
    color: rgba(255, 255, 255, 0.82) !important;
}

.history-section ol,
.history-section li {
    color: rgba(255, 255, 255, 0.9);
}

/* Services Section */
.services-section {
    min-height: 80vh;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.services-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.5) 45%, rgba(2, 6, 23, 0.9) 100%),
        url('../img/_DSC1555_1.jpg.jpeg') center/cover no-repeat;
    background-position: center, 49% 0%; /* el primero es para el gradiente, el segundo para la imagen */
    background-size: cover, 120%; /* el gradiente en "cover", la imagen al 160% de su tamaño */
    background-repeat: no-repeat, no-repeat;;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    margin: 3rem 0;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}



/* About Section */
.about-section {
    min-height: 80vh;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.about-section .section-fade {
    z-index: 2;
}

.about-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.5) 45%, rgba(2, 6, 23, 0.9) 100%),
        url('../img/_DSC0207_3.jpg.jpeg') center/cover no-repeat;
}


.about-section .container {
    position: relative;
    z-index: 3;
    margin-top: 5rem;
}

.section-title {
    color: var(--accent-orange);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-orange);
    margin-top: 1rem;
}

.section-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    text-align: center;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.75);
    opacity: 0.6;
}

/* Authorities Section */
.authorities-section {
    min-height: 80vh;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.authorities-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 11, 26, 0.94), rgba(17, 28, 58, 0.88)),
        url('../img/_DSC1609.jpg.jpeg');
    z-index: 1;
    pointer-events: none;
    background-position: center, 49% 60%;
    background-size: cover, 100%;
    background-repeat: no-repeat, no-repeat;
}

@media (max-width: 767px) {
    .authorities-section::before {
        background-size: cover;
    }
    .about-section::before {
        background-size: cover; /* volvemos a un solo valor simple si no hace falta el zoom extra en mobile */
    }
    .treatment-section::before {
        background-size: cover; /* volvemos a un solo valor simple si no hace falta el zoom extra en mobile */
    }
    .services-section::before {
        background-size: cover; /* volvemos a un solo valor simple si no hace falta el zoom extra en mobile */
    }
}

.authorities-section .container{
    position: relative;
    z-index: 3;
    margin-top: 5rem;
}

.authority-card {
    position: relative;
    min-height: 390px;
    width: 100% !important;
    background: var(--primary-blue);
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    
    height: 100%;
    max-width: 24rem;
    margin: 0 auto;
}

.authority-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.78) 15%, rgba(3, 7, 18, 0.2) 30%, transparent 100%);
    pointer-events: none;
}

.authority-card .card-img-top {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--img-pos, 50% 30%);
    transform: scale(var(--img-zoom, 1.4));
    transform-origin: var(--img-origin, 50% 30%);
    /* transition: transform 0.35s ease; */
}

.authority-card .card-body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 1rem 1.5rem 1.4rem;
    color: var(--white);
}

.authority-card .card-title {
    margin-bottom: 0.5rem;
    color: var(--accent-orange);
    letter-spacing: 0.04em;
}

.authority-card .card-text {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95);
}

.authorities-section .row {
    justify-content: center;
}

.authority-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2.5rem;
}

.authority-card h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.authority-role {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Institutional Section */
.institutional-section {
    padding: 5rem 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.5) 45%, rgba(2, 6, 23, 0.9) 100%),
        url('../img/_DSC1744.jpg.jpeg') center/cover no-repeat;
}

.container-items {
  display: flex;
  gap: 1rem;
  transform-style: preserve-3d;
  transform: perspective(1000px);
}
.item-color {
  position: relative;
  flex: 1 1 0;
  min-width: 0; /* evita que flex-basis empuje el ancho más de la cuenta */
  aspect-ratio: 3 / 4; /* mantiene proporción alto/ancho en vez de un height fijo */
  overflow: hidden;
  border: none;
  outline: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.1);
}
.item-color:hover {
  transform: scale(1.15);
  z-index: 99999;
}
.item-color .ajuste {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.item-color:hover + * {
  transform: scale(1.08);
  z-index: 9999;
}
.item-color:hover + * + * {
  transform: scale(1.04);
  z-index: 999;
}
.item-color:has(+ *:hover) {
  transform: scale(1.08);
  z-index: 9999;
}
.item-color:has(+ * + *:hover) {
  transform: scale(1.04);
  z-index: 999;
}
@media (max-width: 767px) {
  .container-items {
    flex-direction: column;
    gap: 0.75rem;
  }

  .item-color {
    flex: none;      /* ← clave: anula el flex-basis:0 heredado */
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .item-color:hover,
  .item-color:hover + *,
  .item-color:hover + * + *,
  .item-color:has(+ *:hover),
  .item-color:has(+ * + *:hover) {
    transform: none;
  }
}

.item-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0.5rem 0.4rem;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.9), transparent);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    pointer-events: none;
}

@media (max-width: 767px) {
    .item-label {
        font-size: 0.95rem;
        padding: 0.6rem;
    }
}

/* Treatment Section */
.treatment-section {
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.treatment-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 11, 26, 0.94), rgba(17, 28, 58, 0.88)), url('../img/_DSC1290.jpg.jpeg') center/cover no-repeat;

}

.treatment-section .container {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.treatment-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.treatment-grid > .col-md-6 {
    display: flex;
    padding: 0;
    width: auto;
}

.treatment-grid > .col-12 {
    grid-column: 1 / -1;
    text-align: center;
}

.treatment-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    gap: 1.5rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin: 0;
    width: 100%;
}

.treatment-card > .row {
    align-items: center;
    margin: 0;
    width: 100%;
}

.treatment-card:hover {
    transform: translateX(10px);
}

.treatment-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-orange));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.treatment-card h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.treatment-card p {
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Procedures Section */
.procedures-section {
    padding: 5rem 0;
    color: var(--white);
    background: linear-gradient(315deg, rgba(37, 75, 99, 0.95), rgba(5, 11, 26, 0.91)), url('../img/captura3.png') center/cover no-repeat;
}

.procedures-list {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
}

.procedure-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.procedure-item:last-child {
    border-bottom: none;
}

.procedure-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.procedure-content h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.procedure-content p {
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section .section-title::after {
    background: var(--accent-orange);
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    color: var(--accent-orange);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.contact-form {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    color: var(--dark-gray);
}

.contact-form h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    color: var(--dark-gray);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Footer */
.footer {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 1rem 0rem;
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--accent-orange);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer-links h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li a,
.footer-links li {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-social h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    color: var(--white);
}

.social-icons a i {
    font-size: 1rem;
    flex-shrink: 0;
}

.social-icons a span {
    display: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    margin-bottom: 0;
    padding-top: 1rem;
    padding-bottom: 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer-emails li {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: flex-start;
    word-break: break-word;
}

.footer-emails a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-emails a:hover {
    color: var(--accent-orange);
}
.linea-vertical {
  border-left: 2px solid #ffffff; /* Grosor, tipo de línea y color */
  height: 250px;              /* Altura de la línea */
  display: inline-block;      /* Opcional para que se comporte en línea */
}

.disabled-link {
  pointer-events: none;
  color: gray;
}



/* Botones */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange));
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-orange));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.service-card .btn-outline-primary {
    --bs-btn-color: var(--white);
    --bs-btn-border-color: var(--accent-orange);
    --bs-btn-hover-color: var(--white);
    --bs-btn-hover-border-color: var(--accent-orange);
    background: linear-gradient(135deg, var(--accent-orange));
    border-color: var(--accent-orange) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
}

.service-card .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--accent-orange));
    border-color: var(--accent-orange) !important;
    color: var(--white) !important;
    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.4);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* Estilo común para todas las acciones */
.btn-primary,
.btn-outline-primary,
.btn-outline-light {
    background: linear-gradient(135deg, var(--accent-orange));
    border: 2px solid var(--accent-orange) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover,
.btn-outline-primary:hover,
.btn-outline-light:hover {
    background: linear-gradient(135deg, var(--accent-orange));
    border-color: var(--accent-orange) !important;
    color: var(--white) !important;
    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

.line-height{
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-image {
        font-size: 6rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-image {
        font-size: 5rem;
    }
    
    .treatment-grid {
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .treatment-card {
        flex-direction: column;
        text-align: center;
    }
    
    .treatment-icon {
        margin: 0 auto 1rem;
    }
    
    .procedure-item {
        flex-direction: column;
        text-align: center;
    }
    
    .procedure-number {
        margin: 0 auto 1rem;
    }

    .imagenMedia {
        width: 300px;
    }
}

/*estilo de visitas*/
/* =====================================================
   MODAL
   ===================================================== */

.mi-modal {
    display: none;

    position: fixed !important;

    top: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    margin: 0 !important;
    padding: 0 !important;

    background: rgba(0, 0, 0, 0.70);

    z-index: 999999 !important;
}


/* =====================================================
   CONTENIDO DEL MODAL
   ===================================================== */

.mi-modal-contenido {

    position: fixed !important;

    top: 50% !important;
    left: 50% !important;

    transform: translate(-50%, -50%) !important;

    width: 90vw !important;
    height: 90vh !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff;

    border-radius: 10px;

    overflow: hidden;

    box-sizing: border-box;

    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
}


/* =====================================================
   IFRAME
   ===================================================== */

.mi-modal-iframe {

    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
}


/* =====================================================
   BOTÓN CERRAR
   ===================================================== */

.mi-modal-cerrar {

    position: absolute !important;

    top: 8px !important;
    right: 12px !important;

    width: 35px;
    height: 35px;

    line-height: 32px;

    text-align: center;

    font-size: 28px;
    font-weight: bold;

    color: #333;

    background: white;

    border-radius: 50%;

    cursor: pointer;

    z-index: 1000000 !important;

    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}


.mi-modal-cerrar:hover {
    background: red;
    color: white;
}


/* =====================================================
   CELULAR
   ===================================================== */

@media (max-width: 600px) {

    .mi-modal-contenido {

        width: 96vw !important;
        height: 94vh !important;

    }

}
    /*fin estilo visitas*/