/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #127f46;
  --green-light: #1a9e58;
  --green-dark: #0d5c33;
  --red: #bc2a35;
  --red-light: #d43040;
  --red-dark: #8e1f27;
  --dark: #072935;
  --dark-light: #0e3a4a;
  --gray: #f5f5f5;
  --gray-mid: #e6eaeb;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --font: 'Poppins', sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 90px;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
  font-family: var(--font);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1.15rem;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(80, 12, 24, 0.08);
  color: #500C18;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.section-tag i {
  margin-right: 6px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  background: rgba(7, 41, 53, 0.6);
  backdrop-filter: blur(6px);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(7, 41, 53, 0.97);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.logo-text {
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-close {
  display: none;
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10001;
}

.nav.active .nav-close {
  display: block;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  background: #1ebe57;
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

.nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red-light);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: var(--transition);
}

.btn-nav:hover {
  background: var(--red-light) !important;
  transform: translateY(-1px);
}

.btn-nav::after {
  display: none !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 41, 53, 0.9) 0%,
    rgba(7, 41, 53, 0.7) 50%,
    rgba(18, 127, 70, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-top: 120px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 32px;
}

.stat {
  text-align: center;
  flex: 1;
  padding: 24px 16px;
  background: var(--gray);
  border-radius: var(--radius);
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #500C18;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

/* ===== OFFERS ===== */
.offers {
  padding: 100px 0;
  background: var(--gray);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.offer-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #500C18;
}

.offer-icon {
  width: 70px;
  height: 70px;
  background: #500C18;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--white);
}

.offer-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.offer-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== GALLERY ===== */
.gallery {
  padding: 100px 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.5rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--red);
  transform: scale(1.2);
}

/* ===== IDENTITY ===== */
.identity {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: var(--white);
}

.identity .section-tag {
  background: rgba(255,255,255,0.1);
  color: var(--green-light);
}

.identity .section-header h2 {
  color: var(--white);
}

.identity .section-desc {
  color: rgba(255,255,255,0.7);
}

.identity-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mascots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mascot-card {
  text-align: center;
}

.mascot-card img {
  width: 100%;
  transition: transform 0.5s ease;
}

.mascot-card:hover img {
  transform: scale(1.03);
}

.mascot-name {
  display: block;
  margin-top: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-light);
  letter-spacing: 1px;
}

.identity-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.identity-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(18, 127, 70, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--green-light);
}

.identity-feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.identity-feature p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

.identity-quote {
  margin-top: 20px;
  padding: 20px 24px;
  background: rgba(188, 42, 53, 0.15);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-style: italic;
}

/* ===== LOCATION ===== */
.location {
  padding: 100px 0;
  background: var(--gray);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.location-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.location-item i {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
}

.location-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.location-item p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.location-map iframe {
  display: block;
  width: 100%;
}

.location-mascot {
  text-align: center;
  margin-top: 24px;
}

.location-mascot img {
  max-width: 280px;
  width: 100%;
  margin: 0 auto;
}

/* ===== SCHEDULE ===== */
.schedule {
  padding: 100px 0;
  background: var(--white);
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.schedule-card {
  background: #500C18;
  color: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.schedule-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(80,12,24,0.4);
}

.schedule-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  color: var(--white);
}

.schedule-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.85);
}

.schedule-time {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  background: #500C18;
  color: var(--white);
  text-align: center;
}

.cta-content {
  max-width: 650px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
  line-height: 1.7;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.cta-feature i {
  color: rgba(255,255,255,0.9);
}

.cta .btn-primary {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
  font-size: 1.2rem;
  padding: 20px 52px;
}

.cta .btn-primary i {
  color: #25D366;
}

.cta .btn-primary:hover {
  background: var(--gray);
  border-color: var(--gray);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-note {
  margin-top: 20px;
  font-size: 0.95rem !important;
  color: rgba(255,255,255,0.75) !important;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-tagline {
  color: var(--green-light) !important;
  font-weight: 800 !important;
  font-size: 1.1rem;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--green-light);
  padding-left: 4px;
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-contact p i {
  margin-right: 8px;
  color: var(--green-light);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.footer-portal {
  text-align: center;
  padding: 32px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 8px;
}

.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--green-dark);
  border: 2px solid var(--green-light);
  color: var(--white);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(18,127,70,0.25);
}

.portal-link i {
  font-size: 1.1rem;
  color: var(--green-light);
}

.portal-link:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(18,127,70,0.4);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  background: var(--white);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(188,42,53,0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--red);
}

.faq-item.open .faq-question {
  color: var(--red);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
  transition: transform 0.3s ease;
  color: var(--red);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .identity-content,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .logo-img {
    height: 75px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    padding: 80px 30px 30px;
    gap: 20px;
    transition: var(--transition);
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    font-size: 1.1rem;
    padding: 10px 0;
    width: 100%;
    text-align: center;
  }

  .btn-nav {
    width: auto !important;
    padding: 12px 32px !important;
    text-align: center;
  }

  /* Padding compacto en secciones */
  .about, .offers, .gallery, .identity, .location, .schedule, .faq, .cta {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .about-stats {
    flex-direction: column;
    gap: 16px;
  }

  .offers-grid {
    grid-template-columns: 1fr;
  }

  .mascots {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Imagen "Sobre Nosotros" completa en móvil */
  .about-image img {
    height: auto;
    object-fit: contain;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .cta h2 {
    font-size: 2rem;
  }

  /* Bullets de inscripciones alineados */
  .cta-features {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    display: inline-flex;
  }

  .cta-feature {
    align-items: flex-start;
    text-align: left;
  }

  .cta-feature i {
    margin-top: 3px;
    flex-shrink: 0;
  }

  /* Footer: 1 columna centrada en móvil */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    height: 80px;
    margin: 0 auto 12px;
  }

  .footer-links a:hover {
    padding-left: 0;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 65px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: 16/9;
  }

  .schedule-card {
    padding: 28px 20px;
  }

  .cta h2 {
    font-size: 1.7rem;
  }

  .location-map iframe {
    height: 300px;
  }

  .btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
  }
}
