/* CHINGAMERS — Fase 1 · Navy #0A1628 · Cyan #00C8E0 · Mobile first */

:root {
  --navy: #054771;
  --navy-mid: #043a5d;
  --cyan: #fab53d;
  --cyan-dark: #e89b1c;
  --white: #ffffff;
  --gray-bg: #f4f7fb;
  --gray-text: #4d5f74;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-border: 4px;
  --radius: 12px;
  --container: 1100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--gray-bg);
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(5, 71, 113, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--cyan);
  color: var(--white);
  font-weight: 600;
}
.skip-link:focus {
  left: 0.5rem;
  outline: 3px solid var(--navy);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: var(--header-border) solid var(--navy);
  padding-block: 1rem;
  transition: padding-block 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
}

.header-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath d='M14 0l12 7v14L14 28 2 21V7z' fill='none' stroke='%23054771' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 24px 42px;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark-wrap {
  width: 2.5rem;
  height: 2.5rem;
  filter: drop-shadow(0 4px 12px rgba(250, 181, 61, 0.25));
  transition: width 0.4s ease, height 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
  overflow: hidden;
}

.brand-mark {
  width: 100%;
  height: 100%;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  letter-spacing: 0.04em;
  color: var(--navy);
  transition: font-size 0.4s ease;
}

.brand-logo-img {
  max-height: 3.5rem;
  width: auto;
  transition: max-height 0.4s ease;
}

.tagline {
  display: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
  line-height: 1.2;
  transition: max-width 0.4s ease, opacity 0.3s ease;
  overflow: hidden;
  max-width: 500px;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .tagline {
    display: block;
  }
}

/* ——— Sticky Scroll Header State ——— */
.site-header.is-scrolled {
  padding-block: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.is-scrolled .header-inner {
  /* Mantener alineación para evitar salto brusco */
  justify-content: space-between;
}

.site-header.is-scrolled .brand {
  gap: 0;
}

.site-header.is-scrolled .brand-logo-img {
  max-height: 2.2rem;
  opacity: 1;
}

.site-header.is-scrolled .tagline {
  max-width: 0;
  opacity: 0;
  padding: 0;
  margin: 0;
}

/* .brand-name removed from here as it was replaced by image */

/* ——— Hero ——— */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  /* Altura según el texto + un poco de aire (sin reservar media pantalla) */
  padding-block: clamp(1.25rem, 3vw, 1.85rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--navy-mid);
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 1;
}

.hero-bg-overlay {
  display: none;
}

.hero-hex-layer {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='115'%3E%3Cpolygon points='50,5 95,30 95,85 50,110 5,85 5,30' fill='none' stroke='%23ffffff' stroke-width='1.2' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 72px 83px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-left: 0;
  max-width: 600px;
  padding-left: clamp(1rem, 5vw, 4rem);
}

.hero-title {
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.hero-logo-img {
  max-width: min(280px, 100%);
  height: auto;
  display: block;
}

.hero-lead {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  text-align: left;
  max-width: 100%;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
}

/* ——— Logo Slider (Marquee) ——— */
.logo-slider {
  background: var(--white);
  padding-block: 4rem 2rem;
  overflow: hidden;
  position: relative;
}

.slider-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.slider-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--navy);
  white-space: nowrap;
}

.slider-line {
  height: 2px;
  background: linear-gradient(to right, var(--cyan), transparent);
  flex-grow: 1;
}

.slider-window {
  position: relative;
  overflow: hidden;
}

.slider-window::before,
.slider-window::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.slider-window::before {
  left: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}

.slider-window::after {
  right: 0;
  background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}

.slider-track {
  display: flex;
  width: calc(250px * 9); 
  animation: scroll 30s linear infinite;
  align-items: center;
}

.slide {
  width: 250px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}

.slide img {
  max-width: 180px;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.8) opacity(0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide:hover img {
  filter: grayscale(0) contrast(1) opacity(1);
  transform: scale(1.05);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 3)); }
}

@media (max-width: 640px) {
  .slider-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
  .slider-line {
    width: 100%;
  }
  .slide {
    width: 280px; /* Much wider container */
    padding: 0 1.5rem;
  }
  .slide img {
    max-width: 240px; /* Wider images */
    max-height: 85px; /* Taller images */
    filter: grayscale(0.5) contrast(0.9) opacity(0.8); /* Less intense filter on mobile */
  }
  .slider-track {
    width: calc(280px * 9);
    animation: scroll-mobile 15s linear infinite; /* Slightly faster for larger slides */
  }
}

@keyframes scroll-mobile {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-280px * 3)); }
}

/* ——— Gallery (horizontal scroll) ——— */
.camp-gallery {
  background: var(--white);
  border-top: 1px solid rgba(10, 22, 40, 0.08);
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
  padding-block: 1.25rem 1.5rem;
}

.gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(5, 71, 113, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--navy);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.gallery-nav svg {
  width: 20px;
  height: 20px;
}

.gallery-nav.prev { left: 0.5rem; }
.gallery-nav.next { right: 0.5rem; }

.gallery-wrapper:hover .gallery-nav {
  opacity: 0.6;
}

.gallery-nav:hover {
  opacity: 1 !important;
  background: var(--white);
}

@media (max-width: 768px) {
  .gallery-nav {
    display: none; /* Inconspicuous on mobile (swipe is native) */
  }
}

.gallery-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 0.9rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.25rem 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.gallery-rail::-webkit-scrollbar {
  height: 10px;
}
.gallery-rail::-webkit-scrollbar-track {
  background: rgba(10, 22, 40, 0.06);
  border-radius: 999px;
}
.gallery-rail::-webkit-scrollbar-thumb {
  background: rgba(250, 181, 61, 0.45);
  border-radius: 999px;
}

.gallery-item {
  margin: 0;
  scroll-snap-align: start;
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-mid);
  box-shadow: 0 10px 24px rgba(5, 71, 113, 0.14);
  position: relative;
}

/* Background blueprint for placeholders */
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  opacity: 0.95;
  z-index: 1;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  opacity: 1;
}

/* ——— Info grid ——— */
.section {
  padding-block: 2.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 4vw, 2rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.section-intro {
  color: var(--gray-text);
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.info {
  position: relative;
  background: var(--navy);
  color: var(--white);
  border-top: 1px solid rgba(0, 200, 224, 0.15);
  overflow: hidden;
  padding-block: 1.75rem !important;
}

.info-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='115'%3E%3Cpolygon points='50,5 95,30 95,85 50,110 5,85 5,30' fill='none' stroke='%23ffffff' stroke-width='2' opacity='0.15'/%3E%3C/svg%3E");
  background-size: 80px 92px;
  pointer-events: none;
}

.info .section-title {
  color: var(--white);
}

.info .section-intro {
  color: rgba(255, 255, 255, 0.65);
}

.info-grid {
  display: grid;
  gap: 1.25rem;
}

.info-grid.board-style {
  position: relative;
  z-index: 2;
}

.info-card.tile {
  background: #112136;
  border: 2px solid var(--cyan);
  border-radius: 0;
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
  padding: 2.25rem 1.75rem;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.info-card.tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(250, 181, 61, 0.35);
}

.info-icon.solid-hex {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.5rem;
  background: var(--cyan);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.info-icon.solid-hex svg {
  width: 26px;
  height: 26px;
}

.title-tech {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tile-body {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

/* ——— Digital HUD Map Section ——— */
.amenities-map.digital-hub {
  background: linear-gradient(
    180deg,
    rgba(5, 71, 113, 0.2) 0%,
    rgba(5, 71, 113, 0.45) 100%
  ), var(--navy);
  padding-block: 6rem;
  overflow: hidden;
  position: relative;
}

.hud-hex-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='115'%3E%3Cpolygon points='50,5 95,30 95,85 50,110 5,85 5,30' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 92px;
  pointer-events: none;
}

.hud-title {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.2em;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  text-shadow: 0 0 15px rgba(0, 200, 224, 0.4);
  margin-bottom: 3rem;
}

.map-container.digital-map {
  background: #010810;
  border: 1px solid rgba(0, 200, 224, 0.2);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 200, 224, 0.1);
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.digital-overlay-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.1) brightness(0.9);
  opacity: 0.8;
  z-index: 0;
}

.map-digital-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at center, rgba(26, 58, 95, 0.3) 0%, rgba(5, 15, 30, 0.8) 100%),
    linear-gradient(135deg, rgba(0, 200, 224, 0.2) 0%, rgba(26, 58, 95, 0.45) 100%);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.topo-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.8;
}

.topo-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}

.topo-label {
  fill: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.digital-path {
  stroke: #00C8E0;
  stroke-width: 1.5;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawPath 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  filter: drop-shadow(0 0 5px #00C8E0);
  opacity: 0.6;
}

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.map-marker:hover {
  z-index: 1000; /* Asegura que el marcador activo y su tooltip estén al frente */
}

.marker-hex.holo-hex {
  width: 50px;
  height: 50px;
  background: rgba(2, 11, 22, 0.6);
  border: 1.5px solid #00C8E0;
  color: #00C8E0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(0, 200, 224, 0.4));
  cursor: pointer;
  animation: marker-heartbeat 1.5s infinite ease-in-out;
}

@keyframes marker-heartbeat {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(0, 200, 224, 0.4)); }
  35% { transform: scale(1.12); filter: drop-shadow(0 0 15px rgba(0, 200, 224, 0.7)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(0, 200, 224, 0.5)); }
  75% { transform: scale(1.2); filter: drop-shadow(0 0 18px rgba(0, 200, 224, 0.8)); }
}

.map-marker:hover .holo-hex {
  background: rgba(0, 200, 224, 0.1);
  transform: scale(1.2);
  filter: drop-shadow(0 0 20px rgba(0, 200, 224, 0.9));
  color: #fff;
  animation-play-state: paused;
}

.hud-card {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  width: 260px;
  background: rgba(1, 8, 16, 0.98); /* Casi opaco para máxima legibilidad */
  backdrop-filter: blur(12px);
  border: 2px solid #00C8E0;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  z-index: 500; /* Asegurar que esté por encima de todo */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 200, 224, 0.2);
  clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 10% 100%, 0 90%);
}

.map-marker:hover .hud-card {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  animation: flickerCard 0.4s ease-out;
}

@keyframes flickerCard {
  0% { opacity: 0; transform: translateX(-50%) scale(0.9) skewX(5deg); }
  20% { opacity: 0.8; }
  35% { opacity: 0.2; }
  50% { opacity: 1; transform: translateX(-50%) scale(1) skewX(0deg); }
}

.hud-card .card-title {
  color: #00C8E0 !important;
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hud-card .card-desc {
  color: #fff !important;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.9;
}

.hud-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.1) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.02),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.02)
  );
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  opacity: 0.3;
}

/* Specific Positions Fixes */
.pos-right .hud-card { left: 0; transform: translateX(0) scale(0.9); }
.pos-left .hud-card { left: auto; right: 0; transform: translateX(0) scale(0.9); }
.pos-bottom .hud-card { bottom: auto; top: 130%; }

.map-marker.pos-right:hover .hud-card { transform: translateX(0) scale(1); }
.map-marker.pos-left:hover .hud-card { transform: translateX(0) scale(1); }

@media (max-width: 768px) {
  .map-container.digital-map {
    aspect-ratio: 9 / 13;
  }
  .hud-card {
    width: 200px;
    padding: 1rem;
  }
}

/* ——— Initiative / D20 ——— */
.initiative {
  background: var(--gray-bg);
  padding-block: 1.25rem 1.75rem !important;
}

.initiative-card {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  position: relative;
  overflow: visible; /* Cambiado de hidden para evitar cortes en las cartas */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.initiative-callout {
  position: relative;
  z-index: 1;
  text-align: center;
}

.initiative-callout-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--navy);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.initiative-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='115'%3E%3Cpolygon points='50,5 95,30 95,85 50,110 5,85 5,30' fill='none' stroke='%23054771' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 64px 74px;
}


/* Date cards (overlap layout global) */
.date-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-areas: "deck";
  justify-items: center;
  align-items: center;
  overflow: visible;
  padding-bottom: 2.25rem;
}

.date-card-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.date-card-shell {
  grid-area: deck; /* Ambas cartas ancladas al mismo sector matemáticamente */
  display: block;
  cursor: pointer;
  position: relative;
  z-index: 1;
  width: min(340px, 83vw);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0s;
}

.date-card-shell:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 6px;
  border-radius: 18px;
}

.date-card {
  width: min(340px, 83vw);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: card-hint-pulse 3s infinite ease-in-out;
}

.day2 .date-card {
  animation-delay: 1.5s;
}

.date-card-shell:hover .date-card,
.date-card-radio:checked + .date-card-shell .date-card {
  animation-play-state: paused;
}

@keyframes card-hint-pulse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(-1deg); }
  50% { transform: translateY(-2px) rotate(0.5deg); }
  75% { transform: translateY(-6px) rotate(1deg); }
}

/* Estado base solapado global */
#dia1 + .date-card-shell {
  z-index: 1;
  transform: rotate(-3deg) translateX(-25px) translateY(0);
}
#dia2 + .date-card-shell {
  z-index: 2;
  transform: rotate(4deg) translateX(30px) translateY(0.85rem);
}

/* Efectos Hover globales */
#dia1:not(:checked) + .date-card-shell:hover {
  transform: rotate(-3deg) translateX(-25px) translateY(-8px);
}
#dia2:not(:checked) + .date-card-shell:hover {
  transform: rotate(4deg) translateX(30px) translateY(calc(0.85rem - 8px));
}

/* Selección interactiva */
#dia1:checked + .date-card-shell {
  z-index: 12;
  transform: rotate(-1.5deg) translateX(-15px) translateY(-15px) scale(1.02);
}
#dia2:checked + .date-card-shell {
  z-index: 12;
  transform: rotate(2deg) translateX(20px) translateY(calc(0.85rem - 15px)) scale(1.02);
}

/* --- Catan Cards Redesign --- */
.date-card.catan-card {
  background-color: #FCECA5; /* Marco amarillo claro tipo Catan */
  border: none;
  padding: 14px; /* Borde exterior amarillo más grueso */
  border-radius: 12px;
  position: relative; /* Para los iconos de esquina */
  box-shadow: 0 14px 30px rgba(5, 71, 113, 0.14), inset 0 0 0 1px #e3ca70;
  aspect-ratio: 5 / 7; /* Proporción de carta vertical (tal/ancha) */
}

.catan-frame-icon {
  position: absolute;
  width: 24px;
  height: 24px;
  color: #8e2b17; /* Color rojo oscuro */
  z-index: 10;
}

.catan-frame-icon.top-left {
  top: 10px;
  left: 10px;
}

.catan-frame-icon.bottom-right {
  bottom: 10px;
  right: 10px;
}

.catan-card-inner {
  position: relative;
  border: 2px solid #8e2b17; /* Línea fina rojo oscuro/marrón */
  border-radius: 4px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  overflow: hidden;
}

.catan-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid #8e2b17;
  border-radius: 50%;
  z-index: 2;
  background-color: #FCECA5; /* Para "morder" el borde y dar efecto de esquina curva ornamentada */
}

.catan-corner.top-left { top: -6px; left: -6px; }
.catan-corner.top-right { top: -6px; right: -6px; }
.catan-corner.bottom-left { bottom: -6px; left: -6px; }
.catan-corner.bottom-right { bottom: -6px; right: -6px; }

.catan-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.catan-card:hover {
  box-shadow: 0 18px 40px rgba(5, 71, 113, 0.18), inset 0 0 0 1px #e3ca70;
}

.catan-card .date-card-header {
  background: transparent;
  padding: 10px 10px 4px;
  text-align: center;
  border-bottom: none;
}

.catan-card .date-card-title {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 1.4rem; /* Texto más grande para DÍA 1 y DÍA 2 */
  color: #fff;
  /* Efecto de borde negro en el texto estilo carta Catan */
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0px 4px 6px rgba(0,0,0,0.5);
}

.catan-card .date-card-body {
  padding: 0 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.catan-card .date-card-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 3.6rem);
  color: #fff;
  line-height: 1;
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 0px 6px 12px rgba(0,0,0,0.5);
}

.catan-card .date-card-footer {
  padding: 4px 10px 10px;
  text-align: center;
}

.catan-card .date-card-month {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 1.5px 1.5px 0 #000, -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 0px 4px 8px rgba(0,0,0,0.5);
  margin-top: 0;
}

/* Día 1: Madera / Bosque */
.date-card.day1 .catan-card-inner {
  background:
    radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%),
    linear-gradient(135deg, #4b7a33 0%, #214013 100%);
}

.date-card.day1 .catan-card-content::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='160' viewBox='0 0 240 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' opacity='0.7'%3E%3Cpath d='M24 142c10-24 22-40 36-52 14-12 24-22 30-40'/%3E%3Cpath d='M58 144c6-18 16-34 30-46 14-12 22-22 26-36'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 160px;
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

/* Día 2: Trigo / Campo */
.date-card.day2 .catan-card-inner {
  background:
    radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.2) 100%),
    linear-gradient(135deg, #e5b035 0%, #d89617 100%);
}

.date-card.day2 .catan-card-content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='160' viewBox='0 0 240 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' opacity='0.7'%3E%3Cpath d='M24 142c10-24 22-40 36-52 14-12 24-22 30-40'/%3E%3Cpath d='M58 144c6-18 16-34 30-46 14-12 22-22 26-36'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 160px;
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

/* Selección (clic/tap) */
#dia1:checked + .date-card-shell .date-card.catan-card,
#dia2:checked + .date-card-shell .date-card.catan-card {
  box-shadow: 0 22px 52px rgba(5, 71, 113, 0.2), inset 0 0 0 2px #d4a938;
  transform: translateY(-4px) scale(1.02);
}

#dia1:checked + .date-card-shell,
#dia2:checked + .date-card-shell {
  z-index: 10;
}

.initiative-month {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.22em;
  font-size: 1.2rem;
  margin-top: 0.9rem;
  color: var(--navy);
}

@keyframes card-glow {
  0% { transform: translateY(0); filter: drop-shadow(0 10px 18px rgba(250, 181, 61, 0.18)); }
  55% { transform: translateY(-2px); filter: drop-shadow(0 16px 26px rgba(250, 181, 61, 0.35)); }
  100% { transform: translateY(0); filter: drop-shadow(0 12px 20px rgba(250, 181, 61, 0.22)); }
}

/* ——— CTA ——— */
.cta {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding-block: 3rem 3.25rem;
  text-align: center;
  border-top: 4px solid var(--cyan);
}

.cta-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='115'%3E%3Cpolygon points='50,5 95,30 95,85 50,110 5,85 5,30' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.2'/%3E%3C/svg%3E");
  background-size: 56px 64px;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.cta-sub {
  color: rgba(255, 255, 255, 0.78);
  max-width: 26rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 2.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--navy);
  background: var(--cyan);
  border: 3px solid var(--cyan);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(250, 181, 61, 0.35);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(250, 181, 61, 0.45);
}

.btn-cta:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.cta-hint {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy);
  border-top: 3px solid rgba(0, 200, 224, 0.35);
  padding-block: 1.75rem;
}

.footer-inner {
  text-align: center;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ——— Tablet+ ——— */
@media (min-width: 640px) {
  .section {
    padding-block: 3.5rem;
  }

  .info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .gallery-rail {
    grid-auto-columns: 46%;
  }

  .initiative-card {
    padding: 1.5rem 2rem;
  }

  /* Responsive Overlap se movió a reglas globales css */
}

@media (min-width: 900px) {
  .hero-title {
    max-width: none;
  }

  .gallery-rail {
    grid-auto-columns: 32%;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 80vh;
    padding-block: 4rem;
  }

  .hero-bg-img {
    object-position: 25% center; /* Enfocar la casa de campaña */
  }

  .hero-content {
    padding-left: 0; 
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
  }

  .hero-logo-img {
    margin-inline: auto;
    max-width: 220px;
  }

  .hero-lead {
    text-align: center;
    font-size: 1rem;
    padding-bottom: 2rem;
  }

  .section-title, .section-intro {
    text-align: center;
    margin-inline: auto;
  }

  .info-card.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  /* Ajustes de Cartas en móvil */
  .date-card-shell, .date-card {
    width: min(240px, 75vw); /* Más estrechas para que quepan */
  }

  #dia1 + .date-card-shell {
    transform: rotate(-3deg) translateX(-15px) translateY(0); /* Menos desplazamiento */
  }
  #dia2 + .date-card-shell {
    transform: rotate(3deg) translateX(15px) translateY(0.6rem); /* Menos desplazamiento */
  }

  #dia1:checked + .date-card-shell {
    transform: rotate(-1.5deg) translateX(-5px) translateY(-10px) scale(1.02);
  }
  #dia2:checked + .date-card-shell {
    transform: rotate(1.5deg) translateX(5px) translateY(calc(0.6rem - 10px)) scale(1.02);
  }

  .catan-card .date-card-title {
    font-size: 1.1rem;
  }
  
  .catan-card .date-card-number {
    font-size: 2.2rem;
  }

  .catan-card .date-card-month {
    font-size: 0.9rem;
  }

  /* Ajustes de Map Markers en móvil */
  .marker-hex.holo-hex {
    width: 40px;
    height: 40px;
  }

  .marker-hex svg {
    width: 20px;
    height: 20px;
  }

  .hud-card {
    width: 240px;
    padding: 1rem;
  }

  /* Ajustes de Header */
  .site-header {
    padding-block: 0.75rem;
  }
  
  .brand-logo-img {
    max-height: 2.5rem;
  }
}
