/* ============================================================
   home.css — Vista principal · Umbral CMS
   Bootstrap 5.3 companion stylesheet
   Variables en scope para no colisionar con CSS global
   ============================================================ */

/* ── Variables (mismo sistema que pages-static.css) ────────── */
.home-intro,
.home-card,
.home-gallery-section,
.home-test-banner {
    --sp-orange:       #f47920;
    --sp-orange-dark:  #d4620a;
    --sp-blue:         #1a3a5c;
    --sp-blue-mid:     #2d6096;
    --sp-bg-light:     #f5f6f8;
    --sp-text:         #333d47;
    --sp-muted:        #6c7a89;
    --sp-border:       #dde3ea;
    --sp-white:        #ffffff;
    --sp-radius-card:  10px;
    --sp-shadow-card:  0 2px 12px rgba(26,58,92,.09);
    --sp-shadow-hover: 0 6px 24px rgba(26,58,92,.16);
    --sp-transition:   .22s ease;
}

/* ── Introducción ───────────────────────────────────────────── */
.home-intro {
    font-size: .93rem;
    line-height: 1.7;
    color: var(--sp-muted);
    max-width: 820px;
    margin: 0 auto;
}

.home-intro__text {
    margin-bottom: .35rem;
}

.home-intro__accent {
    color: var(--sp-orange);
    font-weight: 600;
}

.home-intro__highlight {
    color: var(--sp-blue);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .01em;
    margin-bottom: 0;
}

/* ── Tarjeta base ───────────────────────────────────────────── */
.home-card {
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
    box-shadow: var(--sp-shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header de tarjeta */
.home-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 1rem;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .02em;
}

.home-card__header a:first-child {
    color: #fff;
    text-decoration: none;
    flex: 1;
}

.home-card__header a:first-child:hover {
    text-decoration: underline;
    opacity: .9;
}

/* Colores de header */
.home-card__header--gold  { background: #e6a817; }
.home-card__header--green { background: #5aab2e; }
.home-card__header--teal  { background: #2ab5b5; }
.home-card__header--blue  { background: var(--sp-blue); }

/* Botón + */
.home-card__more {
    color: rgba(255,255,255,.85) !important;
    font-size: 1.1rem;
    line-height: 1;
    transition: color var(--sp-transition), transform var(--sp-transition);
    text-decoration: none !important;
}

.home-card__more:hover {
    color: #fff !important;
    transform: scale(1.2);
}

/* Body de tarjeta */
.home-card__body {
    padding: .75rem .9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

/* ── Carousel ───────────────────────────────────────────────── */
.home-carousel__img {
    width: 100%;
    height: 100%;
    /*object-fit: contain;*/
    display: block;
    min-height: 220px;
    max-height: 419px;
}

/* ── Ítem thumbnail + título ────────────────────────────────── */
.home-thumb-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--sp-bg-light);
    text-decoration: none;
    color: var(--sp-text);
    transition: color var(--sp-transition);
}

.home-thumb-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.home-thumb-item:hover {
    color: var(--sp-orange);
}

.home-thumb-item__img-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--sp-bg-light);
}

.home-thumb-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--sp-transition);
}

.home-thumb-item:hover .home-thumb-item__img {
    transform: scale(1.06);
}

.home-thumb-item__title {
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.35;
    flex: 1;
}

/* ── Banner test ────────────────────────────────────────────── */
.home-test-banner {
    max-width: 600px;
    border-radius: var(--sp-radius-card);
    box-shadow: var(--sp-shadow-card);
    transition: box-shadow var(--sp-transition), transform var(--sp-transition);
}

.home-test-banner:hover {
    box-shadow: var(--sp-shadow-hover);
    transform: translateY(-2px);
}

/* ── Sección galería ────────────────────────────────────────── */
.home-gallery-section__header {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sp-blue);
    padding: .5rem 0 .25rem;
    border-bottom: 3px solid var(--sp-orange);
    display: inline-flex;
    align-items: center;
    margin-bottom: .25rem;
}

/* Video card */
.home-video-card {
    border-radius: var(--sp-radius-card);
    overflow: hidden;
    box-shadow: var(--sp-shadow-card);
    transition: box-shadow var(--sp-transition);
}

.home-video-card:hover {
    box-shadow: var(--sp-shadow-hover);
}

/* Foto card */
.home-photo-card {
    border-radius: var(--sp-radius-card);
    overflow: hidden;
    box-shadow: var(--sp-shadow-card);
    aspect-ratio: 1 / 1;
    background: var(--sp-bg-light);
    transition: box-shadow var(--sp-transition), transform var(--sp-transition);
}

.home-photo-card:hover {
    box-shadow: var(--sp-shadow-hover);
    transform: translateY(-2px);
}

.home-photo-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .home-carousel__img {
        min-height: 160px;
        max-height: 260px;
    }

    .home-thumb-item__img-wrap {
        width: 44px;
        height: 44px;
    }

    .home-thumb-item__title {
        font-size: .82rem;
    }
}

@media (max-width: 575.98px) {
    .home-intro {
        font-size: .87rem;
    }

    .home-card__header {
        font-size: .83rem;
        padding: .5rem .85rem;
    }
}