/* Sitio público de juliluli.ar */

body.publico { position: relative; }

/* Textura de grano muy sutil, como el original */
.grano {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .32 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pagina { position: relative; z-index: 1; }

/* Portada */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    text-align: center;
}

.eyebrow {
    margin: 0 0 3.9rem;
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-corazon { color: var(--accent); margin-bottom: 3rem; }

.fecha {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    margin: 0 0 2.6rem;
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(3.6rem, 12vw, 6rem);
    line-height: 1;
    letter-spacing: .01em;
    color: var(--ink);
}
.punto { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-suave); flex: none; }

.nombres {
    margin: 0 0 4.4rem;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.2rem, 6vw, 2.75rem);
    line-height: 1.1;
    color: var(--ink);
}

.lema {
    margin: 0;
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--faint);
}

.scroll-linea {
    position: absolute;
    left: 50%;
    bottom: 3.2rem;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), rgba(184, 95, 61, 0));
    opacity: .55;
    animation: latido 2.8s ease-in-out infinite;
}

@keyframes latido { 0%, 100% { opacity: .25; } 50% { opacity: .7; } }

/* Entrada de la portada (una sola secuencia al cargar) */
.anim { opacity: 0; animation: subir 1.1s cubic-bezier(.22, .61, .36, 1) forwards; }
.a1 { animation-delay: .1s; } .a2 { animation-delay: .3s; } .a3 { animation-delay: .5s; }
.a4 { animation-delay: .75s; } .a5 { animation-delay: 1s; }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Secciones */
.seccion {
    max-width: 34rem;
    margin: 0 auto;
    padding: 6rem 1.5rem;
    text-align: center;
}

.titulo-seccion {
    margin: 0 0 2.6rem;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.3rem, 7vw, 3rem);
    line-height: 1.15;
    color: var(--accent);
}

.texto-centrado {
    max-width: 26rem;
    margin: 0 auto 2.6rem;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--muted);
}

/* Lugar y horario */
.lugar-nombre { margin: 0 0 1.1rem; font-size: 1.3rem; font-weight: 400; color: var(--ink); }
.linea { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 300; color: var(--muted); line-height: 1.75; }
.lugar-fecha { margin: 0 0 .5rem; font-size: 1.3rem; font-weight: 400; color: var(--ink); }
.separador { display: block; width: 3rem; height: 1px; margin: 1.6rem auto; background: #E5D9CE; }
.btn-mapa { margin-top: 2.6rem; padding: 1rem 2rem; }

/* Regalo */
.alias-lista { display: flex; flex-direction: column; gap: 1rem; max-width: 24rem; margin: 0 auto; }

.alias-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.15rem 1.25rem;
    text-align: left;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--accent);
    transition: border-color .25s, background-color .25s;
}
.alias-card:hover { border-color: var(--accent-suave); background: rgba(255, 255, 255, .5); }
.alias-texto { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.alias-etiqueta { font-size: .625rem; letter-spacing: .25em; text-transform: uppercase; color: var(--faint); }
.alias-valor { font-size: .95rem; color: var(--ink); overflow-wrap: anywhere; }

/* Confirmación */
#form-rsvp { max-width: 28rem; margin: 0 auto; text-align: left; }

.invitado { margin: 0 0 2.6rem; padding: 0; border: 0; min-width: 0; }
.invitado-nombre {
    width: 100%;
    margin: 0 0 1.3rem;
    padding: 0 0 .7rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.7rem;
    line-height: 1.2;
    font-weight: 400;
    color: var(--ink);
    float: left;
}
.invitado-nombre + * { clear: both; }

/* Lápiz para completar / editar los datos de cada integrante */
.inv-cab { display: flex; align-items: center; justify-content: space-between; gap: .9rem; }
.inv-texto { min-width: 0; overflow-wrap: anywhere; }
.invitado-nombre.sin-nombre .inv-texto { font-size: 1.3rem; font-style: italic; color: var(--muted); }
.inv-faltan { display: block; margin-top: .4rem; font-family: var(--sans); font-size: .75rem; font-weight: 400; letter-spacing: .02em; line-height: 1.4; color: var(--aviso); }
.aviso-lapiz { margin-top: -.6rem; font-size: .85rem; color: var(--aviso); }

.btn-lapiz {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--accent-suave);
    border-radius: 50%;
    background: transparent;
    color: var(--accent);
    transition: background-color .25s, color .25s, border-color .25s;
}
.btn-lapiz:hover { border-color: var(--accent); background: rgba(184, 95, 61, .06); }
.btn-lapiz.pendiente { background: var(--accent); border-color: var(--accent); color: #fff; animation: latido-lapiz 2.4s ease-in-out infinite; }
.btn-lapiz.pendiente:hover { background: var(--accent-oscuro); border-color: var(--accent-oscuro); }
@media (prefers-reduced-motion: reduce) { .btn-lapiz.pendiente { animation: none; } }
@keyframes latido-lapiz { 0%, 100% { box-shadow: 0 0 0 0 rgba(184, 95, 61, .35); } 50% { box-shadow: 0 0 0 7px rgba(184, 95, 61, 0); } }

/* Popup de datos del invitado (queda por debajo de los popups de aviso, que usan z-index 1000) */
.datos-fondo { z-index: 900; }
.popup-datos { max-width: 26rem; padding: 2rem 1.75rem 1.5rem; text-align: left; }
.popup-datos .popup-titulo, .popup-datos .popup-mensaje { text-align: center; }
.datos-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.datos-campo { display: block; margin-bottom: 1.3rem; min-width: 0; }
.datos-campo.datos-edad { max-width: 8rem; }
.datos-campo input {
    width: 100%;
    padding: .6rem 0;
    border: 0;
    border-bottom: 1px solid #D9D2CB;
    border-radius: 0;
    background: transparent;
    font-size: .95rem;
    font-weight: 300;
    outline: none;
    transition: border-color .25s;
    -moz-appearance: textfield;
}
.datos-campo input::-webkit-outer-spin-button, .datos-campo input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.datos-campo input::placeholder { color: #B9B2AB; }
.datos-campo input:focus { border-bottom-color: var(--accent); }
.datos-ayuda { display: block; margin-top: .4rem; font-size: .75rem; font-weight: 300; color: var(--faint); }
.popup-datos .popup-acciones { margin-top: 1.6rem; }

.campo-label {
    display: block;
    margin-bottom: .55rem;
    font-size: .625rem;
    font-weight: 400;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--faint);
}

.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.7rem; }

.opcion {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-height: 3.6rem;
    padding: 0 1rem;
    border: 1px solid var(--line);
    font-size: .95rem;
    cursor: pointer;
    transition: border-color .25s, background-color .25s;
}
.opcion input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opcion .radio { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--accent); transition: background-color .2s, box-shadow .2s; }
.opcion:hover { border-color: var(--accent-suave); }
.opcion:has(input:checked) { border-color: var(--accent); background: rgba(184, 95, 61, .04); }
.opcion input:checked + .radio { background: var(--accent); box-shadow: inset 0 0 0 2px var(--bg); }
.opcion input:focus-visible + .radio { outline: 2px solid var(--accent); outline-offset: 3px; }

.campo input[type="text"] {
    width: 100%;
    padding: .6rem 0;
    border: 0;
    border-bottom: 1px solid #D9D2CB;
    border-radius: 0;
    background: transparent;
    font-size: .95rem;
    font-weight: 300;
    outline: none;
    transition: border-color .25s;
}
.campo input[type="text"]::placeholder { color: #B9B2AB; }
.campo input[type="text"]:focus { border-bottom-color: var(--accent); }

.invitado.no-asiste .campo-comida { display: none; }
.invitado.no-asiste .opciones { margin-bottom: 0; }

.btn-ancho { width: 100%; height: 3.5rem; margin-top: .5rem; }

@media (max-width: 480px) {
    .seccion { padding: 4.5rem 1.25rem; }
    .fecha { gap: 1rem; }
    .eyebrow { margin-bottom: 3rem; }
    .nombres { margin-bottom: 3.4rem; }
    .opciones { gap: .75rem; }
    .datos-fila { grid-template-columns: 1fr; gap: 0; }
}
