/*
Theme Name: En Construcción Pro
Theme URI: https://example.com/en-construccion-pro
Description: Página de sitio en construcción profesional para WordPress. Totalmente personalizable desde el Personalizador de WordPress.
Version: 3.0.0
Author: Tu Nombre
Author URI: https://example.com
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: en-construccion-pro
Tags: one-column, custom-colors, custom-logo, full-width-template, coming-soon
*/

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Variables (defaults; PHP las sobreescribe en <style>) ─ */
:root {
    --ec-primary:    #2563eb;
    --ec-glow:       rgba(37,99,235,0.25);
    --ec-bg-a:       #eef2ff;
    --ec-bg-b:       #dbeafe;
    --ec-bg-c:       #f0f9ff;
    --ec-card-bg:    rgba(255,255,255,0.65);
    --ec-border:     rgba(255,255,255,0.9);
    --ec-text:       #0f172a;
    --ec-muted:      #475569;
    --ec-radius:     24px;
    --ec-font-head:  'Playfair Display', Georgia, serif;
    --ec-font-body:  'DM Sans', system-ui, sans-serif;
    --ec-font-mono:  'JetBrains Mono', 'Courier New', monospace;
}

/* ─── Ocultar wpadminbar y compensar el offset ──────────── */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

/* ─── Base ──────────────────────────────────────────────── */
html, body {
    height: 100%;
    font-family: var(--ec-font-body);
    background: var(--ec-bg-a);
    color: var(--ec-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ─── Fondo claro con gradiente animado ─────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 10%,  rgba(191,219,254,0.8), transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 90%,  rgba(224,231,255,0.7), transparent 55%),
        radial-gradient(ellipse 50% 40% at 70% 20%,  rgba(186,230,253,0.5), transparent 50%),
        linear-gradient(150deg, var(--ec-bg-a), var(--ec-bg-b) 45%, var(--ec-bg-c));
    z-index: 0;
    animation: bgDrift 14s ease-in-out infinite alternate;
}

@keyframes bgDrift {
    0%   { opacity: 1; }
    100% { filter: brightness(1.04) hue-rotate(8deg); }
}

/* Noise sutil */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ─── Layout: centrado vertical total ───────────────────── */
.ec-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;        /* ocupa toda la ventana */
    display: flex;
    align-items: center;      /* centrado vertical */
    justify-content: center;
    padding: 40px 20px;
}

/* ─── Card minimalista ──────────────────────────────────── */
.ec-card {
    width: 100%;
    max-width: 620px;
    text-align: center;
    padding: 56px 48px;
    background: var(--ec-card-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.8) inset,
        0 24px 64px rgba(37,99,235,0.10),
        0  4px 16px rgba(0,0,0,0.06);
    animation: cardIn 0.7s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ─── Logo subido por el usuario ────────────────────────── */
.ec-logo {
    display: block;
    max-width: 200px;
    max-height: 100px;
    width: auto;
    height: auto;
    margin: 0 auto 28px;
    object-fit: contain;
    animation: floatLogo 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0);  }
    50%       { transform: translateY(-7px); }
}

/* ─── Icono fallback ────────────────────────────────────── */
.ec-icon {
    display: block;
    font-size: 48px;
    color: var(--ec-primary);
    margin-bottom: 20px;
    opacity: 0.85;
}

/* ─── Badge ─────────────────────────────────────────────── */
.ec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ec-font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ec-primary);
    background: rgba(37,99,235,0.08);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 100px;
    padding: 5px 13px;
    margin-bottom: 20px;
}

.ec-badge::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--ec-primary);
    border-radius: 50%;
    animation: blink 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

/* ─── Título ─────────────────────────────────────────────── */
.ec-title {
    font-family: var(--ec-font-head);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ec-text);
    margin-bottom: 14px;
    animation: fadeUp 0.8s 0.15s cubic-bezier(0.16,1,0.3,1) both;
}

/* ─── Divider ────────────────────────────────────────────── */
.ec-divider {
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--ec-primary), rgba(37,99,235,0));
    border: none;
    margin: 0 auto 20px;
    border-radius: 2px;
}

/* ─── Texto ──────────────────────────────────────────────── */
.ec-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ec-muted);
    max-width: 440px;
    margin: 0 auto 28px;
    animation: fadeUp 0.8s 0.25s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ─── Countdown ──────────────────────────────────────────── */
.ec-countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.4s cubic-bezier(0.16,1,0.3,1) both;
}

.ec-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(37,99,235,0.12);
    border-radius: 14px;
    padding: 14px 18px;
    min-width: 68px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.ec-unit:hover {
    border-color: rgba(37,99,235,0.3);
    box-shadow: 0 4px 16px rgba(37,99,235,0.10);
}

.ec-unit-num {
    font-family: var(--ec-font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ec-text);
    letter-spacing: -0.03em;
    min-width: 2ch;
    text-align: center;
}

.ec-unit-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ec-muted);
    margin-top: 5px;
}

.ec-launched {
    font-family: var(--ec-font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 500px) {
    .ec-card     { padding: 40px 24px; }
    .ec-unit     { padding: 10px 14px; min-width: 58px; }
    .ec-unit-num { font-size: 1.4rem; }
    .ec-countdown { gap: 8px; }
}
