/*
Theme Name: NUI Construccion
Theme URI: https://nuiinvestments.com
Author: NUI Investments
Author URI: https://nuiinvestments.com
Description: Página provisional "En Construcción" para NUI Investments — Capital Privado Inmobiliario · Madrid Prime.
Version: 2.0.0
License: Private
Text Domain: nui-construccion
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================================
   ROOT — Paleta NUI Investments v2
   Fondo: #0F2E5A — azul cobalto rico, más luminoso
   ============================================================ */
:root {
    --navy-deep:      #0F2E5A;
    --navy-mid:       #163567;
    --navy-light:     #1E4070;
    --blue-primary:   #1A6BAE;
    --blue-accent:    #2589D4;
    --green-cta:      #2EAD50;
    --green-glow:     rgba(46, 173, 80, 0.15);
    --green-border:   rgba(46, 173, 80, 0.40);
    --white:          #FFFFFF;
    --text-muted:     #8BB5D8;
    --text-dim:       #4A6A90;
    --border-subtle:  rgba(37, 137, 212, 0.15);
}

/* ============================================================
   BODY — Fondo cobalto con grid arquitectural
   ============================================================ */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--navy-deep);
    background-image:
        linear-gradient(rgba(37, 137, 212, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 137, 212, 0.07) 1px, transparent 1px),
        radial-gradient(ellipse 80% 60% at 65% 0%, rgba(37, 137, 212, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 60% 50% at 10% 100%, rgba(46, 173, 80, 0.10) 0%, transparent 60%);
    background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--white);
    overflow-x: hidden;
    position: relative;
}

/* ============================================================
   ELEMENTOS DECORATIVOS DE FONDO
   ============================================================ */

.bg-circle-1 {
    position: fixed;
    top: -15vw;
    right: -10vw;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 137, 212, 0.13) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bg-circle-2 {
    position: fixed;
    bottom: -12vw;
    left: -8vw;
    width: 35vw;
    height: 35vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 173, 80, 0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Línea lateral izquierda verde */
.bg-line-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 3px;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(46, 173, 80, 0.0) 20%,
        rgba(46, 173, 80, 0.6) 50%,
        rgba(46, 173, 80, 0.0) 80%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

.bg-line-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 1px;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(37, 137, 212, 0.4) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   WRAPPER + CONTENEDOR
   ============================================================ */
.nui-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 20px;
}

.nui-container {
    max-width: 700px;
    width: 90%;
    text-align: center;
    animation: fadeInUp 0.9s ease-out forwards;
    opacity: 0;
}

/* ============================================================
   HEADER / LOGO
   ============================================================ */
.nui-header {
    margin-bottom: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo — 160px, con glow verde */
.nui-logo {
    max-width: 160px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 36px rgba(46, 173, 80, 0.28));
}

/* Fallback texto si no hay PNG */
.nui-logo-text {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--white);
    text-transform: uppercase;
}

.nui-logo-text span {
    color: var(--green-cta);
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 8px;
    display: block;
    margin-top: 4px;
}

/* Separador vertical bajo el logo */
.nui-header-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(37, 137, 212, 0.5), transparent);
    margin: 22px auto 0;
}

/* ============================================================
   PILL DE ESTADO
   ============================================================ */
.nui-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 173, 80, 0.10);
    border: 1px solid var(--green-border);
    border-radius: 999px;
    padding: 8px 22px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green-cta);
    margin-bottom: 40px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nui-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-cta);
    box-shadow: 0 0 6px var(--green-cta);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* ============================================================
   HERO — Headline Syne + Subheadline Inter
   ============================================================ */
.nui-hero {
    margin-bottom: 48px;
}

/* Headline: Syne 800 — impacto arquitectural */
.nui-headline {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

/* Palabra de acento verde degradado */
.nui-headline .accent {
    background: linear-gradient(135deg, #2EAD50 0%, #5DD87A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Separador decorativo verde */
.divider-line {
    width: 48px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--green-cta), transparent);
    margin: 0 auto 28px;
}

/* Subheadline: Inter 300 — elegante, legible */
.nui-subheadline {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto;
    letter-spacing: 0.1px;
}

/* ============================================================
   PANEL MÉTRICAS INSTITUCIONALES — glassmorphism
   ============================================================ */
.nui-metrics {
    display: flex;
    justify-content: center;
    gap: 1px;
    margin: 52px auto;
    max-width: 600px;
    background: var(--border-subtle);
    border: 1px solid rgba(37, 137, 212, 0.18);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nui-metric {
    flex: 1;
    padding: 26px 20px;
    background: rgba(22, 53, 103, 0.65);
    text-align: center;
    transition: background 0.3s ease;
    position: relative;
}

.nui-metric:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(37, 137, 212, 0.20);
}

.nui-metric:hover {
    background: rgba(37, 137, 212, 0.12);
}

.nui-metric-value {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 8px;
}

.nui-metric-value .unit {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--green-cta);
    margin-left: 2px;
}

.nui-metric-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ============================================================
   CTA / CONTACTO
   ============================================================ */
.nui-cta {
    margin-bottom: 52px;
}

.nui-cta-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 18px;
}

/* Botón-link institucional con borde verde */
.nui-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--green-cta);
    text-decoration: none;
    letter-spacing: 0.3px;
    padding: 14px 30px;
    border: 1px solid var(--green-border);
    border-radius: 8px;
    background: rgba(46, 173, 80, 0.06);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.nui-contact-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46, 173, 80, 0.10), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nui-contact-link:hover {
    color: var(--white);
    border-color: var(--green-cta);
    box-shadow: 0 0 28px rgba(46, 173, 80, 0.18), 0 4px 16px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.nui-contact-link:hover::before {
    opacity: 1;
}

.nui-contact-link .arrow {
    font-size: 18px;
    transition: transform 0.25s ease;
    line-height: 1;
}

.nui-contact-link:hover .arrow {
    transform: translateX(4px);
}

.nui-legal {
    margin-top: 24px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.3px;
    line-height: 1.9;
}

/* ============================================================
   TRUST SIGNALS
   ============================================================ */
.nui-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 52px;
    flex-wrap: wrap;
}

.nui-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nui-trust-item .trust-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blue-accent);
    opacity: 0.7;
    flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.nui-footer {
    padding-top: 32px;
    border-top: 1px solid rgba(37, 137, 212, 0.10);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.nui-footer-copy {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    text-align: center;
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--green-cta); }
    50%       { opacity: 0.5; box-shadow: 0 0 12px var(--green-cta); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .nui-logo { max-width: 110px; }
    .nui-header { margin-bottom: 44px; }

    .nui-metrics {
        flex-direction: column;
        gap: 0;
    }

    .nui-metric:not(:last-child)::after {
        top: auto;
        bottom: 0;
        left: 20%;
        right: auto;
        width: 60%;
        height: 1px;
    }

    .nui-trust { gap: 16px; }
    .nui-headline { letter-spacing: -1.2px; }
}

@media (max-width: 480px) {
    .nui-wrapper { padding: 40px 16px; }
    .nui-status-pill { font-size: 9px; letter-spacing: 2px; padding: 7px 16px; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: rgba(37, 137, 212, 0.35); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(37, 137, 212, 0.55); }
