:root {
  --yellow: #f3ec32;
  --yellow-soft: #fffbd0;
  --blue: #3f83dc;
  --blue-deep: #174f9b;
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --paper: #ffffff;
  --bg: #f7f8fa;
  --success: #197a45;
  --danger: #b42318;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(16, 24, 40, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px clamp(18px, 4vw, 64px); background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(17,24,39,.08); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand div { display: flex; flex-direction: column; min-width: 0; }
.brand strong { font-size: 1.2rem; letter-spacing: .12em; }
.brand span { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
nav a { padding: 10px 12px; border-radius: 999px; font-size: .92rem; }
nav a:hover { background: var(--yellow-soft); }
.page-shell { min-height: calc(100vh - 150px); padding: 40px clamp(18px, 5vw, 80px) 70px; }
.hero { max-width: 1240px; margin: 0 auto; min-height: 610px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: center; border: 1px solid var(--line); border-radius: 34px; padding: clamp(30px, 5vw, 72px); background: linear-gradient(135deg,#fff 0%,#fffef0 66%,#f9f35d 100%); box-shadow: var(--shadow); overflow: hidden; }
.eyebrow { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: var(--yellow); color: #1b1b16; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: clamp(2.3rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.05em; margin: 18px 0; }
.hero-copy > p { max-width: 720px; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.6; color: #475467; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-actions.centered { justify-content: center; }
.btn { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border-radius: 14px; font-weight: 800; transition: transform .16s ease, box-shadow .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: white; box-shadow: 0 10px 22px rgba(17,24,39,.15); }
.btn-outline { background: white; color: var(--ink); border: 1px solid #d0d5dd; }
.btn-dark { background: var(--blue-deep); color: white; }
.btn-wide { width: 100%; }
.moderation-note { font-size: .9rem !important; color: #667085 !important; }
.hero-emblem { display: grid; place-items: center; position: relative; }
.hero-emblem > img { width: min(100%, 390px); filter: drop-shadow(0 22px 28px rgba(17,24,39,.18)); }
.counter-card { position: absolute; right: -10px; bottom: 10px; display: flex; flex-direction: column; padding: 16px 18px; border-radius: 18px; background: var(--blue-deep); color: white; box-shadow: var(--shadow); }
.counter-card strong { font-size: 2rem; }
.counter-card span { font-size: .8rem; opacity: .84; }
.steps { max-width: 1240px; margin: 30px auto 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.steps article { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.steps article > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); font-weight: 900; }
.steps h2 { margin: 18px 0 8px; }
.steps p { margin: 0; color: var(--muted); line-height: 1.6; }
.form-card, .login-card, .center-card { max-width: 820px; margin: 0 auto; background: white; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px,5vw,54px); box-shadow: var(--shadow); }
.login-card { max-width: 520px; text-align: center; }
.login-card > img { width: 120px; margin-bottom: 16px; }
.center-card { text-align: center; max-width: 760px; }
.success-icon { margin: 0 auto 18px; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #dff7e9; color: var(--success); font-size: 2.4rem; font-weight: 900; }
.section-heading { max-width: 900px; margin: 0 auto 28px; }
.section-heading h1, .form-card h1, .login-card h1, .center-card h1, .admin-top h1 { font-size: clamp(2rem,5vw,4.3rem); }
.section-heading p, .form-card .section-heading p, .login-card p, .center-card p, .admin-top p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.upload-form { display: grid; gap: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 8px; font-weight: 700; }
label span { font-size: .92rem; }
input, textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 14px; padding: 13px 14px; outline: none; background: #fff; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(63,131,220,.12); }
textarea { resize: vertical; }
label small { color: var(--muted); font-weight: 500; line-height: 1.4; }
.file-field { padding: 18px; border: 1px dashed #b8c0cc; border-radius: 18px; background: #fafafa; }
.file-name { font-size: .86rem; color: var(--blue-deep); font-weight: 700; }
.consent-row { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 500; line-height: 1.5; }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; }
.rights-note { margin: -4px 0 0; font-size: .68rem; line-height: 1.45; color: #667085; text-align: justify; }
.flash-stack { max-width: 900px; margin: 0 auto 18px; display: grid; gap: 8px; }
.flash { padding: 13px 15px; border-radius: 12px; font-weight: 700; }
.flash.success { background: #e8f7ee; color: #166534; }
.flash.error { background: #feeceb; color: #991b1b; }
.gallery-grid { max-width: 1240px; margin: 0 auto; columns: 3 280px; column-gap: 18px; }
.memory-card { break-inside: avoid; margin-bottom: 18px; background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 24px rgba(17,24,39,.06); }
.memory-media { display: block; width: 100%; max-height: 520px; object-fit: cover; background: #111; }
.memory-body { padding: 18px; display: grid; gap: 7px; }
.memory-message { font-size: 1.05rem; line-height: 1.55; margin: 0 0 8px; }
.memory-body span, .memory-body small { color: var(--muted); }
.empty-state { max-width: 720px; margin: 60px auto; padding: 50px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 24px; }
.admin-top { max-width: 1240px; margin: 0 auto 20px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.status-tabs { max-width: 1240px; margin: 0 auto 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.status-tabs a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.status-tabs a.active { background: var(--ink); color: white; border-color: var(--ink); }
.moderation-grid { max-width: 1240px; margin: 0 auto; display: grid; gap: 18px; }
.moderation-card { display: grid; grid-template-columns: minmax(220px,360px) 1fr; background: white; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.moderation-media { min-height: 260px; display: grid; place-items: center; background: #101828; }
.moderation-media img, .moderation-media video { width: 100%; height: 100%; max-height: 420px; object-fit: contain; }
.text-only-badge { color: white; font-size: 1.5rem; letter-spacing: .2em; font-weight: 900; }
.moderation-body { padding: 24px; display: grid; align-content: start; gap: 10px; }
.moderation-body h2 { margin: 0; }
.moderation-body .program, .moderation-body small { color: var(--muted); margin: 0; }
.moderation-body blockquote { margin: 8px 0; padding-left: 16px; border-left: 4px solid var(--yellow); color: #344054; line-height: 1.55; }
.meta-line { display: flex; gap: 8px; }
.status-pill, .featured-pill { width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.status-pill.pending { background: #fff4ce; color: #7a4e00; }
.status-pill.approved { background: #dcfae6; color: #12683b; }
.status-pill.rejected { background: #fee4e2; color: #912018; }
.featured-pill { background: #e8f1ff; color: #194f91; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-actions form { margin: 0; }
.btn-approve { background: #157347; color: white; }
.btn-reject { background: #f79009; color: white; }
.btn-delete { background: #b42318; color: white; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(18px,5vw,80px); border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; background: white; }

.presentation-body { width: 100vw; height: 100vh; overflow: hidden; background: #06080c; }
.presentation-stage { position: relative; width: 100vw; height: 100vh; overflow: hidden; background: radial-gradient(circle at 50% 20%,#1d3559,#070a10 58%); color: white; }
.presentation-topbar { position: absolute; z-index: 7; top: 18px; left: 50%; transform: translateX(-50%); padding: 10px 26px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(10,14,21,.28); color: rgba(255,255,255,.95); font-size: clamp(.95rem,1.4vw,1.2rem); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(14px); text-align: center; }
.slide { position: absolute; inset: 0; display: grid; place-items: center; animation: slideIn .6s ease; }
.welcome-slide { text-align: center; padding: 8vw; }
.welcome-slide h1 { max-width: 1100px; font-size: clamp(3rem,8vw,8rem); margin: 18px auto; color: white; }
.welcome-slide p { font-size: clamp(1.2rem,2.3vw,2rem); max-width: 900px; opacity: .8; }
.welcome-emblem img { width: clamp(160px,18vw,270px); filter: drop-shadow(0 22px 40px rgba(0,0,0,.35)); }
.media-slide { background: #000; }
.slide-image { width: 100%; height: 100%; object-fit: contain; background: #000; }
.slide-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.slide-gradient { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 50%,rgba(0,0,0,.85) 100%); }
.slide-caption { position: absolute; z-index: 4; left: 5vw; right: 5vw; bottom: 20vh; display: grid; gap: 7px; max-width: 1000px; text-shadow: 0 2px 16px #000; }
.slide-caption p { margin: 0 0 8px; font-size: clamp(1.6rem,3vw,3.4rem); line-height: 1.15; font-weight: 750; }
.slide-caption strong { font-size: clamp(1.2rem,2vw,2rem); }
.slide-caption span, .slide-caption small { opacity: .82; font-size: clamp(.95rem,1.4vw,1.3rem); }
.video-caption { position: absolute; z-index: 4; right: 3vw; bottom: 19vh; max-width: 520px; padding: 18px; border-radius: 16px; background: rgba(0,0,0,.62); backdrop-filter: blur(10px); display: grid; gap: 5px; }
.video-caption p { margin: 0; font-size: 1.05rem; }
.text-slide { text-align: center; padding: 10vw; background: radial-gradient(circle at 50% 20%,#315f9f,#0b1730 68%); }
.text-slide .quote-mark { position: absolute; top: 10vh; font-size: 15rem; line-height: 1; opacity: .12; font-family: Georgia,serif; }
.text-slide p { max-width: 1200px; margin: 0 auto 32px; font-family: Georgia,serif; font-size: clamp(2.1rem,5vw,5.5rem); line-height: 1.15; }
.text-slide strong { font-size: clamp(1.25rem,2.2vw,2.2rem); }
.text-slide span, .text-slide small { display: block; margin-top: 9px; font-size: clamp(1rem,1.5vw,1.4rem); opacity: .75; }
.presentation-status { display: none; }
.presentation-honoree { position: absolute; z-index: 8; left: 50%; transform: translateX(-50%); bottom: 140px; display: grid; gap: 2px; min-width: min(92vw, 760px); padding: 10px 18px; border-radius: 18px; background: rgba(8,11,17,.38); border: 1px solid rgba(255,255,255,.10); backdrop-filter: blur(14px); text-align: center; }
.presentation-honoree strong { font-size: clamp(.9rem,1.1vw,1rem); text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.82); }
.presentation-honoree span { font-size: clamp(1rem,1.65vw,1.35rem); font-weight: 800; }
.presentation-honoree small { font-size: clamp(.82rem,1vw,1rem); color: rgba(255,255,255,.78); }
.fullscreen-btn { position: absolute; z-index: 9; right: 28px; bottom: 235px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; color: white; background: rgba(0,0,0,.36); cursor: pointer; font-size: 1.4rem; }
@keyframes slideIn { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 850px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-emblem > img { max-width: 260px; }
  .steps { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .moderation-card { grid-template-columns: 1fr; }
  .admin-top { align-items: flex-start; flex-direction: column; }
  .site-footer { flex-direction: column; }
  .brand span { max-width: 230px; }
}

.welcome-invite { margin: 16px auto 120px; max-width: 920px; font-size: clamp(1rem,1.5vw,1.35rem); opacity: .78; }
.institutional-slide .welcome-invite { margin-bottom: 40px; }
.participation-dock { position: absolute; z-index: 8; left: 24px; right: 24px; bottom: 20px; min-height: 122px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 14px 18px 14px 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: rgba(5,9,16,.82); box-shadow: 0 18px 60px rgba(0,0,0,.35); backdrop-filter: blur(16px); }
.participation-copy { min-width: 0; display: grid; gap: 9px; }
.participation-copy > strong { font-size: clamp(1rem,1.6vw,1.45rem); }
.participation-copy > small { opacity: .65; font-size: clamp(.7rem,.85vw,.9rem); }
.participation-steps { display: flex; flex-wrap: wrap; gap: 9px 18px; align-items: center; }
.participation-steps span { display: inline-flex; align-items: center; gap: 7px; font-size: clamp(.78rem,1vw,1rem); opacity: .94; }
.participation-steps b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--yellow); color: #101828; font-size: .75rem; }
.participation-qr { display: grid; grid-template-columns: auto; place-items: center; gap: 2px; padding: 6px; border-radius: 14px; background: white; color: #101828; }
.participation-qr img { display: block; width: 88px; height: 88px; image-rendering: crisp-edges; }
.participation-qr span { font-size: .62rem; line-height: 1; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 700px) {
  .participation-dock { left: 10px; right: 10px; bottom: 10px; min-height: 105px; gap: 10px; padding: 10px 12px; }
  .participation-steps { gap: 5px 10px; }
  .participation-copy > small { display: none; }
  .participation-qr img { width: 72px; height: 72px; }
  .presentation-topbar { top: 10px; width: calc(100vw - 28px); max-width: 640px; padding-left: 14px; padding-right: 14px; }
  .presentation-honoree { bottom: 118px; width: calc(100vw - 20px); }
  .fullscreen-btn { right: 14px; bottom: 218px; }
  .slide-caption { bottom: 18vh; }
  .video-caption { bottom: 18vh; }
}


/* Participación separada: foto/video y saludos */
.participation-heading { text-align: center; max-width: 850px; }
.participation-choice-grid { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.participation-choice-card { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 34px; background: white; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease; }
.participation-choice-card:hover { transform: translateY(-3px); border-color: #c7cdd6; }
.choice-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--yellow-soft); font-size: 2rem; }
.choice-kicker { color: var(--blue-deep); font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.participation-choice-card h2 { margin: 8px 0 10px; font-size: clamp(1.6rem,3vw,2.35rem); }
.participation-choice-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }
.participation-choice-card strong { font-size: .95rem; }
.participation-review-note { max-width: 850px; margin: 26px auto 0; color: var(--muted); text-align: center; font-size: .9rem; }
.optional-label { display: inline-block; margin-left: 6px; color: var(--muted); font-size: .72rem; font-style: normal; font-weight: 600; }
.form-back-link { display: block; text-align: center; color: var(--muted); font-size: .9rem; font-weight: 700; }
.greeting-form-card { max-width: 760px; }

/* Fotografías y videos limpios en la proyección */
.media-slide { background: radial-gradient(circle at 50% 50%, #141d2b, #030508 70%); }
.slide-image, .slide-video { background: transparent; }
.media-mini-caption { position: absolute; z-index: 5; left: 50%; transform: translateX(-50%); bottom: 190px; display: flex; align-items: baseline; justify-content: center; gap: 10px; max-width: min(72vw, 900px); padding: 8px 16px; border: 1px solid rgba(255,255,255,.10); border-radius: 999px; background: rgba(4,7,11,.44); backdrop-filter: blur(12px); text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.media-mini-caption span { font-size: clamp(.85rem,1.2vw,1.1rem); font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-mini-caption small { color: rgba(255,255,255,.72); font-size: clamp(.72rem,.9vw,.9rem); white-space: nowrap; }
.video-mini-caption { bottom: 190px; }

@media (max-width: 760px) {
  .participation-choice-grid { grid-template-columns: 1fr; }
  .participation-choice-card { grid-template-columns: 1fr; padding: 26px; }
  .choice-icon { width: 58px; height: 58px; border-radius: 18px; font-size: 1.65rem; }
  .media-mini-caption { bottom: 178px; max-width: 86vw; }
}
