/*
 * Páginas de estado del hub (promoción finalizada, próximamente, dominio sin campaña, mantenimiento).
 * Identidad corporativa de TPH Marketing tomada de tphmarketing.es:
 * azul TPH, noche, azul eléctrico, Plus Jakarta Sans (titulares) y DM Sans (texto).
 */
:root {
    --est-azul: #008bce;
    --est-azul-hover: #0076af;
    --est-electrico: #5ec4ec;
    --est-noche: #071116;
    --est-noche-2: #0a1820;
    --est-texto: #ffffff;
    --est-texto-suave: rgba(255, 255, 255, 0.72);
    --est-texto-tenue: rgba(255, 255, 255, 0.5);
    --est-borde: rgba(255, 255, 255, 0.1);
    --est-superficie: rgba(255, 255, 255, 0.04);
    --est-radio: 0.5rem;
    --est-fuente-titular: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --est-fuente-texto: 'DM Sans', 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.est {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: var(--est-noche);
    background-image:
        radial-gradient(ellipse 60% 50% at 85% 0%, rgba(0, 139, 206, 0.28), transparent 70%),
        radial-gradient(ellipse 45% 40% at 0% 100%, rgba(94, 196, 236, 0.12), transparent 70%);
    color: var(--est-texto);
    font-family: var(--est-fuente-texto);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Retícula fina de fondo, como en la web de la agencia */
body.est::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
}

.est-contenedor {
    position: relative;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Cabecera ---------- */
.est-cabecera {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--est-borde);
}

.est-cabecera .est-contenedor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.est-logo {
    display: inline-flex;
    line-height: 0;
}

.est-logo img {
    display: block;
    height: 60px;
    width: auto;
    /* El PNG trae margen de seguridad: compensamos para alinear con el borde */
    margin-left: -12px;
}

.est-cabecera-meta {
    font-size: 0.8125rem;
    color: var(--est-texto-tenue);
    letter-spacing: 0.02em;
}

/* ---------- Contenido ---------- */
.est-main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.est-hero {
    max-width: 760px;
}

.est-estado {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.875rem 0.375rem 0.75rem;
    border: 1px solid rgba(94, 196, 236, 0.35);
    border-radius: 999px;
    background: rgba(0, 139, 206, 0.12);
    color: var(--est-electrico);
    font-family: var(--est-fuente-titular);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.est-estado-punto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--est-electrico);
    box-shadow: 0 0 0 4px rgba(94, 196, 236, 0.18);
}

.est-estado--activo .est-estado-punto {
    animation: est-latido 2s ease-in-out infinite;
}

@keyframes est-latido {
    0%, 100% { box-shadow: 0 0 0 4px rgba(94, 196, 236, 0.18); }
    50% { box-shadow: 0 0 0 7px rgba(94, 196, 236, 0.05); }
}

.est-titulo {
    margin: 1.5rem 0 1.25rem;
    font-family: var(--est-fuente-titular);
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.est-titulo-acento {
    display: block;
    color: var(--est-electrico);
}

.est-entradilla {
    max-width: 620px;
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    color: var(--est-texto-suave);
}

.est-entradilla strong {
    color: var(--est-texto);
    font-weight: 500;
}

.est-texto {
    max-width: 620px;
    margin-top: 1rem;
    color: var(--est-texto-suave);
}

/* ---------- Tarjetas de datos ---------- */
.est-datos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: start;
    margin-top: 2.5rem;
}

.est-dato {
    padding: 1.25rem 1.375rem;
    border: 1px solid var(--est-borde);
    border-radius: var(--est-radio);
    background: var(--est-superficie);
}

.est-dato-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 0.875rem;
    border-radius: var(--est-radio);
    background: rgba(0, 139, 206, 0.16);
    color: var(--est-electrico);
}

.est-dato-icono svg {
    width: 18px;
    height: 18px;
}

.est-dato-etiqueta {
    font-family: var(--est-fuente-titular);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--est-texto-tenue);
}

.est-dato-valor {
    margin-top: 0.25rem;
    font-family: var(--est-fuente-titular);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.est-dato-texto {
    margin-top: 0.375rem;
    font-size: 0.9375rem;
    color: var(--est-texto-suave);
}

/* ---------- Cuenta atrás ---------- */
.est-cuenta {
    margin-top: 2.5rem;
}

.est-cuenta-titulo {
    margin-bottom: 0.875rem;
    font-family: var(--est-fuente-titular);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--est-texto-tenue);
}

.est-cuenta-reloj {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 120px));
    gap: 0.75rem;
}

.est-cuenta-celda {
    padding: 1rem 0.5rem 0.875rem;
    border: 1px solid var(--est-borde);
    border-radius: var(--est-radio);
    background: var(--est-superficie);
    text-align: center;
}

.est-cuenta-num {
    display: block;
    font-family: var(--est-fuente-titular);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.est-cuenta-ud {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--est-texto-tenue);
}

.est-nota {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--est-borde);
    font-size: 0.875rem;
    color: var(--est-texto-tenue);
}

/* ---------- Pie ---------- */
.est-pie {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--est-borde);
    font-size: 0.8125rem;
    color: var(--est-texto-tenue);
}

.est-pie .est-contenedor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.est-pie a {
    color: var(--est-texto-suave);
    text-decoration: none;
    transition: color 0.2s ease;
}

.est-pie a:hover,
.est-pie a:focus-visible {
    color: var(--est-electrico);
}

.est-pie a:focus-visible {
    outline: 2px solid var(--est-electrico);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Entrada suave ---------- */
.est-aparece {
    animation: est-aparece 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.est-aparece--2 { animation-delay: 0.08s; }
.est-aparece--3 { animation-delay: 0.16s; }
.est-aparece--4 { animation-delay: 0.24s; }

@keyframes est-aparece {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .est-aparece,
    .est-estado--activo .est-estado-punto {
        animation: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .est-contenedor { padding: 0 1rem; }
    .est-cabecera .est-contenedor { min-height: 64px; }
    .est-logo img { height: 44px; margin-left: -8px; }
    .est-cabecera-meta { display: none; }
    .est-main { align-items: flex-start; padding: 2.5rem 0 3rem; }
    .est-datos { grid-template-columns: 1fr; margin-top: 2rem; }
    .est-cuenta-reloj { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
    .est-cuenta-celda { padding: 0.75rem 0.25rem; }
    .est-pie .est-contenedor { flex-direction: column; align-items: flex-start; }
}
