/* Home - paleta alineada con variables globales (--home-primary, etc.) */

.home-efemerides { background: linear-gradient(90deg, #0b6d97, #1292bd); color: #fff; overflow: hidden; }
.home-efemerides-viewport { overflow: hidden; width: 100%; }
.home-efemerides-track { display: flex; width: max-content; animation: home-efemerides-scroll 18s linear infinite; will-change: transform; }
.home-efemerides-copy { display: flex; }
.home-efemeride-card { min-height: 38px; width: 100vw; display: flex; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: .2rem 3.25rem; white-space: nowrap; }
.home-efemeride-date { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.home-efemeride-card strong { display: inline; font-size: .92rem; }.home-efemeride-card div span { display: inline; font-size: .82rem; opacity: .93; margin-left: .45rem; }
@keyframes home-efemerides-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .home-efemerides-track { animation: none; } }
@media (max-width: 575.98px) { .home-efemeride-card { gap: .5rem; padding: .2rem 1.25rem; font-size: .8rem; }.home-efemeride-card div span { display: none; } }

.home-hero-section {
    padding: 1rem 0 0.5rem;
    position: relative;
    z-index: 1;
}

.home-hero-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 440px;
    box-shadow: var(--home-shadow-lg);
}

.home-hero-carousel .carousel-item {
    position: relative;
}

.hero-slide {
    min-height: 440px;
    background-size: cover;
    background-position: center;
}

.hero-slide-1 {
    background-image: url('/public/images/bann4.jpeg');
}

.hero-slide-2 {
    background-image: url('/public/images/bann5.jpg');
}

.hero-slide-3 {
    background-image: url('/public/images/bann3.jpeg');
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(132, 205, 235, 0.5) 0%,
        rgba(132, 205, 235, 0.34) 42%,
        rgba(132, 205, 235, 0.14) 72%,
        rgba(132, 205, 235, 0.04) 100%
    );
}

.home-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 4rem 3rem;
    max-width: 580px;
}

.home-hero-content h1 {
    color: #ffffff;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.home-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.7rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-side-image-wrap {
    position: relative;
    z-index: 2;
    margin: 1.8rem 2.2rem 1.8rem 0;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    max-height: 330px;
}

.hero-side-image {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.hero-btn-primary {
    background: var(--home-secondary);
    color: #ffffff;
}

.hero-btn-primary:hover {
    color: #ffffff;
    background: var(--home-primary);
}

.hero-btn-outline {
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;
    background: rgba(53, 67, 147, 0.25);
}

.hero-btn-outline:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.home-hero-carousel .carousel-control-prev,
.home-hero-carousel .carousel-control-next {
    width: 7%;
    opacity: 1;
}

.home-hero-carousel .carousel-control-prev-icon,
.home-hero-carousel .carousel-control-next-icon {
    width: 2.2rem;
    height: 2.2rem;
    background-color: rgba(53, 67, 147, 0.72);
    border-radius: 999px;
    background-size: 55%;
}

.home-hero-indicators {
    margin-bottom: 0.75rem;
}

.home-hero-indicators [data-bs-target] {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 0;
    opacity: 0.7;
}

.home-hero-indicators .active {
    width: 26px;
    opacity: 1;
}

.home-news-section {
    padding: 1.2rem 0 0.7rem;
    position: relative;
    z-index: 1;
    background: #ffffff;
}

#novedadesFeatureCarousel {
    width: 100%;
}

/* Misma superficie que el .container de la sección (sin parche de color en la columna) */
.home-services-section .container > .row > .col-lg-9,
.home-news-section .container > .row > .col-lg-9 {
    background: transparent;
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-section-header h2,
.home-section-title {
    color: #0c2340;
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.home-section-header a {
    text-decoration: none;
    color: var(--home-primary);
    font-weight: 600;
}

.home-side-card {
    background: #ffffff;
    border: 1px solid #dce8f4;
    border-radius: 14px;
    padding: 1.05rem 1.05rem 0.9rem;
    height: 100%;
}

.home-side-title {
    font-size: 2rem;
    color: #0c2340;
    margin: 0 0 1rem;
    font-weight: 700;
}

.info-salud-pdf-modal {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(12, 49, 90, 0.28);
}

.info-salud-pdf-modal .modal-header {
    position: relative;
    justify-content: center;
    min-height: 74px;
    padding: 1rem 3.5rem;
    border: 0;
    background: linear-gradient(135deg, #0c315a, #1d7198);
    color: #fff;
}

.info-salud-pdf-modal .modal-title {
    width: 100%;
    margin: 0;
    color: #fff;
    font-size: 1.35rem !important;
    font-weight: 800;
    text-align: center;
}

.info-salud-pdf-modal .btn-close {
    position: absolute;
    right: 1.15rem;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.info-salud-pdf-modal .modal-body {
    background: #eef7fb;
}

.info-salud-pdf-preview {
    display: block;
    width: 100%;
    height: min(72vh, 760px);
    border: 0;
    background: #f2f4f7;
}

.info-salud-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.info-salud-card {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 108px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0.45rem;
    background: #173d6b;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.info-salud-card-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.info-salud-card-fallback {
    display: grid;
    place-items: center;
    font-size: 2rem;
    background: linear-gradient(145deg, #3268a9, #193b69);
}

.info-salud-card-title {
    position: absolute;
    right: 0.55rem;
    bottom: 0.7rem;
    left: 0.55rem;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.info-salud-cover-preview {
    display: block;
    width: 100%;
    max-height: min(72vh, 760px);
    object-fit: contain;
    background: #f2f4f7;
}

.info-salud-card:hover,
.info-salud-card:focus-visible {
    outline: 3px solid #4eb5d0;
    outline-offset: 2px;
}

.home-highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-highlight-list a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #173250;
    padding: 0.35rem 0;
    font-weight: 600;
}

.home-highlight-list a i {
    color: var(--home-primary);
    font-size: 1rem;
}

.info-salud-name {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.65rem;
    color: inherit;
    font-weight: 600;
    text-align: left;
}

.info-salud-name i {
    color: var(--home-primary);
    font-size: 1rem;
}

.info-salud-panel {
    cursor: pointer;
}

.info-salud-modal-item {
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid #dbe5ec;
    background: #f4f8fa;
    color: #173d6b;
    font-weight: 700;
    text-decoration: none;
}

.info-salud-modal-item img,
.info-salud-modal-fallback {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: #f4f8fa;
}

.info-salud-modal-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #3268a9, #193b69);
    font-size: 3rem;
}

.info-salud-modal-item > span:last-child {
    display: block;
    padding: 0.7rem;
}

.news-feature-card {
    background: #ffffff;
    border: 1px solid #dce8f4;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--home-shadow-sm);
    cursor: pointer;
}

.news-feature-image {
    width: 100%;
    height: 156px;
    object-fit: cover;
}

.news-feature-content {
    padding: 1.1rem 1.25rem;
}

.news-feature-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #0c2340;
}

.news-feature-content p {
    color: #4d6075;
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0.75rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* En escritorio, Novedades se presenta como una lista compacta: imagen miniatura
   a la izquierda y contenido a la derecha, sin el alto de una imagen hero. */
@media (min-width: 992px) {
    .home-hero-card,
    .hero-slide {
        height: 440px;
    }

    .news-feature-card .col-lg-5 {
        flex: 0 0 190px;
        width: 190px;
    }

    .news-feature-card .col-lg-7 {
        flex: 1 1 0;
        width: auto;
    }

}

.news-feature-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.novedades-control {
    width: 6%;
    opacity: 1;
}

.novedades-control .carousel-control-prev-icon,
.novedades-control .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-color: rgba(53, 67, 147, 0.85);
    border-radius: 999px;
    background-size: 55%;
}

.novedades-indicators {
    position: static;
    margin: 0.85rem 0 0;
}

.novedades-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    background-color: rgba(74, 172, 196, 0.45);
}

.novedades-indicators .active {
    width: 22px;
    background-color: var(--home-primary);
}

.home-social-section {
    padding: 1rem 0 1.35rem;
    background: #ffffff;
    border-top: 1px solid #edf2f7;
}

/* Las publicaciones complementan el contenido principal: una cabecera y tarjetas
   más discretas evitan que la sección compita con Novedades y Servicios. */
.social-section-header {
    margin-bottom: 0.75rem !important;
}

.social-section-header h2 {
    color: #40566e;
    font-size: 1.35rem;
    font-weight: 600;
}

.social-post-card {
    background: #ffffff;
    border: 1px solid #dce8f4;
    border-radius: 10px;
    overflow: hidden;
    padding: 0.75rem;
    height: 100%;
}

.social-post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.social-post-network-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.social-network-facebook {
    color: #ffffff;
    background: #1877f2;
}

.social-network-instagram {
    color: #ffffff;
    background: linear-gradient(135deg, #f09433, #dc2743, #cc2366, #bc1888);
}

.social-post-open-link {
    text-decoration: none;
    color: var(--home-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.social-post-frame-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2ebf5;
    background: #f5f9ff;
}

.social-post-image {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.social-post-image-link {
    display: block;
}

.social-post-image-link:hover .social-post-image {
    transform: scale(1.02);
}

.social-control {
    width: 6%;
    opacity: 1;
}

.social-control .carousel-control-prev-icon,
.social-control .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-color: rgba(53, 67, 147, 0.85);
    border-radius: 999px;
    background-size: 55%;
}

.social-indicators {
    margin-top: 0.95rem;
}

.social-posts-row {
    padding: 0 2.25rem;
}

.home-services-section {
    padding: 1.35rem 0 1.15rem;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

/* Con siete servicios, la segunda fila reparte sus tres cards en todo el ancho. */
@media (min-width: 992px) {
    .home-citizen-services-grid {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .home-citizen-services-grid > .col-lg-3 {
        grid-column: span 3;
        width: auto;
    }

    .home-citizen-services-grid > .col-lg-3:nth-child(n + 5) {
        grid-column: span 4;
    }
}

.home-services-professional {
    background: #f5f8fc;
}

.home-services-section .home-section-title {
    margin-bottom: 1rem;
}

.service-card {
    text-decoration: none;
    color: #11263d;
    background: #ffffff;
    border: 1px solid #dce8f4;
    border-radius: 12px;
    min-height: 112px;
    box-shadow: 0 4px 12px rgba(12, 35, 64, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    text-align: center;
    padding: 0.85rem 0.8rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card i {
    color: var(--home-primary);
    font-size: 1.55rem;
    line-height: 1;
}

.service-card:hover {
    color: #ffffff;
    background: var(--home-primary);
    border-color: var(--home-primary);
    box-shadow: 0 8px 18px rgba(12, 67, 145, 0.28);
    transform: translateY(-2px);
}

.service-card:hover i {
    color: #ffffff;
}

.home-portal-band {
    padding: 1.5rem 0 2rem;
    background: #f4f6f9;
    position: relative;
    z-index: 1;
}

.portal-band-content {
    background: linear-gradient(90deg, var(--home-primary-dark), var(--home-secondary));
    border-radius: 12px;
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.portal-band-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
    font-weight: 600;
}

.portal-band-title i {
    font-size: 1.2rem;
}

.portal-band-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.portal-chip {
    text-decoration: none;
    background: #ffffff;
    color: var(--home-primary);
    border-radius: 999px;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    transition: all 0.2s ease;
}

.portal-chip:hover {
    color: var(--home-primary);
    background: #e8eef3;
}

@media (max-width: 992px) {
    .home-hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-side-image-wrap {
        margin: 0 1.4rem 1.4rem;
        max-height: 240px;
    }

    .hero-side-image {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .home-hero-card {
        min-height: 360px;
    }

    .hero-slide {
        min-height: 360px;
    }

    .home-hero-content {
        padding: 2.2rem 1.4rem;
    }

    .hero-side-image-wrap {
        display: none;
    }

    .home-hero-content h1 {
        font-size: 1.8rem;
    }

    .home-hero-content p {
        font-size: 1rem;
    }

    .home-section-header h2,
    .home-section-title {
        font-size: 1.45rem;
    }

    .home-side-title {
        font-size: 1.45rem;
    }

    .news-feature-content h3 {
        font-size: 1.2rem;
    }

    .news-feature-image {
        height: 140px;
    }

    .novedades-control {
        width: 12%;
    }

    .social-post-image {
        height: 320px;
    }

    .social-posts-row {
        padding: 0 1.5rem;
    }
}

/* A new landing composition: content has a clear first action before browsing. */
.home-masthead-row { --bs-gutter-x: 1.5rem; }
.home-masthead-row .home-hero-card,
.home-masthead-row .hero-slide { min-height: 530px; }

.home-masthead-row .home-hero-card { border-radius: 34px 34px 0 0; }
.home-masthead-row .home-hero-content { padding: 5.25rem 3.8rem; }
.home-masthead-row .home-hero-content h1 { max-width: 8ch; letter-spacing: -.045em; }
.home-masthead-row .home-hero-content p { max-width: 29rem; }

.home-masthead-row .home-side-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px 0 34px 0;
    background: #0c315a;
    border: 0;
    padding: 2rem 1.8rem 1.45rem;
    color: #fff;
}
.home-masthead-row .home-side-card::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    top: -125px;
    right: -125px;
    border: 1px solid rgba(125,216,235,.38);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(125,216,235,.06), 0 0 0 56px rgba(125,216,235,.04);
}
.home-masthead-row .home-side-card > * { position: relative; z-index: 1; }
.home-masthead-row .home-side-eyebrow { color: #82ddeb; }
.home-masthead-row .home-side-title { color: #fff; font-size: 2.2rem; margin-top: .85rem; }
.home-masthead-row .home-side-description { color: rgba(255,255,255,.78); max-width: 25rem; }
.home-masthead-row .home-highlight-list { margin-top: 1.25rem; }
.home-masthead-row .home-highlight-list li { border-top: 1px solid rgba(255,255,255,.15); }
.home-masthead-row .info-salud-name { padding: .65rem 0; color: #fff; font-size: .92rem; }
.home-masthead-row .info-salud-name i { color: #82ddeb; }
.home-masthead-row .home-side-action { border-color: rgba(255,255,255,.2); color: #82ddeb; margin-top: auto; }

/* Services become a navigational catalogue rather than a uniform row of buttons. */
.home-services-section:first-of-type { padding-top: 3rem; }
.home-citizen-services-grid .service-card { position: relative; align-items: flex-start; text-align: left; padding: 1.25rem; overflow: hidden; }
.home-citizen-services-grid .service-card::after { content: '→'; position: absolute; right: 1rem; bottom: .8rem; color: #7ba7b5; font-size: 1.1rem; transition: transform .2s ease; }
.home-citizen-services-grid .service-card:hover::after { color: #fff; transform: translateX(4px); }
.home-citizen-services-grid .service-card i { padding: .55rem; border-radius: 10px; background: #eaf7fa; }
.home-citizen-services-grid .service-card:hover i { background: rgba(255,255,255,.14); }
.home-citizen-services-grid .service-card span { max-width: 11ch; font-size: 1rem; }

.home-news-section { background: #092d53; padding: 3.5rem 0; }
.home-news-section .home-section-header h2 { color: #fff; }
.home-news-section .home-section-header a { color: #83dcec; }
.home-news-section .news-feature-card { border: 0; box-shadow: 0 18px 42px rgba(0,0,0,.22); }
.home-news-section .news-feature-content h3 { font-size: clamp(1.35rem, 2.3vw, 2rem); }
.home-news-section .novedades-indicators [data-bs-target] { background-color: rgba(255,255,255,.45); }
.home-news-section .novedades-indicators .active { background-color: #83dcec; }

@media (max-width: 991px) {
    .home-masthead-row .home-hero-card, .home-masthead-row .hero-slide { min-height: 460px; }
    .home-masthead-row .home-side-card { min-height: 390px; border-radius: 0 0 28px 28px; }
}

@media (max-width: 575px) {
    .home-masthead-row .home-hero-card { border-radius: 25px 25px 0 0; }
    .home-masthead-row .home-hero-content { padding: 3.4rem 1.55rem; }
    .home-masthead-row .home-hero-content h1 { max-width: 10ch; }
}

/* Citizen services: a guided journey, grouped by the reason for visiting. */
.home-services-section { background: #f8fbfd; }
.home-services-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.home-services-main { min-width: 0; }
.home-services-heading { margin-bottom: 1.35rem; }
.home-section-eyebrow { display: block; margin-bottom: .35rem; color: #20809f; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }

.home-service-feature-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-feature-card { display: flex; align-items: center; gap: 1rem; min-height: 138px; padding: 1.35rem; border-radius: 18px; background: #0c315a; color: #fff; text-decoration: none; box-shadow: 0 12px 25px rgba(12,49,90,.18); transition: transform .2s ease, box-shadow .2s ease; }
.service-feature-card--light { background: #fff; color: #173250; border: 1px solid #d9e8ef; box-shadow: 0 8px 20px rgba(12,49,90,.08); }
.service-feature-card:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 30px rgba(12,49,90,.25); }
.service-feature-card--light:hover { color: #173250; }
.service-feature-icon { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: rgba(125,216,235,.16); color: #84dfef; font-size: 1.35rem; }
.service-feature-card--light .service-feature-icon { background: #eaf7fa; color: #167493; }
.service-feature-content { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.service-feature-content small, .home-donation-strip small { font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.service-feature-content strong { margin: .16rem 0 .3rem; font-size: 1.08rem; }
.service-feature-content em { font-size: .81rem; font-style: normal; line-height: 1.35; opacity: .8; }
.service-feature-arrow { color: #84dfef; }
.service-feature-card--light .service-feature-arrow { color: #167493; }
.service-feature-card--salud-va img { flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; }

.home-service-group { margin-top: 1.35rem; }
.home-service-group-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; color: #526d83; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-service-group-title i { color: #20809f; font-size: 1rem; }
.home-service-compact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.service-compact-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .55rem; min-height: 76px; padding: .8rem; border: 1px solid #dce9f0; border-radius: 14px; background: #fff; color: #173250; text-decoration: none; font-size: .87rem; font-weight: 750; line-height: 1.2; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.service-compact-card--button { width: 100%; text-align: left; font-family: inherit; cursor: pointer; }
.service-compact-card > i:first-child { color: #267f9f; font-size: 1.15rem; }
.service-compact-card > i:last-child { color: #7da0b0; font-size: .85rem; }
.service-compact-card:hover { color: #173250; border-color: #79c8d9; transform: translateY(-2px); box-shadow: 0 7px 14px rgba(12,49,90,.1); }
.service-compact-card.is-disabled { border-color: #e6edf1; background: #f6f8f9; color: #93a4b0; cursor: not-allowed; opacity: .72; }
.service-compact-card.is-disabled:hover { color: #93a4b0; border-color: #e6edf1; transform: none; box-shadow: none; }

.policlinico-modal .modal-body { padding: 1.5rem; }
.modal { z-index: 5000; }
.modal-backdrop { z-index: 4990; }
.policlinico-call-notice { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; padding: .8rem .9rem; border: 1px solid #b9dfeb; border-radius: 10px; background: #e8f7fa; color: #174f65; font-size: .92rem; }
.policlinico-call-notice > i { color: #167493; font-size: 1.1rem; }
.policlinico-call-notice a { color: #0d5f7c; font-weight: 800; }
.policlinico-intro { margin: 0 0 1rem; color: #526d83; }
.policlinico-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.policlinico-category-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; min-height: 82px; padding: 1rem; border: 1px solid #dce9f0; border-radius: 14px; background: #fff; color: #173250; text-align: left; font: inherit; font-weight: 750; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.policlinico-category-card > i:first-child { color: #267f9f; font-size: 1.35rem; }
.policlinico-category-card > i:last-child { color: #7da0b0; }
.policlinico-category-card:hover { border-color: #79c8d9; transform: translateY(-2px); box-shadow: 0 7px 14px rgba(12,49,90,.1); }
.policlinico-back-button { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1rem; padding: 0; color: #167493; font-weight: 700; }
.policlinico-back-button:hover { color: #0e5573; }
.policlinico-category-title { margin: 0 0 1rem; color: #173250; font-size: 1.25rem; font-weight: 800; }
.policlinico-services { display: grid; gap: .7rem; }
.policlinico-service-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border: 1px solid #dce9f0; border-radius: 12px; color: #173250; }
.policlinico-service-calls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.policlinico-service-calls a { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .6rem; border-radius: 7px; background: #e8f7fa; color: #12617c; font-size: .82rem; font-weight: 750; text-decoration: none; }
.policlinico-service-calls a:hover { background: #d6f0f5; color: #0d4d64; }
.policlinico-no-contact { padding: .4rem .6rem; color: #6d7e88; font-size: .82rem; font-weight: 700; }

.home-donation-strip { display: flex; align-items: center; gap: .8rem; margin-top: 1.15rem; padding: .85rem 1rem; border-radius: 14px; background: #e8f7fa; color: #124e67; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.home-donation-strip:hover { background: #d6f0f5; color: #124e67; transform: translateX(3px); }
.home-donation-strip > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; line-height: 1.25; }
.home-donation-strip strong { margin-top: .15rem; font-size: .94rem; }
.home-donation-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #fff; color: #20809f; }

@media (max-width: 1199px) { .home-service-compact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991px) { .home-service-feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .home-service-feature-row { grid-template-columns: 1fr; } }
@media (max-width: 575px) { .home-services-heading { align-items: flex-start; flex-direction: column; } .home-service-compact-grid, .policlinico-categories { grid-template-columns: 1fr; } .service-feature-card { min-height: 125px; padding: 1rem; } .service-feature-content em { display: none; } .policlinico-service-item { align-items: flex-start; flex-direction: column; } .policlinico-service-calls { justify-content: flex-start; } }

/* Professional calls: visual shortcuts for current medical career opportunities. */
.home-professionals-section { padding: 2.5rem 0; background: #092d53; }
.home-professionals-heading { margin-bottom: 1.15rem; }
.home-professionals-section .home-section-eyebrow { color: #83dcec; }
.home-professionals-section .home-section-header h2 { color: #fff; }
.home-professionals-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.professional-promo-card { display: block; overflow: hidden; border: 0; border-radius: 18px; background: transparent; color: #fff; text-decoration: none; transition: transform .2s ease; }
.professional-promo-card img { display: block; width: min(100%, 900px); margin: 0 auto; aspect-ratio: 16 / 9; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45)); transition: transform .3s ease; }
.professional-promo-card:hover, .professional-promo-card:focus-visible { color: #fff; transform: translateY(-3px); }
.professional-promo-card:hover img { transform: scale(1.025); }
.professional-promo-card:focus-visible { outline: 3px solid #1d8ead; outline-offset: 3px; }

@media (max-width: 767px) { .home-professionals-section { padding: 2rem 0; } .home-professionals-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* Professional services: a compact workspace that gives priority to actions. */
.home-services-professional { background: #eef7fa; }
.professional-hub { position: relative; }
.professional-hub-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.professional-hub-heading h2 { margin-bottom: .45rem; }
.professional-hub-heading p { max-width: 42rem; margin: 0; color: #536b7f; }
.professional-hub-mark { display: grid; flex: 0 0 72px; width: 72px; height: 72px; place-items: center; border-radius: 20px; background: #d7f0f5; color: #227b9b; font-size: 2rem; }
.professional-hub-grid { display: grid; grid-template-columns: minmax(320px, 1.25fr) 2fr; gap: 1rem; align-items: start; }
.professional-tools-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.professional-primary-card { display: block; overflow: hidden; padding: 0; border-radius: 18px; background: transparent; color: #fff; text-decoration: none; transition: transform .2s ease; }
.professional-primary-card img { display: block; width: 100%; height: auto; margin: -9.25% 0; object-fit: contain; }
.professional-primary-card:hover { color: #fff; transform: translateY(-3px); }
.professional-tool-card { display: flex; min-width: 0; min-height: 0; aspect-ratio: 1; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .35rem; padding: .75rem; border: 1px solid #d6e8ee; border-radius: 16px; background: #fff; color: #173250; text-align: left; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.professional-tool-card:hover { color: #173250; border-color: #7acadc; transform: translateY(-2px); box-shadow: 0 9px 18px rgba(12,49,90,.1); }
.professional-tool-card.is-disabled { border-color: #e6edf1; background: #f6f8f9; color: #93a4b0; cursor: not-allowed; opacity: .72; }
.professional-tool-card.is-disabled:hover { color: #93a4b0; border-color: #e6edf1; transform: none; box-shadow: none; }
.professional-tool-card > i:first-child { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: #e7f6f9; color: #247d9d; font-size: 1.2rem; }
.professional-tool-card span { display: flex; flex-direction: column; min-width: 0; }
.professional-tool-card strong { font-size: .93rem; line-height: 1.25; }
.professional-tool-card small { margin-top: .25rem; color: #688196; font-size: .73rem; }
.professional-tool-card > i:last-child { align-self: flex-end; color: #568aa0; font-size: .9rem; }
.professional-tool-card[type="button"] { width: 100%; font: inherit; cursor: pointer; }

@media (max-width: 991px) { .professional-hub-grid { grid-template-columns: 1fr; } }
@media (max-width: 1199px) { .professional-tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .professional-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .professional-hub-heading { align-items: flex-start; } .professional-hub-mark { flex-basis: 52px; width: 52px; height: 52px; border-radius: 15px; font-size: 1.4rem; } .professional-tools-grid { grid-template-columns: 1fr; } .professional-tool-card { aspect-ratio: auto; min-height: 84px; } }

@media (max-width: 576px) {
    .home-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .news-feature-image {
        height: 120px;
    }

    .social-post-image {
        height: 280px;
    }

    .social-posts-row {
        padding: 0;
    }
}

/* Home refresh: hierarchy, confidence signals and calmer visual rhythm. */
.home-hero-section {
    padding: 1.5rem 0 1rem;
    background: linear-gradient(180deg, #f2f8fc 0%, #ffffff 100%);
}

.home-hero-card,
.hero-slide {
    min-height: 490px;
}

.home-hero-overlay {
    background: linear-gradient(105deg, rgba(7, 35, 70, 0.94) 0%, rgba(10, 54, 99, 0.86) 42%, rgba(17, 77, 127, 0.54) 68%, rgba(17, 77, 127, 0.2) 100%);
}

.home-hero-content {
    padding: 4.5rem 3.4rem;
    max-width: 640px;
}

.home-hero-content h1 { font-size: clamp(2.5rem, 4vw, 4rem); }
.home-hero-content p { font-size: 1.15rem; max-width: 35rem; }

.home-kicker,
.home-side-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    width: fit-content;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .72rem;
    font-weight: 800;
}

.home-kicker {
    padding: .42rem .7rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
}


.hero-btn-primary { background: #fff; color: var(--home-primary-dark); }
.hero-btn-primary:hover { color: var(--home-primary-dark); background: #dff5fa; }
.hero-btn-outline { background: rgba(255,255,255,.08); }

.home-side-card {
    background: linear-gradient(160deg, #fff 0%, #edf8fb 100%);
    border: 1px solid #cfe6ee;
    border-radius: 18px;
    padding: 1.45rem 1.25rem 1.1rem;
    box-shadow: 0 14px 35px rgba(12,67,110,.12);
}
.home-side-eyebrow { color: var(--home-primary); }
.home-side-title { margin: .6rem 0 .55rem; font-size: 1.75rem; }
.home-side-description { color: #536b7f; font-size: .9rem; line-height: 1.45; margin-bottom: 1rem; }
.home-side-action { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid #cfe6ee; color: var(--home-primary-dark); font-size: .88rem; font-weight: 800; }
.home-highlight-list { gap: .35rem; }
.info-salud-name { font-weight: 650; }

.home-services-section { padding: 2.7rem 0; }
.home-services-professional { background: linear-gradient(135deg, #eff8fb, #f5f8fc); }
.home-news-section { padding: 2.8rem 0 2.2rem; }
.home-social-section { padding: 2.6rem 0 3rem; }
.home-section-header h2, .home-section-title { font-size: clamp(1.65rem, 2.5vw, 2.25rem); }

/* Deja visible el patrón general entre los contenidos; tarjetas y modales siguen opacos. */
.home-hero-section,
.home-services-section,
.home-services-professional,
.home-social-section {
    background: transparent;
}

.service-card { border-radius: 16px; min-height: 128px; box-shadow: 0 6px 16px rgba(12,35,64,.08); }
.service-card i { font-size: 1.7rem; }
.news-feature-card { border-radius: 18px; box-shadow: 0 12px 28px rgba(12,35,64,.1); }
.news-feature-content { padding: 1.45rem 1.6rem; }
.news-feature-image { height: 220px; }

@media (min-width: 992px) {
    .home-hero-card, .hero-slide { height: 490px; }
    .news-feature-card .col-lg-5 { flex: 0 0 38%; width: 38%; }
    .news-feature-image { height: 100%; min-height: 250px; }
}

@media (max-width: 768px) {
    .home-hero-card, .hero-slide { min-height: 420px; }
    .home-hero-content { padding: 3rem 1.7rem; }
    .home-hero-content h1 { font-size: 2.25rem; }
}
