:root {
  --primary: #17365d;
  --secondary: #f5f6f8;
  --accent: #c8a24a;
  --text: #151922;
  --bg: #fff;
  --hero: #101827;
  --radius: 22px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background: #08111d;
}
.site-history-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #08111d;
  pointer-events: none;
}
.site-history-slide {
  position: absolute;
  inset: -1%;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
  transition: opacity 5.8s ease-in-out, filter 5.8s ease-in-out;
  will-change: opacity, filter;
}
.site-history-slide.is-active {
  opacity: 1;
}
.site-history-shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 10, 18, .77), rgba(4, 10, 18, .36) 60%, rgba(4, 10, 18, .28)),
    linear-gradient(0deg, rgba(4, 10, 18, .38), transparent 55%);
}
a {
  color: inherit;
}
.hidden {
  display: none !important;
}
.sitebar {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 64px);
  color: white;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0));
  transition: 0.25s;
}
.sitebar.scrolled {
  background: rgba(12, 16, 24, 0.92);
  backdrop-filter: blur(14px);
  padding-top: 12px;
  padding-bottom: 12px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}
.identity img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 13px;
  padding: 4px;
}
.identity small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.locale-select {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 9px 10px;
  background: rgba(0, 0, 0, 0.18);
  color: white;
  font: inherit;
  font-size: 12px;
}
.locale-select option {
  color: #151922;
  background: white;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.btn.light {
  background: white;
  color: #151922;
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.13);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn.primary {
  background: var(--primary);
  color: white;
}
.btn.accent {
  background: var(--accent);
  color: #111;
}
.mobile-menu {
  display: none;
}
.hero {
  min-height: 91vh;
  display: grid;
  align-items: end;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: transparent;
}
.hero-bg {
  display: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 7, 12, 0.86) 0%,
      rgba(4, 7, 12, 0.52) 48%,
      rgba(4, 7, 12, 0.2)
    ),
    linear-gradient(0deg, rgba(4, 7, 12, 0.7), transparent 48%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 160px 0 84px;
  color: white;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 900;
  color: color-mix(in srgb, var(--accent) 85%, white);
}
.verification {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}
.verification.pending {
  background: #fff3cd;
  color: #594814;
}
.verification.verified {
  background: #d7f8e9;
  color: #075b44;
}
.verification.rejected {
  background: #fde2e2;
  color: #8a1c1c;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 9vw, 118px);
  line-height: 0.88;
  letter-spacing: -0.055em;
  margin: 15px 0 26px;
  max-width: 980px;
}
.hero p {
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.38;
  max-width: 750px;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 30px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.scrollhint {
  position: absolute;
  right: 5vw;
  bottom: 48px;
  z-index: 3;
  color: white;
  opacity: 0.6;
  font-size: 12px;
  writing-mode: vertical-rl;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section {
  position: relative;
  z-index: 2;
  padding: 100px 18px;
  background: rgba(255, 255, 255, .90);
  backdrop-filter: blur(9px);
}
.container {
  width: min(1160px, 100%);
  margin: auto;
}
.section-head {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 45px;
}
.kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 8px 0 0;
}
.lead {
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.6;
  color: #4b5563;
  white-space: pre-line;
}
.welcome {
  background: rgba(255, 255, 255, .90);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e7e9ee;
  border: 1px solid #e7e9ee;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 52px;
}
.stat {
  background: white;
  padding: 30px;
}
.stat strong {
  font-size: 32px;
}
.stat span {
  display: block;
  color: #6b7280;
  margin-top: 6px;
}
.history {
  background: color-mix(in srgb, var(--secondary) 90%, transparent);
}
.history-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 30px;
  overflow: hidden;
  background: #111827;
  color: white;
  min-height: 480px;
}
.history-visual {
  background: linear-gradient(
    135deg,
    var(--primary),
    color-mix(in srgb, var(--primary) 45%, #000)
  );
  position: relative;
}
.history-visual:before,
.history-visual:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.17);
}
.history-visual:before {
  width: 360px;
  height: 360px;
  left: -70px;
  top: -80px;
}
.history-visual:after {
  width: 230px;
  height: 230px;
  right: -50px;
  bottom: -40px;
}
.history-copy {
  padding: clamp(36px, 6vw, 75px);
}
.history-copy h2 {
  font-size: clamp(42px, 5vw, 68px);
}
.history-copy p {
  white-space: pre-line;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.75;
}
.gallery-carousel {
  position: relative;
}
.gallery-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 2px 10px;
}
.gallery-grid::-webkit-scrollbar {
  display: none;
}
.gallery-item {
  position: relative;
  flex: 0 0 clamp(260px, 34vw, 420px);
  height: 290px;
  overflow: hidden;
  border-radius: 18px;
  background: #ddd;
  cursor: pointer;
  scroll-snap-align: start;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-item .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 45px 18px 16px;
  color: white;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  font-weight: 800;
}
.gallery-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  background: rgba(7, 20, 35, .78);
  color: white;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.empty-media {
  border: 1px dashed #cfd5df;
  border-radius: 18px;
  padding: 45px;
  text-align: center;
  color: #6b7280;
}
.video-section {
  background: rgba(13, 17, 24, .92);
  color: white;
}
.video-section .kicker {
  color: var(--accent);
}
.video-section .lead {
  color: #aeb7c7;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.video-card {
  overflow: hidden;
  border-radius: 22px;
  background: #171e29;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.video-frame {
  aspect-ratio: 16/9;
  background: #05070a;
}
.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-info {
  padding: 18px 20px;
}
.video-info strong {
  font-size: 18px;
}
.video-info p {
  color: #9aa5b6;
  margin-bottom: 0;
}
.children {
  background: color-mix(in srgb, var(--secondary) 90%, transparent);
}
.child-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.child {
  padding: 25px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e7e9ee;
  text-decoration: none;
  transition: 0.2s;
}
.child:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}
.child small {
  color: #7a8392;
}
.child h3 {
  font-size: 23px;
  margin: 8px 0 0;
}
.contact {
  background: rgba(255, 255, 255, .90);
}
.contact-card {
  border-radius: 30px;
  background: var(--primary);
  color: white;
  padding: clamp(34px, 7vw, 76px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
}
.contact-card h2 {
  margin-top: 0;
}
.contact-details {
  display: grid;
  gap: 12px;
  align-content: center;
}
.contact-details a {
  text-decoration: none;
}
.contact-details div {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.footer {
  background: #080b10;
  color: #9ba3af;
  padding: 38px 18px;
}
.footer-inner {
  width: min(1160px, 100%);
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.footer strong {
  color: white;
  font-size: 20px;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer a {
  text-decoration: none;
}
.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  background: rgba(3, 6, 10, 0.72);
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal-card {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 22px;
  padding: 28px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.close {
  border: 0;
  background: #f0f2f5;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 20px;
  cursor: pointer;
}
.form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.field label {
  font-size: 13px;
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cfd5df;
  border-radius: 11px;
  font: inherit;
}
.field textarea {
  min-height: 95px;
}
.result {
  margin-top: 12px;
  font-weight: 700;
}
.lightbox {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: grid;
  place-items: center;
  padding: 30px;
}
.lightbox img {
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox button {
  border: 0;
  color: white;
  cursor: pointer;
}
.lightbox-close {
  position: absolute;
  z-index: 3;
  right: 25px;
  top: 20px;
  background: transparent;
  font-size: 40px;
}
.lightbox-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  font-size: 40px;
  line-height: 1;
  backdrop-filter: blur(8px);
}
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.creator-banner {
  position: relative;
  z-index: 25;
  margin: 86px auto -70px;
  width: min(1160px, calc(100% - 36px));
  background: #fff8df;
  border: 1px solid #ead28a;
  color: #594814;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.creator-banner strong {
  display: block;
  margin-bottom: 3px;
}
.creator-banner a {
  font-weight: 850;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 650px) {
  .creator-banner {
    display: block;
    margin-top: 76px;
    margin-bottom: -55px;
  }
  .creator-banner a {
    display: inline-block;
    margin-top: 8px;
  }
}
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .section-head,
  .history-card,
  .contact-card {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item:nth-child(1) {
    grid-row: span 1;
    grid-column: span 2;
  }
  .child-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .history-visual {
    min-height: 280px;
  }
  .scrollhint {
    display: none;
  }
}
@media (max-width: 560px) {
  .sitebar {
    padding: 13px 14px;
  }
  .identity small {
    display: none;
  }
  .identity img {
    width: 40px;
    height: 40px;
  }
  .actions .btn.ghost {
    display: none;
  }
  .hero-inner {
    padding-bottom: 60px;
  }
  .section {
    padding: 72px 16px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 235px;
  }
  .gallery-item:nth-child(1) {
    grid-column: span 1;
  }
  .child-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Contacto con cuenta FestaMiCs: opción de escribir de forma anónima. */
.contact-login-text { margin: 0 0 14px; color: rgba(255, 255, 255, 0.85); font-size: 17px; line-height: 1.5; }
.contact-anonymous { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; color: rgba(255, 255, 255, 0.92); font-weight: 600; cursor: pointer; }
.contact-anonymous input { width: 18px; height: 18px; accent-color: var(--accent); }
.contact-anonymous-help { margin-bottom: 14px; color: rgba(255, 255, 255, 0.7); font-size: 14px; }
