/* =========================
   GASTROCLINICA - Home Sections (SCOPED)
   Bootstrap 3 compatible
   ========================= */

/* =========================
   HOME ONLY
   ========================= */

.page-home .gc-section {
    padding: 60px 0;
}

.page-home .gc-section--light {
    background: #f4f6f8;
}

.page-home .gc-two-col {
    margin-bottom: 40px;
}

.page-home .gc-title {
    font-weight: 800;
    letter-spacing: 2px;
    color: #2b2b2b;
    margin: 0;
    text-transform: uppercase;
}

.page-home .gc-title--spaced {
    letter-spacing: 5px;
}

.page-home .gc-underline {
    width: 90px;
    height: 4px;
    background: #5aa0e6;
    margin: 14px 0 22px;
}

.page-home .gc-text {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.page-home .gc-subtitle {
    margin: 0 0 14px;
    font-weight: 600;
    color: #3b3b3b;
}

.page-home .gc-btn {
    border-radius: 3px;
    padding: 10px 18px;
    border: 0;
    background: #3559a7;
    color: #fff;
    font-weight: 700;
    text-transform: none;
}

.page-home .gc-btn:hover,
.page-home .gc-btn:focus {
    background: #2a4b92;
    color: #fff;
}

.page-home .gc-btn--primary {
    background: #2b55c8;
}

.page-home .gc-btn--primary:hover,
.page-home .gc-btn--primary:focus {
    background: #2449ad;
}

/* Horarios (HOME) */
.page-home .gc-schedule-card {
    background: #274fa8;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.page-home .gc-schedule-head {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.page-home .gc-schedule-badge {
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.page-home .gc-schedule-badge i {
    margin-right: 8px;
}

.page-home .gc-schedule-body {
    padding: 18px;
}

.page-home .gc-schedule-row {
    display: table;
    width: 100%;
}

.page-home .gc-schedule-row--divider {
    height: 12px;
}

.page-home .gc-schedule-day,
.page-home .gc-schedule-time {
    display: table-cell;
    vertical-align: middle;
    color: #fff;
}

.page-home .gc-schedule-day {
    font-weight: 800;
    letter-spacing: 1px;
    width: 40%;
}

.page-home .gc-schedule-time {
    text-align: right;
    font-weight: 700;
}

/* FibroScan (HOME) */
.page-home .gc-fibroscan-section{
    background:
        linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
    border-radius: 6px;
    padding: 26px 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Líneas abstractas */
.page-home .gc-fibroscan-section:before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg,
            rgba(70, 130, 255, 0.08),
            rgba(90, 160, 230, 0.12));
    transform: rotate(25deg);
    border-radius: 60px;
    pointer-events: none;
}

.page-home .gc-media-card {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.page-home .gc-media-card img {
    width: 100%;
    height: auto;
    display: block;
}

.page-home .gc-list {
    padding-left: 0;
    list-style: none;
    margin: 16px 0 18px;
}

.page-home .gc-list li {
    margin-bottom: 10px;
    color: #555;
    font-size: 15px;
}

.page-home .gc-list i {
    color: #2b55c8;
    margin-right: 10px;
}

/* Mobile tweaks (HOME) */
@media (max-width: 767px) {
    .page-home .gc-section {
        padding: 45px 0;
    }

    .page-home .gc-title--spaced {
        letter-spacing: 3px;
    }

    .page-home .gc-fibroscan {
        padding: 20px 16px;
    }

    .page-home .gc-schedule-time {
        text-align: left;
    }
}

/* FIBROSCAN SECTION (HOME) */
.page-home .gc-fibroscan-section {
    padding: 80px 0;
    background: linear-gradient(135deg,
            #f4f9ff 0%,
            #e6f1fb 40%,
            #d9eafb 100%);
}
.page-home .gc-fibroscan-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.page-home .gc-fibroscan-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.page-home .gc-fibroscan-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-home .gc-fibroscan-content {
    padding-left: 30px;
}

.page-home .gc-section-title {
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1f2c4c;
    margin: 0;
}

.page-home .gc-line {
    width: 90px;
    height: 4px;
    background: #4f8edc;
    margin: 15px 0 25px;
}

.page-home .gc-fibroscan-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

.page-home .gc-fibroscan-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 25px;
}

.page-home .gc-fibroscan-list li {
    margin-bottom: 10px;
    font-size: 15px;
    color: #444;
}

.page-home .gc-fibroscan-list i {
    color: #2b55c8;
    margin-right: 8px;
}

.page-home .gc-btn-primary {
    background: #2b55c8;
    color: #fff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 4px;
    border: none;
}

.page-home .gc-btn-primary:hover,
.page-home .gc-btn-primary:focus {
    background: #2449ad;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 767px) {
    .page-home .gc-fibroscan-content {
        padding-left: 0;
        margin-top: 25px;
    }
}

/* HOME - Health Cards (BS3) */
.page-home .gc-health {
    background: #f4f6f8;
    padding: 70px 0;
}

.page-home .gc-health__title {
    margin: 0;
    font-weight: 800;
    letter-spacing: 2px;
    color: #2b2b2b;
    text-transform: uppercase;
}

.page-home .gc-health__line {
    width: 90px;
    height: 4px;
    background: #5aa0e6;
    margin: 14px auto 18px;
}

.page-home .gc-health__subtitle {
    color: #6b6b6b;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.page-home .gc-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    height: 100%;
    margin-bottom: 25px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-home .gc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.page-home .gc-card__imgwrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #e9edf2;
}

.page-home .gc-card__imgwrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-home .gc-card__body {
    padding: 18px 18px 16px;
    min-height: 170px;
}

.page-home .gc-card__title {
    margin: 0 0 10px;
    font-weight: 800;
    color: #1f2c4c;
    font-size: 17px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-home .gc-card__meta {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #6b6b6b;
    font-size: 13px;
}

.page-home .gc-card__meta li {
    display: inline-block;
    margin-right: 14px;
}

.page-home .gc-card__meta i {
    margin-right: 6px;
    color: #2b55c8;
}

.page-home .gc-card__footer {
    padding: 0 18px 18px;
}

.page-home .gc-card__btn {
    display: block;
    width: 100%;
    background: #3559a7;
    color: #fff;
    font-weight: 800;
    border-radius: 4px;
    padding: 10px 12px;
    text-align: center;
    text-decoration: none;
}

.page-home .gc-card__btn:hover,
.page-home .gc-card__btn:focus {
    background: #2a4b92;
    color: #fff;
    text-decoration: none;
}

.page-home .gc-health__cta {
    margin-top: 10px;
    background: transparent;
    border: 2px solid #3559a7;
    color: #3559a7;
    font-weight: 800;
    border-radius: 4px;
    padding: 10px 18px;
}

.page-home .gc-health__cta:hover,
.page-home .gc-health__cta:focus {
    background: #3559a7;
    color: #fff;
}

/* =========================
   SALUD ONLY
   (NO más reglas globales que contaminen HOME)
   ========================= */

/* Base mínima (solo tipografía/color; sin layout que “pise” otras páginas) */
.page-salud .health-card__title a {
    color: #0b3a6b;
    text-decoration: none;
}

.page-salud .health-card__title a:hover {
    text-decoration: underline;
}

/* LISTA 1 por fila SOLO SALUD */
.page-salud .health-card--list {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
}

.page-salud .health-card__media {
    display: block;
    flex: 0 0 280px;
    border-radius: 12px;
    overflow: hidden;
}

.page-salud .health-card__media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.page-salud .health-card__content {
    flex: 1;
    min-width: 0;
    padding: 16px 18px 18px;
}

.page-salud .health-card__title {
    margin: 0 0 10px;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.25;
}

.page-salud .health-card__excerpt {
    margin: 0 0 12px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.page-salud .health-card__meta {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
}

.page-salud .health-card__btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    background: #2b58b8;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
}

.page-salud .health-card__btn:hover,
.page-salud .health-card__btn:focus {
    background: #24479a;
    color: #fff !important;
}

/* Responsive SALUD */
@media (max-width: 767px) {
    .page-salud .health-card--list {
        flex-direction: column;
    }

    .page-salud .health-card__media {
        flex: 0 0 auto;
        border-radius: 0;
    }

    .page-salud .health-card__media img {
        height: 200px;
    }
}

/* ============================
   SUCURSALES (sin animaciones)
   Bootstrap 3 compatible
============================= */

.gc-branches {
    padding: 60px 0;
}

.gc-branch-card {
    display: block;
    text-decoration: none !important;
    margin-top: 25px;
}

.gc-branch-media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
    background: #e9edf2;
}

/* imagen simétrica */
.gc-branch-media img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* banda inferior para texto */
.gc-branch-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 14px 12px;
    background: linear-gradient(to top, rgba(10, 22, 44, .78), rgba(10, 22, 44, 0));
    color: #fff;
}

.gc-branch-brand {
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    opacity: .95;
}

.gc-branch-name {
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
    margin-top: 3px;
}

/* responsive */
@media (max-width: 767px) {
    .gc-branch-media img {
        height: 220px;
    }
}

/* ============================
   HOME - Especialidades (BS3)
============================= */

.gc-specialties {
    padding: 55px 0;
    background: #fff;
}

.gc-specialties__head {
    margin-bottom: 28px;
}

.gc-specialties__title {
    margin: 0;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f34747;
    /* mantiene tu rojo */
}

.gc-specialties__line {
    width: 90px;
    height: 4px;
    background: #5aa0e6;
    margin: 14px auto 16px;
}

.gc-specialties__subtitle {
    max-width: 860px;
    margin: 0 auto;
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}

.gc-specialties__grid {
    margin-top: 10px;
}

.gc-specialty-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
    border: 1px solid rgba(0, 0, 0, .06);
    margin-bottom: 25px;
}

.gc-specialty-card__inner {
    padding: 26px 22px 22px;
    min-height: 220px;
}

.gc-specialty-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.gc-specialty-card__icon i {
    font-size: 24px;
}

.gc-specialty-card__title {
    margin: 0 0 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: .3px;
    color: #ffffff;
}

.gc-specialty-card__text {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    line-height: 1.6;
}

.gc-specialty-card__cta {
    font-weight: 800;
    letter-spacing: .3px;
    display: inline-block;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
}

.gc-specialty-card__cta i {
    margin-left: 6px;
}

/* Colores (compatibles con tus bg-blueX) */
.gc-specialty-card--blue1 {
    background: #2b55c8;
}

.gc-specialty-card--blue2 {
    background: #3b73d9;
}

.gc-specialty-card--blue3 {
    background: #274fa8;
}

/* Hover suave (sin "efectos" fuertes) */
.gc-specialty-card:hover,
.gc-specialty-card:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.03);
}

/* Mobile */
@media (max-width: 767px) {
    .gc-specialties {
        padding: 45px 0;
    }

    .gc-specialty-card__inner {
        min-height: auto;
    }
}

/* ===== Quick Links (Home) ===== */
.gc-quicklinks {
    background: #0f2f66;
    /* base suave */
    padding: 0;
}

.gc-quicklink {
    display: block;
    text-decoration: none !important;
    color: #fff;
    margin: 0;
}

.gc-quicklink__inner {
    position: relative;
    padding: 26px 22px 24px;
    min-height: 150px;
    border-radius: 0;
    overflow: hidden;
    transition: transform .18s ease, filter .18s ease;
}

/* Colores por bloque (suaves, consistentes) */
.gc-quicklink--a .gc-quicklink__inner {
    background: #6fb6e9;
}

.gc-quicklink--b .gc-quicklink__inner {
    background: #355bb4;
}

.gc-quicklink--c .gc-quicklink__inner {
    background: #244da6;
}

.gc-quicklink--d .gc-quicklink__inner {
    background: #4aa7e6;
}

/* “Glow” sutil en hover */
.gc-quicklink__inner:after {
    content: "";
    position: absolute;
    inset: -40px -40px auto auto;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, .14);
    border-radius: 50%;
    filter: blur(0px);
    opacity: .7;
}

.gc-quicklink__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.gc-quicklink__icon i {
    font-size: 18px;
    color: #fff;
}

.gc-quicklink__title {
    margin: 0;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    font-size: 13px;
    line-height: 1.25;
    color: #ffffff;
}

.gc-quicklink__line {
    width: 54px;
    height: 3px;
    background: rgba(255, 255, 255, .85);
    margin: 12px 0 12px;
}

.gc-quicklink__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .95);
    max-width: 220px;
}

/* Hover */
.gc-quicklink:hover .gc-quicklink__inner,
.gc-quicklink:focus .gc-quicklink__inner {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

/* Separadores (desktop) */
@media (min-width: 992px) {
    .gc-quicklinks .col-md-3 {
        padding-left: 0;
        padding-right: 0;
    }

    .gc-quicklink__inner {
        border-right: 1px solid rgba(255, 255, 255, .16);
    }

    .gc-quicklinks .col-md-3:last-child .gc-quicklink__inner {
        border-right: 0;
    }
}

/* Mobile: que queden en 2x2 y con aire */
@media (max-width: 991px) {
    .gc-quicklinks {
        padding: 14px 0;
        background: #0f2f66;
    }

    .gc-quicklinks .col-sm-6 {
        margin-bottom: 12px;
    }

    .gc-quicklink__inner {
        border-radius: 14px;
        min-height: 160px;
    }
}