/* ===== HERO estático servicios ===== */
/* Hero de páginas estáticas */
.hero-estatico{
    background:#0f1216;
    color:#fff;
    /* reduce altura: antes clamp(2rem,5vw,3rem) */
    padding: clamp(1.5rem, 3vw, 2rem) 0;
}

/* Forzamos el subtítulo a gris claro en vez de negro */
.hero-estatico .lead{
    color: rgba(255,255,255,.75) !important;
}

/* ===== Tarjetas de servicios ===== */
.servicio-item{
    border-radius:14px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.servicio-item:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15,23,42,.08);
}
.serv-icon{
    width:48px; height:48px;
    display:flex; align-items:center; justify-content:center;
    border-radius:12px;
    background: rgba(13,110,253,.12);
    color:#0d6efd;
    font-size:1.35rem;
}

/* ===== CTA inferior ===== */
.serv-cta{ background:#f8fafc; }
.serv-cta-card{ border-radius:18px; }


.banner-wrap {
    background:#f8f9fa;
    max-height:260px;
    margin-bottom: 1rem; /* ajusta: 1rem, 2rem, 3rem según lo que quieras */

}

.ratio.banner-limit{
    max-height: 200px;     /* la altura máxima que quieras */
    overflow: hidden;      /* recorta lo que sobresalga */
    background:#0f1216;    /* color de fondo neutro */

}

/* Imagen dentro del ratio */
.ratio.banner-limit > img{
    position: absolute;    /* ocupa toda la caja ratio */
    inset: 0;              /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100%;
    object-fit: cover;     /* recorta para cubrir sin deformar */
    display: block;
}


.hero-valores {
    background: #0f1216 url("../assets/servicios/serv_hero_1920.png") center/cover no-repeat;
    position: relative;
    min-height: 18vh;
}
.hero-valores::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.65));
}
.hero-valores .container {
    position: relative;
    z-index: 1;
}

/* MINI HERO ANTES DE HABLAMOS NUEVO COCHE */
/* MINI HERO (Servicios) */
.mini-hero{
    position:relative; border-radius:16px; overflow:hidden;
    box-shadow:0 6px 24px rgba(0,0,0,.18);
}
.mini-hero img{
    width:100%; height: clamp(220px, 42vw, 420px);
    object-fit:cover; display:block; filter:brightness(.88);
}
.mini-hero__overlay{
    position:absolute; inset:0; color:#fff; display:flex; align-items:center;
    background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.18) 55%, transparent);
}
.mini-hero .container{ max-width: 1040px; }
.mini-hero__eyebrow{
    display:inline-block; font-weight:700; letter-spacing:.06em;
    color:rgba(255,255,255,.9); text-transform:uppercase; font-size:.8rem; margin-bottom:.25rem;
}
.mini-hero h3{ font-weight:800; margin:0 0 .3rem; font-size:clamp(1.6rem, 3.2vw, 2.15rem); }
.mini-hero p{ margin:0 0 .7rem; color:rgba(255,255,255,.9); max-width: 52ch; }
.mini-hero .btn{ font-weight:700; }
@media (max-width: 576px){
    .mini-hero__overlay{ background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.15) 55%, transparent); }
    .mini-hero p{ font-size:.95rem; }
}

/* BARRA NAVEGACION ENTRE PAGINAS */
.ga-backnav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    color: #1f2937; /* gris oscuro */
}

.ga-backnav__link {
    position: relative;
    color: #2563eb; /* azul más oscuro, elegante */
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ga-backnav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #2563eb; /* mismo tono del texto */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.ga-backnav__link:hover::after {
    transform: scaleX(1);
}

.ga-backnav__link:hover {
    color: #1d4ed8; /* un tono más profundo al pasar el ratón */
}

.ga-backnav__title {
    color: #111827;
    font-weight: 600;
}

/* VERION DE MOVIL */
/* ===== SOLO MÓVIL ===== */
@media (max-width: 576px){

    /* HERO "Nuestros servicios" (fondo de .hero-valores) */
    .hero-valores{
        /* Mucho más bajo para que no “aplasten” la imagen ni se haga kilométrico */
        height: clamp(150px, 34vh, 150px);
        min-height: auto;              /* anulamos el min-height global */
        background-size: cover;
        background-position: center 30%;/* sube un pelín el encuadre */
        /* opcional: sirve una imagen móvil más ligera si la tienes */
        /* background-image: url("../assets/servicios/serv_hero_1024.jpg"); */
    }
    .hero-valores .container{
        padding: 1rem 1rem 1.2rem;     /* menos aire para compactar */
    }
    .hero-valores h1{
        font-size: 1.45rem;
        margin-bottom: .25rem;
    }
    .hero-valores .lead{
        font-size: .95rem;
        line-height: 1.35;
        max-width: 32ch;
    }

    /* Ocultar la navegación "Volver / Servicios" en móvil */
    .ga-backnav{ display: none !important; }

    /* (Opcional) Banner/mini-hero siguiente más compacto en móvil */
    .mini-hero img{
        height: clamp(160px, 33vh, 220px); /* antes era 220–420px, bajamos mucho */
        object-fit: cover;
    }
}

/* ===== Mini-hero móvil: sin "orejitas" (solo móvil) ===== */
@media (max-width: 576px){

    #servicios-minihero-movil{
        position: relative;
        /* anula bootstrap en móvil */
        box-shadow: none !important;
        border-radius: 0 !important;

        /* recorte redondeado del bloque completo (imagen + overlay) */
        clip-path: inset(0 round 12px);

        /* evita que se vea fondo claro si hay transparencias */
        background: #000;
        margin: 1rem 0 1.25rem;
    }

    #servicios-minihero-movil picture{
        position: absolute; inset: 0;
        width: 100%; height: 100%;
    }
    #servicios-minihero-movil img{
        display: block;
        width: 100%; height: 100%;
        object-fit: cover;
    }

    /* Overlay móvil más opaco arriba para que no “aclare” en las esquinas */
    .mini-hero__overlay-movil{
        position: relative; z-index: 1;
        min-height: 200px;
        display: flex; align-items: flex-end;
        padding: 1rem; color: #fff;
        background: linear-gradient(180deg, rgba(0,0,0,.25) 8%, rgba(0,0,0,.65) 92%);
    }

    .mini-hero__overlay-movil .container{ padding: 0; }
    .mini-hero__overlay-movil .mini-hero__eyebrow{
        font-size:.8rem; margin-bottom:.2rem; letter-spacing:.05em;
        text-transform:uppercase; color:rgba(255,255,255,.95); font-weight:700;
    }
    .mini-hero__overlay-movil h3{ font-size:1.35rem; line-height:1.2; margin-bottom:.3rem; font-weight:800; }
    .mini-hero__overlay-movil p{ font-size:.95rem; line-height:1.35; color:rgba(255,255,255,.9); margin-bottom:.5rem; }
    .mini-hero__overlay-movil .btn{ font-weight:700; padding:.45rem .75rem; }
}





