/* ===================================================
   SERVICIOS.CSS - PERFECTO EN PC Y MÓVIL
   =================================================== */

/* Fondo general de la sección principal */
.services-hero-section {
    background-color: #0d0d0d;
    color: #ffffff;
    min-height: 100vh;
    padding: 120px 5% 40px 5%;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --- 1. ENCABEZADO / HEADER --- */
header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 25px 8% !important; 
    width: 100% !important;
    box-sizing: border-box !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
}

/* --- 2. SECCIÓN SUPERIOR (TÍTULO Y DESCRIPCIÓN) --- */
.services-header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 40px;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.services-title-col {
    flex-shrink: 0;
    position: relative;
}

.services-hero-title {
    font-family: 'Bebas Neue', cursive, sans-serif;
    font-size: clamp(55px, 6vw, 85px);
    letter-spacing: 2px;
    line-height: 0.9;
    color: #ffffff;
    margin: 0;
    position: relative;
}

.services-hero-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background-color: #d4af37;
    margin-top: 10px;
}

.services-text-col {
    max-width: 550px;
    padding-top: 10px;
}

.services-hero-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #cccccc;
    margin: 0;
}

/* --- 3. SECCIÓN INFERIOR (FRANJAS, VEHÍCULOS Y LISTA) --- */
.services-body-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

/* COLUMNA GRÁFICA E IMAGEN */
.services-graphics-col {
    position: relative;
    width: 55%;
    display: flex;
    align-items: flex-end;
}

/* FRANJAS DIAGONALES EN LA ESQUINA INFERIOR IZQUIERDA */
.slash-shape-container {
    position: absolute;
    left: -40px;
    bottom: -20px;
    display: flex;
    gap: 20px;
    z-index: 1;
}

.slash-bar {
    background-color: #d4af37;
    height: 380px;
    transform: skewX(-26deg);
    transform-origin: bottom left;
}

.bar-1, .bar-2 {
    width: 140px;
}

/* IMAGEN DE VEHÍCULOS DEL HERO */
.services-vehicles-img {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 620px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* LISTA DERECHA DE SERVICIOS */
.services-list-col {
    position: relative;
    z-index: 4;
    width: 40%;
    padding-bottom: 20px;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.service-arrow {
    color: #d4af37;
    font-size: 14px;
    margin-top: 6px;
}

.service-info h3 {
    font-family: 'Bebas Neue', cursive, sans-serif;
    font-size: clamp(26px, 2.5vw, 32px);
    letter-spacing: 1.5px;
    color: #ffffff;
    margin: 0;
    line-height: 1;
}

.btn-services-cta {
    display: inline-block;
    background-color: #d4af37;
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 2px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-services-cta:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}

nav ul li a[href="servicios.html"] {
    color: #d4af37;
    font-weight: 700;
}

/* ===================================================
   CORRECCIÓN DEFINITIVA DE CENTRADO (PC Y MÓVIL)
   =================================================== */

/* 1. Fuerza al contenedor padre a abarcar todo el ancho y centrar su contenido */
.services-detail-section,
.service-detail-section {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 80px 20px !important;
}

/* 2. Centra la caja contenedora de las tarjetas */
.services-detail-container,
.service-detail-container {
    width: 100% !important;
    max-width: 850px !important; /* Controla el ancho máximo en pantallas grandes */
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* 3. Centra cada tarjeta individualmente */
.service-detail-card {
    width: 100% !important;
    max-width: 850px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* 4. Control de tamaño y centrado para las imágenes */
.card-image-box {
    width: 100% !important;
    max-width: 850px !important;
    height: 420px !important;
    margin: 0 auto 30px auto !important;
    overflow: hidden !important;
    border-radius: 4px !important;
}

.card-image-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 5. Centrado de textos y títulos */
.card-content-box {
    width: 100% !important;
    max-width: 750px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.card-title,
.card-text {
    text-align: center !important;
}
/* DECORACIÓN EN PANTALLAS GRANDES */
.right-decoration-shape {
    position: absolute;
    right: -60px;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
}

.decor-bar {
    background-color: #d4af37;
    width: 180px;
    transform: skewX(-25deg);
    opacity: 0.8;
}

.bar-top { height: 280px; }
.bar-bottom { height: 350px; }

html {
    scroll-behavior: smooth;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}

.service-link:hover h3 {
    color: #d4af37;
}

/* ===================================================
   ADAPTACIÓN EXCLUSIVA PARA MÓVILES (HASTA 900PX)
   =================================================== */

@media (max-width: 900px) {

    header {
        position: relative !important;
        flex-direction: column !important;
        gap: 15px;
        padding: 20px !important;
        text-align: center;
        background-color: #080808;
    }

    .services-hero-section {
        padding: 40px 20px 20px 20px;
        min-height: auto;
    }

    .services-header-container {
        flex-direction: column;
        gap: 20px;
        margin-top: 0;
    }

    .services-body-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-top: 30px;
    }

    .services-graphics-col,
    .services-list-col {
        width: 100%;
        padding-bottom: 0;
    }

    .card-image-box {
        height: 250px; /* Reducción de alto de imagen en celulares */
        margin-bottom: 20px;
    }

    .card-title {
        font-size: 32px;
    }

    .slash-shape-container,
    .right-decoration-shape {
        display: none; /* Evita desbordamiento horizontal en teléfono */
    }
}