/* ── Idiomas & Preparación Page ── */

.idiomas-hero {
  background: var(--gradient-hero);
  padding: calc(var(--nav-height) + var(--sp-20)) 0 var(--sp-20);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.idiomas-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.idiomas-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.idiomas-hero h1 {
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: var(--fw-black);
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
}

.idiomas-hero p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  line-height: var(--lh-relaxed);
}

/* ── English Section ── */
.english-section {
  padding: var(--sp-24) 0;
  background: var(--bg-white);
}

.english-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-16);
  align-items: start;
  margin-top: var(--sp-12);
}

.idiomas-progression .english-grid {
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  margin-top: 0;
}

.idiomas-progression-content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.idiomas-progression .section-header-left {
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--sp-8);
}

.idiomas-progression .section-header-left::after {
  margin-left: auto;
}

.idiomas-progression .levels-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto;
}

.idiomas-progression .feature-photo-single {
  width: min(1120px, 100%);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1.35rem);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,246,255,0.84)),
    radial-gradient(circle at 15% 20%, rgba(59,130,246,0.18), transparent 26rem);
  box-shadow: 0 28px 80px rgba(10, 31, 68, 0.15);
}

.idiomas-progression .feature-photo-single img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 720px;
  object-fit: contain;
  border-radius: calc(var(--radius-2xl) - 0.45rem);
  box-shadow: 0 16px 42px rgba(10, 31, 68, 0.10);
}

.english-intro h2 {
  font-size: clamp(1.75rem, 3vw, var(--text-4xl));
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: var(--sp-4);
}

.english-intro > p {
  font-size: var(--text-lg);
  color: var(--text-medium);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-8);
}

/* Levels */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.level-card {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-xl);
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  transition: all var(--transition-base);
}

.level-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.level-elemental { border-color: #E5E7EB; background: var(--bg-light); }
.level-basico    { border-color: rgba(245, 158, 11, 0.3); background: #FFFBEB; }
.level-intermedio{ border-color: rgba(16, 185, 129, 0.3); background: #F0FDF4; }
.level-avanzado  { border-color: rgba(59, 130, 246, 0.3); background: #EFF6FF; }

.level-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.level-elemental .level-dot  { background: #9CA3AF; }
.level-basico    .level-dot  { background: #F59E0B; }
.level-intermedio .level-dot { background: #10B981; }
.level-avanzado  .level-dot  { background: #3B82F6; }

.level-name {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
}

/* Differentiators */
.diff-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.diff-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  border: 1px solid var(--bg-subtle);
  transition: all var(--transition-base);
}

.diff-item:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.diff-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  color: white;
  font-weight: var(--fw-black);
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-accent);
}

.diff-body h4 {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
  margin-bottom: var(--sp-1);
}

.diff-body p {
  font-size: var(--text-sm);
  color: var(--text-medium);
  line-height: var(--lh-relaxed);
}

/* ── English Section Photo ── */
.english-photo-wrap {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  height: 260px;
  position: relative;
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-lg);
}

.english-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.english-photo-wrap:hover img {
  transform: scale(1.04);
}

.english-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,31,68,0.35) 0%, rgba(59,130,246,0.2) 100%);
}

.english-photo-badge {
  position: absolute;
  bottom: var(--sp-4);
  left: var(--sp-4);
  right: var(--sp-4);
  z-index: 2;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  box-shadow: var(--shadow-md);
}

.english-photo-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.english-photo-badge-text strong {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

.english-photo-badge-text span {
  font-size: var(--text-xs);
  color: var(--text-light);
}

/* ── Native Clinics Highlight ── */
.clinics-highlight {
  background: var(--gradient-primary);
  border-radius: var(--radius-2xl);
  padding: var(--sp-8);
  color: white;
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  margin-top: var(--sp-4);
}

.clinics-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.clinics-body h4 {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-2);
}

.clinics-body p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  line-height: var(--lh-relaxed);
}

.clinics-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(59,130,246,0.3);
  border: 1px solid rgba(59,130,246,0.5);
  color: #93C5FD;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  margin-top: var(--sp-3);
}

/* ── International Projection ── */
.international-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: var(--bg-light);
  border: 1px solid var(--bg-subtle);
  border-radius: var(--radius-xl);
  margin-top: var(--sp-6);
}

.intl-icon {
  font-size: 2rem;
}

.intl-text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
}

.intl-text span {
  font-size: var(--text-sm);
  color: var(--text-light);
}

/* ── Preparación Académica ── */
.preparacion-section {
  padding: var(--sp-24) 0;
  background: var(--bg-light);
}

.prep-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

.prep-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--sp-8);
  border: 1px solid var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.prep-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
}

.prep-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.prep-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.prep-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.prep-card p {
  font-size: var(--text-base);
  color: var(--text-medium);
  line-height: var(--lh-relaxed);
  flex: 1;
}

/* ── Idiomas CTA ── */
.idiomas-cta {
  padding: var(--sp-24) 0;
  background: white;
}

.idiomas-cta-inner {
  background: var(--bg-light);
  border-radius: var(--radius-3xl);
  padding: var(--sp-12);
  max-width: 900px;
  margin: 0 auto;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  align-items: center;
}

.cta-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  width: 100%;
}

.cta-divider::before,
.cta-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bg-subtle);
}

@media (max-width: 900px) {
  .idiomas-progression .levels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .idiomas-progression .levels-grid {
    grid-template-columns: 1fr;
  }

  .idiomas-progression .feature-photo-single {
    padding: var(--sp-2);
    border-radius: var(--radius-xl);
  }

  .idiomas-progression .feature-photo-single img {
    border-radius: calc(var(--radius-xl) - 0.25rem);
  }
}
