/* =========================================
   ESTILOS ESPECÍFICOS DE SERVICIOS (VIP DINÁMICO)
   ========================================= */

/* --- 0. ANIMACIONES SUAVES --- */
.services-page-section,
.service-row,
.service-text-col,
.features-list,
.btn,
.service-image-col img,
h1, h3, p {
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* --- 1. ENCABEZADO DE LA PÁGINA --- */
.services-page-section {
    padding: 6rem 0; 
    background-color: var(--bg-principal);
}

/* TÍTULO PRINCIPAL */
.services-page-section h1 {
    color: var(--texto-principal);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

/* SUBTÍTULO */
.services-page-section p {
    color: var(--texto-secundario);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem auto;
    font-size: 1.2rem;
}

/* Hacemos la sección mucho más ancha en pantallas grandes */
.services-page-section .container {
    max-width: 1400px; 
    width: 95%;
}

/* --- 2. FILAS DE SERVICIOS (CAJAS SIMÉTRICAS 50/50) --- */
.service-row {
    display: flex;
    gap: 30px; 
    margin-bottom: 5rem;
    align-items: stretch; /* Fuerza a ambas cajas a tener la misma altura exacta */
    background: transparent;
    
    /* LA MAGIA: Forzamos a que cada servicio sea alto y espacioso (ajústalo si lo quieres aún más gigante) */
    min-height: 550px; 
}

.service-row.reverse {
    flex-direction: row-reverse;
}

/* --- COLUMNA DE LA IMAGEN --- */
.service-image-col {
    flex: 1; 
    display: flex;
    align-items: center;      /* Centra verticalmente */
    justify-content: center;  /* Centra horizontalmente */
    position: relative;
    padding: 20px; /* Un poco de respiro interno por si acaso */
}

/* --- LA IMAGEN (PROPORCIÓN PERFECTA Y SOMBRA VIP) --- */
.service-image-col img {
    /* Le permite crecer hasta llenar el 90% de la nueva altura gigante de la fila */
    max-height: 90%; 
    max-width: 95%; 
    
    /* Con "auto", mantiene sus proporciones intactas sin importar cuánto crezca */
    width: auto;
    height: auto;
    
    /* Bordes y Sombra dorada suave */
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.45); 
    display: block;
}


/* --- 4. COLUMNA DE TEXTO (TEXTOS DE LOS SERVICIOS) --- */
.service-text-col {
    flex: 1; 
    position: relative;
    overflow: hidden;
    /* Aumentamos el padding para que coincida con la nueva altura gigante */
    padding: 70px 80px; 
    border-radius: 12px;
    border: 1px solid var(--borde-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-secundario); 
}

.service-text-col h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--texto-principal);
    font-weight: 700;
}

.service-text-col p {
    font-size: 1.1rem;
    color: var(--texto-secundario);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* --- CLASES PARA EL VIDEO DE FONDO EN EL TEXTO --- */
.service-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 0;
}

.service-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.80); 
    z-index: 1;
}

.service-content-wrapper {
    position: relative;
    z-index: 2; 
}

/* --- 5. LISTA DE CARACTERÍSTICAS (CHECKS VIP) --- */
.features-list {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}

.features-list li {
    margin-bottom: 1rem;
    color: var(--texto-principal);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 1.05rem;
}

.features-list li i {
    color: var(--acento-oro) !important;
    font-size: 1.2rem;
}

/* --- 6. BOTONES --- */
.service-text-col .btn {
    background-color: transparent;
    border: 2px solid var(--texto-principal);
    color: var(--texto-principal);
    font-weight: 700;
    padding: 12px 30px;
    display: inline-block;
    align-self: flex-start; /* Evita que el botón se estire */
}

.service-text-col .btn:hover {
    background-color: var(--acento-oro);
    border-color: var(--acento-oro);
    color: #000000;
    transform: translateY(-3px);
}

/* =========================================
   HERO DE SERVICIOS (Imagen de Fondo ss.avif)
   ========================================= */
.services-hero {
    position: relative;
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(17, 17, 17, 0.95)), url('/src/img/SS.avif');
    background-size: cover;          
    background-position: center;     
    background-repeat: no-repeat;
    padding: 8rem 0;                 
    border-bottom: 1px solid var(--borde-color);
}

.services-hero h1 {
    font-size: 3.5rem;
    color: #f0f0f0 !important; 
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8); 
}

.services-hero p {
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto;
    color: #f0f0f0;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* --- 7. RESPONSIVO CONSOLIDADO --- */
@media (max-width: 992px) {
    .service-row, 
    .service-row.reverse {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .service-image-col {
        min-height: 350px; /* En celular la foto necesita altura fija */
        width: 100%;
    }
    
    .service-text-col {
        padding: 40px 20px;
    }
    
    .service-text-col .btn {
        align-self: center; /* Centramos el botón en celular */
    }
    
    .features-list li {
        justify-content: center;
    }
    
    .service-text-col h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 5rem 15px; 
    }
    
    .services-hero h1 {
        font-size: 2.2rem;
    }
    
    .services-hero p {
        font-size: 1rem;
        line-height: 1.6;
    }
}