/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --azul:    #1a3a5c;
  --azul2:   #0f2540;
  --crema:   #f5f0e8;
  --dorado:  #c8a84b;
  --gris:    #666;
  --blanco:  #fff;
  --font-title: 'Playfair Display', serif;
  --font-body:  'Inter', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: #222; background: var(--blanco); }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; width: 100%; z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 80px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-logo {
  display: flex; align-items: center; gap: .75rem;
}
.nav-logo img { height: 60px; width: auto; object-fit: contain; }
.nav-logo span {
  font-family: var(--font-title); color: var(--azul2);
  font-size: 1.2rem; letter-spacing: .03em; font-weight: 700;
}
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  color: #333; font-size: .85rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--dorado); }

/* hamburger mobile */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: #333; border-radius: 2px; transition: all 0.3s; }

/* ===== HERO ===== */
#inicio {
  position: relative; height: 100vh; min-height: 500px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-color: var(--azul2);
  background-image: url('assets/img/IMG_20260415_193450_edit_255571453632922.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(.45);
}
.hero-content {
  position: relative; text-align: center; color: var(--blanco);
  padding: 0 1.5rem;
}
.hero-eyebrow {
  font-size: .8rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--dorado); margin-bottom: .75rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; width: 40px; height: 1px; background: var(--dorado);
}
.hero-content h1 {
  font-family: var(--font-title); font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.1; margin-bottom: 1rem;
}
.hero-content p {
  max-width: 540px; margin: 0 auto 2rem;
  font-size: 1rem; color: #ddd; line-height: 1.7;
}
.btn {
  display: inline-block; padding: .75rem 2rem;
  background: var(--dorado); color: var(--azul2);
  font-weight: 700; font-size: .85rem; letter-spacing: .08em;
  text-transform: uppercase; border-radius: 3px; border: 2px solid transparent;
  transition: all .2s; cursor: pointer;
}
.btn:hover { background: #e0bf6e; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(200,168,75,0.4); }
.btn-outline {
  background: transparent; border-color: var(--dorado);
  color: var(--dorado); margin-left: 1rem;
}
.btn-outline:hover { background: var(--dorado); color: var(--azul2); }

/* ===== SECTION BASE ===== */
section { padding: 6rem 1.5rem; }
.section-label {
  text-align: center; font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dorado);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-bottom: .5rem;
}
.section-label::before, .section-label::after {
  content: ''; width: 30px; height: 1px; background: var(--dorado);
}
.section-title {
  font-family: var(--font-title); font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center; margin-bottom: .75rem; color: var(--azul2);
}
.section-sub {
  text-align: center; color: var(--gris); max-width: 580px;
  margin: 0 auto 3rem; line-height: 1.7; font-size: .95rem;
}
.container { max-width: 1100px; margin: 0 auto; }
.relative { position: relative; }
.z-10 { z-index: 10; }

/* ===== NOSOTROS ===== */
#nosotros { background: var(--crema); }
.nosotros-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center;
}
.carousel-container {
  position: relative; width: 100%; height: 380px;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  background-color: #05101a;
}
.carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1s ease-in-out, transform 4s linear;
  transform: scale(1.05);
}
.carousel-slide.active {
  opacity: 1; transform: scale(1);
}
.carousel-slide img {
  width: 100%; height: 100%; object-fit: contain;
}
.nosotros-text h2 {
  font-family: var(--font-title); font-size: 2rem;
  color: var(--azul2); margin-bottom: 1rem;
}
.nosotros-text p { color: var(--gris); line-height: 1.8; margin-bottom: 1rem; font-size: .95rem; }
.stats {
  display: flex; gap: 2rem; margin-top: 1.5rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-title); font-size: 2.2rem;
  color: var(--dorado); font-weight: 700;
}
.stat-label { font-size: .75rem; color: var(--gris); text-transform: uppercase; letter-spacing: .1em; }

/* ===== EVENTOS & CALENDARIO ===== */
#eventos { background: var(--azul2); }
#eventos .section-title { color: var(--blanco); }
#eventos .section-sub  { color: #aac; }
.cal-year-tabs {
  display: flex; gap: .75rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 2.5rem;
}
.cal-tab {
  padding: .5rem 1.5rem; border: 2px solid rgba(255,255,255,.2);
  color: #aaa; border-radius: 3px; cursor: pointer; font-size: .85rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; transition: all .2s;
  background: transparent;
}
.cal-tab.active, .cal-tab:hover {
  border-color: var(--dorado); color: var(--dorado);
}
.cal-events {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem; transition: opacity 0.3s ease;
}
.cal-event {
  display: flex; flex-direction: column; gap: 0;
  background: rgba(255,255,255,.06); border-radius: 6px; padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.08); transition: transform 0.2s, background 0.2s;
  cursor: pointer;
}
.cal-event:hover {
  transform: translateY(-3px); background: rgba(255,255,255,.09);
}
.cal-event-main {
  display: flex; align-items: center; gap: 1.5rem; width: 100%;
}
.cal-date {
  min-width: 80px; text-align: center;
  background: var(--dorado); border-radius: 4px; padding: .8rem .5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.cal-date .day { font-family: var(--font-title); font-size: 1.8rem; color: var(--azul2); line-height: 1; margin-bottom: 0.2rem; }
.cal-date .month { font-size: .75rem; color: var(--azul2); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.cal-info h4 { color: var(--blanco); font-size: 1.1rem; margin-bottom: .3rem; font-family: var(--font-title); }
.cal-info span { color: #9aacbe; font-size: .85rem; display: block; margin-bottom: 0.5rem; }
.cal-tag {
  display: inline-block; margin-top: .3rem;
  background: rgba(200,168,75,.2); color: var(--dorado);
  font-size: .75rem; padding: .2rem .6rem; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}
.hidden { display: none !important; }

/* Event Details (Expandable) */
.cal-event-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.4s ease-out, margin 0.4s ease-out;
  opacity: 0;
  width: 100%;
}
.cal-event-details.expanded {
  max-height: 800px;
  padding-top: 1.5rem;
  opacity: 1;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1.5rem;
}
.cal-event-details p {
  font-size: 0.95rem; color: #ccc; margin-bottom: 1rem; line-height: 1.6;
}
.event-mini-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.event-mini-gallery img {
  width: 100%; height: 100px; object-fit: cover; border-radius: 4px;
  cursor: zoom-in; transition: transform 0.3s;
}
.event-mini-gallery img:hover {
  transform: scale(1.05);
}

/* ===== GALERÍA ===== */
#galeria { background: var(--crema); }
.galeria-year-tabs {
  display: flex; gap: .75rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 2.5rem;
}
.galeria-tab {
  padding: .4rem 1.2rem; border: 2px solid #ccc;
  border-radius: 3px; cursor: pointer; font-size: .8rem; font-weight: 600;
  color: var(--gris); transition: all .2s; background: transparent; text-transform: uppercase;
}
.galeria-tab.active, .galeria-tab:hover {
  border-color: var(--azul2); color: var(--azul2);
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.album-card {
  position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4/3;
  box-shadow: 0 4px 12px rgba(0,0,0,.1); cursor: pointer;
  background: var(--azul2);
}
.album-card img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.7;
  transition: transform .4s ease, opacity .4s ease;
}
.album-card:hover img {
  transform: scale(1.08); opacity: 0.4;
}
.album-info {
  position: absolute; bottom: 0; left: 0; width: 100%;
  padding: 1.5rem; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--blanco); text-align: center; pointer-events: none;
}
.album-info h4 {
  font-family: var(--font-title); font-size: 1.2rem; margin-bottom: 0.3rem;
}
.album-info span {
  font-size: 0.8rem; color: var(--dorado); text-transform: uppercase; letter-spacing: 0.1em;
}
.galeria-item {
  overflow: hidden; border-radius: 6px; aspect-ratio: 4/3;
  box-shadow: 0 4px 12px rgba(0,0,0,.1); cursor: zoom-in;
  position: relative;
}
.galeria-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.galeria-item:hover img { transform: scale(1.08); }
.galeria-item::after {
  content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.galeria-item:hover::after { opacity: 1; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.92); z-index: 9999;
  align-items: center; justify-content: center; backdrop-filter: blur(5px);
}
.lightbox.open { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1; transition: color 0.2s;
}
.lightbox-close:hover { color: var(--dorado); }

/* ===== ASOCIATE ===== */
#asociate {
  background: linear-gradient(135deg, var(--azul2) 0%, #1a4a7a 100%);
  position: relative; overflow: hidden;
}
#asociate::before {
  content: 'VW'; position: absolute; right: -2rem; top: 50%;
  transform: translateY(-50%); font-size: 24rem; font-weight: 900;
  color: rgba(255,255,255,.03); font-family: var(--font-title);
  pointer-events: none;
}
#asociate .section-title { color: var(--blanco); }
#asociate .section-sub   { color: #aac; }
.form-card {
  background: rgba(255,255,255,.07); border-radius: 10px;
  max-width: 700px; margin: 0 auto; padding: 2.5rem;
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-full { grid-column: 1 / -1; margin-top: 1rem; }
.form-group label { color: var(--blanco); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; }
.form-group input, .form-group select {
  padding: 0.8rem 1rem; border-radius: 4px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05); color: var(--blanco); font-family: var(--font-body);
  transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--dorado); background: rgba(255,255,255,0.1);
}
.form-group input::placeholder { color: rgba(255,255,255,0.4); }
.form-group select option { color: var(--azul2); }
.w-full { width: 100%; text-align: center; }

/* ===== FOOTER ===== */
footer {
  background: #0a1829; padding: 2rem 1.5rem; text-align: center; color: #8899aa; font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 64px; left: -100%; width: 100%; height: calc(100vh - 64px);
    background: rgba(15,37,64,0.98); flex-direction: column; align-items: center; justify-content: center;
    transition: left 0.3s ease; backdrop-filter: blur(10px);
  }
  .nav-links.active { left: 0; }
  .hamburger { display: flex; }
  .nosotros-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  #asociate::before { font-size: 12rem; right: -1rem; }
}
