/* =========================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */

:root {
  /* Colores - Paleta del Logo (Verde natural) */
  --primary-color: #2d5016; /* Verde oscuro - Identidad del logo */
  --secondary-color: #4a7c2e; /* Verde medio - Complementario */
  --accent-color: #7cb342; /* Verde claro - Acento */
  --light-accent: #aed581; /* Verde muy claro */
  --dark-bg: #1a3010; /* Verde muy oscuro */
  --light-bg: #f5f9f0; /* Blanco con tinte verde */
  --text-dark: #1e293b; /* Texto oscuro */
  --text-light: #64748b; /* Texto gris */
  --white: #ffffff;
  --border-color: #d4e8c1;

  /* Tipografía */
  --font-display: "Playfair Display", serif;
  --font-body: "Lora", serif;
  --font-sans: "Poppins", sans-serif;

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Transiciones */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* =========================================
   RESET Y ESTILOS BASE
   ========================================= */

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

html {
  scroll-behavior: smooth;
}

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

::selection {
  background-color: var(--primary-color);
  color: var(--white);
}

/* =========================================
   CONTENEDOR PRINCIPAL
   ========================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
}

/* =========================================
   NAVEGACIÓN
   ========================================= */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 1rem 0;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-image {
  max-height: 4.5rem;
  width: auto;
  transition: var(--transition);
}

.logo-image:hover {
  transform: scale(1.05);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  gap: 5px;
  width: 36px;
  height: 36px;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
  display: block;
}

/* Animación X al abrir */
.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* =========================================
   SECCIÓN HERO
   ========================================= */

.hero {
  margin-top: 80px;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--light-bg) 0%, #e8f5e0 100%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.geometric-decoration {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  opacity: 0.1;
  animation: float 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(50px);
  }
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem clamp(1rem, 5vw, 2rem) 5rem;
  text-align: center;
}

.hero-text {
  animation: fadeInUp 0.9s ease-out both;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: var(--white);
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--light-accent), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--spacing-xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 3;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(20px);
  }
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  position: relative;
}

.mouse::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1px;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* =========================================
   SECCIÓN HEADER (Título de sección)
   ========================================= */

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =========================================
   SECCIÓN FEATURES
   ========================================= */

.features {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: #fafdf7;
}

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

/* ── FEATURE CARD: estilo revista ── */
.feature-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 12px rgba(45, 80, 22, 0.07);
  border: 1px solid #e2eed6;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(45, 80, 22, 0.13);
  border-color: var(--accent-color);
}

/* Imagen: altura y ancho según la imagen original */
.feature-card .feature-img-wrap {
  width: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--light-bg), #e8f5e0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card .feature-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.feature-card:hover .feature-image {
  transform: none;
  filter: none;
}

.feature-card .feature-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
}

.feature-card p {
  font-family: var(--font-body);
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0;
}

/* =========================================
   FEATURE CARDS CON ICONOS
   (Comunidad Global, Apoyo Continuo, Acceso de por Vida)
   ========================================= */

/* Cards con icono: la imagen ocupa toda el área */
.feature-card-icon .feature-img-wrap {
  background: linear-gradient(135deg, #f5f9f0 0%, #e8f5e0 100%);
  padding: 0;
  overflow: hidden;
}

.feature-card-icon .icon-image {
  width: auto;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  max-width: none;
  max-height: none;
  padding: 2rem;
  box-sizing: border-box;
  display: block;
  margin: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.6s ease;
}

.feature-card-icon:hover .icon-image {
  transform: none;
  filter: none;
}

.feature-card-icon:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(45, 80, 22, 0.16);
}

/* =========================================
   SECCIÓN SERVICIOS
   ========================================= */

.servicios {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--light-bg);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

/* ── SERVICIO CARD: estilo revista ── */
.servicio-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 12px rgba(45, 80, 22, 0.07);
  border: 1px solid #e2eed6;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(45, 80, 22, 0.14);
  border-color: var(--accent-color);
}

.servicio-card .servicio-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--light-bg), #e8f5e0);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--primary-color);
  border-radius: 16px 16px 0 0;
}

.servicio-card .servicio-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.servicio-card:hover .servicio-image {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Cards con icono: imagen llena todo el espacio */
.servicio-card-icon .servicio-img-wrap {
  padding: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, var(--light-bg) 0%, #e8f5e0 100%);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px 16px 0 0;
}

.servicio-card-icon .servicio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.servicio-card .servicio-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.servicio-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.4rem;
}

.servicio-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
}

.servicio-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.servicio-card p {
  font-family: var(--font-body);
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.2rem;
}

.link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-sans);
  display: inline-block;
  transition: var(--transition);
}

.link:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

/* =========================================
   SECCIÓN CURSOS
   ========================================= */

.cursos {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--white);
}

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

/* ── CURSO CARD: estilo revista ── */
.curso-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid #e2eed6;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 12px rgba(45, 80, 22, 0.07);
  position: relative;
}

.curso-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(45, 80, 22, 0.14);
  border-color: var(--accent-color);
}

.curso-card .curso-img-wrap {
  width: 100%;
  height: auto;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--light-bg), #e8f5e0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.curso-card .curso-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 300px;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Para cursos con imágenes que no llenan bien - usar contain */
.curso-card.curso-contain .curso-img-wrap {
  aspect-ratio: auto;
  border-radius: 16px 16px 0 0;
  padding: 0;
  margin: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
}

.curso-card.curso-contain .curso-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.curso-card:hover .curso-image {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.curso-card .curso-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}

.curso-card:hover .curso-body {
  border-top-color: var(--accent-color);
}

.curso-card.destacado {
  border-color: var(--primary-color);
  border-width: 2px;
}

.curso-card.destacado .curso-body {
  background: #f7fbf2;
  border-top-color: var(--primary-color);
}

.curso-card.destacado .curso-img-wrap {
  border-bottom: 3px solid var(--primary-color);
}

/* Badge "Más popular" — pegado sobre la imagen */
.popular-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary-color);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Nivel — etiqueta pequeña sobre el título */
.curso-level {
  display: inline-block;
  background: var(--light-bg);
  color: var(--secondary-color);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-family: var(--font-sans);
  width: fit-content;
  letter-spacing: 0.04em;
}

.curso-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.curso-descripcion {
  font-family: var(--font-body);
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.75;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.curso-features {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.feature {
  display: flex;
  align-items: center;
  color: #4a5568;
  font-size: 0.85rem;
  font-family: var(--font-sans);
}

.feature::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: var(--accent-color);
  border-radius: 50%;
  margin-right: 0.6rem;
}

.curso-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e2eed6;
  margin-top: auto;
}

.precio {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* =========================================
   SECCIÓN PROFESORADO
   ========================================= */

.profesorado {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--light-bg);
}

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

/* ── PROFESOR CARD: estilo revista ── */
.profesor-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 12px rgba(45, 80, 22, 0.07);
  border: 1px solid #e2eed6;
  text-align: left;
}

.profesor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(45, 80, 22, 0.14);
  border-color: var(--accent-color);
}

.profesor-card .profesor-img-wrap {
  width: 100%;
  height: auto;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--light-bg), #e8f5e0);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--primary-color);
}

.profesor-card .profesor-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.profesor-card:hover .profesor-image {
  transform: none;
  filter: none;
}

.profesor-card .profesor-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profesor-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.profesor-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.2;
}

.profesor-especialidad {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0;
}

.profesor-bio {
  font-family: var(--font-body);
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0.3rem 0 0.6rem;
}

.profesor-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.skill {
  background: var(--light-bg);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

/* =========================================
   SECCIÓN TESTIMONIOS
   ========================================= */

.testimonios {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--white);
}

.testimonios-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.testimonio-card {
  background: linear-gradient(135deg, var(--light-bg) 0%, #e8f5e0 100%);
  border-radius: 15px;
  padding: var(--spacing-xl);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonio-card:hover {
  box-shadow: 0 15px 40px rgba(45, 80, 22, 0.13);
  transform: translateY(-5px);
}

.testimonio-text {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
  font-size: 1rem;
}

.testimonio-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.3;
  line-height: 0;
  vertical-align: -0.45em;
  margin-right: 5px;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.autor-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-family: var(--font-sans);
  flex-shrink: 0;
}

.autor-nombre {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-family: var(--font-sans);
}

.autor-titulo {
  font-size: 0.85rem;
  color: var(--text-light);
  font-family: var(--font-sans);
}

/* =========================================
   SECCIÓN CTA
   ========================================= */

.cta-section {
  padding: 1.8rem 0;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
  color: var(--white);
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.92);
  margin: 0;
}

.btn-large {
  font-size: 0.82rem;
  padding: 10px 28px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.65);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-large:hover {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* =========================================
   SECCIÓN CONTACTO — REESTRUCTURADA
   ========================================= */

.contacto {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--white);
}

/* ───────────────────────────────────────
   1. NUESTRAS SEDES (arriba)
   ─────────────────────────────────────── */

.contacto-sedes-section {
  margin-bottom: 3rem;
}

.contacto-section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.contacto-sedes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.contacto-sede-item {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition-smooth);
}

.contacto-sede-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(45, 80, 22, 0.1);
}

.contacto-sede-name {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary-color);
  margin: 0 0 0.5rem 0;
}

.contacto-sede-addr {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* ───────────────────────────────────────
   2. MAPA CON TABS (debajo de sedes)
   ─────────────────────────────────────── */

.sedes-tabs-wrap {
  margin-bottom: 3rem;
}

.sedes-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 2px solid var(--border-color);
}

.sede-tab {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.75rem 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.sede-tab:hover {
  color: var(--primary-color);
}

.sede-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.sede-info-bar {
  background: var(--light-bg);
  padding: 0.65rem 1.2rem;
  border-left: 3px solid var(--primary-color);
  margin-bottom: 0;
}

.sede-info-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-light);
}

.sede-map-single {
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(45, 80, 22, 0.1);
}

.sede-map-single iframe {
  display: block;
  height: 380px;
  border-radius: 0;
}

@media (max-width: 640px) {
  .sedes-tabs { 
    overflow-x: auto; 
  }
  .sede-tab { 
    padding: 0.6rem 1rem; 
    font-size: 0.8rem; 
  }
  .sede-map-single iframe { 
    height: 260px; 
  }
}

/* ───────────────────────────────────────
   BLOQUE ÚNICO: Sedes + Datos + Formulario
   ─────────────────────────────────────── */

.contacto-block {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(45, 80, 22, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contacto-sedes-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacto-sedes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contacto-sede-item {
  background: var(--white);
  padding: 1.2rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition-smooth);
}

.contacto-sede-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.08);
}

.contacto-sede-name {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary-color);
  margin: 0 0 0.4rem 0;
}

.contacto-sede-addr {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

.contacto-info-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-color);
}

.contacto-form-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-color);
}

.contacto-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary-color);
  margin: 0;
}

.contacto-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: start;
}

.contacto-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding-top: 0.1rem;
}

.contacto-value {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.contacto-value a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.contacto-value a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.social-link {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  line-height: 1;
}

.social-link svg {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  pointer-events: none;
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

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

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-input:hover {
  border-color: var(--accent-color);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d5016' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 36px;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-body);
  line-height: 1.4;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--primary-color);
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

input[type="checkbox"]:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

input[type="checkbox"]:checked {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: var(--white);
  font-weight: bold;
  font-size: 11px;
}

.form-message {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 8px;
  display: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  animation: slideIn 0.3s ease-out;
}

.form-message.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
  border: 2px solid #6ee7b7;
}

.form-message.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 2px solid #fecaca;
}

/* =========================================
   BOTONES
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.3);
}

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

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

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
  letter-spacing: 0;
}

.btn-block {
  width: 100%;
}

/* =========================================
   PIE DE PÁGINA
   ========================================= */

.footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.footer-section p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent-color);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  padding: 10px 20px;
  background: var(--accent-color);
  color: var(--dark-bg);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--primary-color);
  color: var(--white);
}

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

.footer-bottom p {
  margin-bottom: var(--spacing-sm);
}

/* =========================================
   ANIMACIONES AOS (Scroll Reveal)
   ========================================= */

[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
}

[data-aos="fade-left"] {
  opacity: 0;
  transform: translateX(-30px);
}

[data-aos="fade-right"] {
  opacity: 0;
  transform: translateX(30px);
}

[data-aos="zoom-in"] {
  opacity: 0;
  transform: scale(0.9);
}

[data-aos].aos-animate {
  opacity: 1 !important;
  transform: none !important;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* ── Tablet pequeño: 600px - 768px ── */
@media (min-width: 600px) and (max-width: 768px) {
  /* NAVBAR */
  .navbar {
    padding: 1.2rem 0;
  }

  .navbar-container {
    padding: 0 var(--spacing-lg);
  }

  .logo-image {
    max-height: 5rem;
  }

  .nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    gap: 0.5rem;
  }

  .navbar-menu {
    gap: 2rem;
  }

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

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

  .testimonios-slider {
    grid-template-columns: 1fr;
  }

  /* CURSOS - Texto más grande */
  .curso-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
  }

  .curso-level {
    font-size: 0.92rem;
    padding: 5px 14px;
    margin-bottom: 0.8rem;
  }

  .curso-descripcion {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
  }

  .feature {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .feature::before {
    width: 6px;
    height: 6px;
    margin-right: 0.8rem;
  }

  .precio {
    font-size: 2rem;
  }

  .curso-footer {
    padding-top: 1.2rem;
    margin-top: auto;
  }

  /* PROFESORES */
  .profesor-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    line-height: 1.2;
  }

  .profesor-especialidad {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }

  .profesor-bio {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
  }

  .skill {
    font-size: 0.9rem;
    padding: 5px 14px;
    margin-bottom: 0.4rem;
  }

  /* SERVICIOS */
  .servicio-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
  }

  .servicio-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
  }

  .servicio-title {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }

  /* FEATURES */
  .feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    line-height: 1.2;
  }

  .feature-card p {
    font-size: 1rem;
    line-height: 1.8;
  }

  /* Section headers */
  .section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .section-header p {
    font-size: 1.1rem;
    line-height: 1.8;
  }

  /* Padding cards */
  .curso-card .curso-body {
    padding: 1.8rem;
  }

  .profesor-card .profesor-body {
    padding: 1.8rem;
  }

  .servicio-card .servicio-body {
    padding: 1.8rem;
  }

  .feature-card .feature-body {
    padding: 1.8rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .footer-section p,
  .footer-section a {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* Contacto */
  .contacto-sedes-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .contacto-sede-name {
    font-size: 0.9rem;
  }

  .contacto-sede-addr {
    font-size: 1rem;
    line-height: 1.6;
  }

  .contacto-section-title {
    font-size: 1.35rem;
    margin-bottom: 1.2rem;
  }

  .contacto-value {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .form-input {
    font-size: 1.05rem;
    padding: 12px 14px;
  }

  textarea.form-input {
    min-height: 120px;
  }

  /* Testimonios */
  .testimonio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
  }

  .autor-nombre {
    font-size: 1.05rem;
  }

  .autor-titulo {
    font-size: 0.95rem;
  }

  /* CTA */
  .cta-text {
    font-size: 1.3rem;
  }

  .btn {
    font-size: 1rem;
    padding: 12px 24px;
  }

  /* Hero */
  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }
}

/* ── Tablet: 769px - 1024px ── */
@media (min-width: 769px) and (max-width: 1024px) {
  /* NAVBAR */
  .navbar {
    padding: 1.3rem 0;
  }

  .logo-image {
    max-height: 5.5rem;
  }

  .nav-link {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .navbar-menu {
    gap: 2.5rem;
  }

  /* Grid: 2 columnas */
  .features-grid,
  .servicios-grid,
  .cursos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  /* CURSOS - Texto MUCHO más grande */
  .curso-card h3 {
    font-size: 1.85rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .curso-level {
    font-size: 1.05rem;
    padding: 6px 16px;
    margin-bottom: 1rem;
  }

  .curso-descripcion {
    font-size: 1.25rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
  }

  .feature {
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
    line-height: 1.8;
  }

  .feature::before {
    width: 7px;
    height: 7px;
    margin-right: 1rem;
  }

  .curso-footer {
    padding-top: 1.5rem;
    margin-top: auto;
    gap: 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .precio {
    font-size: 2.5rem;
    font-weight: 700;
  }

  /* PROFESORES - Texto MUCHO más grande */
  .profesor-card h3 {
    font-size: 1.85rem;
    margin-bottom: 0.7rem;
    line-height: 1.2;
  }

  .profesor-especialidad {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.08em;
  }

  .profesor-bio {
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 1rem;
  }

  .skill {
    font-size: 1.05rem;
    padding: 6px 16px;
    margin-bottom: 0.6rem;
  }

  /* SERVICIOS - Texto MUCHO más grande */
  .servicio-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .servicio-card p {
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
  }

  .servicio-title {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .link {
    font-size: 1.05rem;
  }

  /* FEATURES - Texto MUCHO más grande */
  .feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
  }

  .feature-card p {
    font-size: 1.15rem;
    line-height: 1.9;
  }

  /* Section headers */
  .section-header h2 {
    font-size: 2.6rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
  }

  .section-header p {
    font-size: 1.25rem;
    line-height: 1.9;
  }

  /* Padding cards - MÁS GRANDE */
  .curso-card .curso-body {
    padding: 2.2rem;
  }

  .profesor-card .profesor-body {
    padding: 2.2rem;
  }

  .servicio-card .servicio-body {
    padding: 2.2rem;
  }

  .feature-card .feature-body {
    padding: 2.2rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .footer-section h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .footer-section p,
  .footer-section a {
    font-size: 1.1rem;
    line-height: 1.8;
  }

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

  /* Contacto */
  .contacto-sedes-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .contacto-sede-name {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  .contacto-sede-addr {
    font-size: 1.1rem;
    line-height: 1.8;
  }

  .contacto-section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .contacto-label {
    font-size: 0.9rem;
  }

  .contacto-value {
    font-size: 1.15rem;
    line-height: 1.8;
  }

  /* Form */
  .form-input {
    font-size: 1.15rem;
    padding: 14px 18px;
  }

  textarea.form-input {
    min-height: 140px;
    font-size: 1.1rem;
  }

  /* Testimonios */
  .testimonio-text {
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
  }

  .autor-nombre {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
  }

  .autor-titulo {
    font-size: 1.05rem;
  }

  /* CTA */
  .cta-text {
    font-size: 1.6rem;
  }

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

  .btn-large {
    font-size: 1rem;
    padding: 12px 32px;
  }
}

/* ── Tablet: ≤1024px (fallback) ── */
@media (max-width: 1024px) {
  .features-grid,
  .servicios-grid,
  .cursos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacto-bottom-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contacto-form {
    position: static;
  }

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

/* ── Mobile landscape / tablet pequeño: ≤768px ── */
@media (max-width: 768px) {
  /* Navbar */
  .hamburger {
    display: flex;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 0;
    gap: 0;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-radius: 0 0 16px 16px;
    border-top: 3px solid var(--primary-color);
    z-index: 999;
    overflow: hidden;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-menu li {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: background 0.2s, color 0.2s;
  }

  .nav-link:hover {
    background: var(--light-bg);
    color: var(--primary-color);
  }

  .nav-link::after {
    display: none;
  }

  .navbar-menu li:last-child .nav-link {
    border-bottom: none;
  }

  /* Hero */
  .hero {
    margin-top: 68px;
  }

  .hero-content {
    padding: 3.5rem 1.25rem 3.5rem;
  }

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

  .slider-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }

  /* Grids → 1 columna */
  .features-grid,
  .servicios-grid,
  .cursos-grid,
  .profesores-grid,
  .testimonios-slider {
    grid-template-columns: 1fr;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 1.8rem;
  }

  /* Contacto */
  .contacto-bottom-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contacto-form {
    padding: var(--spacing-lg);
  }

  .contacto-sedes-list {
    grid-template-columns: 1fr;
  }

  .sede-map-single iframe {
    height: 300px;
  }

  /* CTA */
  .cta-content h2 {
    font-size: 1.8rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  /* Secciones */
  .features,
  .servicios,
  .cursos,
  .profesorado,
  .testimonios,
  .contacto {
    padding: 2.5rem 0;
  }

  /* Cards icono en tablet */
  .feature-card-icon .icon-image {
    padding: 1.5rem;
  }

  .servicio-card .servicio-img-wrap {
    aspect-ratio: 16 / 10;
  }
  
  .servicio-card-icon .servicio-img-wrap {
    padding: 0;
    aspect-ratio: 3 / 2;
  }

  /* Texto más grande en tablet */
  .curso-card h3 {
    font-size: 1.35rem;
  }

  .curso-level {
    font-size: 0.85rem;
  }

  .curso-descripcion {
    font-size: 1rem;
  }

  .feature {
    font-size: 0.95rem;
  }

  .precio {
    font-size: 1.85rem;
  }

  .profesor-card h3 {
    font-size: 1.4rem;
  }

  .profesor-especialidad {
    font-size: 0.85rem;
  }

  .profesor-bio {
    font-size: 0.98rem;
  }

  .skill {
    font-size: 0.85rem;
  }
}

/* ── Mobile: ≤480px ── */
@media (max-width: 480px) {
  /* Hero */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }

  .slider-dots {
    bottom: 14px;
  }

  /* Grids */
  .features-grid,
  .servicios-grid,
  .cursos-grid,
  .profesores-grid,
  .testimonios-slider,
  .footer-content {
    grid-template-columns: 1fr;
  }

  /* Secciones */
  .features,
  .servicios,
  .cursos,
  .profesorado,
  .testimonios,
  .contacto {
    padding: 2rem 0;
  }

  .section-header {
    margin-bottom: 1.4rem;
  }

  /* Contacto */
  .contacto-sedes-section {
    margin-bottom: 2rem;
  }

  .contacto-sedes-list {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .contacto-sede-item {
    padding: 1.2rem;
  }

  .contacto-bottom-wrapper {
    gap: 1.5rem;
  }

  .contacto-form {
    padding: var(--spacing-lg);
  }

  .contacto-row {
    grid-template-columns: 70px 1fr;
  }

  .contacto-section-title {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
  }

  /* Mapa */
  .sede-map-single iframe {
    height: 250px;
  }

  /* Footer */
  .footer {
    padding: 2rem 0 1.2rem;
  }

  .footer-content {
    gap: 1.2rem;
  }

  /* Precio cursos */
  .precio {
    font-size: 1.3rem;
  }

  /* Info items contacto */
  .info-item {
    padding: 0.8rem 0;
  }

  /* Social links */
  .social-links {
    gap: 0.5rem;
  }

  /* Cards icono en móvil */
  .feature-card-icon .icon-image {
    padding: 1rem;
  }

  .servicio-card .servicio-img-wrap {
    aspect-ratio: 16 / 12;
  }
  
  .servicio-card-icon .servicio-img-wrap {
    padding: 0;
    aspect-ratio: 3 / 2;
  }
}

/* =========================================
   HERO SLIDER
   ========================================= */

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

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

/* Flechas */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: white;
  font-size: 1.3rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.slider-btn:hover {
  background: rgba(45, 80, 22, 0.7);
  border-color: var(--accent-color);
  transform: translateY(-50%) scale(1.08);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

/* Puntos indicadores */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
  touch-action: manipulation;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.dot.active {
  background: white;
  border-color: white;
  transform: scale(1.3);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

/* CONTACTO - MAPA DE GOOGLE MAPS */
.map-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
  display: block;
}

.map-container:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.map-section {
  flex: 1;
  min-width: 300px;
}

.map-section h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.3rem;
}

/* LAZY LOADING ANIMATION */
img[loading="lazy"] {
  opacity: 0;
  animation: fadeInImage 0.5s ease-in-out forwards;
}

@keyframes fadeInImage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

picture {
  display: block;
}

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

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

@media (prefers-color-scheme: dark) {
  .feature-card:hover .feature-image,
  .servicio-card:hover .servicio-image,
  .curso-card:hover .curso-image,
  .profesor-card:hover .profesor-image {
    opacity: 0.85;
  }
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.images-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.images-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.image-overlay {
  position: relative;
  overflow: hidden;
}

.image-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 80, 22, 0.3);
  opacity: 0;
  transition: var(--transition-smooth);
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

img[src$=".png"],
img[src$=".jpg"],
img[src$=".jpeg"],
img[src$=".gif"],
img[src$=".webp"] {
  display: block;
}

.testimonio-foto {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-style: italic;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}

@media print {
  .map-container {
    display: none;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}

/* =========================================
   PÁGINAS LEGALES
   ========================================= */

.legal-hero {
  background: linear-gradient(
    135deg,
    var(--dark-bg) 0%,
    var(--primary-color) 100%
  );
  padding: 6rem 0 3.5rem;
  margin-top: 80px;
  text-align: center;
  color: var(--white);
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
  color: var(--white);
}
.legal-breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.5rem;
}
.legal-breadcrumb a {
  color: var(--light-accent);
  text-decoration: none;
}
.legal-breadcrumb a:hover {
  text-decoration: underline;
}
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem clamp(1rem, 5vw, 2rem) 5rem;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border-color);
}
.legal-content h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.5rem 0 0.4rem;
}
.legal-content p {
  font-family: var(--font-body);
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content ul li {
  font-family: var(--font-body);
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.legal-content a {
  color: var(--secondary-color);
  text-decoration: underline;
}
.legal-content .legal-intro {
  background: var(--light-bg);
  border-left: 4px solid var(--primary-color);
  padding: 1.2rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.7;
}
.legal-content .legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.legal-content .legal-table th {
  background: var(--light-bg);
  color: var(--primary-color);
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 0.7rem 1rem;
  text-align: left;
  border: 1px solid var(--border-color);
}
.legal-content .legal-table td {
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-color);
  color: var(--text-light);
  vertical-align: top;
}
@media (max-width: 768px) {
  .legal-hero {
    padding: 5rem 1rem 2.5rem;
  }
}