/*
Theme Name: Mercosur Rediseño
Author: RV 
Description: Tema personalizado desde cero para Mercosur Ltda.
Version: 1.1
*/

/* Nota: Los archivos CSS funcionales de componentes específicos se cargan desde la carpeta assets/css/ */

/* ==========================================================
   1. VARIABLES GLOBALES Y RESET
   ========================================================== */
:root {
    --color-red: #e3001b;
    --color-dark: #1a1a1a;
    --color-darker: #111111;
    --color-gray: #555555;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

.text-red {
    color: var(--color-red) !important;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-gray);
    line-height: 1.6;
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

/* ==========================================================
   2. CLASES GLOBALES Y UTILIDADES
   ========================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-main { 
    flex: 1; 
}

.text-center { 
    text-align: center; 
}

.section-header { 
    margin-bottom: 50px; 
}

.section-header h2 { 
    font-size: 2.2rem; 
    color: var(--color-darker); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.divider { 
    width: 60px; 
    height: 4px; 
    background-color: var(--color-red); 
    margin: 15px auto 0; 
    border-radius: 2px; 
}

/* ==========================================================
   3. BOTONES GLOBALES
   ========================================================== */
.btn { 
    display: inline-block; 
    padding: 12px 24px; 
    border-radius: 4px; 
    font-weight: 600; 
    text-decoration: none; 
    transition: var(--transition); 
    cursor: pointer; 
}

.btn-primary { 
    background-color: var(--color-red); 
    color: var(--color-white); 
    border: 2px solid var(--color-red); 
}

.btn-primary:hover { 
    background-color: transparent; 
    color: var(--color-red); 
}

/* ==========================================================================
   4. HERO SECTION (Encabezado principal de las vistas)
   ========================================================================== */
.page-hero {
    padding: 85px 4vw 85px 4vw;
    
    /* EL NUEVO PATRÓN VERDE SOSTENIBLE / INDUSTRIAL */
    background: radial-gradient(black 15%, transparent 16%) 0 0,
                radial-gradient(black 15%, transparent 16%) 8px 8px,
                radial-gradient(rgba(255,255,255,.05) 15%, transparent 20%) 0 1px,
                radial-gradient(rgba(255,255,255,.05) 15%, transparent 20%) 8px 9px;
    background-color: #141414;
    color: var(--color-white);
    background-size: 16px 16px;
    
    /* Cierre corporativo */
    border-bottom: 3px solid var(--color-red); 
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero .container {
    min-height: 80px;
}

.page-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-hero .divider {
    width: 80px;
    height: 4px;
    background-color: var(--color-red);
    margin: 0 auto 20px auto;
}

.page-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   5. MÓDULO GLOBAL DE REDES SOCIALES
   ========================================================================== */
.global-social-module span {
    color: #888888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.social-icons-row {
    display: flex;
    gap: 20px;
}

.social-icons-row a {
    color: var(--color-white); 
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons-row a:hover {
    color: var(--color-red); 
    transform: translateY(-3px);
}

.social-icons-row a svg {
    width: 100%;
    height: auto;
    display: block;
    stroke: currentColor; 
    fill: none;
}

/* ==========================================================================
   6. ADAPTACIÓN RESPONSIVA GLOBAL (Media Queries Centralizados)
   ========================================================================== */

/* Dispositivos Móviles (Hasta 768px) */
@media screen and (max-width: 768px) {
    /* Títulos y textos generales */
    h1, .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.1;
    }
    
    h2, .title-industrial {
        font-size: 1.8rem !important;
        line-height: 1.2;
        word-wrap: break-word; /* Evita que palabras largas rompan la pantalla */
    }
    
    h3 {
        font-size: 1.4rem !important;
    }

    p {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    /* Espaciado de contenedores para dar aire en pantallas pequeñas */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}