:root {
  --bg: #edf8ff;
  --paper: rgba(255, 255, 255, .92);
  --ink: #17354d;
  --muted: #557188;
  --plum: #3f91c9;
  --plum-dark: #153f5d;
  --rose: #72bce8;
  --gold: #79bfe8;
  --line: rgba(54, 137, 192, .16);
  --shadow: 0 22px 65px rgba(34, 111, 163, .14);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(140, 211, 250, .28), transparent 26rem),
    radial-gradient(circle at 92% 20%, rgba(87, 174, 229, .20), transparent 30rem),
    linear-gradient(145deg, #fbfdff 0%, var(--bg) 55%, #dcefff 100%);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-shell { width: min(1120px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0 36px; }
.event-header { display: flex; justify-content: center; padding: 8px 0 24px; }
.event-brand { text-decoration: none; text-align: center; display: grid; gap: 3px; }
.event-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; color: var(--plum); }
.event-brand em { font-family: Georgia, "Times New Roman", serif; font-size: 1rem; color: var(--rose); }
.brand-kicker, .eyebrow { text-transform: uppercase; letter-spacing: .17em; font-size: .72rem; font-weight: 800; color: var(--gold); }
.site-footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 28px 0 4px; }

.hero-card, .form-card, .thanks-card, .admin-card, .danger-zone {
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow);
  border-radius: 30px;
  backdrop-filter: blur(12px);
}
.hero-card { padding: clamp(24px, 5vw, 54px); }
.hero-copy { max-width: 780px; margin: 0 auto 32px; text-align: center; }
h1, h2, p { margin-top: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.12; font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 16px; }
h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
p { color: var(--muted); line-height: 1.65; }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.choice-card {
  display: grid; gap: 8px; min-height: 220px; padding: 28px;
  align-content: center; text-decoration: none; border-radius: 24px;
  color: #fff; transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden; position: relative;
}
.choice-card::after { content: ""; position: absolute; inset: auto -30px -80px auto; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.1); }
.choice-card:hover { transform: translateY(-4px); box-shadow: 0 18px 35px rgba(34,111,163,.24); }
.choice-card.photo { background: linear-gradient(145deg, #58afe2, #287eb8); }
.choice-card.message { background: linear-gradient(145deg, #8bd4f4, #429ccf); }
.choice-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 500; }
.choice-card span:last-child { color: rgba(255,255,255,.82); line-height: 1.5; }
.choice-icon { font-family: Georgia, serif; font-size: 2.2rem; }
.mode-note { text-align: center; margin: 24px 0 0; font-size: .9rem; }

.form-card { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 48px); }
.form-card.compact { max-width: 520px; }
.back-link { display: inline-block; text-decoration: none; margin-bottom: 24px; color: var(--plum); font-weight: 700; }
.stack-form { display: grid; gap: 20px; margin-top: 28px; }
.field { display: grid; gap: 8px; font-weight: 700; color: var(--ink); }
.field small { color: var(--muted); font-weight: 500; }
.field input, .field textarea, .filters select, .bulk-bar select {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px;
  background: rgba(255,255,255,.86); color: var(--ink); outline: none;
  transition: border .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus, .field textarea:focus, select:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(79,166,220,.16); }
.counter { text-align: right; color: var(--muted); font-weight: 500; }
.consent-note { margin: -4px 0 0; font-size: .8rem; line-height: 1.45; text-align: center; }
.honeypot { position: absolute !important; left: -10000px !important; opacity: 0 !important; pointer-events: none !important; }

.upload-drop {
  display: grid; justify-items: center; text-align: center; gap: 8px; padding: 34px 20px;
  border: 2px dashed rgba(54,137,192,.30); border-radius: 20px; cursor: pointer;
  background: rgba(226,244,255,.72); color: var(--muted);
}
.upload-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-drop strong { color: var(--plum); }
.upload-symbol { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--plum); color: #fff; font-size: 1.7rem; }

.primary-button, .secondary-button, .danger-button, .mini-button, .toggle-button, .text-button {
  border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.primary-button { min-height: 52px; padding: 0 22px; border-radius: 14px; background: linear-gradient(135deg, var(--plum), #257bb5); color: #fff; font-weight: 800; box-shadow: 0 12px 22px rgba(54,137,192,.22); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.secondary-button { min-height: 42px; padding: 0 16px; border-radius: 12px; background: #e2f3fd; color: var(--plum-dark); font-weight: 800; }
.text-button { background: transparent; color: var(--muted); font-weight: 700; }
.danger-button { min-height: 48px; padding: 0 18px; border-radius: 12px; background: #9e3346; color: #fff; font-weight: 800; }
.upload-progress { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.upload-progress span { width: 18px; height: 18px; border: 2px solid rgba(54,137,192,.20); border-top-color: var(--plum); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.message-preview { padding: 28px; border-radius: 20px; background: linear-gradient(145deg, #2e87c1, #82ccef); color: #fff; }
.message-preview > span { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: #eaf8ff; }
.message-preview blockquote { margin: 18px 0 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.45rem; line-height: 1.55; }

.thanks-card { max-width: 720px; margin: 0 auto; text-align: center; padding: clamp(36px, 6vw, 64px); }
.thanks-mark { width: 72px; height: 72px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: #d8effc; color: var(--plum-dark); font-size: 2rem; font-weight: 900; }
.error-mark { background: #f4d9df; color: #963246; }
.thanks-actions { display: flex; justify-content: center; margin-top: 26px; }

.flash-stack { max-width: 760px; margin: 0 auto 18px; display: grid; gap: 10px; }
.flash { border-radius: 14px; padding: 14px 16px; background: #eef4ec; color: #315431; border: 1px solid rgba(49,84,49,.14); }
.flash.error { background: #fae9ec; color: #7c2537; border-color: rgba(124,37,55,.14); }
.flash.success { background: #eaf5ee; color: #28603d; }

/* Proyección */
.screen-page { overflow: hidden; background: #09263d; }
.screen-stage { position: fixed; inset: 0; overflow: hidden; color: #fff; background: radial-gradient(circle at center, #2b87bd 0%, #145174 48%, #08263e 100%); }
.screen-bg-glow { position: absolute; width: 42vw; height: 42vw; border-radius: 50%; filter: blur(90px); opacity: .18; }
.screen-bg-glow.one { left: -10vw; top: -18vw; background: #d6f2ff; }
.screen-bg-glow.two { right: -12vw; bottom: -20vw; background: #61c4f1; }
.screen-titlebar { position: absolute; z-index: 6; top: 34px; left: 44px; }
.screen-titlebar span { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: #d9f4ff; font-weight: 800; }
.screen-titlebar h1 { margin: 5px 0 2px; font-size: clamp(2rem, 3vw, 3.4rem); }
.screen-titlebar p { margin: 0; color: rgba(255,255,255,.7); font-family: Georgia, serif; font-style: italic; }
.slide-area { position: absolute; inset: 126px 250px 86px 70px; display: grid; place-items: center; }
.slide-frame { width: 100%; height: 100%; margin: 0; display: grid; place-items: center; position: relative; }
.slide-frame img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 20px; box-shadow: 0 28px 75px rgba(0,0,0,.42); opacity: 1; transform: scale(1); transition: opacity .7s ease, transform 8s ease; }
.slide-frame.changing img { opacity: 0; transform: scale(.985); }
.slide-frame.kenburns img { transform: scale(1.025); }
.slide-frame figcaption { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); max-width: 78%; padding: 10px 18px; border-radius: 999px; background: rgba(7,42,67,.72); backdrop-filter: blur(10px); color: #fff; text-align: center; font-size: .9rem; }
.slide-frame figcaption:empty { display: none; }
.empty-state { text-align: center; color: rgba(255,255,255,.76); }
.empty-state h2 { color: #fff; font-size: clamp(2rem, 4vw, 4rem); margin-bottom: 10px; }
.empty-heart { font-family: Georgia, serif; font-size: 7rem; line-height: 1; color: #bfeaff; }
.screen-qr { position: absolute; z-index: 6; right: 38px; top: 50%; transform: translateY(-50%); width: 190px; padding: 14px; border-radius: 22px; background: rgba(255,255,255,.94); color: var(--plum-dark); text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.screen-qr img { display: block; width: 100%; border-radius: 12px; }
.screen-qr div { display: grid; gap: 2px; margin-top: 9px; }
.screen-qr span { font-size: .76rem; color: #557188; }
.screen-footer { position: absolute; z-index: 6; left: 44px; right: 44px; bottom: 24px; display: flex; justify-content: space-between; color: rgba(255,255,255,.58); font-size: .88rem; }

/* Administración */
.admin-page .site-shell { width: min(1440px, calc(100% - 30px)); }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-heading h1 { margin: 5px 0 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.admin-top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.stats-grid article { background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 2px; }
.stats-grid strong { font-size: 1.9rem; color: var(--plum); }
.stats-grid span { color: var(--muted); font-size: .86rem; }
.admin-card { padding: 20px; margin-bottom: 16px; }
.mode-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.mode-card h2 { margin-bottom: 5px; }
.mode-card p { margin: 0; }
.toggle-button { min-width: 180px; gap: 10px; border-radius: 999px; padding: 12px 16px; font-weight: 800; }
.toggle-button span { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.toggle-button.on { background: #4f7656; color: #fff; }
.toggle-button.off { background: #dceffb; color: var(--plum-dark); }
.filters, .bulk-bar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.filters label { display: grid; gap: 6px; min-width: 180px; font-weight: 700; }
.bulk-bar { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.bulk-bar select { max-width: 260px; }
.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.memory-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.memory-card > img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #0d3652; }
.memory-select { position: absolute; z-index: 2; top: 10px; left: 10px; width: 28px; height: 28px; display: grid; place-items: center; background: rgba(255,255,255,.93); border-radius: 8px; }
.memory-info { padding: 14px; }
.memory-info > strong { display: block; margin: 9px 0 4px; }
.memory-info p { font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.memory-info small { color: var(--muted); }
.memory-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; }
.pill { padding: 5px 8px; border-radius: 999px; font-weight: 800; }
.pill.approved { background: #e4f2e7; color: #2f6940; }
.pill.pending { background: #f8edcf; color: #7c5c18; }
.pill.rejected { background: #f4dfe4; color: #873347; }
.memory-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.mini-button { padding: 7px 9px; border-radius: 8px; background: #e3f2fb; color: var(--plum-dark); font-size: .75rem; font-weight: 800; }
.mini-button.approve { background: #e4f2e7; color: #2f6940; }
.mini-button.reject { background: #f4dfe4; color: #873347; }
.empty-admin { text-align: center; padding: 50px 20px; color: var(--muted); }
.danger-zone { border: 1px solid rgba(158,51,70,.28); padding: 26px; margin-top: 28px; }
.danger-zone h2 { color: #8a2f41; }
.danger-check { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.compact-field { max-width: 320px; margin-bottom: 16px; }

@media (max-width: 1050px) {
  .memory-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .choice-grid, .memory-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 190px; }
  .admin-heading, .mode-card { align-items: stretch; flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-top-actions { align-items: stretch; }
  .admin-top-actions > * { flex: 1 1 auto; }
  .screen-titlebar { left: 20px; top: 20px; }
  .slide-area { inset: 110px 20px 170px 20px; }
  .screen-qr { width: 150px; right: 20px; top: auto; bottom: 42px; transform: none; display: flex; align-items: center; gap: 8px; }
  .screen-qr img { width: 72px; }
  .screen-footer { left: 20px; right: 20px; }
}


.hero-with-photo { display:grid; grid-template-columns: 1.35fr .85fr; gap: 24px; align-items: center; }
.hero-side-photo { display:flex; justify-content:center; }
.photo-card-large { margin:0; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(226,243,253,.96)); border:1px solid var(--line); border-radius: 24px; padding: 16px; box-shadow: 0 18px 40px rgba(17,65,97,.10); max-width: 300px; }
.photo-card-large img, .hero-photo-mobile img { display:block; width:100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; }
.photo-card-large figcaption { text-align:center; padding-top: 12px; font-weight:700; color: var(--plum-dark); }
.hero-photo-mobile { display:none; margin-top: 16px; }
.choice-grid-three { grid-template-columns: repeat(3, 1fr); grid-column: 1 / -1; }
.choice-card.live { background: linear-gradient(135deg, #74bee7, #2f8ec6); }
.live-page-card { max-width: 1160px; margin: 0 auto; padding: 24px; background: rgba(255,255,255,.86); border:1px solid var(--line); border-radius: 28px; box-shadow: 0 20px 50px rgba(16,71,104,.12); }
.live-page-copy h1 { margin-top: 8px; }
.live-options { display:grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.choice-card.simple { min-height: 200px; }
.admin-live-actions, .live-admin-buttons { display:flex; gap: 12px; flex-wrap:wrap; align-items:center; }
.live-status-note { color: var(--plum-dark); }
.live-embed-shell { margin-top: 20px; border-radius: 24px; overflow: hidden; border:1px solid var(--line); min-height: 72vh; background:#0c2b42; }
.live-embed-shell iframe { width:100%; height:72vh; border:0; display:block; }
.live-help { margin-top: 14px; color: var(--muted); }
.live-stage { position:absolute; inset: 118px 44px 78px 44px; z-index: 5; display:grid; grid-template-rows: auto 1fr; gap: 12px; }
.live-stage iframe { width:100%; height:100%; border:0; border-radius: 24px; box-shadow: 0 28px 75px rgba(0,0,0,.42); background:#0b2941; }
.live-badge { justify-self:start; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--plum-dark); font-weight:800; box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.live-admin-card { display:flex; justify-content:space-between; gap:20px; align-items:center; }
@media (max-width: 960px) {
  .hero-with-photo { grid-template-columns: 1fr; }
  .hero-side-photo { display:none; }
  .hero-photo-mobile { display:block; }
  .choice-grid-three, .live-options { grid-template-columns: 1fr; }
  .live-admin-card { flex-direction:column; align-items:flex-start; }
}
