/* ==========================================================================
   UNIVERSAL ENGLISH & CERTIFICACIÓN TOEFL - DESIGN SYSTEM & STYLESHEET
   Brand Colors: Crimson Red (#E31C24), Teal (#0092A6), Sun Yellow (#FFCA00)
   ========================================================================== */

:root {
  /* Color Palette */
  --red-toefl: #E31C24;
  --red-toefl-dark: #B51118;
  --red-toefl-glow: rgba(227, 28, 36, 0.35);

  --teal-primary: #0092A6;
  --teal-dark: #006B7A;
  --teal-deep: #072731;
  --teal-light: #00B4CC;
  --teal-subtle: #E6F7F9;

  --yellow-accent: #FFCA00;
  --yellow-light: #FFE266;
  --cream-bg: #FFF9E6;

  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-white: #FFFFFF;

  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-brand: 'Outfit', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(227, 28, 36, 0.15);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.2);
  --shadow-red: 0 8px 22px rgba(227, 28, 36, 0.4);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--teal-primary);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 39, 49, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 0;
  transition: var(--transition);
}

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

/* Universal English Logo Brand (Navbar) */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.brand-logo-link:hover {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 6px 16px rgba(227, 28, 36, 0.4));
}

.universal-english-logo-svg,
.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--yellow-accent);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--yellow-accent);
}

.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-red {
  background-color: var(--red-toefl);
  color: var(--text-white);
  box-shadow: var(--shadow-red);
}

.btn-red:hover {
  background-color: var(--red-toefl-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(227, 28, 36, 0.5);
}

.btn-yellow {
  background-color: var(--yellow-accent);
  color: var(--teal-deep);
  box-shadow: 0 6px 20px rgba(255, 202, 0, 0.35);
}

.btn-yellow:hover {
  background-color: var(--yellow-light);
  transform: translateY(-3px) scale(1.02);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  border: 2px solid var(--text-white);
  backdrop-filter: blur(4px);
}

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

/* HERO SECTION */
.hero-section {
  position: relative;
  padding: 3.5rem 0 4rem;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(0, 180, 204, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(227, 28, 36, 0.12) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='none'%3E%3Cg stroke='rgba(255,255,255,0.08)' stroke-width='1.2' fill='none'%3E%3Cpath d='M600,0 L600,800' stroke='rgba(255,255,255,0.14)'/%3E%3Cpath d='M500,0 C410,260 410,540 500,800'/%3E%3Cpath d='M400,0 C260,260 260,540 400,800'/%3E%3Cpath d='M300,0 C120,260 120,540 300,800'/%3E%3Cpath d='M200,0 C-20,260 -20,540 200,800'/%3E%3Cpath d='M100,0 C-150,260 -150,540 100,800'/%3E%3Cpath d='M700,0 C790,260 790,540 700,800'/%3E%3Cpath d='M800,0 C940,260 940,540 800,800'/%3E%3Cpath d='M900,0 C1080,260 1080,540 900,800'/%3E%3Cpath d='M1000,0 C1220,260 1220,540 1000,800'/%3E%3Cpath d='M1100,0 C1350,260 1350,540 1100,800'/%3E%3Cpath d='M0,400 L1200,400' stroke='rgba(255,202,0,0.25)' stroke-dasharray='8 6' stroke-width='1.5'/%3E%3Cpath d='M0,100 Q600,160 1200,100'/%3E%3Cpath d='M0,200 Q600,260 1200,200'/%3E%3Cpath d='M0,300 Q600,340 1200,300'/%3E%3Cpath d='M0,500 Q600,460 1200,500'/%3E%3Cpath d='M0,600 Q600,540 1200,600'/%3E%3Cpath d='M0,700 Q600,640 1200,700'/%3E%3C/g%3E%3Cg fill='rgba(255,202,0,0.45)'%3E%3Ccircle cx='600' cy='400' r='4'/%3E%3Ccircle cx='410' cy='400' r='3'/%3E%3Ccircle cx='790' cy='400' r='3'/%3E%3Ccircle cx='260' cy='400' r='2.5'/%3E%3Ccircle cx='940' cy='400' r='2.5'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--teal-dark) 0%, var(--teal-deep) 100%);
  background-position: center, center, center, center;
  background-size: cover, cover, 100% 100%, cover;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.badge-yellow {
  display: inline-block;
  background-color: var(--cream-bg);
  color: var(--red-toefl);
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 900;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.5deg);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.banner-red-pill {
  background-color: var(--red-toefl);
  color: var(--text-white);
  font-family: var(--font-brand);
  font-size: 1.9rem;
  font-weight: 900;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-red);
  margin-bottom: 1.5rem;
  line-height: 1.25;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-toefl-logo-container {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.hero-toefl-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* HERO CAROUSEL: ESTUDIANTES CERTIFICADOS */
.hero-carousel-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(7, 39, 49, 0.85);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.carousel-title-bar h3 {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--yellow-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-track-wrapper {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  transform: scale(0.96);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

.carousel-caption {
  position: relative;
  z-index: 3;
  background: linear-gradient(0deg, rgba(7, 39, 49, 0.95) 0%, rgba(7, 39, 49, 0.6) 70%, transparent 100%);
  padding: 1.5rem 1.25rem 1rem;
  color: var(--text-white);
}

.carousel-caption h4 {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--yellow-accent);
  margin-bottom: 0.25rem;
}

.carousel-caption p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(7, 39, 49, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-nav-btn:hover {
  background: var(--red-toefl);
  border-color: var(--red-toefl);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--yellow-accent);
  width: 28px;
  border-radius: var(--radius-full);
}

/* BENTO GRID FEATURES */
.features-section {
  background-color: #FFFFFF;
  color: var(--text-main);
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  background-color: var(--teal-subtle);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-brand);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--teal-deep);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--red-toefl);
}

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

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.bento-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-light);
}

.bento-card-large {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-dark));
  color: var(--text-white);
}

.bento-card-highlight {
  background: linear-gradient(135deg, #FFF9E6, #FFF0B3);
  border-color: var(--yellow-accent);
}

.bento-icon {
  width: 56px;
  height: 56px;
  background: var(--teal-subtle);
  color: var(--teal-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bento-card-large .bento-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--yellow-accent);
}

.bento-title {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.bento-card-large .bento-title {
  color: var(--text-white);
}

.bento-card-highlight .bento-title {
  color: #7A5900;
}

.bento-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.bento-card-large .bento-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* SECCIÓN INDEPENDIENTE DE UBICACIÓN (Visítanos en cualquiera de nuestras dos sucursales) */
.locations-section {
  background-color: #F8FAFC;
  color: var(--text-main);
  padding: 6rem 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.locations-main-title {
  font-family: var(--font-brand);
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--teal-deep);
  text-align: center;
  margin-bottom: 0.75rem;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.branch-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  transition: var(--transition);
}

.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--teal-light);
}

.branch-map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: #E2E8F0;
}

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

}

.map-overlay-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0F172A;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
}

.map-overlay-btn:hover {
  background: #F1F5F9;
  color: var(--red-toefl);
}

.branch-info-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.branch-name {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.branch-address {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.branch-schedule {
  color: #64748B;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  background: #F8FAFC;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--teal-primary);
}

.branch-contact-list {
  margin-bottom: 1.5rem;
}

.branch-contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.branch-contact-item a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.branch-contact-item a:hover {
  color: var(--red-toefl);
}

.branch-icon-red {
  width: 18px;
  height: 18px;
  color: var(--red-toefl);
  flex-shrink: 0;
}

.branch-icon-green {
  width: 18px;
  height: 18px;
  color: #25D366;
  flex-shrink: 0;
}

.btn-ver-ubicacion {
  display: block;
  background-color: var(--red-toefl);
  color: var(--text-white);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-red);
}

.btn-ver-ubicacion:hover {
  background-color: var(--red-toefl-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(227, 28, 36, 0.45);
}

/* QUIZ SECTION */
.quiz-section {
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(0, 180, 204, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(227, 28, 36, 0.12) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='none'%3E%3Cg stroke='rgba(255,255,255,0.08)' stroke-width='1.2' fill='none'%3E%3Cpath d='M600,0 L600,800' stroke='rgba(255,255,255,0.14)'/%3E%3Cpath d='M500,0 C410,260 410,540 500,800'/%3E%3Cpath d='M400,0 C260,260 260,540 400,800'/%3E%3Cpath d='M300,0 C120,260 120,540 300,800'/%3E%3Cpath d='M200,0 C-20,260 -20,540 200,800'/%3E%3Cpath d='M100,0 C-150,260 -150,540 100,800'/%3E%3Cpath d='M700,0 C790,260 790,540 700,800'/%3E%3Cpath d='M800,0 C940,260 940,540 800,800'/%3E%3Cpath d='M900,0 C1080,260 1080,540 900,800'/%3E%3Cpath d='M1000,0 C1220,260 1220,540 1000,800'/%3E%3Cpath d='M1100,0 C1350,260 1350,540 1100,800'/%3E%3Cpath d='M0,400 L1200,400' stroke='rgba(255,202,0,0.25)' stroke-dasharray='8 6' stroke-width='1.5'/%3E%3Cpath d='M0,100 Q600,160 1200,100'/%3E%3Cpath d='M0,200 Q600,260 1200,200'/%3E%3Cpath d='M0,300 Q600,340 1200,300'/%3E%3Cpath d='M0,500 Q600,460 1200,500'/%3E%3Cpath d='M0,600 Q600,540 1200,600'/%3E%3Cpath d='M0,700 Q600,640 1200,700'/%3E%3C/g%3E%3Cg fill='rgba(255,202,0,0.45)'%3E%3Ccircle cx='600' cy='400' r='4'/%3E%3Ccircle cx='410' cy='400' r='3'/%3E%3Ccircle cx='790' cy='400' r='3'/%3E%3Ccircle cx='260' cy='400' r='2.5'/%3E%3Ccircle cx='940' cy='400' r='2.5'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--teal-dark) 0%, var(--teal-deep) 100%);
  background-position: center, center, center, center;
  background-size: cover, cover, 100% 100%, cover;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  padding: 6rem 0;
  color: var(--text-white);
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.quiz-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 25%;
  background: var(--yellow-accent);
  transition: var(--transition);
}

.quiz-question-title {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
}

.quiz-options {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-option-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-option-btn:hover {
  background: var(--teal-primary);
  border-color: var(--yellow-accent);
  transform: translateX(4px);
}

/* COURSES SECTION */
.courses-section {
  background: #F1F5F9;
  color: var(--text-main);
  padding: 6rem 0;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid #CBD5E1;
  background: #FFFFFF;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--teal-primary);
  color: var(--text-white);
  border-color: var(--teal-primary);
  box-shadow: var(--shadow-md);
}

.course-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.course-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
}

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

.course-header {
  background: var(--teal-primary);
  color: var(--text-white);
  padding: 2rem;
}

.course-header-toefl {
  background: linear-gradient(135deg, var(--red-toefl), var(--red-toefl-dark));
}

.course-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.course-title {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 800;
}

.course-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-features-list {
  list-style: none;
  margin-bottom: 2rem;
}

.course-features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.check-icon {
  width: 20px;
  height: 20px;
  color: var(--teal-primary);
  flex-shrink: 0;
}

/* CONTACT & INSCRIPCIONES */
.contact-section {
  background: var(--teal-deep);
  color: var(--text-white);
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow-accent);
  flex-shrink: 0;
}

.contact-form-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--yellow-accent);
  box-shadow: 0 0 0 4px rgba(255, 202, 0, 0.25);
}

.form-input.is-invalid,
.form-select.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3) !important;
  background-color: #fff5f5 !important;
}

.form-error-msg {
  display: none;
  color: #ff9999;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.35rem;
  line-height: 1.2;
}

.form-error-msg.visible {
  display: block;
}

/* FAQ SECTION */
.faq-section {
  background: #FFFFFF;
  color: var(--text-main);
  padding: 6rem 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--teal-primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  background: #FFFFFF;
  border: none;
  text-align: left;
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.75rem 1.35rem;
  color: var(--text-muted);
  font-size: 1rem;
  display: none;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* FOOTER */
.footer {
  background: #04181F;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  justify-items: center;
  align-items: start;
  text-align: center;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.footer-col h4 {
  color: #FFFFFF;
  font-family: var(--font-brand);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;
}

.footer-col p {
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-bottom p + p {
  margin-top: 0.4rem;
  opacity: 0.85;
}

/* Scroll To Top Button (Siempre visible) */
.scroll-to-top {
  position: fixed;
  bottom: 5.75rem;
  right: 1.75rem;
  z-index: 200000 !important;
  width: 48px;
  height: 48px;
  background-color: var(--teal-deep);
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  transition: all 0.3s ease;
  outline: none;
}

.scroll-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

.scroll-to-top:hover {
  background-color: var(--teal-primary);
  color: var(--yellow-accent);
  border-color: var(--yellow-accent);
  transform: translateY(-4px) scale(1.1) !important;
  box-shadow: 0 10px 24px rgba(0, 146, 166, 0.5);
}

/* Floating WhatsApp Button (Siempre visible) */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200000 !important;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  transition: all 0.3s ease;
  text-decoration: none;
  opacity: 1 !important;
  visibility: visible !important;
  animation: whatsappPulse 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.7);
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ==========================================================================
   NUEVAS ANIMACIONES MODERNAS Y MICROINTERACCIONES
   ========================================================================== */

/* 1. SCROLL REVEAL ANIMATIONS */
.reveal,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-zoom {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-zoom {
  transform: scale(0.92) translateY(20px);
}

.reveal.revealed,
.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-zoom.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Retardo escalonado (Staggering) para elementos en cuadrículas */
.bento-card:nth-child(1) { transition-delay: 0.05s; }
.bento-card:nth-child(2) { transition-delay: 0.15s; }
.bento-card:nth-child(3) { transition-delay: 0.25s; }
.bento-card:nth-child(4) { transition-delay: 0.35s; }
.bento-card:nth-child(5) { transition-delay: 0.45s; }

.course-card:nth-child(1) { transition-delay: 0.05s; }
.course-card:nth-child(2) { transition-delay: 0.2s; }
.course-card:nth-child(3) { transition-delay: 0.35s; }

.branch-card:nth-child(1) { transition-delay: 0.1s; }
.branch-card:nth-child(2) { transition-delay: 0.25s; }

.faq-item:nth-child(1) { transition-delay: 0.05s; }
.faq-item:nth-child(2) { transition-delay: 0.15s; }
.faq-item:nth-child(3) { transition-delay: 0.25s; }

/* 2. STATS BAR SECTION (INSIDE HERO) */
.stats-bar-container {
  margin-top: 3.5rem;
  position: relative;
  z-index: 25;
}

.stats-container-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.6rem 2.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  transition: var(--transition);
}

.stats-container-card:hover {
  border-color: rgba(255, 202, 0, 0.5);
  box-shadow: 0 20px 48px rgba(0, 146, 166, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  font-size: 2.2rem;
  background: rgba(255, 255, 255, 0.1);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.stat-item:hover .stat-icon {
  transform: scale(1.15) rotate(6deg);
  background: var(--yellow-accent);
}

.stat-number {
  font-family: var(--font-brand);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--yellow-accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 45px;
  background: rgba(255, 255, 255, 0.15);
}

/* 3. FLOTADO SUTIL EN BADGES DE HERO */
.badge-yellow {
  animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {
  0%, 100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-7px) rotate(-1.5deg);
  }
}

/* 4. BRILLO INTERACTIVO (SHEEN) EN BOTONES */
.btn-red, .btn-yellow {
  position: relative;
  overflow: hidden;
}

.btn-red::before, .btn-yellow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  transition: 0.6s;
}

.btn-red:hover::before, .btn-yellow:hover::before {
  left: 140%;
}

/* 5. HOVER ELEVADO EN TARJETAS BENTO Y CURSOS */
.bento-card, .course-card, .branch-card, .contact-form-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.bento-card:hover, .course-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

/* 6. ROTACIÓN SUAVE DE FLECHAS EN FAQ */
.faq-question svg {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--teal-primary);
}

/* 7. TRANSICIÓN SUAVE EN TABS DE CURSOS */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.course-card.animate-tab {
  animation: fadeInScale 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 8. QUIZ STEP SLIDE ANIMATION */
.quiz-step {
  animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   HAMBURGER BUTTON & MOBILE DRAWER NAVIGATION
   ========================================================================== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 42px;
  height: 38px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 9px;
  cursor: pointer;
  z-index: 1010;
  transition: var(--transition);
}

.hamburger-btn:hover,
.hamburger-btn:focus {
  background: rgba(255, 255, 255, 0.22);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--yellow-accent);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE DRAWER OVERLAY */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* MOBILE DRAWER MENU */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85vw;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(170deg, #072731 0%, #004d58 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.25rem 2rem;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  overflow-y: auto;
  box-sizing: border-box;
  visibility: hidden;
  pointer-events: none;
}

.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-drawer-logo {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  font-size: 1.75rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-drawer-close:hover {
  background: var(--red-toefl);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.mobile-nav-link {
  display: block;
  color: var(--text-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(255, 202, 0, 0.15);
  color: var(--yellow-accent);
  border-color: var(--yellow-accent);
  transform: translateX(4px);
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-drawer-cta,
.mobile-drawer-wa {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (DESKTOP -> TABLET -> MOBILE)
   ========================================================================== */

@media (max-width: 992px) {
  .hamburger-btn {
    display: flex;
  }

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content {
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 360px;
  }

  .branches-grid,
  .contact-grid,
  .footer-grid,
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bento-card-large {
    grid-column: span 1 !important;
  }

  .branch-card {
    grid-template-columns: 1fr;
  }

  .branch-map-iframe {
    height: 250px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 1.25rem;
    max-width: 100%;
  }

  .hero-section {
    padding: 2.5rem 0 3.5rem;
    overflow: hidden;
  }

  .locations-main-title,
  .section-header h2 {
    font-size: 1.75rem;
  }

  .stats-container-card {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 1.25rem 0.85rem;
  }

  .stat-divider {
    display: none;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .quiz-card {
    padding: 1.5rem 1.2rem;
  }

  .quiz-container {
    padding: 1.5rem 1.25rem;
  }

  .quiz-options-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .contact-form-card {
    padding: 1.5rem 1.25rem;
  }

  .whatsapp-float {
    bottom: 1.25rem !important;
    right: 1.25rem !important;
    width: 54px !important;
    height: 54px !important;
    z-index: 200000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
  }

  .scroll-to-top {
    bottom: 5.25rem !important;
    right: 1.25rem !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 200000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 0.85rem;
  }

  .brand-logo-img {
    height: 42px;
  }

  .stats-container-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .badge-yellow,
  .banner-red-pill {
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
    max-width: 100%;
    word-break: break-word;
    box-sizing: border-box;
  }

  .hero-toefl-logo-img {
    max-width: 220px;
  }

  .tab-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .whatsapp-float {
    bottom: 1rem !important;
    right: 1rem !important;
    width: 50px !important;
    height: 50px !important;
    z-index: 200000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
  }

  .scroll-to-top {
    bottom: 4.6rem !important;
    right: 1rem !important;
    width: 42px !important;
    height: 42px !important;
    z-index: 200000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}