/* =========================================================
   SERVICE AREA — estilos compartidos para todas las áreas
   ========================================================= */

/* ---------- HERO ---------- */
.area-hero {
    min-height: 500px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
    background: #293b46;
}

.area-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(12, 30, 40, .72), rgba(12, 30, 40, .12));
}

.area-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
}

.area-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Fix para el H1 del Hero */
.hero-title {
    font-size: 46px;
    line-height: 1.15;
    font-weight: 700;
    margin: 10px 0 20px;
    color: #fff;
}

.area-hero-copy > p:not(.area-hero-eyebrow) {
    max-width: 620px;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.area-hero-copy {
    max-width: 650px;
    padding: 30px 40px;
    background: rgba(0, 0, 0, .5);
    border-radius: 10px;
}

/* Breadcrumb y Label */
.area-breadcrumb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.area-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}
.area-breadcrumb a:hover {
    text-decoration: underline;
}

.area-hero-eyebrow {
    display: block;
    color: #cb9501;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Fix general para los H2 de las secciones */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #123524;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* ---------- PROJECT SHOWCASE ---------- */
.area-showcase {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.area-showcase__media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.area-showcase__media img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .5s ease;
}

.area-showcase__media:hover img {
    transform: scale(1.03);
}

.area-showcase__hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(31, 41, 51, .85);
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 4px;
    pointer-events: none;
}

.area-showcase__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.area-showcase__thumbs a {
    flex: 1;
    display: block;
    border-radius: 4px;
    overflow: hidden;
}

.area-showcase__thumbs img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
    transition: opacity .2s ease;
}

.area-showcase__thumbs a:hover img {
    opacity: 0.8;
}

.area-showcase__body {
    padding: 20px 0 20px 20px;
}

.area-showcase__date {
    color: #cb9501;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.area-showcase__title {
    font-size: 36px;
    font-weight: 800;
    color: #123524;
    margin-bottom: 16px;
    line-height: 1.1;
}

.area-showcase__desc {
    color: #5a6472;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.area-showcase__services {
    font-size: 14px;
    color: #8a94a3;
}

.area-showcase__services a {
    color: #123524;
    text-decoration: none;
    font-weight: 600;
}

/* ---------- NAV / PICKER ---------- */
.area-project-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 24px;
    padding: 10px 16px;
    background: #f7f8fa;
    border-radius: 8px;
    font-size: 14px;
    color: #123524;
}

.area-project-nav button {
    background: none;
    border: none;
    color: #123524;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 8px;
    transition: color .2s ease;
}

.area-project-nav button:hover:not(:disabled) {
    color: #cb9501;
}

.area-project-nav button:disabled {
    color: #b9c0c8;
    cursor: not-allowed;
}

.area-project-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 28px;
}

.area-project-picker button {
    width: 92px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #fff;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all .2s ease;
    text-align: left;
}

.area-project-picker button img {
    display: block;
    width: 100%;
    height: 64px;
    object-fit: cover;
}

.area-project-picker button span {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    padding: 6px 6px 8px;
    color: #5a6472;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.area-project-picker button:hover,
.area-project-picker button.is-active {
    border-color: #cb9501;
}

/* ---------- FAQ (acordeón) ---------- */
.area-faq {
    max-width: 860px;
    margin: 0 auto;
}

.area-faq .accordion_header {
    display: block;
    position: relative;
    padding: 18px 22px 18px 46px;
    background: #fff;
    border: 1px solid #e5e8ed;
    border-radius: 8px;
    color: #123524;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all .25s ease;
}

.area-faq .accordion_header:hover {
    border-color: #cb9501;
    box-shadow: 0 4px 14px rgba(18, 53, 36, .06);
}

.area-faq .accordion_header:before {
    content: "\f054";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #cb9501;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    transition: transform .25s ease;
}

.area-faq .accordion_header.is-open:before {
    transform: translateY(-50%) rotate(90deg);
}

.area-faq .accordion_body {
    display: none;
    padding: 0 22px 20px 46px;
    color: #5a6472;
    font-size: 15px;
    line-height: 1.7;
    margin-top: -4px;
    margin-bottom: 12px;
}

.area-faq .accordion_body.is-open {
    display: block;
}

/* ---------- OTHER AREAS (Carrusel Automático) ---------- */
.area-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.area-marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: scroll-marquee 40s linear infinite;
}

.area-marquee-wrapper:hover .area-marquee-track {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 6px)); }
}

.area-marquee-track a,
.area-marquee-track span {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e8ed;
    color: #123524;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all .25s ease;
}

.area-marquee-track a:hover {
    background: #123524;
    border-color: #123524;
    color: #fff;
}

.area-marquee-track span {
    color: #8a94a3;
    background: #f7f8fa;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .area-hero h1,
    .hero-title {
        font-size: 32px;
    }
    .area-showcase__body {
        padding: 20px;
    }
    .area-showcase__title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .area-hero {
        min-height: 380px;
    }
    .area-hero h1,
    .hero-title {
        font-size: 26px;
    }
    .area-showcase__thumbs {
        display: none;
    }
}

/* =========================================================
   Centrado vertical del Showcase y Ocultar inactivos
   ========================================================= */

.area-showcase[hidden] {
    display: none !important;
}

.area-showcase.row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.area-showcase .col-md-6:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.area-showcase__body {
    padding: 20px 40px;
}

@media (max-width: 991px) {
    .area-showcase.row {
        display: block;
    }
    .area-showcase__body {
        padding: 20px 15px;
    }
}