/* ====== Tipografia global de la pagina de Inicio ======
   Esta hoja solo se carga en Inicio, asi que forzar Montserrat aqui no afecta
   otras paginas. Se excluyen las fuentes de iconos para no romperlos. */
body {
    font-family: Montserrat, sans-serif;
}

body *:not([class*="w-icon"]):not([class*="glyphicon"]):not([class*="fa-"]):not(.fa):not([class*="material-icons"]) {
    font-family: Montserrat, sans-serif;
}

/* Hero: caja de alto responsive. El carrusel y la imagen se anclan en
   posicion absoluta (decorativo, dentro del hero) para que la imagen
   nunca se salga ni empuje la barra de numeros, que vive fuera del hero
   en el flujo normal del documento. */
.hero-wrapper {
    position: relative !important;
    display: block !important;
    height: clamp(460px, 52vw, 860px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-content-wrapper {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sn-home-hero-carousel,
.sn-home-hero-carousel .carousel-inner,
.sn-home-hero-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.sn-home-hero-carousel.slide {
    margin: 0 !important;
}

/* Transicion fade (desvanecido) solo para el carrusel principal:
   la foto actual se desvanece y aparece la siguiente en su lugar, sin deslizar */
.sn-home-hero-carousel.carousel-fade .carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: none !important;
    transition: opacity 700ms ease-in-out;
}

.sn-home-hero-carousel.carousel-fade .carousel-item.active,
.sn-home-hero-carousel.carousel-fade .carousel-item-next.carousel-item-start,
.sn-home-hero-carousel.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    z-index: 2;
}

.sn-home-hero-carousel.carousel-fade .active.carousel-item-start,
.sn-home-hero-carousel.carousel-fade .active.carousel-item-end {
    opacity: 0;
    z-index: 1;
    transition: opacity 700ms ease-in-out;
}

.sn-home-hero-carousel .carousel-indicators {
    display: none !important;
}

.sn-home-hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.sn-home-hero-slide > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.sn-home-hero-slide::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 60%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 72, 160, 0.96) 0%, rgba(0, 72, 160, 0.5) 36%, rgba(0, 72, 160, 0) 100%);
}

.sn-home-hero-card {
    position: absolute;
    left: clamp(24px, 5.6vw, 80px);
    bottom: clamp(32px, 5.2vw, 74px);
    z-index: 3;
    box-sizing: border-box;
    width: min(470px, calc(100vw - 48px));
    padding: clamp(24px, 2.5vw, 32px) clamp(28px, 3.5vw, 40px) clamp(20px, 2vw, 22px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(0, 72, 160, 0.85) 0%, rgba(60, 71, 84, 0.48) 100%);
    box-shadow: 0 24px 48px rgba(2, 20, 48, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-family: Montserrat, sans-serif;
    overflow: hidden;
}

.sn-home-hero-card--wide {
    width: min(640px, calc(100vw - 48px));
}

.sn-home-hero-card--predial {
    width: min(620px, calc(100vw - 48px));
}

.sn-home-hero-card--predial .sn-home-hero-card__copy {
    max-width: none;
}

.sn-home-hero-card--wide .sn-home-hero-card__copy {
    max-width: none;
}


.sn-home-hero-card__logo {
    display: block;
    width: min(301px, 82%);
    height: auto;
    margin-bottom: clamp(20px, 2.4vw, 26px);
}

.sn-home-hero-card__title {
    margin: 0 0 clamp(12px, 1.4vw, 16px);
    color: #ffffff;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 6px rgba(0, 20, 60, 0.35);
}

.sn-home-hero-card__title-accent {
    color: #ffd100;
}

.sn-home-hero-card__copy {
    max-width: 390px;
    margin: 0 0 clamp(19px, 2.2vw, 22px);
    color: #ffffff;
    font-size: clamp(15px, 1.18vw, 17px);
    font-weight: 600;
    line-height: 1.36;
    letter-spacing: 0;
    text-shadow: 0 1px 2px rgba(0, 20, 60, 0.2);
}

.sn-home-hero-card__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: clamp(14px, 1.15vw, 16px);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.sn-home-hero-card__link > span:first-child {
    text-decoration: none;
}

.sn-home-hero-card__arrow {
    position: relative;
    display: inline-flex;
    width: 25.22px;
    height: 28.34px;
    flex: 0 0 auto;
    font-size: 0;
    line-height: 1;
    text-decoration: none;
    transition: transform 150ms ease;
}

.sn-home-hero-card__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 29px;
    height: 29px;
    transform: translate(-50%, -50%);
    background-image: url("data:image/svg+xml,%3Csvg width='29' height='29' viewBox='0 0 29 29' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='14.5' cy='14.5' r='13.85' stroke='white' stroke-width='1.3'/%3E%3Cpath d='M9.7 14.5H19.3M15.55 10.75L19.3 14.5L15.55 18.25' stroke='white' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 29px 29px;
}

.sn-home-hero-card__link:hover .sn-home-hero-card__arrow,
.sn-home-hero-card__link:focus-visible .sn-home-hero-card__arrow {
    transform: translateX(2px);
}

/* Barra de numeros: <section> en flujo normal (fuera del hero). Fondo a
   todo lo ancho; el contenido va en un __inner con max-width centrado para
   que en 1920/2560 no se separe ni se deforme. */
.sn-home-phone-strip {
    width: 100%;
    padding: clamp(18px, 2.2vw, 30px) clamp(24px, 5vw, 64px);
    background-color: #00306b;
    font-family: Montserrat, sans-serif;
}

.sn-home-phone-strip__inner {
    width: 100%;
    max-width: 1283px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3px minmax(0, 1fr) 3px minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(20px, 3vw, 56px);
}

.slide2 {
    margin-top: 0;
}

.sn-home-phone-card {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    text-align: center;
    color: #ffffff;
}

.sn-home-phone-card__title {
    width: 100%;
    text-align: center;
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 700;
    line-height: 1.15;
}

.sn-home-phone-card__subtitle {
    width: 100%;
    margin: 0;
    color: #ffffff;
    text-align: center;
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 500;
    line-height: 1.2;
    opacity: 1;
}

.sn-home-phone-card__number {
    display: block;
    width: 100%;
    margin-top: auto;
    padding-top: 6px;
    color: #00ccff;
    text-align: center;
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}

/* En PC el numero no es clicable (no se puede llamar); solo en celular/tablet */
a.sn-home-phone-card__number {
    pointer-events: none;
    cursor: default;
}

@media (max-width: 991px) {
    a.sn-home-phone-card__number {
        pointer-events: auto;
    }
}

.sn-home-phone-divider {
    width: 3px;
    align-self: stretch;
    justify-self: center;
    min-height: clamp(60px, 7vw, 92px);
    background-color: rgba(255, 255, 255, 0.9);
}

.sn-home-quick-access {
    width: 100%;
    padding: clamp(56px, 6vw, 86px) clamp(24px, 6vw, 72px) clamp(64px, 7vw, 96px);
    background-color: #f6f6f6;
    font-family: Montserrat, sans-serif;
}

.sn-home-quick-access__inner {
    width: min(1283px, 100%);
    margin: 0 auto;
}

.sn-home-quick-access__title {
    margin: 0 0 clamp(34px, 4vw, 48px);
    color: #0048a0;
    font-size: clamp(34px, 3.4vw, 48px);
    font-weight: 700;
    line-height: 1.18;
    text-align: center;
    letter-spacing: -0.02em;
}

.sn-home-quick-access__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 32px;
}

.sn-home-quick-card {
    position: relative;
    min-height: 188px;
    display: grid;
    grid-template-columns: minmax(150px, 47%) minmax(0, 1fr);
    overflow: hidden;
    border: 0;
    border-radius: 15px;
    background-color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 20, 48, 0.12);
    color: inherit;
    text-align: left;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.sn-home-quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(2, 20, 48, 0.18);
}

.sn-home-quick-card__image {
    position: relative;
    margin: 0;
    min-height: 164px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
    background-image: none;
}

.sn-home-quick-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    border-radius: inherit;
    background-color: #ffffff;
    transform: scale(1.06);
    display: block;
}

.sn-home-quick-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 22px 18px 18px 20px;
}

.sn-home-quick-card__title {
    margin: 0 0 10px;
    color: #0048a0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.sn-home-quick-card__copy {
    margin: 0;
    color: #444444;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.sn-home-quick-card__button {
    width: 25.22px;
    height: 28.34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    color: #0068c9;
    font-size: 0;
    line-height: 1;
    opacity: 1;
}

.sn-home-quick-card__button::before {
    content: "";
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    transition: transform 150ms ease;
    background-image: url("data:image/svg+xml,%3Csvg width='29' height='29' viewBox='0 0 29 29' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='14.5' cy='14.5' r='13.85' stroke='%230068C9' stroke-width='1.3'/%3E%3Cpath d='M9.7 14.5H19.3M15.55 10.75L19.3 14.5L15.55 18.25' stroke='%230068C9' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 29px 29px;
}

.sn-home-quick-card:hover .sn-home-quick-card__button::before {
    transform: translateX(2px);
}

/* Hace clicable toda la tarjeta, no solo la flecha */
.sn-home-quick-card__button::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sn-home-quick-card__button:focus-visible::after {
    outline: 2px solid #0068c9;
    outline-offset: -3px;
    border-radius: 15px;
}

.ccontainer {
    max-width: 1526px !important;
}

@media screen and (max-width: 991px) {
    .hero-wrapper {
        height: clamp(500px, 68vw, 620px) !important;
    }

    .sn-home-hero-card {
        bottom: 32px;
    }

    .sn-home-phone-strip {
        padding: 22px 24px;
    }

    .sn-home-phone-strip__inner {
        grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr) 2px minmax(0, 1fr);
        gap: clamp(8px, 2vw, 16px);
    }

    .sn-home-phone-card__number {
        margin-top: auto;
    }

    .sn-home-phone-divider {
        width: 2px;
        min-height: clamp(58px, 9vw, 82px);
        height: auto;
        align-self: stretch;
    }

    .sn-home-quick-access {
        padding-right: 24px;
        padding-left: 24px;
    }

    .sn-home-quick-access__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .hero-wrapper {
        height: clamp(440px, 128vw, 560px) !important;
    }

    .sn-home-hero-slide > img {
        object-position: center top;
    }

    .sn-home-hero-card {
        right: 18px;
        left: 18px;
        bottom: 22px;
        width: auto;
        padding: 22px;
    }

    .sn-home-hero-card__logo {
        width: min(255px, 82%);
        margin-bottom: 18px;
    }

    .sn-home-hero-card__copy {
        margin-bottom: 20px;
    }

    .sn-home-phone-strip {
        padding: 16px 10px;
    }

    .sn-home-phone-strip__inner {
        gap: clamp(5px, 1.4vw, 10px);
    }

    .sn-home-phone-card__title {
        font-size: clamp(10px, 3.1vw, 14px);
    }

    .sn-home-phone-card__subtitle {
        font-size: clamp(8px, 2.3vw, 11px);
        line-height: 1.18;
    }

    .sn-home-phone-card__number {
        font-size: clamp(15px, 4.6vw, 22px);
    }

    .sn-home-phone-divider {
        width: 1.5px;
    }

    .sn-home-quick-access {
        padding: 42px 18px 56px;
    }

    .sn-home-quick-access__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sn-home-quick-card {
        grid-template-columns: minmax(104px, 38%) minmax(0, 1fr);
        min-height: 160px;
    }

    .sn-home-quick-card__image {
        min-height: 160px;
    }

    .sn-home-quick-card__body {
        padding: 18px 14px 14px 16px;
    }

    .sn-home-quick-card__title {
        font-size: 18px;
    }

    .sn-home-quick-card__copy {
        font-size: 13px;
    }
}

/* ====== Seccion: Lo Mas Reciente (noticias desde la BD) ====== */
.sn-home-news {
    position: relative;
    width: 100%;
    padding: clamp(80px, 9vw, 130px) 0 clamp(80px, 9vw, 130px) clamp(24px, 6vw, 88px);
    background-color: #002b5f;
    font-family: Montserrat, sans-serif;
    overflow: hidden;
}

/* Foto de fondo + overlay azul oscuro para legibilidad del texto blanco */
.sn-home-news::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../imagenes/Inicio/noticias-fondo.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.sn-home-news::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 72, 160, 0.62) 32%, rgba(213, 225, 240, 0.1) 61%, rgba(255, 255, 255, 0) 100%);
}

.sn-home-news__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    gap: clamp(40px, 5vw, 96px);
}

.sn-home-news__intro {
    flex: 0 0 clamp(300px, 30%, 465px);
    max-width: 465px;
    color: #ffffff;
}

.sn-home-news__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 3.4vw, 48px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.sn-home-news__subtitle {
    margin: 18px 0 0;
    color: #ffffff;
    font-size: clamp(20px, 1.9vw, 28px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.sn-home-news__cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 187px;
    margin-top: clamp(24px, 3vw, 40px);
    padding: 8px;
    border-radius: 5px;
    background-color: #ffffff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    color: #0048a0;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.sn-home-news__cta-text {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sn-home-news__cta-arrow,
.sn-home-news-card__arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25.22px;
    height: 28.34px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    color: #0068c9;
    font-size: 0;
    line-height: 1;
    transition: transform 150ms ease;
}

.sn-home-news__cta-arrow::before,
.sn-home-news-card__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 29px;
    height: 29px;
    transform: translate(-50%, -50%);
    background-image: url("data:image/svg+xml,%3Csvg width='29' height='29' viewBox='0 0 29 29' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='14.5' cy='14.5' r='13.85' stroke='%230068C9' stroke-width='1.3'/%3E%3Cpath d='M9.7 14.5H19.3M15.55 10.75L19.3 14.5L15.55 18.25' stroke='%230068C9' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 29px 29px;
}

.sn-home-news__cta:hover .sn-home-news__cta-arrow,
.sn-home-news__cta:focus-visible .sn-home-news__cta-arrow {
    transform: translateX(2px);
}

.sn-home-news-card:hover .sn-home-news-card__arrow {
    transform: translateX(2px);
}

.sn-home-news__cards {
    --sn-news-gap: clamp(18px, 1.7vw, 24px);
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 300px);
    mask-image: linear-gradient(to right, transparent 0, #000 300px);
    cursor: grab;
    touch-action: pan-y; /* en celular: arrastre horizontal propio, scroll vertical nativo */
}

.sn-home-news__cards.is-dragging {
    cursor: grabbing;
    -webkit-user-select: none;
    user-select: none;
}

.sn-home-news__track {
    display: flex;
    flex: 0 0 auto;
    width: max-content;
    animation: sn-home-news-marquee 65s linear infinite;
    will-change: transform;
    /* Fuerza capa de GPU propia: evita que Safari/iOS congele o borre el
       marquee tras la primera vuelta por el mask-image del contenedor */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.sn-home-news__cards:hover .sn-home-news__track {
    animation-play-state: paused;
}

.sn-home-news__set {
    display: flex;
    flex: 0 0 auto;
    gap: var(--sn-news-gap);
    padding-right: var(--sn-news-gap);
}

@keyframes sn-home-news-marquee {
    from {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    to {
        -webkit-transform: translate3d(-33.3333%, 0, 0);
        transform: translate3d(-33.3333%, 0, 0);
    }
}

.sn-home-news-card {
    flex: 0 0 306px;
    min-height: 444px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 15px;
    background-color: #ffffff;
    box-shadow: 0 4px 4px rgba(180, 180, 180, 0.25);
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.sn-home-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(2, 20, 48, 0.22);
}

.sn-home-news-card__media {
    position: relative;
    height: 187px;
    flex: 0 0 187px;
    background-color: #d9e4ef;
    overflow: hidden;
}

.sn-home-news-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sn-home-news-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px 16px 18px;
}

.sn-home-news-card__date {
    color: #828282;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.sn-home-news-card__title {
    margin: 10px 0 12px;
    color: #0048a0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sn-home-news-card__excerpt {
    margin: 0 0 16px;
    color: #444444;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sn-home-news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: #0048a0;
    font-size: 16px;
    font-weight: 500;
}

.sn-home-news-card__link-text {
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media screen and (max-width: 900px) {
    .sn-home-news__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .sn-home-news__intro {
        flex-basis: auto;
        max-width: none;
        text-align: center;
    }
}

@media screen and (max-width: 760px) {
    .sn-home-news {
        padding-right: 0;
        padding-left: clamp(18px, 5vw, 24px);
    }

    /* En celular se mantiene el carrusel horizontal en bucle (no se apila) */
    .sn-home-news__inner {
        padding-right: 0;
    }

    .sn-home-news__cards {
        max-width: none;
        margin: 0;
        overflow: hidden;
        /* En celular el desvanecido de 300px taparia casi toda la pantalla:
           se reduce para que las tarjetas se vean bien */
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px);
        mask-image: linear-gradient(to right, transparent 0, #000 32px);
    }
}

/* ====== Seccion: Nuestros Proximos Eventos ====== */
.sn-home-agenda {
    width: 100%;
    padding: clamp(48px, 6vw, 86px) clamp(24px, 6vw, 72px) clamp(56px, 7vw, 90px);
    background-color: #ffffff;
    font-family: Montserrat, sans-serif;
}

.sn-home-agenda__inner {
    width: min(1283px, 100%);
    margin: 0 auto;
}

.sn-home-agenda__title {
    margin: 0;
    color: #0048a0;
    font-size: clamp(32px, 3.4vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    letter-spacing: -0.02em;
}

.sn-home-agenda__subtitle {
    margin: 18px 0 clamp(34px, 4vw, 48px);
    color: #0048a0;
    font-size: clamp(19px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Masonry real con columnas CSS: reparte las tarjetas y reflow natural */
.sn-home-agenda__grid {
    column-count: 3;
    column-gap: clamp(18px, 1.8vw, 26px);
}

.sn-home-agenda-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    margin: 0 0 clamp(18px, 1.8vw, 26px);
    padding: clamp(14px, 1.4vw, 20px);
    border-radius: 15px;
    overflow: hidden;
    break-inside: avoid;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(2, 20, 48, 0.12);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.sn-home-agenda-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(2, 20, 48, 0.2);
}

.sn-home-agenda-card--lg {
    min-height: clamp(360px, 30vw, 480px);
}

.sn-home-agenda-card--sm {
    min-height: clamp(140px, 12vw, 190px);
}

/* Imagen de fondo que cubre toda la tarjeta */
.sn-home-agenda-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sn-home-agenda-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Caja de vidrio (glassmorphism) con el texto, sobrepuesta en la imagen */
.sn-home-agenda-card__body {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 10px;
    align-items: center;
    padding: clamp(12px, 1.2vw, 16px);
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.27);
    box-shadow:
        0 4px 4px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 1px 0 0 rgba(255, 255, 255, 0.32),
        inset 0 -1px 1px rgba(0, 0, 0, 0.13),
        inset -1px 0 1px rgba(0, 0, 0, 0.11);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.sn-home-agenda-card__date {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 5px 9px;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.sn-home-agenda-card__day {
    color: #0048a0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

.sn-home-agenda-card__month {
    color: #0048a0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.sn-home-agenda-card__title {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    color: #ffffff;
    font-size: clamp(18px, 1.4vw, 24px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.sn-home-agenda-card__excerpt {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

@media screen and (max-width: 900px) {
    .sn-home-agenda__grid {
        column-count: 2;
    }
}

@media screen and (max-width: 600px) {
    .sn-home-agenda__grid {
        column-count: 1;
    }
}

/* ====== Seccion: Conoce Nuestras Dependencias ====== */
.sn-home-deps {
    position: relative;
    width: 100%;
    padding: clamp(80px, 9vw, 130px) 0 clamp(80px, 9vw, 130px) clamp(24px, 6vw, 88px);
    background-color: #0a4a8f;
    font-family: Montserrat, sans-serif;
    overflow: hidden;
}

/* Foto de fondo + degradado azul que se aclara hacia la derecha */
.sn-home-deps::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../imagenes/Dependencias/dependencias-fondo.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.sn-home-deps::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%),
        linear-gradient(90deg, rgba(151, 151, 151, 0.62) 32%, rgba(213, 225, 240, 0.1) 61%, rgba(255, 255, 255, 0) 100%);
}

.sn-home-deps__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    gap: clamp(40px, 5vw, 96px);
}

.sn-home-deps__intro {
    flex: 0 0 clamp(300px, 32%, 470px);
    max-width: 470px;
    color: #ffffff;
}

.sn-home-deps__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 3.4vw, 48px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.sn-home-deps__subtitle {
    margin: 18px 0 0;
    color: #ffffff;
    font-size: clamp(20px, 1.9vw, 28px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.sn-home-deps__cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 187px;
    margin-top: 30px;
    padding: 8px 8px 8px 8px;
    border-radius: 5px;
    background-color: #ffffff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    color: #0048a0;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.sn-home-deps__cta-text {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sn-home-deps__cta-arrow,
.sn-home-dep-card__arrow {
    position: relative;
    display: inline-flex;
    width: 25.22px;
    height: 28.34px;
    flex: 0 0 auto;
    font-size: 0;
    transition: transform 150ms ease;
}

.sn-home-deps__cta-arrow::before,
.sn-home-dep-card__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 29px;
    height: 29px;
    transform: translate(-50%, -50%);
    background-image: url("data:image/svg+xml,%3Csvg width='29' height='29' viewBox='0 0 29 29' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='14.5' cy='14.5' r='13.85' stroke='%230068C9' stroke-width='1.3'/%3E%3Cpath d='M9.7 14.5H19.3M15.55 10.75L19.3 14.5L15.55 18.25' stroke='%230068C9' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 29px 29px;
}

.sn-home-deps__cta:hover .sn-home-deps__cta-arrow,
.sn-home-dep-card:hover .sn-home-dep-card__arrow {
    transform: translateX(2px);
}

/* Carrusel de tarjetas: scroll horizontal manual con snap */
.sn-home-deps__cards {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.sn-home-deps__cards::-webkit-scrollbar {
    display: none;
}

.sn-home-deps__track {
    display: flex;
    gap: clamp(18px, 1.7vw, 26px);
    padding: 4px 0;
}

.sn-home-dep-card {
    flex: 0 0 306px;
    min-height: 444px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 15px;
    background-color: #ffffff;
    box-shadow: 0 4px 4px rgba(180, 180, 180, 0.25);
    scroll-snap-align: start;
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.sn-home-dep-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(2, 20, 48, 0.24);
}

.sn-home-dep-card__media {
    height: 187px;
    flex: 0 0 187px;
    overflow: hidden;
    background-color: #d9e4ef;
}

.sn-home-dep-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sn-home-dep-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 22px 14px 20px;
}

.sn-home-dep-card__desc {
    margin: 0 0 16px;
    color: #444444;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.sn-home-dep-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #0048a0;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.sn-home-dep-card__link-text {
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media screen and (max-width: 900px) {
    .sn-home-deps__inner {
        flex-direction: column;
        align-items: stretch;
        gap: clamp(24px, 4vw, 36px);
    }

    .sn-home-deps__intro {
        flex-basis: auto;
        max-width: none;
        text-align: center;
    }

    .sn-home-deps__cta {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ====== Banner inferior (San Nico Bus) + Avisos de Privacidad ====== */
.sn-home-banner {
    width: 100%;
    padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 40px) 0;
    background-color: #ffffff;
}

.sn-home-banner__inner {
    width: min(1440px, 100%);
    margin: 0 auto;
}

.sn-home-banner__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

/* ====== Seccion: Contactanos ====== */
.sn-home-contact {
    width: 100%;
    padding: clamp(40px, 5vw, 64px) clamp(16px, 4vw, 40px);
    background-color: #ffffff;
    font-family: Montserrat, sans-serif;
}

.sn-home-contact__inner {
    width: min(1281px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
    overflow: hidden;
    border-radius: clamp(28px, 4vw, 68px);
    background-color: rgba(248, 248, 248, 0.2);
}

.sn-home-contact__media {
    flex: 0 0 43%;
    max-width: 553px;
    /* Respeta la proporcion real de la foto (553x641) para que se vea completa */
    aspect-ratio: 553 / 641;
}

.sn-home-contact__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sn-home-contact__form {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(32px, 4vw, 59px) clamp(24px, 3vw, 40px) clamp(32px, 4vw, 59px) 0;
}

.sn-home-contact__title {
    margin: 0;
    color: #0048a0;
    font-size: clamp(34px, 3.4vw, 48px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.sn-home-contact__subtitle {
    margin: clamp(12px, 1.4vw, 18px) 0 0;
    color: #0048a0;
    font-size: clamp(22px, 2.3vw, 32px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.sn-home-contact__text {
    margin: clamp(10px, 1.2vw, 16px) 0 0;
    color: #0048a0;
    font-size: clamp(17px, 1.7vw, 24px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.sn-home-contact__grid {
    margin-top: clamp(20px, 2.4vw, 30px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 1.6vw, 20px) clamp(16px, 2vw, 26px);
}

.sn-home-contact__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sn-home-contact__field--full {
    grid-column: 1 / -1;
}

.sn-home-contact__field label {
    color: #828282;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.sn-home-contact__field input,
.sn-home-contact__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 5px;
    background-color: #e2e2e2;
    color: #333333;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
}

.sn-home-contact__field textarea {
    min-height: 102px;
    resize: vertical;
}

.sn-home-contact__field input:focus,
.sn-home-contact__field textarea:focus {
    outline: 2px solid #0048a0;
    outline-offset: 1px;
}

@media screen and (max-width: 860px) {
    .sn-home-contact__inner {
        flex-direction: column;
    }

    .sn-home-contact__media {
        flex-basis: auto;
        max-width: none;
        min-height: 240px;
    }

    .sn-home-contact__form {
        padding: clamp(24px, 5vw, 32px);
    }
}

@media screen and (max-width: 520px) {
    .sn-home-contact__grid {
        grid-template-columns: 1fr;
    }
}

/* ====== Seccion: Preguntas Frecuentes (acordeon) ====== */
.sn-faq {
    width: 100%;
    padding: clamp(44px, 5vw, 58px) clamp(24px, 7vw, 112px) clamp(46px, 5vw, 61px);
    background-color: #00306b;
    font-family: Montserrat, sans-serif;
}

.sn-faq__inner {
    width: min(947px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(24px, 3vw, 38px);
}

.sn-faq__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(32px, 3.4vw, 48px);
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    letter-spacing: -0.02em;
}

.sn-faq__subtitle {
    margin: 0;
    color: #ffffff;
    font-size: clamp(20px, 2.3vw, 32px);
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    letter-spacing: -0.02em;
}

.sn-faq__list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sn-faq__item {
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
}

.sn-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px clamp(20px, 3vw, 39px);
    list-style: none;
    cursor: pointer;
    color: #0048a0;
    font-size: clamp(18px, 1.7vw, 24px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.sn-faq__q::-webkit-details-marker {
    display: none;
}

/* Icono +/- que cambia al abrir */
.sn-faq__icon {
    position: relative;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #00306b;
}

.sn-faq__icon::before,
.sn-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 1px;
}

.sn-faq__icon::before {
    width: 14px;
    height: 2px;
}

.sn-faq__icon::after {
    width: 2px;
    height: 14px;
    transition: transform 150ms ease, opacity 150ms ease;
}

.sn-faq__item[open] .sn-faq__icon::after {
    transform: translate(-50%, -50%) scaleY(0);
    opacity: 0;
}

.sn-faq__a {
    margin: 0;
    padding: 0 clamp(20px, 3vw, 39px) 22px;
    color: #444444;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

/* ====== Pie de pagina (footer) ====== */
.sn-footer {
    width: 100%;
    background-color: #ffffff;
    font-family: Montserrat, sans-serif;
}

.sn-footer__inner {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: clamp(36px, 4vw, 52px) clamp(24px, 6vw, 88px) clamp(28px, 3vw, 40px);
    display: flex;
    justify-content: space-between;
    gap: clamp(32px, 6vw, 96px);
    flex-wrap: wrap;
}

.sn-footer__brand {
    flex: 0 1 auto;
    max-width: 340px;
}

.sn-footer__logo {
    display: block;
    width: 255px;
    max-width: 100%;
    height: auto;
    margin-bottom: 18px;
}

.sn-footer__address {
    margin: 0 0 12px;
    color: #828282;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.sn-footer__address-title {
    display: block;
    font-weight: 600;
}

.sn-footer__email {
    display: inline-block;
    margin-bottom: 18px;
    color: #0048a0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(0, 72, 160, 0.35);
    padding-bottom: 1px;
    transition: border-color 150ms ease, color 150ms ease;
}

.sn-footer__email:hover {
    color: #0068c9;
    border-bottom-color: #0068c9;
}

.sn-footer__social {
    display: flex;
    gap: 12px;
}

.sn-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0048a0;
    color: #ffffff;
    line-height: 0;
    box-shadow: 0 2px 6px rgba(2, 20, 48, 0.18);
    transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.sn-footer__social a:hover {
    transform: translateY(-2px);
    background-color: #0068c9;
    box-shadow: 0 6px 12px rgba(2, 20, 48, 0.25);
}

.sn-footer__nav {
    display: flex;
    gap: clamp(24px, 3vw, 40px);
}

.sn-footer__col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sn-footer__col-title {
    margin: 0 0 2px;
    color: #0048a0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.sn-footer__col a {
    color: #828282;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
}

.sn-footer__col a:hover {
    color: #0048a0;
    text-decoration: underline;
}

.sn-footer__bottom {
    padding: 12px 16px;
    text-align: center;
}

.sn-footer__bottom-text {
    color: #828282;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.sn-footer__bottom-link {
    margin-left: 6px;
    color: #828282;
    font-size: 18px;
    font-weight: 700;
    text-decoration: underline;
    letter-spacing: -0.02em;
}

@media screen and (max-width: 720px) {
    .sn-footer__inner {
        flex-direction: column;
    }

    .sn-footer__nav {
        flex-wrap: wrap;
        gap: 28px 40px;
    }
}
