/* ==========================================================================
   VISTA INDIVIDUAL DE SERVICIOS - DISEÑO CORPORATIVO
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LAYOUT PRINCIPAL
   -------------------------------------------------------------------------- */
.single-servicio-main { 
    background-color: #f9f9fa; 
    padding-bottom: 80px; 
}

/* --------------------------------------------------------------------------
   2. HERO BANNER
   -------------------------------------------------------------------------- */
.servicio-hero { 
    width: 100%; 
    height: 400px; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
}

.servicio-hero-overlay { 
    background: rgba(0, 0, 0, 0.5); 
    width: 100%; 
    height: 100%; 
}

/* --------------------------------------------------------------------------
   3. TARJETA PRINCIPAL
   -------------------------------------------------------------------------- */
.servicio-card-detalle {
    background: #ffffff; 
    max-width: 800px; 
    margin: -150px auto 0 auto;
    padding: 60px; 
    border-radius: 12px; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); 
    position: relative;
}

/* --- Tipografía Interna --- */
.servicio-texto-wysiwyg h1 { 
    font-size: 2.2rem; 
    font-weight: 900; 
    color: var(--color-darker, #111111); 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    letter-spacing: -0.5px;
}

.divider-red { 
    width: 60px; 
    height: 4px; 
    background: var(--color-red, #e20613); 
    margin-bottom: 30px; 
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   4. CAJA INTERNA DE CONVERSIÓN (Formulario / CTA)
   -------------------------------------------------------------------------- */
.conversion-box {
    border: 1px solid #e5e7eb; 
    border-radius: 8px; 
    padding: 40px;
    margin-top: 40px; 
    text-align: center; 
    background: #fafafa;
}

.conversion-box h3 { 
    font-size: 1.4rem; 
    margin-bottom: 10px; 
    color: var(--color-darker, #111111);
    font-weight: 800;
}

.conversion-box p {
    color: #555555;
    margin-bottom: 25px;
    line-height: 1.5;
}

.cta-group { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

/* --------------------------------------------------------------------------
   5. BOTONES DE ACCIÓN
   -------------------------------------------------------------------------- */
.btn-cotizar { 
    display: inline-block;
    background: var(--color-red, #e20613); 
    color: #ffffff; 
    padding: 16px; 
    border-radius: 6px; 
    font-weight: 800; 
    text-decoration: none; 
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-cotizar:hover,
.btn-cotizar:focus-visible { 
    background: #c00000; 
    color: #ffffff;
    outline: none;
    transform: translateY(-2px);
}

/* Botón de WhatsApp Optimizado */
.btn-whatsapp { 
    border: 2px solid var(--color-darker, #111111); 
    color: var(--color-darker, #111111); 
    padding: 16px; 
    border-radius: 6px; 
    font-weight: 700; 
    text-decoration: none; 
    
    /* Alineación perfecta flexbox */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
    transition: all 0.3s ease;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible { 
    background: var(--color-darker, #111111); 
    color: #ffffff; 
    outline: none;
    transform: translateY(-2px);
}

.icon-whatsapp {
    width: 24px;  /* Ajustado a un tamaño más proporcional al texto */
    height: 24px; 
    flex-shrink: 0; 
    display: block; 
}

/* --------------------------------------------------------------------------
   6. NAVEGACIÓN INFERIOR
   -------------------------------------------------------------------------- */
.servicio-acciones { 
    margin-top: 40px; 
    text-align: center; 
}

.servicio-acciones a { 
    color: #666666; 
    font-size: 0.95rem; 
    font-weight: 600; 
    text-decoration: underline; 
    transition: color 0.3s ease;
}

.servicio-acciones a:hover,
.servicio-acciones a:focus-visible { 
    color: var(--color-red, #e20613); 
    outline: none;
}

/* ==========================================================================
   7. RESPONSIVIDAD MÓVIL CRÍTICA
   ========================================================================== */
@media (max-width: 768px) {
    /* UX: Reducimos la altura del Hero para que el contenido suba en móviles */
    .servicio-hero {
        height: 250px;
    }

    .servicio-card-detalle { 
        margin: -50px 5vw 0 5vw; 
        padding: 35px 25px; 
    }

    .servicio-texto-wysiwyg h1 {
        font-size: 1.8rem;
    }

    .conversion-box {
        padding: 30px 20px;
    }
}