/* ===================================================================
   ARCHIVO: public/css/checkin-qr.css
   Códigos QR personales para el check-in
   =================================================================== */
.checkin-qr-section {
    --checkin-accent: var(--accent, var(--color-destacado, #8b4d47));
    --checkin-ink: #2f2926;
    width: min(100%, 940px);
    margin: 28px auto;
    padding: clamp(24px, 5vw, 48px) clamp(18px, 4vw, 42px);
    text-align: center;
    color: var(--checkin-ink);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(139, 77, 71, 0.18);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(45, 34, 29, 0.12);
}

.checkin-qr-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--checkin-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.checkin-qr-section h2 {
    margin: 0 0 12px;
    color: var(--checkin-ink);
}

.checkin-qr-intro,
.checkin-qr-help {
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.65;
}

.checkin-qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 360px));
    justify-content: center;
    gap: 20px;
    margin: 28px 0 20px;
}

.checkin-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid rgba(47, 41, 38, 0.12);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(47, 41, 38, 0.08);
}

.checkin-qr-person {
    display: grid;
    gap: 3px;
    margin-bottom: 14px;
}

.checkin-qr-person small {
    color: var(--checkin-accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.checkin-qr-person strong {
    overflow-wrap: anywhere;
    font-size: 1.05rem;
}

.checkin-qr-image {
    display: block;
    width: min(100%, 280px);
    height: auto;
    aspect-ratio: 1;
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(47, 41, 38, 0.1);
    border-radius: 12px;
    image-rendering: pixelated;
}

.checkin-qr-code {
    display: block;
    max-width: 100%;
    margin: 12px 0 10px;
    padding: 7px 10px;
    overflow-wrap: anywhere;
    color: #3a3330;
    background: #f5f1ed;
    border-radius: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.checkin-qr-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    color: #fff !important;
    background: var(--checkin-accent);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none !important;
}

.checkin-qr-download:hover,
.checkin-qr-download:focus-visible {
    filter: brightness(0.9);
    transform: translateY(-1px);
}

.checkin-qr-card--used {
    justify-content: center;
    min-height: 270px;
    border-color: rgba(25, 135, 84, 0.32);
    background: rgba(234, 248, 240, 0.96);
}

.checkin-qr-used {
    display: grid;
    justify-items: center;
    gap: 7px;
    color: #146c43;
    font-weight: 800;
}

.checkin-qr-used > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #fff;
    background: #198754;
    border-radius: 50%;
    font-size: 2rem;
}

.checkin-qr-used small {
    font-weight: 600;
}

.checkin-qr-help {
    color: #655b56;
    font-size: 0.86rem;
}

@media (max-width: 520px) {
    .checkin-qr-section {
        margin: 22px 10px;
        width: auto;
        border-radius: 18px;
    }

    .checkin-qr-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .checkin-qr-section {
        box-shadow: none;
        break-inside: avoid;
    }

    .checkin-qr-download {
        display: none;
    }
}


/* ===================================================================
   Fotografías enviadas por invitados
   =================================================================== */
.guest-photo-section {
    --guest-accent: var(--accent, var(--color-destacado, #8b4d47));
    width: min(100%, 940px);
    margin: 28px auto;
    padding: clamp(24px, 5vw, 44px) clamp(18px, 4vw, 40px);
    text-align: center;
    color: #2f2926;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(139,77,71,.18);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(45,34,29,.12);
}
.guest-photo-eyebrow { display:inline-block;margin-bottom:8px;color:var(--guest-accent);font-size:.72rem;font-weight:800;letter-spacing:.18em; }
.guest-photo-section h2 { margin:0 0 10px;color:#2f2926; }
.guest-photo-section > p { max-width:680px;margin:0 auto 20px;line-height:1.65; }
.guest-photo-form { display:grid;gap:14px;max-width:620px;margin:22px auto 0;text-align:left; }
.guest-photo-form label { display:grid;gap:7px;font-weight:700; }
.guest-photo-form input { width:100%;padding:12px 14px;border:1px solid rgba(47,41,38,.2);border-radius:12px;background:#fff; }
.guest-photo-form button,.guest-photo-external { display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;color:#fff!important;background:var(--guest-accent);border:0;border-radius:999px;font-weight:800;text-decoration:none!important; }
.guest-photo-form small { text-align:center;color:#655b56;font-weight:500; }
.guest-photo-notice { max-width:680px;margin:20px auto;padding:14px 16px;background:#f7f3ef;border-radius:14px;color:#655b56; }
.guest-photo-external { margin-top:18px;background:#4d5d6c; }
@media(max-width:520px){.guest-photo-section{width:auto;margin:22px 10px;border-radius:18px;}}

/* SISINV 3.0.7: el QR permanece visible aunque el ingreso ya esté registrado. */
.checkin-qr-card--used {
    min-height: 0;
}

.checkin-qr-card--used .checkin-qr-used {
    width: 100%;
    margin: 0 0 16px;
    padding: 12px;
    background: rgba(25, 135, 84, 0.08);
    border-radius: 12px;
}

.checkin-qr-used-note {
    display: block;
    margin-top: 12px;
    color: #146c43;
    font-size: 0.76rem;
    line-height: 1.45;
}
