/* Welcome — Chaqué Madrid */

:root {
    --wl-ink: #191931;
    --wl-ink-deep: #12122a;
    --wl-accent: #c9d6ee;
    --wl-line: rgba(201, 214, 238, .22);
    --wl-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wl-ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

body {
    font-family: var(--wl-sans);
    background: var(--wl-ink);
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1,
p,
figure {
    margin: 0;
}

#welcome {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(28rem, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---------- Imagen ---------- */

.welcome-visual {
    position: relative;
    overflow: hidden;
    background: var(--wl-ink);
}

.welcome-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 22% 40%;
    transform: scale(1.06);
    animation: wl-settle 2s var(--wl-ease) forwards;
}

.welcome-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(25, 25, 49, .55) 0%, rgba(25, 25, 49, 0) 35%);
}

/* ---------- Panel ---------- */

.welcome-panel {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 5vw, 5rem);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(111, 143, 191, .16) 0%, rgba(111, 143, 191, 0) 60%),
        linear-gradient(180deg, var(--wl-ink) 0%, var(--wl-ink-deep) 100%);
}

/* Marco fino que repite el recuadro del logotipo */
.welcome-frame {
    position: absolute;
    inset: clamp(1rem, 1.8vw, 1.5rem);
    border: 1px solid var(--wl-line);
    pointer-events: none;
}

.welcome-hero,
.welcome-footer {
    position: relative;
    z-index: 1;
}

.welcome-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 30rem;
    margin: auto;
    text-align: center;
    animation: wl-rise .9s var(--wl-ease) both;
}

.welcome-mark {
    width: 100%;
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.25rem);
    border: 2px solid #fff;
    line-height: 0;
}

.welcome-mark img {
    display: block;
    width: 100%;
    height: auto;
    filter: invert(1);
}

.welcome-lead {
    max-width: 25rem;
    text-wrap: balance;
    margin-top: 2rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .72);
}

.welcome-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 18rem;
    margin-top: 2.75rem;
    padding: 1.05rem 1.5rem 1.05rem 1.75rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--wl-ink);
    background: #fff;
    border: 1px solid #fff;
    border-radius: .5rem;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.welcome-cta svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .25s var(--wl-ease);
}

.welcome-cta:hover {
    background: transparent;
    color: #fff;
}

.welcome-cta:hover svg {
    transform: translateX(4px);
}

.welcome-cta:active {
    transform: translateY(1px);
}

.welcome-cta:focus-visible {
    outline: 2px solid var(--wl-accent);
    outline-offset: 4px;
}

.welcome-footer {
    text-align: center;
    font-size: .72rem;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .45);
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
    #welcome {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(14rem, 38vh) 1fr;
    }

    .welcome-shade {
        background: linear-gradient(0deg, rgba(25, 25, 49, .7) 0%, rgba(25, 25, 49, 0) 45%);
    }

    .welcome-panel {
        padding: 3rem 2rem 2.5rem;
    }

    .welcome-hero {
        margin: 0 auto auto;
        padding-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    .welcome-panel {
        padding: 2.5rem 1.75rem 2rem;
    }

    .welcome-cta {
        max-width: none;
    }
}

/* ---------- Animaciones ---------- */

@keyframes wl-settle {
    to { transform: scale(1); }
}

@keyframes wl-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-bg,
    .welcome-hero {
        animation: none;
        transform: none;
    }
}
