/* escuela.css - Redesign V3.5 (Spectacular Visuals) */

/* === 1. FORCE LIGHT THEME & OVERRIDES === */
:root {
  --bg-page-creamy: #fdfbf7;
  --bg-white: #ffffff;
  --color-coffee-dark: #3e2723;
  --color-gold-accent: #c5a059;
  --text-primary: #333333;
  --text-muted: #666666;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(197, 160, 89, 0.15);
}

body.escuela-page {
  background-color: var(--bg-page-creamy) !important;
  background-image: none !important;
  color: var(--text-primary) !important;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* Header spacing fix */
.escuela-page .encabezado {
  background-color: rgba(62, 39, 35, 0.95) !important;
}

.escuela-page main {
  padding-top: 100px;
}

/* === 2. SPECTACULAR IMMERSIVE HERO === */
.hero-central {
  position: relative;
  height: 90vh;
  /* Imposing height */
  min-height: 650px;
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
  /* Parallax effect */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
  /* Remove margin to flow into next section */
  /* Background image is set inline in HTML */
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(62, 39, 35, 0.75) 100%);
  z-index: 1;
}

.hero-content-immersive {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
  margin-top: 40px;
  /* Offset for header */
}

.hero-badge {
  background: rgba(197, 160, 89, 0.2);
  /* Glassy gold */
  border: 1px solid var(--color-gold-accent);
  color: #fff;
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: inline-block;
  margin-bottom: 25px;
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

.hero-big-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  /* Massive size */
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.4);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 650px;
  margin: 0 auto 35px;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

.hero-stats-row {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 40px;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.h-stat {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.h-stat strong {
  font-size: 2.2rem;
  color: var(--color-gold-accent);
  margin-bottom: 5px;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
  font-weight: 800;
}

/* Glowing CTA Button */
.btn-hero-glow {
  display: inline-block;
  background: var(--color-gold-accent);
  color: #fff;
  padding: 18px 50px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 30px rgba(197, 160, 89, 0.6);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-hero-glow:hover {
  background: transparent;
  border-color: var(--color-gold-accent);
  color: var(--color-gold-accent);
  box-shadow: 0 0 50px rgba(197, 160, 89, 0.8);
  transform: translateY(-3px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-big-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats-row {
    gap: 20px;
  }

  .h-stat strong {
    font-size: 1.8rem;
  }

  .hero-central {
    height: auto;
    min-height: auto;
    padding: 120px 20px 60px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .gallery-item {
    flex: 0 0 220px;
    height: 300px;
  }

  .testimonial-container {
    padding: 40px 30px;
  }

  /* .testimonial-text is not defined in the original document, so I'm commenting it out to avoid errors. */
  /* .testimonial-text {
        font-size: 1.3rem;
    } */

  /* .testimonial-profile is not defined in the original document, so I'm commenting it out to avoid errors. */
  /* .testimonial-profile {
        flex-direction: column;
        text-align: center;
    } */

  /* .profile-info is not defined in the original document, so I'm commenting it out to avoid errors. */
  /* .profile-info {
        text-align: center;
        align-items: center;
    } */
}

/* === MOBILE SPECIFIC (480px) === */
@media (max-width: 480px) {
  .hero-central {
    padding: 100px 15px 50px;
    height: 65vh;
  }

  .hero-big-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .h-stat strong {
    font-size: 1.6rem;
  }

  .h-stat {
    font-size: 0.9rem;
  }

  .btn-hero-glow {
    padding: 14px 35px;
    font-size: 0.95rem;
  }

  .section-header h3 {
    font-size: 2rem;
  }

  .courses-grid {
    gap: 20px;
    max-width: 100%;
    padding: 0 10px;
  }

  .card-img-holder {
    height: 200px;
  }

  .academic-section,
  .gallery-section,
  .testimonial-section

  /* .cta-section is not defined in the original document, so I'm commenting it out to avoid errors. */
  /*,
    .cta-section */
    {
    padding: 60px 15px;
  }

  /* Prevent overflow */
  body,
  html {
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* === 3. ACADEMIC GRID (Clean) === */
.academic-section {
  padding: 80px 20px;
  background: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--color-coffee-dark);
  margin-bottom: 10px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.course-card {
  background: var(--bg-page-creamy);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-10px);
}

.card-img-holder {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.card-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.course-card:hover img {
  transform: scale(1.1);
}

.card-overlay-hover {
  position: absolute;
  inset: 0;
  background: rgba(62, 39, 35, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.course-card:hover .card-overlay-hover {
  opacity: 1;
}

.btn-view {
  border: 1px solid #fff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
}

.card-body {
  padding: 20px;
}

.card-body h4 {
  color: var(--color-coffee-dark);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* === 4. INFINITE GALLERY (Marquee) === */
.gallery-section {
  padding: 100px 0;
  background: var(--bg-page-creamy);
  overflow: hidden;
}

.gallery-header {
  text-align: center;
  margin-bottom: 50px;
}

.gallery-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--color-coffee-dark);
}

.marquee-wrapper {
  display: flex;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.marquee-content {
  display: flex;
  gap: 20px;
  animation: scroll 40s linear infinite;
}

.gallery-item {
  flex: 0 0 300px;
  /* Fixed width */
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  border: 5px solid #fff;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.gallery-item:hover img {
  filter: grayscale(0%);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-300px * 5 - 100px));
  }

  /* Adjust based on items */
}

/* === 4.5. ENHANCED TESTIMONIAL === */
.testimonial-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #fdfbf7 0%, #f5f0e8 100%);
  position: relative;
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 60px 50px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(62, 39, 35, 0.1);
  position: relative;
  text-align: center;
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 1.5rem;
  color: var(--color-gold-accent);
}

.testimonial-stars i {
  animation: starPulse 2s ease-in-out infinite;
}

.testimonial-stars i:nth-child(2) {
  animation-delay: 0.1s;
}

.testimonial-stars i:nth-child(3) {
  animation-delay: 0.2s;
}

.testimonial-stars i:nth-child(4) {
  animation-delay: 0.3s;
}

.testimonial-stars i:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes starPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.quote-icon-modern {
  font-size: 4rem;
  color: rgba(197, 160, 89, 0.15);
  margin-bottom: 20px;
}

.testimonial-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--color-coffee-dark);
  font-style: italic;
  margin: 0 0 40px;
  position: relative;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 30px;
  border-top: 2px solid rgba(197, 160, 89, 0.2);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold-accent), #d4af37);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3);
  flex-shrink: 0;
}

.profile-info {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-info strong {
  font-size: 1.3rem;
  color: var(--color-coffee-dark);
  font-weight: 700;
}

.profile-info span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.profile-badge {
  display: inline-block;
  background: rgba(197, 160, 89, 0.1);
  color: var(--color-gold-accent);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem !important;
  font-weight: 700;
  margin-top: 5px;
  width: fit-content;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-container {
    padding: 40px 30px;
  }

  .testimonial-text {
    font-size: 1.3rem;
  }

  .testimonial-profile {
    flex-direction: column;
    text-align: center;
  }

  .profile-info {
    text-align: center;
    align-items: center;
  }
}



/* === 5. CTA & FOOTER === */
.cta-section {
  padding: 80px 20px;
  text-align: center;
  background: #fff;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-primary-sc {
  background: var(--color-coffee-dark);
  color: #fff;
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
}

.btn-secondary-sc {
  border: 2px solid var(--color-coffee-dark);
  color: var(--color-coffee-dark);
  padding: 14px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-big-title {
    font-size: 2.5rem;
  }

  .hero-image-container {
    height: 300px;
  }

  .hero-stats-row {
    gap: 15px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .gallery-item {
    flex: 0 0 220px;
    height: 300px;
  }
}