/* ============================================================
   MI LISTA DE NAVIDAD - Estilos
   Pensado para personas adultas/mayores:
   letra grande, botones grandes, alto contraste y celular primero.
   ============================================================ */

:root {
    --rojo: #b3001b;
    --rojo-oscuro: #7a0012;
    --verde: #146b3a;
    --verde-oscuro: #0b3d22;
    --verde-profundo: #072916;
    --dorado: #f2c14e;
    --dorado-claro: #fff4cf;
    --dorado-oscuro: #8a6100;
    --crema: #fffdf7;
    --blanco: #ffffff;
    --texto: #1b1b1b;
    --texto-suave: #444444;
    --borde: #6b6b6b;
    --azul-foco: #1d4ed8;
    --sombra: 0 10px 30px rgba(0, 0, 0, .25);
    --radio: 18px;
    --fuente: 'Nunito', 'Segoe UI', Arial, sans-serif;
    --fuente-titulo: 'Mountains of Christmas', 'Georgia', serif;
}

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

html {
    font-size: 20px;          /* cuerpo de texto: 20px */
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--fuente);
    line-height: 1.55;
    color: var(--texto);
    background-color: var(--verde-oscuro);
    background-image:
        radial-gradient(circle at 15% 10%, rgba(242, 193, 78, .14) 0, transparent 35%),
        radial-gradient(circle at 85% 30%, rgba(179, 0, 27, .25) 0, transparent 40%),
        linear-gradient(180deg, var(--verde-oscuro) 0%, var(--verde-profundo) 100%);
    display: flex;
    flex-direction: column;
}

body.modal-abierto { overflow: hidden; }

img { max-width: 100%; }

a { color: var(--rojo); font-weight: 700; }
a:hover { color: var(--rojo-oscuro); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }

p { margin: 0 0 .8rem; }

[hidden] { display: none !important; }

/* Foco muy visible para quien navega con teclado */
:focus-visible {
    outline: 4px solid var(--azul-foco);
    outline-offset: 3px;
    box-shadow: 0 0 0 7px #fff;
}

.saltar-contenido {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    background: var(--dorado);
    color: #000;
    padding: .8rem 1.2rem;
    border-radius: 0 0 12px 0;
}
.saltar-contenido:focus { left: 0; }

/* ---------- Nieve ---------- */
.nieve {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.copo {
    position: absolute;
    top: -2rem;
    color: #fff;
    opacity: .85;
    user-select: none;
    animation-name: caer;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

@keyframes caer {
    0%   { transform: translate3d(0, -5vh, 0) rotate(0deg); }
    50%  { transform: translate3d(25px, 50vh, 0) rotate(180deg); }
    100% { transform: translate3d(-10px, 108vh, 0) rotate(360deg); }
}

/* ---------- Cabecera ---------- */
.cabecera {
    position: relative;
    z-index: 20;
    background: linear-gradient(180deg, #c8102e 0%, var(--rojo) 55%, var(--rojo-oscuro) 100%);
    border-bottom: 5px solid var(--dorado);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}

.cabecera-interior {
    max-width: 1150px;
    margin: 0 auto;
    padding: .7rem 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #fff;
    text-decoration: none;
}
.logo:hover { color: #fff; }

.logo-icono {
    font-size: 2.1rem;
    animation: balanceo 3s ease-in-out infinite;
    display: inline-block;
}

.logo-texto {
    font-family: var(--fuente-titulo);
    font-size: 1.75rem;
    line-height: 1.1;
    text-shadow: 2px 2px 0 var(--rojo-oscuro), 0 0 14px rgba(242, 193, 78, .7);
}
.logo-texto small {
    display: block;
    font-family: var(--fuente);
    font-size: .9rem;
    color: var(--dorado);
    text-shadow: none;
}

@keyframes balanceo {
    0%, 100% { transform: rotate(-6deg); }
    50%      { transform: rotate(6deg); }
}

.menu-boton {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 52px;
    padding: .5rem 1rem;
    font: 800 1rem var(--fuente);
    color: var(--rojo-oscuro);
    background: var(--dorado);
    border: 3px solid #fff;
    border-radius: 14px;
    cursor: pointer;
}

.menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: .5rem;
    padding: .4rem 0 .6rem;
}
.menu.abierto { display: flex; animation: aparecer-suave .25s ease-out; }

.menu-form { margin: 0; display: flex; }

.menu-enlace {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 54px;
    padding: .6rem 1rem;
    font: 700 1.05rem var(--fuente);
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .12);
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: background .2s, transform .2s;
}
.menu-enlace:hover { color: #fff; background: rgba(255, 255, 255, .24); }
.menu-enlace[aria-current="page"] {
    background: var(--dorado);
    color: var(--rojo-oscuro);
    border-color: #fff;
}

/* Luces navideñas bajo la cabecera */
.luces {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    height: 24px;
    display: flex;
    justify-content: space-around;
    overflow: hidden;
    pointer-events: none;
}
.luces span {
    width: 12px;
    height: 18px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    background: var(--dorado);
    box-shadow: 0 0 12px 3px rgba(242, 193, 78, .8);
    animation: brillar 1.6s ease-in-out infinite alternate;
    position: relative;
    top: 2px;
}
.luces span::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 3px;
    width: 6px;
    height: 6px;
    background: #2b2b2b;
    border-radius: 2px;
}
.luces span:nth-child(4n+1) { background: #ff3b4e; box-shadow: 0 0 12px 3px rgba(255, 59, 78, .8); }
.luces span:nth-child(4n+2) { background: #ffd54a; box-shadow: 0 0 12px 3px rgba(255, 213, 74, .8); animation-delay: .4s; }
.luces span:nth-child(4n+3) { background: #3ee07c; box-shadow: 0 0 12px 3px rgba(62, 224, 124, .8); animation-delay: .8s; }
.luces span:nth-child(4n+4) { background: #4fc3ff; box-shadow: 0 0 12px 3px rgba(79, 195, 255, .8); animation-delay: 1.2s; }
.luces span:nth-child(n+16) { display: none; }

@keyframes brillar {
    from { opacity: .45; filter: brightness(.8); }
    to   { opacity: 1;   filter: brightness(1.25); }
}

/* ---------- Contenido ---------- */
.contenido {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 2.2rem 16px 2rem;
}

.panel {
    position: relative;
    background: var(--crema);
    border-radius: var(--radio);
    padding: 2rem 1.1rem 1.4rem;
    margin-bottom: 1.6rem;
    box-shadow: var(--sombra);
    overflow: hidden;
}
/* Borde superior de bastón de caramelo */
.panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(45deg, var(--rojo) 0 14px, #fff 14px 28px);
}

.panel-angosto { max-width: 640px; margin-left: auto; margin-right: auto; }

.panel-titulo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--verde-oscuro);
}
.panel-subtitulo { color: var(--texto-suave); font-size: 1.05rem; }
.resaltado { color: var(--rojo); }
.texto-centro { text-align: center; margin-top: 1.2rem; }

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    color: #fff;
    padding: 1rem 0 1.8rem;
}
.hero-adornos { font-size: 1.8rem; letter-spacing: .4rem; margin-bottom: .3rem; }
.hero-titulo {
    font-family: var(--fuente-titulo);
    font-size: 2.4rem;
    line-height: 1.15;
    color: #fff;
    text-shadow: 3px 3px 0 var(--rojo), 0 0 20px rgba(242, 193, 78, .6);
    margin-bottom: 1rem;
}
.hero-texto {
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 1.4rem;
    color: #f4fff8;
}
.hero-botones {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    align-items: stretch;
    max-width: 460px;
    margin: 0 auto;
}

/* ---------- Pasos ---------- */
.pasos {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}
.paso {
    background: rgba(255, 255, 255, .96);
    border-radius: var(--radio);
    padding: 1.2rem 1.2rem 1rem 4.4rem;
    position: relative;
    box-shadow: var(--sombra);
    border-left: 8px solid var(--dorado);
}
.paso h2 { font-size: 1.2rem; color: var(--rojo); }
.paso p { margin: 0; }
.paso-numero {
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--verde);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    border: 3px solid var(--dorado);
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 56px;
    padding: .7rem 1.3rem;
    font: 800 1.05rem/1.2 var(--fuente);
    text-align: center;
    text-decoration: none;
    border: 3px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: wait; transform: none; }

.btn-primario   { background: var(--rojo);  color: #fff; border-color: var(--rojo-oscuro); }
.btn-primario:hover { background: var(--rojo-oscuro); color: #fff; }
.btn-secundario { background: var(--verde); color: #fff; border-color: var(--verde-oscuro); }
.btn-secundario:hover { background: var(--verde-oscuro); color: #fff; }
.btn-dorado     { background: var(--dorado); color: #3b2a00; border-color: var(--dorado-oscuro); }
.btn-dorado:hover { background: #ffd36b; color: #3b2a00; }
.btn-claro      { background: #fff; color: var(--texto); border-color: #8a8a8a; }
.btn-claro:hover { background: #f3f3f3; color: var(--texto); }
.btn-peligro    { background: #fff; color: var(--rojo-oscuro); border-color: var(--rojo); }
.btn-peligro:hover { background: var(--rojo); color: #fff; }
.btn-regalo {
    background: linear-gradient(135deg, var(--rojo) 0%, #d4142f 100%);
    color: #fff;
    border-color: var(--dorado);
    box-shadow: 0 4px 0 var(--rojo-oscuro);
}
.btn-regalo:hover { color: #fff; box-shadow: 0 8px 18px rgba(179, 0, 27, .45); }

.btn-grande { min-height: 64px; font-size: 1.15rem; padding: .8rem 1.5rem; }
.btn-chico  { min-height: 48px; font-size: .95rem; padding: .5rem .9rem; }
.btn-bloque { width: 100%; }

.volver { margin-bottom: 1rem; }

/* ---------- Formularios ---------- */
.formulario { display: flex; flex-direction: column; gap: 1.2rem; }

.campo { display: flex; flex-direction: column; gap: .35rem; }

.campo label, .etiqueta-campo {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--texto);
}

.opcional, .obligatorio { font-weight: 600; font-size: .9rem; color: var(--texto-suave); }

input[type="text"], input[type="password"], input[type="url"], input[type="search"], select, textarea {
    width: 100%;
    min-height: 58px;
    padding: .7rem .9rem;
    font: 600 1.05rem var(--fuente);
    color: var(--texto);
    background: #fff;
    border: 3px solid var(--borde);
    border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--texto) 50%), linear-gradient(135deg, var(--texto) 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 14px) 50%;
    background-size: 8px 8px;
    background-repeat: no-repeat;
    padding-right: 2.6rem;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--azul-foco);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, .25);
}
::placeholder { color: #767676; font-weight: 400; }

.ayuda { font-size: .9rem; color: var(--texto-suave); margin: 0; }

.error-campo {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: var(--rojo-oscuro);
    background: #fdecee;
    border-left: 5px solid var(--rojo);
    padding: .4rem .7rem;
    border-radius: 6px;
}
.con-error input, .con-error select, .con-error textarea { border-color: var(--rojo); }

.campo-password { display: flex; gap: .5rem; }
.campo-password input { flex: 1; min-width: 0; }
.btn-ver { flex-shrink: 0; min-height: 58px; padding: .5rem .8rem; font-size: .95rem; }

.input-oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.input-oculto:focus-visible + *, .foto-selector:focus-within label.btn { outline: 4px solid var(--azul-foco); outline-offset: 3px; }

.foto-selector { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.foto-botones { display: flex; flex-direction: column; gap: .7rem; }

.casilla, .casilla-estrella {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-weight: 700;
    cursor: pointer;
}
.casilla input, .casilla-estrella input { width: 30px; height: 30px; flex-shrink: 0; accent-color: var(--rojo); cursor: pointer; }

.casilla-estrella {
    padding: .9rem 1rem;
    background: var(--dorado-claro);
    border: 3px dashed var(--dorado-oscuro);
    border-radius: 14px;
    font-size: 1.1rem;
}
.casilla-estrella:has(input:checked) { background: var(--dorado); border-style: solid; }

/* ---------- Avisos ---------- */
.aviso {
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin: 1rem 0;
    border-left: 8px solid;
}
.aviso p:last-child { margin-bottom: 0; }
.aviso .btn { margin-top: .4rem; }
.aviso-info  { background: #eef6ff; border-color: #2563eb; color: #0f2a5c; }
.aviso-error { background: #fdecee; border-color: var(--rojo); color: var(--rojo-oscuro); }
.aviso-exito { background: #e8f6ec; border-color: var(--verde); color: var(--verde-oscuro); }

.password-temporal {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: .08em;
    background: #fff;
    border: 3px dashed var(--verde);
    border-radius: 12px;
    padding: .5rem 1rem;
    display: inline-block;
    user-select: all;
}

/* ---------- Toasts ---------- */
.toasts {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 200;
    width: calc(100% - 32px);
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem 1rem 1rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 14px;
    border-left: 10px solid;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    animation: toast-entra .35s ease-out;
}
.toast.saliendo { animation: toast-sale .3s ease-in forwards; }
.toast-texto { flex: 1; }
.toast-exito { background: #e8f6ec; color: #0b3d22; border-color: var(--verde); }
.toast-error { background: #fdecee; color: #6b0010; border-color: var(--rojo); }
.toast-info  { background: var(--dorado-claro); color: #3b2a00; border-color: var(--dorado-oscuro); }
.toast-cerrar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    cursor: pointer;
}

@keyframes toast-entra { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes toast-sale  { to { opacity: 0; transform: translateY(30px); } }

/* ---------- Avatares ---------- */
.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--dorado);
    background: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.avatar-mini   { width: 52px;  height: 52px; border-width: 3px; }
.avatar-grande { width: 110px; height: 110px; }
.avatar-enorme { width: 120px; height: 120px; border-width: 5px; }

.avatar-iniciales {
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(rgba(255, 255, 255, .55) 1.3px, transparent 2px);
    background-size: 14px 14px;
}
.avatar-iniciales span { position: relative; z-index: 1; font-size: 1.3rem; text-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.avatar-grande.avatar-iniciales span { font-size: 2.3rem; }
.avatar-enorme.avatar-iniciales span { font-size: 2.6rem; }
.avatar-mini.avatar-iniciales span   { font-size: 1.05rem; }

.avatar-color-0 { background-color: var(--rojo); }
.avatar-color-1 { background-color: var(--verde); }
.avatar-color-2 { background-color: #9a6a00; }
.avatar-color-3 { background-color: #1f4e8c; }
.avatar-color-4 { background-color: #6d1a7a; }

/* ---------- Participantes ---------- */
.buscador { margin: 1rem 0 1.4rem; display: flex; flex-direction: column; gap: .35rem; }
.buscador label { font-weight: 800; font-size: 1.05rem; }
.buscador-fila { display: flex; flex-wrap: wrap; gap: .5rem; }
.buscador-fila input { flex: 1 1 220px; }

.rejilla-participantes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: .8rem;
}
@media (max-width: 599px) {
    .participante .avatar-grande { width: 90px; height: 90px; }
    .participante .avatar-grande.avatar-iniciales span { font-size: 1.9rem; }
}

.participante {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1.2rem .6rem 1rem;
    background: #fff;
    border: 3px solid #e7dcc0;
    border-radius: var(--radio);
    text-decoration: none;
    color: var(--texto);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.participante:hover {
    color: var(--texto);
    transform: translateY(-5px) rotate(-1deg);
    border-color: var(--dorado);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}
.participante-nombre { font-weight: 800; font-size: 1.1rem; word-break: break-word; }
.participante-total {
    font-size: .9rem;
    font-weight: 700;
    color: var(--verde);
    background: #e8f6ec;
    padding: .15rem .7rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* ---------- Encabezado de persona ---------- */
.persona-cabecera {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.barra-acciones { display: flex; flex-direction: column; gap: .8rem; margin: 1rem 0; }

/* ---------- Tarjetas de productos ---------- */
.lista-productos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.tarjeta-producto {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    background: #fff;
    border: 3px solid #e2e2e2;
    border-left: 10px solid var(--verde);
    border-radius: var(--radio);
    padding: 1.2rem 1.1rem 1.1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
    transition: transform .2s ease, box-shadow .2s ease;
}
.tarjeta-producto:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0, 0, 0, .16); }

.tarjeta-producto.destacado {
    border-color: var(--dorado);
    border-left-color: var(--dorado-oscuro);
    background: linear-gradient(180deg, #fffaf0 0%, #fff 60%);
    box-shadow: 0 0 0 3px rgba(242, 193, 78, .35), 0 10px 22px rgba(138, 97, 0, .2);
}

.cinta-estrella {
    align-self: flex-start;
    background: var(--dorado);
    color: #3b2a00;
    font-weight: 800;
    font-size: .95rem;
    padding: .3rem .9rem;
    border-radius: 999px;
    border: 2px solid var(--dorado-oscuro);
    animation: latido 2.4s ease-in-out infinite;
}
@keyframes latido {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

.producto-nombre { font-size: 1.3rem; font-weight: 800; color: var(--texto); word-break: break-word; margin: 0; }

.producto-detalles { margin: 0; display: flex; flex-direction: column; gap: .25rem; }
.producto-detalles > div { display: flex; flex-wrap: wrap; gap: .4rem; }
.producto-detalles dt { font-weight: 800; color: var(--texto-suave); }
.producto-detalles dd { margin: 0; font-weight: 600; }
.notas { white-space: pre-line; word-break: break-word; }

.producto-enlace {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    font-size: 1.05rem;
    color: #0b4fb3;
    text-decoration: underline;
    text-underline-offset: 4px;
    word-break: break-word;
}
.producto-enlace:hover { color: #083a85; }

.producto-acciones { display: flex; flex-direction: column; gap: .6rem; margin-top: .3rem; }
.producto-acciones form { margin: 0; }

.etiqueta {
    margin: 0;
    padding: .7rem 1rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.05rem;
    text-align: center;
}
.etiqueta-reservado  { background: #f0f0f0; color: #3d3d3d; border: 3px dashed #9a9a9a; }
.etiqueta-mio        { background: #e8f6ec; color: var(--verde-oscuro); border: 3px solid var(--verde); }
.etiqueta-disponible { background: #e8f6ec; color: var(--verde-oscuro); border: 2px solid #9fd4b1; }

.tarjeta-producto.estado-otro { background: #fafafa; border-left-color: #9a9a9a; }
.tarjeta-producto.estado-otro .producto-nombre { color: #4a4a4a; }
.tarjeta-producto.estado-mio { border-left-color: var(--verde); box-shadow: 0 0 0 3px rgba(20, 107, 58, .25), 0 8px 18px rgba(0, 0, 0, .1); }
.tarjeta-producto.estado-admin-reservado { border-left-color: var(--rojo); }

.btn-estrella { background: #fff; color: #3b2a00; border-color: var(--dorado-oscuro); }
.btn-estrella.activo { background: var(--dorado); }
.btn-estrella:hover { background: var(--dorado-claro); color: #3b2a00; }
.btn-estrella.activo:hover { background: #ffd36b; }

.acciones-fila { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

.regalo-para {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--texto);
    font-weight: 600;
}

/* ---------- Estados vacíos ---------- */
.vacio { text-align: center; padding: 1.5rem .5rem; font-size: 1.1rem; }
.vacio-icono { font-size: 3.5rem; margin: 0; }

/* ---------- Modales ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(5, 20, 12, .72);
}
.modal.abierto { display: flex; animation: aparecer-suave .2s ease-out; }

.modal-caja {
    width: 100%;
    max-width: 600px;
    max-height: 94vh;
    overflow-y: auto;
    background: var(--crema);
    border-radius: 22px 22px 0 0;
    border-top: 8px solid var(--dorado);
    padding: 1.4rem 1.1rem 1.6rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .4);
    animation: modal-entra .3s cubic-bezier(.2, .9, .3, 1.2);
}
.modal-pequena { max-width: 520px; }

.modal-cabecera { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; margin-bottom: .6rem; }
.modal-titulo { font-size: 1.45rem; font-weight: 800; color: var(--verde-oscuro); }
.modal-texto { font-size: 1.1rem; }
.modal-producto {
    font-size: 1.2rem;
    font-weight: 800;
    background: #fff;
    border: 3px solid var(--dorado);
    border-radius: 12px;
    padding: .7rem 1rem;
}
.modal-botones { display: flex; flex-direction: column; gap: .7rem; margin: 1.2rem 0 .6rem; }
.btn-cerrar { min-height: 48px; padding: .4rem .8rem; font-size: .95rem; flex-shrink: 0; }

.modal-celebracion { text-align: center; }
.modal-celebracion .producto-detalles { align-items: center; margin-bottom: .6rem; }
.modal-celebracion .producto-detalles > div { justify-content: center; }
.celebracion-icono { font-size: 3rem; margin: 0; animation: latido 1.4s ease-in-out infinite; }

.link-caja {
    background: #fff;
    border: 3px dashed var(--verde);
    border-radius: 12px;
    padding: .8rem;
    word-break: break-all;
    font-size: 1rem;
}

@keyframes modal-entra { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes aparecer-suave { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Aparición de tarjetas ---------- */
.aparecer {
    animation: aparecer .5s ease-out both;
    animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes aparecer {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Administración ---------- */
.resumen {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.6rem;
}
.resumen-tarjeta {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    align-items: center;
    background: #fff;
    border-radius: var(--radio);
    padding: 1rem 1.2rem;
    box-shadow: var(--sombra);
    border-bottom: 6px solid var(--dorado);
}
.resumen-icono { grid-row: span 2; font-size: 2.6rem; }
.resumen-numero { font-size: 2.2rem; font-weight: 800; color: var(--rojo); line-height: 1; }
.resumen-texto { font-weight: 700; color: var(--texto-suave); }

.tabla-contenedor { overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tabla th {
    background: var(--verde);
    color: #fff;
    text-align: left;
    padding: .8rem;
    font-weight: 800;
}
.tabla td { padding: .7rem .8rem; border-bottom: 2px solid #ece6d6; vertical-align: middle; }
.tabla tbody tr:nth-child(even) { background: #fbf6e9; }
.tabla-acciones { display: flex; flex-wrap: wrap; gap: .5rem; }
.tabla-acciones form { margin: 0; }

.paginacion { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.paginacion .btn { min-width: 56px; }

.admin-acciones { display: grid; gap: 1rem; margin-top: 1rem; }
.tarjeta-accion {
    background: #fff;
    border: 3px solid #e2e2e2;
    border-radius: var(--radio);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.tarjeta-accion h2 { font-size: 1.2rem; margin: 0; }
.tarjeta-peligro { border-color: #f1b5bd; background: #fff8f9; }

/* Tabla tipo tarjetas en celular */
@media (max-width: 759px) {
    .tabla thead { display: none; }
    .tabla, .tabla tbody, .tabla tr, .tabla td { display: block; width: 100%; }
    .tabla tr {
        background: #fff !important;
        border: 3px solid #e7dcc0;
        border-radius: 14px;
        margin-bottom: 1rem;
        padding: .4rem .2rem;
    }
    .tabla td { border: none; display: flex; align-items: center; gap: .6rem; padding: .45rem .8rem; }
    .tabla td::before {
        content: attr(data-label) ":";
        font-weight: 800;
        color: var(--texto-suave);
        min-width: 7.5rem;
    }
    .tabla td[data-label="Acciones"] { flex-direction: column; align-items: stretch; }
    .tabla td[data-label="Acciones"]::before { display: none; }
    .tabla-acciones { flex-direction: column; }
    .tabla-acciones .btn { width: 100%; }
}

/* ---------- Pie ---------- */
.pie {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #e8f6ec;
    padding: 1.5rem 16px 6rem;
    font-size: .95rem;
}
.pie p { margin: 0 0 .3rem; }
.pie-adornos { font-size: 1.5rem; letter-spacing: .3rem; }

/* ============================================================
   Pantallas medianas y grandes
   ============================================================ */
@media (min-width: 600px) {
    .hero-titulo { font-size: 3.2rem; }
    .hero-botones { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; }
    .barra-acciones { flex-direction: row; flex-wrap: wrap; }
    .modal { align-items: center; padding: 16px; }
    .modal-caja { border-radius: 22px; border-top-width: 8px; padding: 1.6rem 1.6rem 1.8rem; }
    .modal-botones { flex-direction: row; flex-wrap: wrap; }
    .modal-botones .btn { flex: 1 1 200px; }
    .panel { padding: 2.4rem 2rem 1.8rem; }
    .persona-cabecera { flex-direction: row; text-align: left; }
    .resumen { grid-template-columns: repeat(3, 1fr); }
    .admin-acciones { grid-template-columns: 1fr 1fr; }
    .luces span:nth-child(n+16) { display: block; }
}

@media (min-width: 800px) {
    .pasos { grid-template-columns: repeat(3, 1fr); }
    .lista-productos { grid-template-columns: repeat(2, 1fr); }
    .rejilla-participantes { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (min-width: 1000px) {
    .menu-boton { display: none; }
    .menu {
        display: flex !important;
        width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        padding: 0;
        gap: .4rem;
    }
    .menu-enlace { width: auto; min-height: 50px; padding: .45rem .8rem; font-size: .95rem; }
    .lista-productos { grid-template-columns: repeat(3, 1fr); }
}

/* Quienes prefieren menos movimiento: sin animaciones */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
