/*
 Theme Name:   Storefront Child
 Description:  Tema hijo personalizado para replicar mockups UX.
 Author:       LA Solucion
 Template:     storefront
 Version:      1.0.0
*/


/* ==========================================
   1. ANULACIÓN CRÍTICA DE ESTRUCTURA STOREFRONT
   ========================================== */

/* Forzamos a que el fondo e hilos nativos ocupen el 100% sin márgenes raros */
#page, 
#content, 
.site-content, 
.site-main, 
.col-full {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    float: none !important;
}

/* Ocultamos elementos por defecto de Storefront que estorben (como menús nativos o pies de página residuales) */
body.bg-construction-light .site-header,
body.bg-construction-light .site-footer,
body.bg-construction-light .storefront-breadcrumb {
    display: none !important;
}

/* ==========================================
   2. CENTRADO ABSOLUTO DEL BODY (PANTALLA COMPLETA)
   ========================================== */
body.bg-construction-light {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #ffffff !important;
    background-image: url('https://unsplash.com') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    min-height: 100vh !important;
    width: 100vw !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Capa clara de filtro */
.construction-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(255, 255, 255, 0.88) !important;
    z-index: 1 !important;
}

/* ==========================================
   3. CONTENEDOR PRINCIPAL (CENTRADO Y FLUIDO)
   ========================================== */
.construction-wrapper {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 700px !important; /* Estrechamos para compactar como en tu mockup */
    margin: 0 auto !important; /* Centrado horizontal automático */
    padding: 40px 24px !important;
    box-sizing: border-box !important;
}

.construction-content {
    width: 100% !important;
    text-align: center !important; /* Centra textos e imágenes internas */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Fuerza el alineamiento central de Flexbox */
}

/* Tipografías en Negro Grafito */
.construction-content h1 {
    color: #2b2e35 !important;
    font-size: clamp(26px, 4.5vw, 44px) !important;
    font-weight: 700 !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.2 !important;
}

.construction-content .subtitle {
    color: #4a4e57 !important;
    font-size: clamp(14px, 1.5vw, 17px) !important;
    max-width: 550px !important;
    margin: 0 auto 40px auto !important;
    line-height: 1.5 !important;
}

/* ==========================================
   4. TARJETAS DEL CONTADOR (GRIS CLARO)
   ========================================== */
.countdown-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 0 auto 40px auto !important;
    width: 100% !important;
    max-width: 550px !important;
}

.time-block {
    background-color: #f3f4f6 !important; /* Gris Claro */
    width: clamp(75px, 11vw, 110px) !important;
    height: clamp(75px, 11vw, 110px) !important;
    border-radius: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

.time-block .number {
    font-size: clamp(24px, 3.5vw, 38px) !important;
    font-weight: 700 !important;
    color: #2b2e35 !important;
    line-height: 1 !important;
}

.time-block .label {
    font-size: 10px !important;
    color: #717784 !important;
    margin-top: 6px !important;
    letter-spacing: 0.5px !important;
}

.separator {
    font-size: 26px !important;
    font-weight: bold !important;
    color: #2b2e35 !important;
}

/* ==========================================
   5. FORMULARIO DE SUSCRIPCIÓN (VERDE SALVIA)
   ========================================== */
.subscribe-section {
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto 40px auto !important;
}

.subscribe-section h3 {
    font-size: 16px !important;
    color: #2b2e35 !important;
    margin-bottom: 15px !important;
    font-weight: 600 !important;
}

.subscribe-form {
    display: flex !important;
    width: 100% !important;
}

.subscribe-form input {
    flex: 1 !important;
    padding: 14px 18px !important;
    border: 1px solid #d1d5db !important;
    border-right: none !important;
    border-radius: 4px 0 0 4px !important;
    font-size: 14px !important;
    background-color: #ffffff !important;
    color: #2b2e35 !important;
    outline: none !important;
}

.subscribe-form button {
    background-color: #879883 !important; /* Verde Salvia */
    color: #ffffff !important;
    border: none !important;
    padding: 14px 28px !important;
    border-radius: 0 4px 4px 0 !important;
    font-weight: bold !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.subscribe-form button:hover {
    background-color: #6e7e6b !important;
}

/* ==========================================
   6. ICONOS SOCIALES (NEGRO GRAFITO)
   ========================================== */
.social-icons-container {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
}

.social-icon {
    width: 38px !important;
    height: 38px !important;
    background-color: #ffffff !important;
    border: 1.5px solid #2b2e35 !important;
    color: #2b2e35 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
}

.social-icon:hover {
    background-color: #2b2e35 !important;
    color: #ffffff !important;
}

/* ==========================================
   7. ADAPTACIÓN INTEGRAL MÓVIL
   ========================================== */
@media (max-width: 600px) {
    .separator {
        display: none !important; /* Oculta los dos puntos para que no rompan filas */
    }
    
    .countdown-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Cuadrícula exacta 2x2 */
        gap: 12px !important;
        max-width: 240px !important; /* Mantiene compacto el reloj en móviles */
        margin: 0 auto 30px auto !important;
    }
    
    .time-block {
        width: 100% !important;
        height: 100px !important;
    }
    
    .subscribe-form {
        flex-direction: column !important; /* Se apila verticalmente el formulario */
        gap: 10px !important;
    }
    
    .subscribe-form input {
        border-right: 1px solid #d1d5db !important;
        border-radius: 4px !important;
        text-align: center !important;
    }
    
    .subscribe-form button {
        border-radius: 4px !important;
        padding: 14px !important;
    }
}
