/* ════════════════════════════════════════
   KABAWIL — Estilos principales
   styles.css
════════════════════════════════════════ */

:root {
  --bg: #080a0e;
  --bg2: #0d1017;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim: rgba(201,168,76,0.15);
  --terracotta: #b85c38;
  --cream: #f0e8d6;
  --text: #d4ccbc;
  --text-dim: #7a7265;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Darker Grotesque', sans-serif;
  font-size: 19px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── CANVAS PARTICLES ── */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(8,10,14,0.95) 0%, transparent 100%);
}

.nav-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 8px 20px;
  border-radius: 2px;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--bg) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s;
}

/* ── SECTIONS BASE ── */
section { position: relative; z-index: 1; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ════════════════════════════════════════
   HERO — SCROLL PARALLAX SPLIT
════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://kabawil.org/Img/Imagen%20principal.avif');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: opacity;
  transition: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 32px;
  padding-top: 80px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

h1 {
  font-size: clamp(56px, 9vw, 108px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

h1 span {
  color: var(--gold);
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-family: 'EB Garamond', serif;
  font-size: clamp(20px, 2.8vw, 30px);
  font-style: italic;
  color: var(--cream);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}

.hero-desc {
  font-size: 18px;
  color: rgba(240,232,214,0.85);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  padding: 15px 36px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::after { opacity: 1; }

.btn-outline {
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold);
  padding: 15px 36px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}

.scroll-hint span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.7);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── DIVIDER ── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
  margin: 0;
  position: relative;
  z-index: 5;
}

/* ════════════════════════════════════════
   KABAWIL — CENTERED TEXT + FLANKING IMAGES
════════════════════════════════════════ */
#kabawil {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.que-es-img-left {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.que-es-img-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  right: 0;
  z-index: 0;
  overflow: hidden;
}

.que-es-img-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
}

.que-es-img-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
}

.que-es-center {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

h2 {
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

h2 em {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  color: var(--gold);
}

p {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 20px;
}

.que-es-center p {
  font-size: 19px;
  line-height: 1.85;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 22px;
  text-align: center;
}

.solar-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 360px;
  margin: 48px auto 0;
}

.solar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: rotateSlow linear infinite;
}

.ring-1 {
  width: 90%; height: 90%;
  border-color: rgba(201,168,76,0.15);
  animation-duration: 40s;
}

.ring-2 {
  width: 68%; height: 68%;
  border-color: rgba(201,168,76,0.25);
  animation-duration: 28s;
  animation-direction: reverse;
}

.ring-3 {
  width: 46%; height: 46%;
  border-color: rgba(201,168,76,0.4);
  animation-duration: 18s;
}

.ring-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--gold);
}

.sun-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light), var(--gold), var(--terracotta));
  box-shadow: 0 0 40px rgba(201,168,76,0.6), 0 0 80px rgba(201,168,76,0.3);
  animation: sunPulse 4s ease-in-out infinite;
}

.eye-label {
  position: absolute;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.eye-north { top: 2%; left: 50%; transform: translateX(-50%); }
.eye-south { bottom: 2%; left: 50%; transform: translateX(-50%); }

/* ── EVENTS ── */
#eventos {
  padding: 120px 0;
  background: var(--bg2);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.08);
}

.event-card {
  background: var(--bg2);
  padding: 40px 28px;
  transition: background 0.3s;
  cursor: default;
}

.event-card:hover { background: rgba(201,168,76,0.05); }

.event-icon {
  font-size: 30px;
  margin-bottom: 18px;
  display: block;
}

.event-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.event-date {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.event-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
}

/* ── LOCATIONS ── */
#lugares { padding: 120px 0; }

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.location-card {
  border: 1px solid rgba(201,168,76,0.12);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.location-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
}

.location-card:hover::before { opacity: 1; }

.location-num {
  font-size: 52px;
  font-weight: 900;
  color: rgba(201,168,76,0.1);
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'EB Garamond', serif;
}

.location-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.location-place {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.location-desc {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
  margin: 0;
}

/* ── TIMELINE ── */
#historia {
  padding: 120px 0;
  background: var(--bg2);
}

.timeline {
  position: relative;
  margin-top: 64px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim) 20%, var(--gold-dim) 80%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  position: relative;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(201,168,76,0.5);
}

.timeline-content {
  padding: 28px 36px;
  border: 1px solid rgba(201,168,76,0.1);
  background: rgba(201,168,76,0.02);
}

.timeline-item:nth-child(odd) .timeline-content { grid-column: 1; }
.timeline-item:nth-child(odd) .timeline-year { grid-column: 2; align-self: start; padding-top: 28px; }
.timeline-item:nth-child(even) .timeline-year { grid-column: 1; align-self: start; padding-top: 28px; text-align: right; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 2; }

.timeline-year {
  font-size: 52px;
  font-weight: 900;
  color: rgba(201,168,76,0.2);
  font-family: 'EB Garamond', serif;
  line-height: 1;
}

.timeline-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.timeline-text {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
  margin: 0;
}

/* ── QUOTES ── */
#relatos { padding: 120px 0; }

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.quote-card {
  padding: 44px 36px;
  border: 1px solid rgba(201,168,76,0.08);
  position: relative;
}

.quote-mark {
  font-size: 72px;
  font-family: 'EB Garamond', serif;
  color: var(--gold);
  opacity: 0.3;
  line-height: 0.5;
  margin-bottom: 28px;
  display: block;
}

.quote-text {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 28px;
}

.quote-author {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── CTA ── */
#contacto {
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#contacto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box {
  max-width: 640px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 21px;
  color: var(--text);
  margin-bottom: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  color: var(--white);
  padding: 15px 18px;
  font-family: 'Darker Grotesque', sans-serif;
  font-size: 17px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select option { background: var(--bg); }

.btn-submit {
  background: var(--gold);
  color: var(--bg);
  padding: 18px 44px;
  font-family: 'Darker Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-end;
}

.btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(201,168,76,0.08);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

.footer-tagline {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text-dim);
  margin-top: 4px;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-dim);
  text-align: right;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes rotateSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(201,168,76,0.6), 0 0 80px rgba(201,168,76,0.3); }
  50%       { box-shadow: 0 0 60px rgba(201,168,76,0.8), 0 0 120px rgba(201,168,76,0.4); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.1); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8,10,14,0.98);
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 99;
  }
  .nav-links.open a { font-size: 18px; }
  .hamburger { display: flex; z-index: 101; }

  .que-es-img-left,
  .que-es-img-right { display: none; }

  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .timeline::before { left: 16px; }
  .timeline-item { grid-template-columns: 1fr; gap: 16px; padding-left: 40px; }
  .timeline-item::after { left: 12px; top: 24px; }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content { grid-column: 1; }
  .timeline-item:nth-child(odd) .timeline-year,
  .timeline-item:nth-child(even) .timeline-year {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    padding-top: 0;
    font-size: 36px;
  }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 600px) {
  .events-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}
