/* =============================================================
   Banner — Hero Section + Service Cards
   Tema Piedrangular
   ============================================================= */

/* =============================================================
   Hero Banner
   ============================================================= */
   body {
  margin: 0;
  padding: 0;
}
.banner {
    position: relative;
    height: 80vh;
    min-height: 640px; 
    background-color: var(--color-primary-dark, #2058ac);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    /* extra bottom room so cards (translateY 50%) don't clip content */
    padding-bottom: 120px;
}
.banner__slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.banner__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.banner__slide.active {
    opacity: 1;
}
/* ---- Dark gradient overlay ---- */
.banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(5, 18, 46, 0.82) 0%,
        rgba(5, 18, 46, 0.60) 55%,
        rgba(5, 18, 46, 0.38) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ---- Content container ---- */
.banner__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 140px; /* clear fixed header */
}

/* ---- Text block ---- */
.banner__content {
    max-width: 680px;
}

.banner__title {
    font-size: clamp(1.875rem, 3.5vw, 3rem);
    font-weight: 900;
    line-height: 1.12;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    margin: 0 0 1rem;
}

.banner__subtitle {
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    font-weight: 600;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 2rem;
}

/* ---- CTA button ---- */
.btn--cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-primary, #1a4ddb);
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    border-radius: 3px;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 2px solid var(--color-primary, #1a4ddb);
    transition:
        background-color 0.2s,
        border-color     0.2s;
    
}

.btn--cta:hover {
    background-color: var(--color-primary-hover, #1540c0);
    border-color: var(--color-primary-hover, #1540c0);
}

.btn--cta svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.btn--cta:hover svg {
    transform: translate(3px, -3px);
}

/* =============================================================
   Service Cards — positioned at the bottom of the banner,
   overlapping the next section by ~50% of their height
   ============================================================= */
.banner__cards {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    transform: translateY(50%);
}

.banner__cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ---- Individual card ---- */
.service-card {
    position: relative;
    height: 200px;
    border-radius: 3px;
    overflow: hidden;
    background-color: var(--color-primary-dark, #0b2c5f);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition:
        transform   0.3s ease,
        box-shadow  0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit; 
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
}

/* Gradient overlay inside card */
.service-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 25, 65, 0.15) 0%,
        rgba(8, 25, 65, 0.78) 100%
    );
    pointer-events: none;
}

/* Card footer with title */
.service-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.875rem 1.125rem;
    z-index: 1;
    background: rgba(11, 44, 95, 0.88);
}

.service-card__title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.4;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-card__icon {
    font-size: 0.9rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

/* Hover efecto PRO */
.service-card:hover .service-card__icon {
    transform: translateX(6px);
    opacity: 1;
}

/* =============================================================
   Section after banner — push content down to clear cards
   ============================================================= */
.banner + * {
    margin-top: 120px; /* ~half of card height + gap */
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 900px) {
    /* Stack hero content + cards vertically instead of side-by-side.
       Root cause: .banner is display:flex and when .banner__cards
       switches to position:relative it becomes a flex sibling of
       .banner__inner, placing them in a row and cutting the cards. */
    .banner {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        min-height: 0;
        padding-bottom: 0;
    }

    /* Hero area fills most of the viewport height */
    .banner__inner {
        min-height: 88vh;
        display: flex;
        align-items: center;
        padding-top: 120px;
        padding-bottom: 3rem;
    }

    /* Cards flow naturally below the hero, full width, light background */
    .banner__cards {
        position: relative;
        transform: none;
        bottom: auto;
        width: 100%;
        padding: 1.5rem 0 2rem;
        background-color: #f4f6fa;
        z-index: 3;
    }

    .banner__cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .banner + * {
        margin-top: 0;
    }
    .banner__slide {
        background-size: cover;
        background-position: 75% center;
        background-repeat: no-repeat;
        background-color: #2058ac;
    }
   
}

@media (max-width: 600px) {
    .banner__title {
        font-size: 1.625rem;
    }

    .btn--cta {
        font-size: 0.875rem;
        padding: 0.65rem 1.25rem;
    }
}
