/*
Theme Name: Generatepress Child
Author: 
Description: Your description goes here
Version: 1.0
Template: generatepress

This is the child theme for GeneratePress theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e5e5e5;
}

.nav-transparent {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Imágenes en blanco y negro estricto */
.img-bw {
    filter: grayscale(20%) contrast(1.15);
    transition: filter 1s ease;
}

.img-bw:hover {
    filter: grayscale(0%) contrast(1);
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

/* Inputs minimalistas */
.minimal-input {
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    border-radius: 0;
    padding: 10px 0;
}
.minimal-input:focus {
    outline: none;
    border-bottom: 2px solid #000;
    box-shadow: none;
}

/* Checkbox personalizado para el configurador */
.config-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 1px solid #000;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.config-checkbox:checked {
    background-color: #000;
}
.config-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Animaciones hover */
.hover-line {
    position: relative;
    text-decoration: none;
}
.hover-line::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.hover-line:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Sidebar sticky para el resumen del configurador */
.sticky-summary {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
}

/* Logo dinámico: Si subes el logo con líneas negras y fondo transparente, 
   esto lo invierte a color blanco cuando la barra de navegación está sobre 
   el video oscuro. Cuando bajes y la barra se vuelva blanca, el logo volverá a ser negro. */
.nav-transparent .dynamic-logo {
    filter: invert(1) brightness(100);
}

/* WPForms Minimalist Integration - Forzar ancho completo en TODO */
.wpforms-container *,
.wpforms-form *,
.wpforms-form .wpforms-field,
.wpforms-form .wpforms-field-row,
.wpforms-form .wpforms-submit-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.wpforms-form .wpforms-field { padding: 12px 0 !important; border: none !important; }

.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form textarea {
    border: none !important;
    border-bottom: 1px solid #d1d5db !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 12px 0 !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.3s ease !important;
    color: #111 !important;
}

.wpforms-form input::placeholder,
.wpforms-form textarea::placeholder {
    color: #9ca3af !important;
    font-weight: 300 !important;
}

.wpforms-form input:focus,
.wpforms-form textarea:focus {
    outline: none !important;
    border-bottom: 2px solid #000 !important;
}

.wpforms-form .wpforms-field-label {
    display: block !important;
    font-size: 0.65rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: #9ca3af !important;
    font-weight: 500 !important;
    margin-bottom: 4px !important;
}

.wpforms-form .wpforms-required-label {
    color: #9ca3af !important;
}

.wpforms-form .wpforms-submit-container { padding: 28px 0 0 0 !important; margin: 0 !important; }
.wpforms-form .wpforms-submit-container button {
    width: 100% !important;
    background: #000 !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    padding: 20px !important;
    border: none !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    transition: background 0.3s, transform 0.2s !important;
    box-sizing: border-box !important;
}
.wpforms-form .wpforms-submit-container button:hover {
    background: #1a1a1a !important;
    transform: translateY(-1px) !important;
}