/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES (Jaguares Taekwondo)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@700;800&display=swap');

:root {
  /* Color Palette */
  --primary: #C1121F;      /* Rojo Oscuro */
  --primary-hover: #9E0E18;
  --dark: #111111;         /* Negro Profundo */
  --light: #F5F5F5;        /* Gris Claro */
  --white: #FFFFFF;        /* Blanco Puro */
  --gold: #D4AF37;         /* Detalles en Dorado */
  --text-dark: #1E1E1E;
  --text-muted: #666666;
  --text-light: #F9F9F9;
  
  /* Fonts */
  --font-headings: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 6rem 2rem;
  --section-padding-mobile: 4rem 1.5rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 30px 60px rgba(193, 18, 31, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

ul {
  list-style: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* ==========================================================================
   UTILITY CLASSES & STRUCTURAL COMPONENTS
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.section {
  padding: var(--section-padding);
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile);
  }
}

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

.section-bg-dark {
  background-color: var(--dark);
  color: var(--white);
}

.section-bg-dark h2 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.section-header h2 span {
  color: var(--primary);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-bg-dark .section-header p {
  color: #AAAAAA;
}

/* Gold details accent */
.gold-badge {
  display: inline-block;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
  letter-spacing: 0.5px;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(193, 18, 31, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

.btn-secondary:hover {
  background-color: var(--dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.btn-large {
  padding: 1.1rem 2.8rem;
  font-size: 1.1rem;
}

/* ==========================================================================
   TOP BAR & STICKY HEADER
   ========================================================================== */
.top-bar {
  background-color: var(--dark);
  color: #CCCCCC;
  font-size: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #222222;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 2rem;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-info i {
  color: var(--primary);
}

.top-bar-social a {
  margin-left: 1rem;
  color: #CCCCCC;
}

.top-bar-social a:hover {
  color: var(--white);
}

header {
  position: absolute;
  top: 33px; /* height of top-bar */
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition-normal);
}

header.scrolled {
  position: fixed;
  top: 0;
  background-color: rgba(17, 17, 17, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  transition: var(--transition-normal);
}

header.scrolled .container {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 55px;
  width: auto;
  display: block;
  transition: var(--transition-normal);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

header.scrolled .logo-img {
  height: 45px;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

@media (max-width: 1200px) {
  .nav-links {
    gap: 1.1rem;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
}

.mobile-nav-cta {
  display: none !important;
}

.header-cta {
  display: flex;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
}

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

header.scrolled .nav-links a {
  color: rgba(255, 255, 255, 0.8);
}

header.scrolled .nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  display: flex;
  align-items: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--white);
  margin-bottom: 5px;
  transition: 0.3s;
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

/* Mobile Menu Active States */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Header styling */
@media (max-width: 1024px) {
  .top-bar {
    display: none;
  }
  header {
    top: 0;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--dark);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
    transform: translateY(-150%);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
  }
  .nav-links.active {
    transform: translateY(0);
  }
  .header-cta {
    display: none !important;
  }
  .mobile-nav-cta {
    display: inline-flex !important;
    width: 100%;
    margin-top: 1rem;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  height: 95vh;
  min-height: 600px;
  background-image: url('../images/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Light parallax effect */
  background-attachment: fixed;
  display: flex;
  align-items: center;
  margin-top: 0;
  z-index: 1;
}

/* Fallback for Safari & iOS which struggle with background-attachment: fixed */
@media (max-width: 1024px) {
  .hero {
    background-attachment: scroll;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0.75) 0%,
    rgba(17, 17, 17, 0.6) 50%,
    rgba(17, 17, 17, 0.95) 100%
  );
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  color: var(--white);
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--primary);
  display: block;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-indicator-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--white);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* ==========================================================================
   SOBRE NOSOTROS
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.about-text h2 span {
  color: var(--primary);
}

.about-highlight {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary);
  padding-left: 1.2rem;
}

.about-paragraph {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.value-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

.about-image-container {
  position: relative;
}

.about-image {
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.about-image-decoration {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-top: 4px solid var(--primary);
  border-left: 4px solid var(--primary);
  z-index: 1;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .about-image-container {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   BENEFICIOS
   ========================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.benefit-card {
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  padding: 3rem 2.2rem;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.benefit-icon {
  background-color: var(--light);
  width: 64px;
  height: 64px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition-normal);
}

.benefit-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

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

/* Hover effects */
.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-card:hover .benefit-icon {
  background-color: var(--primary);
  color: var(--white);
}

@media (max-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PROGRAMAS
   ========================================================================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.program-card {
  background-color: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.program-header {
  background-color: var(--dark);
  color: var(--white);
  padding: 2.2rem;
  text-align: center;
  position: relative;
}

.program-header h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.program-age {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.program-body {
  padding: 2.5rem 2.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-desc {
  color: var(--text-dark);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 500;
}

.program-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.program-features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.program-features li:last-child {
  border-bottom: none;
}

.program-features i {
  color: var(--primary);
}

.program-card .btn {
  width: 100%;
}

/* Hover effects */
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.program-card.featured {
  border: 2px solid var(--primary);
  position: relative;
}

.program-card.featured .program-header {
  background-color: var(--primary);
}

.program-card.featured .program-age {
  background-color: var(--dark);
}

.featured-label {
  position: absolute;
  top: 0;
  right: 2rem;
  background-color: var(--gold);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .programs-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   ¿POR QUÉ ELEGIRNOS?
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.why-feature-item {
  display: flex;
  gap: 1.5rem;
}

.why-feature-icon {
  background-color: rgba(193, 18, 31, 0.05);
  color: var(--primary);
  width: 54px;
  height: 54px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid rgba(193, 18, 31, 0.1);
}

.why-feature-info h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.why-feature-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background-color: var(--dark);
  padding: 3rem;
  border-radius: 4px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-stats::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(193, 18, 31, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.stat-box {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

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

.stat-label {
  font-size: 0.85rem;
  color: #AAAAAA;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

/* ==========================================================================
   COMPETENCIAS
   ========================================================================== */
.comp-editorial {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.comp-text .gold-badge {
  margin-bottom: 1.5rem;
}

.comp-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.comp-text h2 span {
  color: var(--primary);
}

.comp-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.comp-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.comp-feature-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.comp-feature-line i {
  color: var(--gold);
  font-size: 1.2rem;
}

.comp-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.comp-visual-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.comp-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.comp-visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.9) 0%, transparent 100%);
  color: var(--white);
  opacity: 0;
  transition: var(--transition-normal);
  transform: translateY(10px);
}

.comp-visual-overlay h4 {
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.comp-visual-overlay p {
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.comp-visual-card:hover img {
  transform: scale(1.08);
}

.comp-visual-card:hover .comp-visual-overlay {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .comp-editorial {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

/* ==========================================================================
   GALERÍA
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(193, 18, 31, 0.85); /* Rojo oscuro semi-transparente */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  opacity: 0;
  transition: var(--transition-normal);
  padding: 2rem;
  text-align: center;
}

.gallery-hover-overlay i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gold);
  transform: translateY(-10px);
  transition: var(--transition-normal);
}

.gallery-hover-overlay h4 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  transform: translateY(10px);
  transition: var(--transition-normal);
}

.gallery-hover-overlay p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(10px);
  transition: var(--transition-normal);
}

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

.gallery-item:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-hover-overlay i,
.gallery-item:hover .gallery-hover-overlay h4,
.gallery-item:hover .gallery-hover-overlay p {
  transform: translateY(0);
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.testimonial-card {
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  padding: 3rem 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.testimonial-content {
  position: relative;
  margin-bottom: 2rem;
}

.testimonial-quote {
  font-size: 2.5rem;
  color: rgba(193, 18, 31, 0.1);
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  font-family: serif;
  line-height: 1;
}

.testimonial-content p {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.author-info h4 {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.stars {
  color: var(--gold);
  font-size: 0.8rem;
  display: flex;
  gap: 2px;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   HORARIOS
   ========================================================================== */
.schedule-container {
  background-color: var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 3rem auto;
}

.schedule-table {
  width: 100%;
}

.schedule-table th {
  background-color: var(--dark);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  text-align: left;
}

.schedule-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--light);
  font-size: 0.95rem;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.schedule-table td:nth-child(1) {
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.schedule-badge {
  background-color: rgba(193, 18, 31, 0.08);
  color: var(--primary);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

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

/* Responsive Table */
@media (max-width: 600px) {
  .schedule-table th, .schedule-table td {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   UBICACIÓN
   ========================================================================== */
.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.location-info h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.location-info h2 span {
  color: var(--primary);
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.location-item {
  display: flex;
  gap: 1.2rem;
}

.location-item i {
  color: var(--primary);
  font-size: 1.3rem;
  margin-top: 0.25rem;
}

.location-item h4 {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.location-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.map-container {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 992px) {
  .location-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .map-container {
    height: 350px;
  }
}

/* ==========================================================================
   CTA FINAL (SECCIÓN DE FONDO ROJO)
   ========================================================================== */
.cta-final {
  background-color: var(--primary);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(17, 17, 17, 0.3) 0%, transparent 80%);
  pointer-events: none;
}

.cta-final-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-final h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  line-height: 1.1;
}

.cta-final p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background-color: var(--dark);
  color: #CCCCCC;
  padding: 5rem 0 2rem 0;
  font-size: 0.9rem;
  border-top: 1px solid #222222;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 1.8rem;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.footer-about p {
  color: #888888;
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #888888;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #888888;
}

.footer-contact i {
  color: var(--primary);
  margin-top: 0.25rem;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  background-color: #222222;
  color: var(--white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid #222222;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #666666;
  font-size: 0.8rem;
}

.footer-bottom-links a {
  margin-left: 1.5rem;
  color: #666666;
}

.footer-bottom-links a:hover {
  color: #888888;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .footer-bottom-links a {
    margin: 0 0.75rem;
  }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
}

.whatsapp-btn {
  background-color: #25D366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition-normal);
  position: relative;
  z-index: 2;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.4;
  z-index: 1;
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.whatsapp-tooltip {
  background-color: var(--dark);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  position: absolute;
  right: 75px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: var(--transition-normal);
  z-index: 2;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background-color: var(--dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
  .whatsapp-pulse {
    width: 50px;
    height: 50px;
  }
  .whatsapp-tooltip {
    display: none; /* Hide tooltip on small screens to save space */
  }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (INTERSECTION OBSERVER)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.reveal-fade-in {
  opacity: 0;
  transition: opacity 1s ease;
  will-change: opacity;
}

.reveal-fade-in.reveal-active {
  opacity: 1;
}
