/*
Theme Name: Incormaderas V3 Premium (Organic & Architectural Edition)
Theme URI: https://incormaderas.com
Author: Incormaderas Dev Team
Description: Tema premium con diseño orgánico, asimétrico y efectos de cristal.
Version: 3.0.0
Text Domain: incormaderas
*/

/* =========================================
   1. VARIABLES DE DISEÑO (ARQUITECTÓNICO & ORGÁNICO)
   ========================================= */
:root {
    /* --- PALETA DE COLORES PROFUNDA --- */
    --color-white: #ffffff;
    --color-off-white: #F9FAFB;
    
    /* Gradientes Base (Reemplazan colores planos) */
    --bg-dark-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --bg-wood-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --bg-accent-gradient: linear-gradient(135deg, #FF6B00 0%, #E65100 100%);
    
    /* Colores Sólidos para Fallback */
    --color-primary: #1F2937;
    --color-wood: #1e293b;       
    --color-accent: #FF6B00;
    
    /* Grises y Texturas */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --text-muted: rgba(255, 255, 255, 0.6);
    
    /* --- TIPOGRAFÍA --- */
    --font-heading: 'Prata', Georgia, serif;
    --font-body: system-ui, -apple-system, sans-serif;
    
    /* --- ESPACIADO Y LAYOUT --- */
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;     
    --space-2xl: 6rem;  
    --space-3xl: 8rem; /* Espaciado extra grande para diseño editorial */
    
    --container-max: 1240px; 
    --border-radius-lg: 16px;
    --border-radius-xl: 32px;
    
    /* --- EFECTOS (GLASS & SHADOWS) --- */
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-float: 0 20px 50px -12px rgba(0,0,0,0.15);
    --glow-accent: 0 0 20px rgba(255, 107, 0, 0.3);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-blur: blur(12px);
    
    --transition-slow: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================
   2. RESET Y BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-primary);
    background: var(--color-off-white);
    overflow-x: hidden; /* Vital para elementos que se salen de la pantalla */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a { text-decoration: none; color: inherit; transition: var(--transition-slow); }

/* =========================================
   3. TIPOGRAFÍA EDITORIAL
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.1;
    color: var(--color-wood);
}

h1 {
    font-size: clamp(3rem, 6vw, 5.5rem); /* Títulos gigantes */
    margin-bottom: var(--space-md);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
    margin-bottom: var(--space-md);
    color: var(--gray-600);
    font-size: 1.1rem;
    font-weight: 300;
}

.lead-text {
    font-size: 1.35rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--gray-600);
}

/* Marca de Agua / Tipografía de Fondo */
.watermark-text {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 12rem;
    color: rgba(0,0,0,0.03); /* Casi invisible */
    z-index: 0;
    white-space: nowrap;
    pointer-events: none;
    line-height: 0.8;
}

/* =========================================
   4. LAYOUT & CURVAS (SHAPE DIVIDERS)
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 2;
}

section {
    padding: var(--space-2xl) 0;
    position: relative;
}

/* Divisor Curvo Inferior (Ola suave) */
.curve-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 2;
}

.curve-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.curve-bottom .shape-fill {
    fill: var(--color-off-white); /* Coincide con el fondo de la siguiente sección */
}

/* Divisor Diagonal */
.diagonal-top {
    clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 100%);
    margin-top: -5vw; /* Superposición negativa */
    padding-top: 10vw;
}

/* =========================================
   5. HEADER & HERO (MODERNO)
   ========================================= */
/* =========================================
   5. HEADER & HERO (AJUSTADO)
   ========================================= */

/* 1. Estilo Base (Aplica a Móviles por defecto) */
.site-header {
    position: fixed; /* SIEMPRE FIJO - Nunca se oculta */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;

    /* Espacio moderado para celulares */
    padding-top: 1rem;
    padding-bottom: 0.75rem;

    /* Fondo siempre visible */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);

    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); /* Transición suave */
}

/* 2. Estilo Específico para ESCRITORIO (Pantallas grandes) */
@media (min-width: 769px) {
    .site-header {
        /* AQUÍ ESTÁ LA CLAVE: Mucho más espacio arriba en PC */
        padding-top: 2.5rem;  /* Reducido de 3.5rem para altura más compacta */
        padding-bottom: 1.5rem;  /* Reducido de 2rem */
    }
}



/* Corrección extra: Si estás logueado en WordPress, baja el header para que no lo tape la barra negra */
body.admin-bar .site-header {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navegación - Escritorio */
.main-navigation {
    position: relative;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation > ul > li {
    position: relative;
}

.main-navigation a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    padding: 0.5rem 0;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-accent);
}

/* Submenús - Escritorio */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    padding: 1rem 0;
    box-shadow: var(--shadow-float);
    border-radius: var(--border-radius-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1000;
    display: block;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    width: 100%;
    margin: 0;
}

.main-navigation ul ul a {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--gray-600);
    white-space: nowrap;
}

.main-navigation ul ul a:hover {
    background-color: var(--gray-50);
    color: var(--color-accent);
    padding-left: 2rem;
}

/* Indicador de submenú */
.main-navigation > ul > li.menu-item-has-children > a::after {
    content: "⌄";
    margin-left: 0.3rem;
    font-size: 0.8rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.main-navigation > ul > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* HERO SECTION */
/* 1. HERO PLANO Y ESPACIOSO */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrado horizontal */
    background: var(--bg-dark-gradient);
    color: white;
    /* HEADER FIJO: Aumentamos padding-top para compensar el header siempre visible */
    padding-top: 250px; /* Incrementado de 180px para dar espacio al header fijo */
    /* PADDING INFERIOR EQUILIBRADO: Ya no necesitamos compensar la curva */
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    /* Opcional: Una línea sutil abajo para separar del siguiente bloque blanco */
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* HERO SECTIONS PARA PÁGINAS INTERNAS */
/* Todas las páginas con hero necesitan compensar el header fijo */
.faq-hero-section,
.precios-hero-section,
.blog-hero-section,
.cotizacion-hero-section,
.vis-hero-section,
.page-hero-section,
.page-header-section,
.post-hero-section,
.post-header-section,
.archive-header-section {
    padding-top: 250px; /* Compensar header fijo */
    padding-bottom: var(--space-xl);
    background: var(--bg-dark-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Estilos específicos para hero de FAQ - Mejorar contraste */
.faq-hero-section .lead-text {
    color: rgba(255, 255, 255, 0.9); /* Blanco con leve transparencia para mejor legibilidad */
}

/* Responsive para secciones hero en móviles */
@media (max-width: 768px) {
    .faq-hero-section,
    .precios-hero-section,
    .blog-hero-section,
    .cotizacion-hero-section,
    .vis-hero-section,
    .page-hero-section,
    .page-header-section,
    .post-hero-section,
    .post-header-section,
    .archive-header-section {
        padding-top: 120px; /* Reducido para móviles */
        padding-bottom: var(--space-lg);
    }
}

/* 2. SOLUCIÓN AL RUIDO VISUAL DEL MENÚ */
/* Hacemos que "Incormaderas" sea un logo discreto y moderno (Sans-serif) */
.site-title {
    font-family: var(--font-body); /* Usamos la fuente normal, NO la Prata */
    font-weight: 700;
    font-size: 1.1rem; /* Pequeño y elegante */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
    z-index: 10;
}

.hero-overlay {
    width: 100%;
    position: relative;
}

/* Elemento decorativo: Círculo brillante de fondo */

.hero-glow {
    position: absolute;
    top: -30%;       /* Lo subimos más para que sea sutil */
    right: -15%;     /* Lo movemos más a la derecha */
    width: 900px;    /* Más ancho para que abarque más área */
    height: 700px;   
    /* Gradiente ajustado para ser más suave */
    background: radial-gradient(circle at center, rgba(255,107,0,0.18) 0%, rgba(0,0,0,0) 65%);
    /* Esto crea la forma orgánica irregular (no circular) */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(80px); /* Desenfoque alto para que se funda con el fondo */
    pointer-events: none;
    z-index: 0;
    animation: float-glow 10s infinite alternate; /* Opcional: movimiento suave */
}

/* animación suave para que la mancha respire */
@keyframes float-glow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, 20px) rotate(5deg); }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-content h1 {
    color: white;
    max-width: 900px;
    /* Efecto de texto interesante */
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--gray-200);
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: var(--space-lg);
}

/* Badge Premium */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* =========================================
   6. STATS & FLOATING CARDS
   ========================================= */
.stats-section {
    margin-top: -80px; /* Romper la caja: Sube sobre el Hero */
    position: relative;
    z-index: 10;
    padding: 0;
}

.stats-grid {
    background: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-float);
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

/* =========================================
   7. TARJETAS & ASIMETRÍA (GRID DINÁMICA)
   ========================================= */
.grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    
    /* Efecto Escalera / Asimetría */
    .stagger-grid .card:nth-child(2),
    .stagger-grid .card:nth-child(5) {
        transform: translateY(40px); /* Bajar la tarjeta del medio */
    }
}

.card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    transition: var(--transition-slow);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px) !important; /* !important para sobreescribir el stagger */
    box-shadow: var(--shadow-float);
    border-color: rgba(255, 107, 0, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: inline-block;
    background: var(--gray-50);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-accent);
}

/* =========================================
   8. VIS / NO-VIS (SIMETRÍA Y CONTRASTE)
   ========================================= */
.vis-novis-section {
    background: var(--gray-50);
    overflow: hidden;
}

/* Contenedor Flex para igualar alturas automáticamente */
.dual-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* Fuerza a que ambas tarjetas midan lo mismo */
    gap: 0; /* Sin espacio entre ellas en escritorio para el look arquitectónico */
}

/* Base común para ambas tarjetas */
.vis-card, .novis-card {
    flex: 1;
    min-width: 320px; /* Asegura que en móviles se apilen */
    display: flex;
    flex-direction: column; /* Permite empujar el botón al fondo */
    padding: var(--space-xl) var(--space-lg);
    transition: var(--transition-slow);
}

/* Contenido interno para control de espaciado */
.card-inner-content {
    margin-bottom: var(--space-lg);
}

/* --- TARJETA VIS (Blanca) --- */
.vis-card { 
    background: var(--color-white); 
    border-radius: var(--border-radius-xl) 0 0 var(--border-radius-xl);
    border: 1px solid var(--gray-200);
    border-right: none;
}

/* --- TARJETA PREMIUM (Oscura - Corrección de Contraste) --- */
.novis-card { 
    background: var(--color-primary); 
    color: var(--color-white);
    border-radius: 0 var(--border-radius-xl) var(--border-radius-xl) 0;
}

/* Forzar colores claros en la tarjeta oscura */
.novis-card h3 { 
    color: var(--color-white); 
}

.novis-card .text-gold {
    color: var(--color-accent); /* El naranja resalta mejor que el dorado oscuro aquí */
    font-weight: 700;
}

.novis-card p {
    color: rgba(255, 255, 255, 0.85); /* Blanco suavizado para lectura descansada */
}

/* Estilos de lista para ambas */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.check-list li::before {
    content: "✓";
    margin-right: 12px;
    color: var(--color-accent);
    font-weight: bold;
}

.novis-card .check-list li {
    color: rgba(255, 255, 255, 0.9);
}

/* --- BOTONES Y ALINEACIÓN --- */
/* Esta clase empuja el botón siempre al final de la tarjeta */
.mt-auto {
    margin-top: auto !important;
}

/* Botón específico para la tarjeta blanca (VIS) */
.btn-dark {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-dark:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .dual-layout {
        padding: 0 var(--space-md);
        gap: var(--space-md);
    }
    
    .vis-card, .novis-card {
        border-radius: var(--border-radius-lg);
        border: 1px solid var(--gray-200);
    }
    
    .vis-card {
        border-right: 1px solid var(--gray-200);
    }
}

/* =========================================
   9. PROCESO (GLASSMORPHISM DARK)
   ========================================= */
.process-section {
    background: var(--bg-wood-gradient);
    color: white;
    padding-bottom: var(--space-3xl);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.process-step {
    background: rgba(255, 255, 255, 0.05); /* Cristal Oscuro */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    position: relative;
    transition: var(--transition-slow);
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    transform: scale(1.02);
}

.step-number {
    font-size: 5rem;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.1); /* Número gigante de fondo */
    position: absolute;
    top: 0;
    right: 20px;
    line-height: 1;
}

.step-content h3 { color: white; margin-top: 1rem; position: relative; }
.step-content p { color: rgba(255,255,255,0.7); position: relative; }

/* =========================================
   10. PRODUCTOS & GALERÍA (FILA COMPACTA EDITORIAL)
   ========================================= */
.products-section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-xl);
}

/* Forzamos la rejilla de 4 columnas en escritorio */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 1 columna en móvil */
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr); /* 4 columnas en PC - Esto quita el espacio vacío */
    }
}

.product-card {
    border-radius: var(--border-radius-lg);
    position: relative;
    background: var(--color-white);
    transition: var(--transition-slow);
    box-shadow: var(--shadow-soft);
    width: 100%; /* Ocupa el ancho de su columna */
    display: flex;
    flex-direction: column;
    height: auto; /* Permite que crezca según el contenido */
    overflow: visible; /* Permite que todo el contenido sea visible */
}

.product-image {
    height: 250px; /* Altura fija para asegurar que se vea */
    width: 100%;
    overflow: hidden;
    background-color: #f1f5f9; /* Color de respaldo mientras carga */
}

.product-image img {
    height: 100%;
    width: 100%;
    object-fit: cover; /* Esto evita que la imagen se deforme */
    display: block;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Estilos para el contenido de texto de las tarjetas de producto */
.product-info {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--color-wood);
    line-height: 1.2;
}

.product-info p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Info superpuesta */
.product-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-md); /* Un poco más compacto para que no sature el cuadrado */
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%; 
    transform: translateY(0);
    transition: var(--transition-slow);
}

.product-info-overlay h3 { 
    color: white; 
    margin: 0; 
    font-size: 1.2rem; /* Tamaño ajustado para que no rompa en 4 columnas */
}

.product-info-overlay p { 
    color: rgba(255,255,255,0.9); 
    font-size: 0.85rem; 
    margin-top: 0.3rem;
    font-weight: 400;
}

/* BOTÓN CENTRADO */
.products-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* =========================================
   11. BOTONES & CTAs (Glow Effects)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px; /* Botones redondos modernos */
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-slow);
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--bg-accent-gradient);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(255, 107, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(255, 107, 0, 0.6);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: white;
    color: var(--color-primary);
}

/* =========================================
   12. FOOTER & EXTRAS
   ========================================= */
.site-footer {
    background: #0B1120;
    color: white;
    position: relative;
    padding-top: var(--space-3xl);
    clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%); /* Corte diagonal superior */
    margin-top: -5vw;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: var(--space-2xl);
}



.footer-widget h3 { color: white; margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-widget a { color: var(--gray-400); }
.footer-widget a:hover { color: var(--color-accent); padding-left: 5px; }

.social-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
}
.social-icon:hover { background: var(--color-accent); transform: scale(1.1); }

/* Utility Classes */
.text-center { text-align: center; }
.mb-lg { margin-bottom: var(--space-lg); }
.section-header { margin-bottom: var(--space-2xl); position: relative; z-index: 2; }
.divider { 
    width: 60px; height: 3px; 
    background: var(--color-accent); 
    margin: 1.5rem auto; 
}

/* Responsive básico */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-section {
        min-height: auto;
        padding-top: 120px; /* Reducido de 250px para móviles */
        padding-bottom: 4rem;
    }
    .stats-section { margin-top: 0; }
    .dual-layout { grid-template-columns: 1fr; }
    .novis-card { margin-top: 0; border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg); }
    .vis-card { border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0; }
    .diagonal-top, .site-footer { clip-path: none; margin-top: 0; }
    .watermark-text { display: none; }
    .site-header {
        padding: 1rem 0; /* Menos espacio arriba/abajo en celular */
    }
    
    /* Ajustes para tarjetas de producto en móviles */
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-image {
        height: 200px; /* Altura reducida para móviles */
    }
    
    .product-info {
        padding: var(--space-sm);
    }
    
    .product-info h3 {
        font-size: 1.2rem;
    }
    
    .product-info p {
        font-size: 0.9rem;
    }
}


/* =========================================
   13. BOTÓN FLOTANTE DE WHATSAPP (GLOBAL)
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 160px;
    height: 50px;
    background: #25D366; /* Color oficial de WhatsApp */
    color: white;
    border-radius: 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0 15px;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    text-decoration: none;
    cursor: pointer;
    gap: 8px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .whatsapp-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-float span {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animación de entrada */
@keyframes whatsapp-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.whatsapp-float:hover {
    animation: whatsapp-bounce 1s;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        padding: 0;
        gap: 0;
        justify-content: center;
    }

    .whatsapp-float .whatsapp-icon {
        width: 40px;
        height: 40px;
        background: transparent;
    }

    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float svg {
        width: 20px;
        height: 20px;
    }
}

/* =========================================
   14. ESTILOS PARA PÁGINA PROYECTOS PREMIUM
   ========================================= */

/* Grid de Materiales Premium */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.material-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition-slow);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.material-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-float);
    border-color: var(--color-accent);
}

.material-icon {
    width: 120px;
    height: 120px;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: 50%;
    padding: 1.5rem;
}

.material-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.material-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-wood);
}

.material-card p {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

.material-card .check-list {
    text-align: left;
    width: 100%;
    margin-top: auto;
}

/* Ajustes para la sección de materiales */
.materials-section {
    position: relative;
    overflow: hidden;
}

/* Grid de proceso premium (4 columnas) */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

/* Ajustes para step-card en proceso premium */
.step-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    position: relative;
    transition: var(--transition-slow);
    text-align: center;
    overflow: hidden;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.step-number-bg {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    font-family: var(--font-heading);
    line-height: 1;
    z-index: 0;
}

.step-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, #ff8f00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto var(--space-md);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
    position: relative;
    z-index: 1;
    color: white;
}

.step-card h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.step-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Responsive para materiales y proceso */
@media (max-width: 768px) {
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .material-icon {
        width: 100px;
        height: 100px;
        padding: 1rem;
    }
}

/* =========================================
   15. ESTILOS DEL MENÚ MÓVIL (RESPONSIVE)
   ========================================= */

/* --- 1. Escritorio (Ocultar botón hamburguesa) --- */
@media (min-width: 769px) {
    .mobile-menu-toggle-new {
        display: none !important;
    }
}

/* --- 2. Móvil (Max 768px) --- */
@media (max-width: 768px) {
    
    /* NUEVO BOTÓN HAMBURGUESA - ESTRUCTURA LIMPIA */
    .mobile-menu-toggle-new {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px; /* Ancho fijo */
        height: 40px; /* Alto fijo */
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px; /* Padding interno */
        z-index: 9999 !important; /* CRÍTICO: Por encima de todo */
        position: relative;
        margin: 0;
        outline: none;
        transition: all 0.3s ease;
    }

    /* Contenedor de las barras del hamburguesa */
    .hamburger-bars {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px; /* Ancho de las barras */
        height: 18px; /* Alto total del icono */
        position: relative;
    }

    /* Barras individuales del hamburguesa */
    .hamburger-bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--color-primary); /* Color oscuro por defecto */
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
        transform-origin: center;
    }

    /* HEADER SIEMPRE FIJO: Icono siempre blanco ya que el header tiene fondo blanco */
    .hamburger-bar {
        background-color: var(--color-primary);
    }

    /* --- Animación del Botón Hamburguesa a "X" (Estado activo) --- */
    .mobile-menu-toggle-new.active .hamburger-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: var(--color-accent); /* Naranja al abrir */
    }
    
    .mobile-menu-toggle-new.active .hamburger-bar:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .mobile-menu-toggle-new.active .hamburger-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background-color: var(--color-accent);
    }

    /* --- El Contenedor del Menú (UL) - Mejorado para submenús --- */
    .main-navigation ul {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto a la derecha */
        width: 80%;   /* Ancho del panel */
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98); /* Fondo más sólido */
        backdrop-filter: blur(20px); /* Efecto Cristal Premium más fuerte */
        flex-direction: column;
        align-items: stretch; /* Cambiado de center a stretch para mejor uso del espacio */
        padding: 2rem 1.5rem;
        gap: 1rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* Animación suave */
        z-index: 9998; /* Debajo del botón pero encima de todo lo demás */
        overflow-y: auto; /* Permite scroll si el contenido es muy largo */
        justify-content: flex-start; /* Empieza desde arriba */
        padding-top: 4rem; /* Espacio para el botón de cerrar */
    }

    /* --- Estado ACTIVO (Cuando JS agrega la clase) --- */
    .main-navigation.active ul {
        right: 0; /* Deslizar hacia adentro */
    }

    /* Estilo de los enlaces en móvil */
    .main-navigation ul li a {
        font-size: 1.1rem;
        color: var(--color-primary);
        font-weight: 700;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        text-align: left;
    }

    .main-navigation ul li a:hover {
        background-color: rgba(255, 107, 0, 0.1);
        color: var(--color-accent);
    }

    /* Indicador para items con submenús en móvil */
    .main-navigation ul li.menu-item-has-children > a::after {
        content: "+";
        font-size: 1.3rem;
        font-weight: 300;
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
        flex-shrink: 0;
        display: inline-block;
        width: 20px;
        text-align: center;
    }

    .main-navigation ul li.menu-item-has-children.active > a::after {
        content: "−";
        transform: rotate(0deg);
    }

    /* Submenús en móvil - OPTIMIZADO para espacio reducido */
/* Submenús en móvil - OPTIMIZADO para espacio reducido */
.main-navigation ul ul {
    position: static !important;
    display: none;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 6px;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    border-left: 2px solid var(--color-accent);
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
}

/* Cuando el submenú NO está activo, debe colapsar completamente */
.main-navigation ul li:not(.active) > ul {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.main-navigation ul li.active > ul {
    display: block !important;
    animation: slideDown 0.2s ease;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
}

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-5px);
            max-height: 0;
            overflow: hidden;
        }
        to {
            opacity: 1;
            transform: translateY(0);
            max-height: fit-content;
            overflow: visible;
        }
    }

    .main-navigation ul ul li {
        margin: 0;
        width: 100%;
    }

    .main-navigation ul ul li a {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
        color: var(--gray-600);
        font-weight: 600;
        border-radius: 4px;
        margin: 0.05rem 0.25rem 0 0.25rem !important;
        width: calc(100% - 0.5rem);
        transition: all 0.2s ease;
    }
    
    /* Eliminar margen inferior del último item del submenú */
    .main-navigation ul ul li:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .main-navigation ul ul li:last-child a {
        margin-bottom: 0 !important;
        padding-bottom: 0.5rem !important;
    }
    
    /* Asegurar que los submenús no se salgan del viewport */
    .main-navigation ul li.menu-item-has-children {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 0 !important;
    }

    /* Cuando NO está activo, el contenedor no debe tener espacio extra */
    .main-navigation ul li.menu-item-has-children:not(.active) {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .main-navigation ul ul li a:hover {
        background-color: rgba(255, 107, 0, 0.08);
        color: var(--color-accent);
        padding-left: 1.25rem;
    }

    /* Espaciado mejorado entre items */
    .main-navigation ul > li {
        margin-bottom: 0; /* Eliminado espacio entre items del menú principal */
        width: 100%;
    }
    
    /* Asegurar que el botón no sea cubierto por el overlay */
    .main-navigation.active::before {
        z-index: 9997; /* Debajo del botón pero encima del contenido */
    }
}

/* =========================================
   16. CORRECCIÓN DE CONTRASTE PARA TÍTULOS EN FONDOS OSCUROS
   ========================================= */

/* Asegurar contraste en títulos sobre fondo oscuro en todas las hero sections */
.page-hero-section .page-title,
.page-header-section .page-title,
.post-hero-section .post-title,
.post-header-section .post-title,
.archive-header-section .archive-title,
.faq-hero-section h1,
.precios-hero-section h1,
.blog-hero-section h1,
.cotizacion-hero-section h1,
.vis-hero-section h1,
.hero-section h1 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Subtítulos y descripciones en fondos oscuros */
.page-hero-section .page-subtitle,
.page-header-section .page-subtitle,
.post-hero-section .post-excerpt,
.post-header-section .post-excerpt,
.archive-header-section .archive-description,
.faq-hero-section .lead-text,
.precios-hero-section .lead-text,
.blog-hero-section .lead-text,
.cotizacion-hero-section .lead-text,
.vis-hero-section .lead-text,
.hero-section .hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Responsive: Asegurar contraste también en móviles */
@media (max-width: 768px) {
    .page-hero-section .page-title,
    .page-header-section .page-title,
    .post-hero-section .post-title,
    .post-header-section .post-title,
    .archive-header-section .archive-title,
    .faq-hero-section h1,
    .precios-hero-section h1,
    .blog-hero-section h1,
    .cotizacion-hero-section h1,
    .vis-hero-section h1,
    .hero-section h1 {
        color: white !important;
    }
}
