/* ===========================================================
   NovaHost — Sitio en construcción
   Patrón: Bento Grid + Typo Editorial + Acentos Terminal/IDE.
   Sin scroll. 100vh exactos.
   =========================================================== */

:root {
    --uc-bg-0:   #04060c;
    --uc-bg-1:   #07101e;
    --uc-bg-2:   #0a1426;
    --uc-cyan:   #0891B2;
    --uc-cyan-l: #22d3ee;
    --uc-amber:  #F59E0B;
    --uc-green:  #22c55e;
    --uc-text:   #e5e7eb;
    --uc-muted:  rgba(229,231,235,0.55);
    --uc-line:   rgba(34,211,238,0.16);
    --uc-line-2: rgba(255,255,255,0.06);
    --uc-cell:   rgba(255,255,255,0.025);
    --uc-cell-b: rgba(34,211,238,0.18);
}

html, body { margin: 0; padding: 0; }
body.ucp-novahost {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--uc-bg-0);
    color: var(--uc-text);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero — fondo cósmico atenuado. Desktop: 100vh sin scroll. Móvil: altura natural. */
body.ucp-novahost .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    background:
        radial-gradient(ellipse 50% 35% at 18% 12%, rgba(8,145,178,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 85% 88%, rgba(245,158,11,0.05) 0%, transparent 65%),
        linear-gradient(180deg, #02050b 0%, #050912 50%, #070d1a 100%);
    overflow: hidden;
}
@media (min-width: 961px) {
    body.ucp-novahost { height: 100vh; overflow: hidden; }
    body.ucp-novahost .hero { height: 100vh; }
}

/* Atenuar capas cósmicas — el bento se vuelve protagonista */
body.ucp-novahost .hero-glows,
body.ucp-novahost .hero-signals,
body.ucp-novahost .hero-network { opacity: 0.55; }
body.ucp-novahost .hero-grid { opacity: 0.35; }

/* ===========================================================
   BENTO GRID — 12 cols x 6 rows
   =========================================================== */
.bento {
    position: relative;
    z-index: 15;
    width: min(1380px, 96%);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: clamp(1rem, 2vh, 1.5rem) 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: clamp(0.65rem, 1.2vw, 1rem);
    box-sizing: border-box;
}
@media (min-width: 961px) {
    .bento { height: 100vh; min-height: 0; }
}
/* Filas:
   1 (auto)  → brand + status
   2 (1fr)   → typo (col 1-8) + url (col 9-12)
   3 (auto)  → 3 servicios
   4 (auto)  → meta
*/

/* Celda base */
.bento-cell {
    border: 1px solid var(--uc-cell-b);
    border-radius: 18px;
    background: var(--uc-cell);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: clamp(1rem, 1.5vw, 1.4rem);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: border-color .25s ease, transform .25s ease;
}
.bento-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(34,211,238,0.04) 0%, transparent 35%);
    pointer-events: none;
}

/* ===== 1. BRAND — top-left ===== */
.cell-brand {
    grid-column: 1 / span 4;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
}
.cell-brand:hover { border-color: rgba(34,211,238,0.32); }
.brand-iso { width: 44px; height: 44px; flex: 0 0 44px; }
.brand-info { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.brand-name span { color: var(--uc-cyan-l); }
.brand-tag { margin-top: 0.2rem; font-size: 0.78rem; font-style: normal; color: var(--uc-muted); }

/* ===== 2. STATUS / BUILD LOG — top-right ===== */
.cell-status {
    grid-column: 5 / span 8;
    grid-row: 1;
    background:
        linear-gradient(180deg, rgba(8,145,178,0.05) 0%, transparent 100%),
        var(--uc-cell);
    font-family: 'JetBrains Mono', monospace;
}
.status-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
}
.status-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--uc-green);
    box-shadow: 0 0 10px rgba(34,197,94,0.7);
    animation: status-pulse 1.6s ease-in-out infinite;
}
@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}
.status-label { color: rgba(229,231,235,0.7); }
.status-pct {
    margin-left: auto;
    font-weight: 600;
    color: var(--uc-cyan-l);
    letter-spacing: 0.05em;
}
.status-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    overflow: hidden;
    margin-bottom: 0.6rem;
}
.status-bar-fill {
    height: 100%;
    width: 0;
    background: repeating-linear-gradient(135deg,
        var(--uc-cyan-l) 0 8px,
        var(--uc-cyan)   8px 16px);
    box-shadow: 0 0 10px rgba(34,211,238,0.5);
    border-radius: 999px;
    animation: status-fill 2.5s ease-out 0.6s forwards, status-stripe 1.2s linear infinite;
}
@keyframes status-fill   { to { width: 75%; } }
@keyframes status-stripe { to { background-position-x: 32px; } }
.status-log {
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(229,231,235,0.78);
}
.log-line { display: flex; gap: 0.5rem; align-items: baseline; }
.log-prompt { color: var(--uc-cyan-l); font-weight: 600; }
.log-tag { font-weight: 600; flex: 0 0 auto; }
.log-line.ok   .log-tag { color: var(--uc-green); }
.log-line.work .log-tag { color: var(--uc-amber); }
.caret {
    display: inline-block;
    width: 0.5em;
    color: var(--uc-cyan-l);
    animation: caret-blink 1s step-end infinite;
}
@keyframes caret-blink {
    50% { opacity: 0; }
}

/* ===== 3. TYPO HERO — celda dominante ===== */
.cell-typo {
    grid-column: 1 / span 8;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background:
        radial-gradient(ellipse 60% 80% at 0% 50%, rgba(8,145,178,0.08) 0%, transparent 60%),
        var(--uc-cell);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(34,211,238,0.4);
    border-radius: 999px;
    background: rgba(8,145,178,0.08);
    color: #cfe2f3;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.eyebrow-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--uc-amber);
    box-shadow: 0 0 10px rgba(217,119,6,0.95);
    animation: eyebrow-pulse 1.8s ease-in-out infinite;
}
@keyframes eyebrow-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.8); }
}

/* Typo stack — apilada vertical (respeta tipografía de la maqueta:
   Roboto 800, mixed case, letter-spacing -0.02em, text-shadow en capas) */
.typo-stack {
    display: flex;
    flex-direction: column;
    line-height: 0.95;
    margin: 0;
}
.typo-word {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(3.75rem, 10vw, 7.5rem);
    letter-spacing: -0.025em;
    font-weight: 800;
}
.typo-thin {
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.8),
        0 4px 12px rgba(0,0,0,0.5),
        0 8px 24px rgba(0,0,0,0.3);
}
.typo-bold {
    color: var(--uc-cyan);
    text-shadow:
        0 2px 4px rgba(0,0,0,0.8),
        0 0 20px rgba(8, 145, 178, 0.5),
        0 0 40px rgba(8, 145, 178, 0.3);
}

.typo-rule {
    display: block;
    width: clamp(140px, 18vw, 220px);
    height: 2px;
    margin: 1.1rem 0 1.1rem;
    background: linear-gradient(90deg, var(--uc-cyan-l) 0%, transparent 100%);
    box-shadow: 0 0 14px rgba(34,211,238,0.5);
}
.typo-lead {
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.8;
    color: #f3f4f6;
    margin: 0;
    max-width: 520px;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* ===== 4. URL — derecha, fila 2 ===== */
.cell-url {
    grid-column: 9 / span 4;
    grid-row: 2;
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 1.1rem 1.25rem;
    background:
        radial-gradient(ellipse 70% 100% at 100% 50%, rgba(34,211,238,0.06) 0%, transparent 60%),
        var(--uc-cell);
}
.url-icon {
    flex: 0 0 44px;
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(34,211,238,0.3);
    background: rgba(8,145,178,0.1);
    color: var(--uc-cyan-l);
}
.url-icon svg { width: 22px; height: 22px; }
.url-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 1.05rem;
    color: #fff;
    font-weight: 600;
    min-width: 0;
}
.url-text strong { color: var(--uc-cyan-l); font-weight: 700; }
.url-text em {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 400;
    color: var(--uc-muted);
    letter-spacing: 0.02em;
}

/* ===== 5–7. SERVICIOS — fila 3, 3 columnas iguales ===== */
.cell-svc {
    grid-row: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}
.cell-svc:nth-of-type(1) { grid-column: 1 / span 4; }
.cell-svc:nth-of-type(2) { grid-column: 5 / span 4; }
.cell-svc:nth-of-type(3) { grid-column: 9 / span 4; }
.cell-svc:hover {
    transform: translateY(-2px);
    border-color: rgba(34,211,238,0.45);
}
.svc-icon {
    flex: 0 0 42px;
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(34,211,238,0.3);
    background: rgba(8,145,178,0.08);
    color: var(--uc-cyan-l);
}
.svc-icon svg { width: 22px; height: 22px; }
.svc-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1; }
.svc-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.svc-title span { color: var(--uc-cyan-l); font-weight: 600; }
.svc-desc {
    margin: 0;
    font-size: 0.74rem;
    color: rgba(229,231,235,0.6);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.svc-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--uc-cyan-l);
    opacity: 0.4;
    letter-spacing: 0.05em;
    align-self: flex-start;
}

/* ===== 8. META BAR — fila 4 (footer integrado) ===== */
.cell-meta {
    grid-column: 1 / span 12;
    grid-row: 4;
    padding: 0.7rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 12px;
    color: var(--uc-muted);
    font-size: 0.78rem;
    background: var(--uc-cell);
    flex-wrap: wrap;
}
.meta-build {
    font-family: 'JetBrains Mono', monospace;
    color: rgba(229,231,235,0.5);
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}
.meta-cta {
    color: var(--uc-cyan-l);
    font-weight: 500;
}

/* ===== ENTRADA ESCALONADA ===== */
.bento-cell {
    opacity: 0;
    transform: translateY(10px);
    animation: cell-in 0.7s cubic-bezier(.2,.8,.2,1) forwards;
}
.cell-brand  { animation-delay: 0.05s; }
.cell-status { animation-delay: 0.15s; }
.cell-typo   { animation-delay: 0.30s; }
.cell-url    { animation-delay: 0.45s; }
.cell-svc:nth-of-type(1) { animation-delay: 0.60s; }
.cell-svc:nth-of-type(2) { animation-delay: 0.70s; }
.cell-svc:nth-of-type(3) { animation-delay: 0.80s; }
.cell-meta   { animation-delay: 0.95s; }
@keyframes cell-in {
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
/* Laptop pequeña — ajustar tamaño tipográfico */
@media (max-width: 1280px) {
    .typo-word { font-size: clamp(4rem, 12vw, 9rem); }
}

/* Tablet — bento se simplifica */
@media (max-width: 960px) {
    .bento {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-template-rows: auto auto auto auto auto;
    }
    .cell-brand   { grid-column: 1 / span 6; grid-row: 1; }
    .cell-status  { grid-column: 1 / span 6; grid-row: 2; }
    .cell-typo    { grid-column: 1 / span 6; grid-row: 3; padding: 1.25rem; }
    .cell-url     { grid-column: 1 / span 6; grid-row: 4; }
    .cell-svc     { grid-row: auto !important; }
    .cell-svc:nth-of-type(1) { grid-column: 1 / span 2; grid-row: 5; }
    .cell-svc:nth-of-type(2) { grid-column: 3 / span 2; grid-row: 5; }
    .cell-svc:nth-of-type(3) { grid-column: 5 / span 2; grid-row: 5; }
    .cell-meta    { grid-column: 1 / span 6; grid-row: 6; }
    .typo-word    { font-size: clamp(3rem, 11vw, 5.5rem); }
    .typo-rule    { width: 120px; }
    .typo-lead    { font-size: 0.95rem; line-height: 1.7; }
    .status-log .log-line:nth-child(4) { display: none; }
    .svc-tag      { display: none; }
    .svc-icon     { flex: 0 0 36px; width: 36px; height: 36px; }
    .svc-icon svg { width: 18px; height: 18px; }
    .svc-title    { font-size: 0.82rem; }
    .svc-desc     { font-size: 0.7rem; }
}

/* Mobile — pila vertical compacta. Diseño 2026-05-02: más respiración entre
   celdas, hero balanceado, footer mínimamente útil (build visible). */
@media (max-width: 600px) {
    .bento {
        width: 92%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 0.65rem;                          /* +60% breathing room */
        padding: 0.85rem 0 1rem;
    }
    .bento-cell   { border-radius: 14px; padding: 0.95rem 1.05rem; }
    .cell-brand   { grid-column: 1 / span 4; grid-row: auto; padding: 0.85rem 1rem; }
    .cell-status  { grid-column: 1 / span 4; grid-row: auto; padding: 0.95rem 1rem; }
    .cell-typo    { grid-column: 1 / span 4; grid-row: auto; padding: 1.25rem 1.1rem 1.4rem; }
    .cell-url     { grid-column: 1 / span 4; grid-row: auto; padding: 0.85rem 1rem; }
    .cell-svc     { grid-row: auto !important; padding: 0.85rem 1rem; gap: 0.85rem; }
    .cell-svc:nth-of-type(1),
    .cell-svc:nth-of-type(2),
    .cell-svc:nth-of-type(3) { grid-column: 1 / span 4; }
    .cell-meta    { grid-column: 1 / span 4; grid-row: auto; flex-direction: column; gap: 0.35rem; padding: 0.85rem 1rem; text-align: center; align-items: center; justify-content: center; }

    .brand-iso    { width: 38px; height: 38px; flex: 0 0 38px; }
    .brand-name   { font-size: 1.2rem; }
    .brand-tag    { font-size: 0.75rem; }

    /* Hero: tipografía más controlada, line-height más compacto, mejor jerarquía */
    .typo-stack   { line-height: 0.88; gap: 0; }
    .typo-word    { font-size: clamp(3rem, 16vw, 4.75rem); letter-spacing: -0.035em; }
    .typo-thin    { opacity: 0.92; }
    .typo-bold    { margin-top: 0.05em; }     /* leve overlap visual */
    .typo-rule    { width: 90px; height: 2px; margin: 0.85rem 0 0.95rem; }
    .typo-lead    { font-size: 0.92rem; line-height: 1.5; max-width: 100%; color: rgba(243,244,246,0.92); }
    .eyebrow      { font-size: 0.62rem; padding: 0.3rem 0.7rem; margin-bottom: 0.95rem; letter-spacing: 0.14em; }

    .url-icon     { flex: 0 0 36px; width: 36px; height: 36px; }
    .url-icon svg { width: 18px; height: 18px; }
    .url-text     { font-size: 0.95rem; line-height: 1.18; }
    .url-text em  { font-size: 0.72rem; margin-top: 0.15rem; }

    .status-head  { font-size: 0.72rem; margin-bottom: 0.5rem; }
    .status-bar   { height: 6px; margin-bottom: 0.55rem; }
    .status-log   { font-size: 0.7rem; line-height: 1.5; }
    .status-log .log-line:nth-child(4) { display: none; }

    .svc-icon     { flex: 0 0 38px; width: 38px; height: 38px; }
    .svc-icon svg { width: 18px; height: 18px; }
    .svc-title    { font-size: 0.92rem; }
    .svc-desc     { font-size: 0.74rem; line-height: 1.4; }
    .svc-tag      { display: none; }

    .meta-copy    { font-size: 0.74rem; }
    .meta-build   { display: block; font-size: 0.65rem; opacity: 0.6; font-family: 'JetBrains Mono', monospace; }
    .meta-cta     { display: none; }
}

/* Mobile altura baja — apretar más para caber sin scroll en pantallas low-vh */
@media (max-width: 600px) and (max-height: 720px) {
    .bento { gap: 0.5rem; padding: 0.55rem 0 0.7rem; }
    .bento-cell { padding: 0.75rem 0.95rem; }
    .typo-word { font-size: clamp(2.5rem, 13vw, 3.75rem); }
    .cell-typo { padding: 0.95rem 1rem 1.1rem; }
    .status-log .log-line:nth-child(3) { display: none; }
}

/* Mobile bajo de altura */
@media (max-height: 720px) and (min-width: 600px) {
    .typo-word    { font-size: clamp(3.5rem, 9vw, 7.5rem); }
    .bento        { gap: 0.55rem; }
    .bento-cell   { padding: 0.85rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
