:root {
  --bg: #0b0907;
  --bg-2: #12100c;
  --panel: #16120d;
  --panel-2: #1c1711;
  --ink: #f2e9dc;
  --muted: #a29580;
  --accent: #ff6b1a;
  --accent-soft: #ffb28f;
  --line: rgba(243, 233, 220, 0.09);
  --glow: rgba(255, 107, 26, 0.28);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: #060403;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 42% at 50% -6%, rgba(255, 140, 50, 0.16), transparent 62%),
    radial-gradient(ellipse 60% 45% at 12% 112%, rgba(255, 120, 40, 0.09), transparent 65%),
    radial-gradient(ellipse 60% 45% at 88% 112%, rgba(255, 120, 40, 0.09), transparent 65%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.06;
  mix-blend-mode: soft-light;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { text-decoration: underline; }

::selection { background: var(--accent); color: #1a0e04; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.kicker {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 9, 7, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--ink);
}
.nav-logo span { color: var(--accent); }
.nav-logo:hover { text-decoration: none; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 0.92rem; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; position: relative; overflow: hidden; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 90% at 50% -12%, rgba(255, 150, 60, 0.2), transparent 70%),
    radial-gradient(40% 70% at 14% 105%, rgba(255, 110, 30, 0.1), transparent 70%),
    radial-gradient(40% 70% at 86% 105%, rgba(255, 120, 40, 0.08), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 10vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  text-shadow: 0 0 60px rgba(255, 107, 26, 0.3);
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  max-width: 540px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.stat span {
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hero-photo {
  position: relative;
  border-radius: 22px;
  padding: 10px;
  background:
    linear-gradient(160deg, rgba(255, 107, 26, 0.35), rgba(255, 107, 26, 0) 45%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}

.hero-photo img { width: 100%; border-radius: 14px; display: block; }

.hero-photo figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 12px 6px 4px;
  letter-spacing: 0.4px;
}
.hero-photo figcaption::before { content: "● "; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #1a0e04; }
.btn-primary:hover { background: var(--accent-soft); box-shadow: 0 10px 30px var(--glow); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-danger { background: #c43f08; color: #fff; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 10px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section-title em { font-style: italic; color: var(--accent); }

.section-sub { color: var(--muted); margin-bottom: 40px; }

/* ---------- Fechas / events ---------- */
.fechas { background: transparent; }

.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.event-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.event-card:hover {
  border-color: rgba(255, 107, 26, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 107, 26, 0.15);
}

.event-poster { position: relative; display: block; background: var(--bg-2); }
.event-poster:hover { text-decoration: none; }

.event-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.event-poster-empty {
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px),
    var(--bg-2);
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
  font-size: 0.7rem;
  text-align: center;
  padding: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.event-poster-empty .ph { width: 26px; height: 26px; color: var(--accent); }

.event-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 8, 6, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 107, 26, 0.45);
  color: #fff;
  border-radius: 12px;
  padding: 7px 11px;
  text-align: center;
  min-width: 54px;
}
.event-date .day { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1; display: block; }
.event-date .mon { font-weight: 600; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-soft); }

.event-body { padding: 18px 18px 8px; display: flex; flex-direction: column; flex: 1; }
.event-body h3 { font-size: 1.12rem; margin-bottom: 4px; font-weight: 600; }
.event-body p { color: var(--muted); font-size: 0.9rem; }
.event-body .event-desc { margin-top: 6px; }
.event-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.event-meta strong { color: var(--ink); font-weight: 600; }

.event-side { padding: 14px 18px 18px; margin-top: auto; }
.event-side .btn { width: 100%; }
.event-price { font-weight: 600; color: var(--accent); display: block; text-align: center; }

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.loading { color: var(--muted); text-align: center; padding: 24px; }

/* ---------- Sobre ---------- */
.sobre {
  background: rgba(243, 233, 220, 0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  align-items: start;
}

.sobre-text p { margin-bottom: 14px; color: var(--muted); }
.sobre-text p strong { color: var(--ink); }

.ficha {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
}

.ficha p {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.ficha p:last-child { border-bottom: none; }

.ficha span {
  display: block;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 3px;
}

/* ---------- Podcasts ---------- */
.podcasts { background: transparent; }

.podcasts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.proyecto-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.proyecto-card:hover {
  border-color: rgba(255, 107, 26, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: var(--ink);
}

.proyecto-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 26, 0.12);
  border: 1px solid rgba(255, 107, 26, 0.25);
  color: var(--accent);
  margin-bottom: 6px;
}
.proyecto-icon .ic { width: 20px; height: 20px; }

.proyecto-card h3 { font-size: 1.25rem; font-weight: 600; }
.proyecto-card p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.proyecto-link { font-weight: 600; color: var(--accent); font-size: 0.88rem; letter-spacing: 0.3px; }

/* ---------- Contacto / links ---------- */
.contacto { background: rgba(243, 233, 220, 0.02); border-top: 1px solid var(--line); }

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.link-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  transition: border-color 0.25s ease, transform 0.2s ease, background 0.2s ease;
}
.link-card:hover {
  border-color: rgba(255, 107, 26, 0.5);
  transform: translateY(-3px);
  background: var(--panel-2);
  text-decoration: none;
  color: var(--ink);
}

.link-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 26, 0.1);
  border: 1px solid rgba(255, 107, 26, 0.2);
  color: var(--accent);
}
.link-icon .ic { width: 19px; height: 19px; }

.link-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-name { font-weight: 600; font-size: 1rem; color: var(--ink); }
.link-desc {
  color: var(--muted);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Iconos ---------- */
.ic {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-fill { stroke: none; fill: currentColor; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 40px 24px;
  background: #070604;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-line { font-weight: 500; color: var(--ink); }
.footer-mini { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.footer-mini a { color: var(--accent-soft); }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg); }

.admin-top {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 20px;
  text-align: center;
}

.admin-top h1 { font-family: var(--font-display); font-weight: 600; font-size: 2.6rem; }

.admin-panel { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 26px;
}

.card h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin-bottom: 16px; }

.demo-hint {
  background: rgba(255, 107, 26, 0.1);
  border: 1px dashed var(--accent);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--accent-soft);
  margin-bottom: 20px;
}

.demo-hint code {
  background: #241a11;
  color: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.74rem;
  margin-bottom: 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

input, textarea {
  width: 100%;
  background: #211a12;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
}

input::placeholder, textarea::placeholder { color: #6f6455; }

input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.15); }

textarea { resize: vertical; min-height: 90px; }

.form-actions { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; }

.admin-events { display: grid; gap: 12px; }

.admin-event {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 14px 18px;
  flex-wrap: wrap;
}

.admin-event-poster {
  width: 66px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.admin-event-info strong { color: var(--ink); }
.admin-event-info span { color: var(--muted); font-size: 0.9rem; margin-left: 8px; }

.admin-event-actions { display: flex; gap: 8px; }

.small-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  background: var(--panel-2);
  color: var(--ink);
}
.small-btn:hover { border-color: var(--accent); color: var(--accent); }
.small-btn:active { transform: translateY(1px); }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: #241a11;
  color: #fff;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  transition: transform 0.3s ease;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: #7a2407; border-color: #ff6b1a; }

.back-link { display: inline-block; margin-bottom: 20px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .sobre-grid { grid-template-columns: 1fr; }
  .events-list { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
  .nav-links { gap: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
