:root {
  --bg: #0d0b08;
  --bg-alt: #17130d;
  --gold: #d4a94d;
  --gold-light: #f0d78c;
  --text: #f2ede3;
  --text-muted: #b8ac97;
  --card-bg: #1e1a13;
  --border: #3a3222;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--gold-light);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 11, 8, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 1px;
}

.logo span { color: var(--gold); }

.logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.header-logo {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  background: radial-gradient(ellipse at top, #2a2214 0%, var(--bg) 65%);
}

.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 28px;
}

.hero-logo {
  height: 160px;
  width: auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--gold); }

.tagline {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: #1a1408;
}

.btn-primary:hover {
  background: var(--gold-light);
}

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

.btn-outline:hover {
  background: var(--gold);
  color: #1a1408;
}

/* Offer section */
.offer {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: #050403;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.offer-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.offer-glow-1 {
  width: 380px;
  height: 380px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(212,169,77,0.35), transparent 70%);
  animation: driftOne 12s ease-in-out infinite;
}

.offer-glow-2 {
  width: 320px;
  height: 320px;
  bottom: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(240,215,140,0.25), transparent 70%);
  animation: driftTwo 14s ease-in-out infinite;
}

@keyframes driftOne {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}

@keyframes driftTwo {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -40px); }
}

.offer-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

.offer-eyebrow {
  display: inline-block;
  font-family: 'Cinzel', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 22px;
}

.offer h2 {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1.3;
  margin-bottom: 18px;
}

.offer > .offer-inner > .offer-text > p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.offer-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 22px 48px;
  margin-bottom: 44px;
  background: rgba(212, 169, 77, 0.06);
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(212,169,77,0.25); }
  50% { box-shadow: 0 0 40px rgba(212,169,77,0.55); }
}

.offer-badge-label {
  font-family: 'Cinzel', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--gold);
}

.offer-badge-amount {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--gold-light);
}

.offer-badge-amount small {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 1px;
}

.offer-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: left;
  margin-bottom: 40px;
}

.offer-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.offer-feature:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.offer-feature svg {
  color: var(--gold);
  flex-shrink: 0;
}

.offer-feature h4 {
  color: var(--gold-light);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1rem;
  margin-bottom: 4px;
}

.offer-feature p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }

/* Sections */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  text-align: center;
}

.section > .container > p {
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  text-align: center;
}

/* Values / Services grids */
.values, .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.value-card, .service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
}

.value-card h3, .service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.value-card p, .service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sedes */
.sedes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.sede-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
  text-align: center;
}

.sede-logo-frame {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  padding: 16px;
}

.sede-logo-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sede-city {
  color: var(--gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.placeholder-frame {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold);
  border: 1px dashed var(--border);
  border-radius: 6px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(212,169,77,0.08), transparent);
}

.icon-frame {
  border-style: solid;
}

.icon-frame svg {
  color: var(--gold);
}

/* Carousel columns (side by side per sede) */
.carousel-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 36px;
}

.carousel-column-title {
  text-align: center;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 16px;
}

/* Carousel */
.carousel {
  position: relative;
  margin-top: 32px;
  border-radius: 10px;
  overflow: hidden;
}

.carousel[hidden] {
  display: none;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  height: 320px;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide::after {
  content: attr(data-caption);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 28px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: var(--gold-light);
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(5,4,3,0.55);
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--gold);
  color: #1a1408;
}

.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: var(--gold);
}

@media (max-width: 720px) {
  .carousel-slide { height: 300px; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 1.2rem; }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 4, 3, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 78vh;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  animation: lightboxFade 0.3s ease;
}

@keyframes lightboxFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-caption {
  margin-top: 16px;
  color: var(--gold-light);
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  color: #1a1408;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 720px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.2rem; }
  .lightbox-close { width: 38px; height: 38px; top: 12px; right: 12px; }
}

/* Application form */
.application-form {
  max-width: 600px;
  margin: 70px auto 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
}

.application-form h3 {
  text-align: center;
  margin-bottom: 8px;
}

.application-form > p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

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

.application-form button {
  width: 100%;
  margin-top: 10px;
}

/* Contact */
.contact-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .section h2 { font-size: 1.7rem; }
  .hero-logo { height: 100px; }
  .offer-badge-amount { font-size: 2.2rem; }
  .offer-badge { padding: 18px 28px; }
  .offer h2 { font-size: 1.6rem; }
  .hero-logos { gap: 16px; }
  .header-logo { height: 32px; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
}

/* Sede modal (Aplica ahora) */
.sede-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(5, 4, 3, 0.85);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sede-modal.is-open {
  display: flex;
}

.sede-modal-content {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: lightboxFade 0.3s ease;
}

.sede-modal-content h3 {
  font-family: 'Cinzel', Georgia, serif;
  margin-bottom: 8px;
}

.sede-modal-content > p {
  color: var(--text-muted);
  margin-bottom: 26px;
  font-size: 0.9rem;
}

.sede-modal-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sede-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.sede-modal-close:hover {
  color: var(--gold);
}

/* Floating WhatsApp bubble */
.whatsapp-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  animation: bubblePulse 2.4s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.whatsapp-bubble:hover {
  transform: scale(1.08);
}

@keyframes bubblePulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 0 10px rgba(37,211,102,0); }
}

@media (max-width: 720px) {
  .whatsapp-bubble { width: 50px; height: 50px; bottom: 16px; right: 16px; }
}
