/* CSS específico para la página Servicios Especiales (pages/servicios-especiales.html) */

/* Variables CSS basadas en el sistema de colores extraído del original */
:root {
    /* Colores extraídos del sistema wsw-* del original */
    --wsw-17: #000;             /* Títulos principales - blanco */
    --wsw-33: #f4d03f;             /* Marca y destacados - dorado */
    --wsw-43: #e8c547;             /* Texto especial - dorado claro */
    --wsw-27: #d4af37;             /* Títulos especiales - dorado oscuro */
    --wsw-47: #c9a96e;             /* Texto de énfasis - dorado apagado */
    --wsw-23: #ffd700;             /* Color de acento adicional - dorado brillante */
    
    /* Colores base */
    --color-text: #ffbf00;
    --color-text-light: #666666;
    --color-background: #000;
    --color-overlay-black: rgba(0, 0, 0, 0.5);
    
    /* Espaciado exacto del original */
    --section-padding: 60px 0; /* Exact 60px spacing as specified in task */
    --container-max-width: 1200px;
    --container-padding: 0 20px;
    
    /* Tipografía del original */
    --font-family: 'Montserrat', sans-serif;
    --font-size-hero: 2.5rem;
    --font-size-subtitle: 1.2rem;
    --font-size-section: 1.5rem;
    --font-size-text: 1rem;
    --line-height-base: 1.6;
    
    /* Responsive */
    --mobile-breakpoint: 37.5em; /* 600px */
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-background);
}

/* Container común */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* === MAIN CONTAINER === */
.servicios-especiales-main {
    margin-top: 0;
}

/* === SECCIÓN HERO === */
/* Basada en la imagen de fondo del original con overlay-black */
.hero-section {
    background-image: url('../img/Servicios-especiales.jpeg'); /* Mapeo a imagen local disponible */
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    min-height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: var(--color-overlay-black);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 1000px;
    padding: 60px 20px;
}

/* Título principal con font-size reducido (80%) - Requisito específico */
.hero-title {
    color: var(--wsw-33); /* Dorado como en el original */
    font-size: calc(var(--font-size-hero) * 0.8); /* 80% del tamaño normal */
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.2;
    text-align: center;
}

.hero-subtitle {
    color: var(--wsw-17); /* Blanco como en el original */
    font-size: var(--font-size-subtitle);
    line-height: 1.6;
    text-align: center;
}

/* Texto destacado en el párrafo introductorio */
.servicios-especiales-highlight {
    color: var(--wsw-23); /* Color wsw-23 para texto destacado */
    font-weight: bold;
    font-style: italic;
}

/* === SECCIÓN DE CONTENIDO PRINCIPAL === */
.content-section {
    padding: var(--section-padding);
    background-color: var(--color-background);
}

.content-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* === SECCIÓN DE SERVICIOS === */
.service-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: var(--font-size-section);
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--color-text);
    line-height: 1.3;
}

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-list li {
    margin: 15px 0;
    padding-left: 0;
    line-height: 1.6;
    color: var(--color-text);
}

.service-list li strong {
    font-weight: bold;
    color: var(--color-text);
}

/* === SECCIÓN DE EJEMPLOS CONCRETOS === */
.examples-section {
    margin-bottom: 50px;
}

.example-item {
    margin: 20px 0;
    padding: 0;
    line-height: 1.6;
}

.example-item p {
    margin: 0;
    color: var(--color-text);
}

/* Ejemplos concretos destacados - Aplicar colores wsw-23 para texto destacado */
.example-highlight {
    color: var(--wsw-23) !important; /* Color wsw-23 para texto destacado */
    font-weight: bold;
}

/* === SECCIÓN DE CIERRE === */
.closing-section {
    margin-bottom: 50px;
}

.closing-text {
    font-size: var(--font-size-text);
    line-height: 1.6;
    color: var(--color-text);
}

.closing-text strong {
    font-weight: bold;
    color: var(--color-text);
}

/* === SECCIÓN DE ICONO === */
.icon-section {
    text-align: center;
    margin: 50px 0;
}

.service-icon {
    display: inline-block;
}

.service-icon svg {
    width: 100px;
    height: 100px;
}

/* === SECCIÓN DE INVESTIGACIÓN === */
.investigation-section {
    margin-bottom: 50px;
}

.investigation-title {
    margin-bottom: 25px;
    line-height: 1.6;
}

.investigation-link {
    color: var(--wsw-33);
    text-decoration: none;
    font-weight: bold;
}

.investigation-link:hover {
    color: var(--wsw-43);
    text-decoration: underline;
}

.investigation-list {
    list-style: decimal;
    margin: 20px 0;
    padding-left: 30px;
}

.investigation-list li {
    margin: 15px 0;
    line-height: 1.6;
    color: var(--color-text);
}

.investigation-list li strong {
    font-weight: bold;
    color: var(--color-text);
}

/* === SECCIÓN DE SERVICIOS ADICIONALES === */
.additional-services-section {
    margin-bottom: 50px;
}

.additional-title {
    margin-bottom: 25px;
    line-height: 1.6;
}

.additional-title strong {
    color: var(--wsw-33);
    font-weight: bold;
}

.additional-list {
    list-style: decimal;
    margin: 20px 0;
    padding-left: 30px;
}

.additional-list li {
    margin: 15px 0;
    line-height: 1.6;
    color: var(--color-text);
}

.additional-list li strong {
    font-weight: bold;
    color: var(--color-text);
}

/* === CLASES DE COLOR ESPECÍFICAS DEL SISTEMA ORIGINAL === */
.wsw-17 { color: var(--wsw-17) !important; }
.wsw-33 { color: var(--wsw-33) !important; }
.wsw-43 { color: var(--wsw-43) !important; }
.wsw-27 { color: var(--wsw-27) !important; }
.wsw-47 { color: var(--wsw-47) !important; }
.wsw-23 { color: var(--wsw-23) !important; } /* Color wsw-23 para texto destacado */

/* === RESPONSIVE DESIGN === */

/* Tablet */
@media screen and (max-width: 768px) {
    :root {
        --font-size-hero: 2rem;
        --font-size-subtitle: 1.1rem;
        --font-size-section: 1.3rem;
        --section-padding: 40px 0;
    }
    
    .hero-content {
        padding: 40px 15px;
    }
    
    .content-container {
        padding: 0 15px;
    }
    
    .hero-section {
        min-height: 50vh;
    }
    
    /* Título con font-size 80% ajustado para tablet */
    .hero-title {
        font-size: calc(var(--font-size-hero) * 0.8);
    }
}

/* Mobile */
@media screen and (max-width: 37.5em) {
    :root {
        --font-size-hero: 1.8rem;
        --font-size-subtitle: 1rem;
        --font-size-section: 1.2rem;
        --section-padding: 30px 0;
    }
    
    .hero-section {
        min-height: 40vh;
    }
    
    .hero-content {
        padding: 30px 15px;
    }
    
    .content-container {
        padding: 0 10px;
    }
    
    /* Título con font-size 80% ajustado para móvil */
    .hero-title {
        font-size: calc(var(--font-size-hero) * 0.8);
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .service-list li,
    .investigation-list li,
    .additional-list li {
        margin: 12px 0;
        font-size: 0.95rem;
    }
    
    .example-item {
        margin: 15px 0;
    }
    
    .example-item p {
        font-size: 0.95rem;
    }
    
    .closing-text {
        font-size: 0.95rem;
    }
    
    .investigation-list,
    .additional-list {
        padding-left: 20px;
    }
    
    .service-icon svg {
        width: 80px;
        height: 80px;
    }
}

/* === ENLACES === */
a {
    color: var(--wsw-33);
    text-decoration: none;
}

a:hover {
    color: var(--wsw-43);
    text-decoration: underline;
}

/* === COMPATIBILIDAD CON HEADER Y FOOTER EXISTENTES === */
main {
    margin-top: 0;
}

.hero-section {
    margin-top: 0;
    padding-top: 0;
}

/* === ACCESIBILIDAD === */
@media (prefers-reduced-motion: reduce) {
    .hero-section {
        background-attachment: scroll;
    }
}

/* Focus states para accesibilidad */
a:focus {
    outline: 2px solid var(--wsw-33);
    outline-offset: 2px;
}

/* === PRINT STYLES === */
@media print {
    .hero-section {
        background: none;
        color: black;
    }
    
    .hero-overlay {
        background: none;
    }
    
    .hero-title,
    .hero-subtitle,
    .servicios-especiales-highlight,
    .example-highlight {
        color: black !important;
    }
    
    .investigation-link {
        color: black !important;
        text-decoration: underline;
    }
    
    /* Asegurar que todos los colores wsw-* se impriman en negro */
    .wsw-17, .wsw-33, .wsw-43, .wsw-27, .wsw-47, .wsw-23 {
        color: black !important;
    }
}

/* === MEJORAS ADICIONALES === */

/* Espaciado mejorado para secciones */
section + section {
    margin-top: 0;
}

/* Mejorar la legibilidad de listas */
.service-list,
.investigation-list,
.additional-list {
    line-height: 1.7;
}

/* Asegurar que los textos destacados mantengan el color correcto */
.example-item .example-highlight {
    color: var(--wsw-23) !important;
}

/* Mejorar el contraste en la sección hero */
.hero-content {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Espaciado consistente entre elementos */
.service-section,
.examples-section,
.closing-section,
.investigation-section,
.additional-services-section {
    margin-bottom: 60px;
}

.service-section:last-child,
.examples-section:last-child,
.closing-section:last-child,
.investigation-section:last-child,
.additional-services-section:last-child {
    margin-bottom: 0;
}