/*
 * Pagina de inicio. Es la cara de quien hace las invitaciones, no del evento:
 * tipografia geometrica, fondo de color y paneles oscuros. A proposito no
 * comparte nada con invitation.css.
 */

:root {
    --tinta: #0d0720;
    --humo: rgba(255, 255, 255, 0.72);
    --tenue: rgba(255, 255, 255, 0.54);
    --borde: rgba(255, 255, 255, 0.14);
    --panel: rgba(255, 255, 255, 0.07);
    --rosa: #ff2d95;
    --violeta: #8b5cf6;
    --cian: #22d3ee;
    --ambar: #fbbf24;
    --verde: #34d399;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #fff;
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    background:
        linear-gradient(140deg, #2a0a4d 0%, #150a33 45%, #04162e 100%);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

/* ---------- Fondo ---------- */

.fondo {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.fondo span {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(70px);
    mix-blend-mode: screen;
    will-change: transform;
}

.fondo span:nth-child(1) {
    top: -16vh;
    left: -10vw;
    width: 62vmax;
    height: 62vmax;
    background: radial-gradient(circle, var(--rosa) 0%, rgba(255, 45, 149, 0) 68%);
    animation: deriva1 26s ease-in-out infinite alternate;
}

.fondo span:nth-child(2) {
    top: 6vh;
    right: -20vw;
    width: 66vmax;
    height: 66vmax;
    background: radial-gradient(circle, var(--violeta) 0%, rgba(139, 92, 246, 0) 68%);
    animation: deriva2 32s ease-in-out infinite alternate;
}

.fondo span:nth-child(3) {
    bottom: -24vh;
    left: -10vw;
    width: 70vmax;
    height: 70vmax;
    background: radial-gradient(circle, var(--cian) 0%, rgba(34, 211, 238, 0) 68%);
    animation: deriva3 29s ease-in-out infinite alternate;
}

.fondo span:nth-child(4) {
    bottom: -14vh;
    right: -14vw;
    width: 58vmax;
    height: 58vmax;
    background: radial-gradient(circle, var(--ambar) 0%, rgba(251, 191, 36, 0) 68%);
    animation: deriva4 24s ease-in-out infinite alternate;
}

.fondo span:nth-child(5) {
    top: 32vh;
    left: 24vw;
    width: 46vmax;
    height: 46vmax;
    opacity: 0.9;
    background: radial-gradient(circle, var(--verde) 0%, rgba(52, 211, 153, 0) 68%);
    animation: deriva5 35s ease-in-out infinite alternate;
}

@keyframes deriva1 { to { transform: translate3d(12vw, 10vh, 0) scale(1.15); } }
@keyframes deriva2 { to { transform: translate3d(-14vw, 14vh, 0) scale(1.1); } }
@keyframes deriva3 { to { transform: translate3d(16vw, -12vh, 0) scale(1.2); } }
@keyframes deriva4 { to { transform: translate3d(-10vw, -14vh, 0) scale(1.12); } }
@keyframes deriva5 { to { transform: translate3d(-18vw, 8vh, 0) scale(1.25); } }

/* ---------- Estructura ---------- */

.pagina {
    position: relative;
    z-index: 1;
    width: min(100% - 36px, 940px);
    margin: 0 auto;
    padding: clamp(54px, 12vh, 110px) 0 70px;
}

.hero {
    max-width: 680px;
}

.insignia {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 26px;
    padding: 7px 15px 7px 11px;
    border: 1px solid var(--borde);
    border-radius: 999px;
    background: var(--panel);
    backdrop-filter: blur(10px);
    color: var(--humo);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.insignia i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--verde);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
}

h1 {
    margin: 0;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: clamp(2.6rem, 8vw, 4.6rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

h1 em {
    display: block;
    font-style: normal;
    background: linear-gradient(100deg, var(--rosa) 0%, var(--ambar) 45%, var(--cian) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.entrada {
    max-width: 46ch;
    margin: 22px 0 0;
    color: var(--humo);
    font-size: clamp(1rem, 2.6vw, 1.12rem);
    line-height: 1.7;
}

/* ---------- Lo que incluye ---------- */

.puntos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: 46px 0 0;
    padding: 0;
    list-style: none;
}

.puntos li {
    padding: 22px 20px 20px;
    border: 1px solid var(--borde);
    border-radius: 20px;
    background: var(--panel);
    backdrop-filter: blur(12px);
}

.puntos svg {
    width: 20px;
    height: 20px;
    margin-bottom: 14px;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.puntos li:nth-child(1) svg { stroke: var(--rosa); }
.puntos li:nth-child(2) svg { stroke: var(--cian); }
.puntos li:nth-child(3) svg { stroke: var(--ambar); }
.puntos li:nth-child(4) svg { stroke: var(--verde); }

.puntos b {
    display: block;
    margin-bottom: 6px;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.puntos span {
    color: var(--tenue);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ---------- Formulario ---------- */

.contacto {
    margin: 46px 0 0;
    padding: clamp(24px, 5vw, 34px);
    border: 1px solid var(--borde);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
}

.contacto h2 {
    margin: 0;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: clamp(1.5rem, 4.4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.contacto p {
    margin: 8px 0 24px;
    color: var(--tenue);
    font-size: 0.95rem;
}

.campos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.campos label {
    display: grid;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tenue);
}

.campos input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--borde);
    border-radius: 14px;
    background: rgba(8, 4, 22, 0.42);
    color: #fff;
    font-size: 1rem;
    letter-spacing: normal;
    text-transform: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.campos input::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.campos input:focus {
    outline: none;
    border-color: rgba(255, 45, 149, 0.7);
    background: rgba(8, 4, 22, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 45, 149, 0.16);
}

.aviso {
    color: #ffb4c8;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
}

.enviar {
    width: 100%;
    margin-top: 18px;
    padding: 17px 26px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(100deg, var(--rosa) 0%, var(--violeta) 100%);
    color: #fff;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(255, 45, 149, 0.3);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.enviar:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 22px 50px rgba(255, 45, 149, 0.38);
}

.enviar:active {
    transform: translateY(0);
}

.gracias {
    display: grid;
    gap: 8px;
    padding: 26px 24px;
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-radius: 20px;
    background: rgba(52, 211, 153, 0.12);
}

.gracias strong {
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.gracias span {
    color: var(--humo);
    font-size: 0.95rem;
}

/* ---------- Pie ---------- */

.pie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
}

.pie a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid var(--borde);
    border-radius: 999px;
    background: var(--panel);
    color: var(--humo);
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.pie a:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

@media (max-width: 620px) {
    .campos {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fondo span {
        animation: none;
    }

    .enviar:hover {
        transform: none;
    }
}
