/*
Theme Name: HLA Theme
Theme URI: https://hilanguages.com
Author: AGOTECH SpA
Author URI: https://agotech.cl
Description: Tema a medida para Hi Languages Academy (academia de inglés). Portado del mockup estático (index.html, cursos.html, curso-detalle.html) al Loop de WordPress con ACF free.
Version: 1.0.0
License: proprietary
Text Domain: hla-theme
*/

/* ==========================================================================
   NOTE: everything below this line is the design system ported as-is from
   the static mockup (styles.css + pages.css). Asset URLs point to
   assets/<file> — relative to this theme's root, resolved via the enqueued
   stylesheet URL in functions.php. Section markers below preserve the
   original file boundaries for easier diffing against the mockup.
   ========================================================================== */

/* ===== from styles.css ===== */
/* ==========================================================================
   Hi Languages Academy — Design System
   ========================================================================== */

:root {
  /* Brand */
  --navy:        #0a1a3a;
  --navy-700:    #142852;
  --navy-600:    #1d3768;
  --navy-500:    #294a85;
  --amber:       #f59e0b;
  --amber-600:   #d97706;
  --amber-100:   #fef3c7;
  --amber-50:    #fffbeb;

  /* Neutrals */
  --ink:         #0f172a;
  --ink-2:       #1f2937;
  --gray-900:    #111827;
  --gray-700:    #374151;
  --gray-600:    #4b5563;
  --gray-500:    #6b7280;
  --gray-400:    #9ca3af;
  --gray-300:    #d1d5db;
  --gray-200:    #e5e7eb;
  --gray-100:    #f3f4f6;
  --gray-50:     #f9fafb;
  --white:       #ffffff;

  /* Semantic */
  --success:     #16a34a;
  --success-50:  #f0fdf4;
  --info:        #2563eb;
  --warn:        #d97706;
  --warn-50:     #fffbeb;

  /* Radii / shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,.06);
  --shadow-sm: 0 2px 6px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 8px 24px -8px rgba(15,23,42,.18), 0 2px 4px rgba(15,23,42,.05);
  --shadow-lg: 0 20px 48px -16px rgba(15,23,42,.25), 0 4px 8px rgba(15,23,42,.06);
  --shadow-amber: 0 12px 28px -12px rgba(245,158,11,.55);

  /* Layout */
  --container: 1240px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 4.6vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
p { margin: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header.is-hero {
  position: fixed;              /* fixed from the start: no absolute→fixed swap (that reappear was half the "jump") */
  width: 100%;
  border-bottom: 1px solid transparent;
  color: white;
  /* Marked, uniform navy tint from the start — no see-through / uneven right side before scroll */
  background: rgba(10,26,58,.55);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 6px 24px -14px rgba(10,26,58,0);   /* invisible until scrolled, then fades in */
  transition: box-shadow .35s ease;
}
/* Solid navy layer that cross-fades in on scroll. Opacity animates smoothly, whereas a
   gradient→solid-color background swap cannot — that hard swap is what felt abrupt. */
.site-header.is-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10,26,58,.92);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.site-header.is-hero[data-scrolled="true"]::before { opacity: 1; }
.site-header.is-hero[data-scrolled="true"] {
  box-shadow: 0 6px 24px -14px rgba(10,26,58,.5);
}
.site-header.is-hero[data-scrolled="true"] .nav-link,
.site-header.is-hero[data-scrolled="true"] .btn-ghost { color: rgba(255,255,255,.88); }
.site-header.is-hero[data-scrolled="true"] .nav-link:hover,
.site-header.is-hero[data-scrolled="true"] .btn-ghost:hover { color: white; }
/* Default hero (unscrolled): all text + ghost button readable on dark */
.site-header.is-hero:not([data-scrolled="true"]) .nav-link { color: rgba(255,255,255,.88); }
.site-header.is-hero:not([data-scrolled="true"]) .nav-link:hover { color: white; }
.site-header.is-hero:not([data-scrolled="true"]) .btn-ghost { color: rgba(255,255,255,.92); }
.site-header.is-hero:not([data-scrolled="true"]) .btn-ghost:hover { background: rgba(255,255,255,.12); color: white; }

.nav {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  justify-self: start;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  justify-self: center;
  list-style: none;
  padding: 0;
  flex-wrap: nowrap;
}
.nav-logo img { height: 52px; width: auto; display: block; }
/* Default: navy-on-transparent logo */
.nav-logo img.logo-inverted { display: none; }
/* Over the dark hero (transparent at top OR navy when scrolled): use the white variant */
.site-header.is-hero .nav-logo img.logo-default { display: none; }
.site-header.is-hero .nav-logo img.logo-inverted { display: block; }

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 2px;
  position: relative;
  transition: color .15s ease;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: -2px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--navy); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.nav-actions .btn-primary { transition: transform .15s ease, box-shadow .18s ease, background .15s ease, color .15s ease; }
.nav-actions .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(245, 158, 11, .65); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  color: inherit;
  border-radius: var(--r-full);
  transition: background .15s ease;
  justify-self: end;
}
.nav-toggle:hover { background: rgba(15,23,42,.06); }
.site-header.is-hero:not([data-scrolled="true"]) .nav-toggle:hover { background: rgba(255,255,255,.12); }
.nav-mobile-cta { display: none; }
.cart-button {
  position: relative;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit;
  transition: background .15s ease;
}
.cart-button:hover { background: rgba(15,23,42,.06); }
.site-header.is-hero:not([data-scrolled="true"]) .cart-button { color: white; }
.site-header.is-hero:not([data-scrolled="true"]) .cart-button:hover { background: rgba(255,255,255,.12); }
.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  background: var(--amber); color: var(--navy);
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--r-full);
  transition: all .18s ease;
  white-space: nowrap;
  min-height: 44px;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  box-shadow: var(--shadow-amber);
}
.btn-primary:hover { background: var(--amber-600); color: var(--navy); transform: translateY(-1px); }
.btn-navy {
  background: var(--navy);
  color: white;
}
.btn-navy:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-outline-light {
  background: transparent;
  color: white;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6);
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px white; }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: white; }
.btn-ghost { color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-lg { padding: 16px 28px; font-size: 16px; min-height: 52px; border-radius: var(--r-full); }
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: 36px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0 12px; gap: 6px; }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.label { font-size: 13.5px; font-weight: 500; color: var(--gray-700); }
.input, .select, .textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--gray-900);
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 12px 14px;
  min-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: 0;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(10,26,58,.08);
}
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23374151' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.checkbox { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--gray-700); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--navy); margin-top: 2px; }

/* ==========================================================================
   Cards / generic surfaces
   ========================================================================== */
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gray-300); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--gray-100); color: var(--gray-700);
  line-height: 1;
}
.badge-navy { background: var(--navy); color: white; }
.badge-amber { background: var(--amber-100); color: var(--amber-600); }
.badge-level { background: var(--gray-100); color: var(--navy); }
.badge-success { background: var(--success-50); color: var(--success); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-info { background: #eff6ff; color: var(--info); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: white;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); color: white; border-color: var(--navy); }

/* ==========================================================================
   Section primitives
   ========================================================================== */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 14px;
}
.section-title { max-width: 640px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--gray-600); font-size: 17px; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 48px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 118px 0 78px;
  color: white;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('assets/hero.png');
  background-size: cover;
  background-position: center right;
  z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(10,26,58,.92) 0%, rgba(10,26,58,.78) 40%, rgba(10,26,58,.35) 70%, rgba(10,26,58,.15) 100%),
    radial-gradient(1200px 600px at -10% 80%, rgba(245,158,11,.18), transparent 60%);
  z-index: -1;
}
.hero .container { position: relative; z-index: 2; max-width: 1200px; width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 600px);
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-full);
  font-size: 13px;
  color: rgba(255,255,255,.92);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .pill {
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
}
.hero h1 { color: white; margin-bottom: 20px; }
.hero h1 .accent { color: var(--amber); }
.hero p.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin-bottom: 28px;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 22px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stat .num {
  font-size: 32px; font-weight: 800; color: white;
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat .num .accent,
.hero-stat .num.is-accent { color: var(--amber); }
.hero-stat .lbl {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Trust / social proof strip
   ========================================================================== */
.proof-strip {
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.proof-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  flex-wrap: wrap;
}
.proof-strip .label {
  font-size: 13px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.proof-countries {
  display: flex; gap: 28px; flex-wrap: wrap;
  align-items: center;
}
.proof-country {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
}
.proof-country .flag { font-size: 18px; }

/* ==========================================================================
   Value props grid
   ========================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all .2s ease;
}
.value-card:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.value-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--amber-50);
  color: var(--amber-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.value-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--navy); }
.value-card p { font-size: 14.5px; color: var(--gray-600); line-height: 1.55; }

/* ==========================================================================
   How it works
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--gray-300) 0, var(--gray-300) 6px, transparent 6px, transparent 12px);
  z-index: 0;
}
.step {
  position: relative;
  text-align: center;
  padding: 0 16px;
  z-index: 1;
}
.step-num {
  width: 72px; height: 72px;
  border-radius: var(--r-full);
  background: white;
  border: 2px solid var(--amber);
  color: var(--amber-600);
  font-size: 30px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  position: relative;
}
.step-num::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: var(--r-full);
  background: var(--amber-100);
  z-index: -1;
  opacity: .35;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--gray-600); font-size: 15px; max-width: 320px; margin: 0 auto; }

/* ==========================================================================
   Course cards
   ========================================================================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.course-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
  overflow: hidden;
}
.course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.course-card:hover .course-cover img { transform: scale(1.04); }
.course-cover .lang-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.95);
  color: var(--navy);
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  backdrop-filter: blur(4px);
}
.course-cover .level-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(10,26,58,.85);
  color: white;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.course-title { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 6px; line-height: 1.3; }
.course-teacher { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.course-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 14px;
}
.course-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-400); }
.course-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.course-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--gray-700); font-weight: 500; }
.course-rating .star { color: var(--amber); }
.course-rating .reviews { color: var(--gray-500); font-weight: 400; }
.course-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.course-price { color: var(--navy); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.course-price .curr { font-size: 13px; color: var(--gray-500); font-weight: 500; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 8px; right: 22px;
  font-size: 100px;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--amber);
  opacity: .18;
  font-weight: 800;
}
.testimonial p { color: var(--gray-700); font-size: 15px; line-height: 1.65; margin-bottom: 22px; }
.testimonial-rating { color: var(--amber); margin-bottom: 12px; font-size: 14px; letter-spacing: 1px; }
.testimonial-user { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: var(--navy);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.testimonial-name { font-weight: 600; color: var(--navy); font-size: 14.5px; }
.testimonial-meta { font-size: 13px; color: var(--gray-500); }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
  color: white;
  border-radius: var(--r-2xl);
  padding: 56px 64px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 56px;
  align-items: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: -140px; top: -140px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(245,158,11,.32), transparent 65%);
  z-index: -1;
}
.cta-banner::after {
  content: '';
  position: absolute;
  left: -100px; bottom: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(245,158,11,.16), transparent 65%);
  z-index: -1;
}
.cta-banner-content { max-width: 540px; }
.cta-banner h2 {
  color: white;
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.cta-banner-accent { color: var(--amber); }
.cta-banner p {
  color: rgba(255,255,255,.78);
  font-size: 16.5px;
  max-width: 480px;
  line-height: 1.6;
}

/* Right column — stacked CTAs */
.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  min-width: 260px;
}
.cta-banner-actions .btn {
  width: 100%;
  justify-content: center;
}
.cta-banner-note {
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-item:first-child { border-top: 1px solid var(--gray-200); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}
.faq-q .icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: var(--gray-100);
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s ease, background .15s ease;
}
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); background: var(--amber); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.is-open .faq-a { max-height: 320px; }
.faq-a-inner { padding: 0 4px 22px; color: var(--gray-600); font-size: 15px; line-height: 1.65; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1.3fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.6; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-social {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  transition: background .15s ease;
}
.footer-social:hover { background: var(--amber); color: var(--navy); }
.footer-col h4 { color: white; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.65); transition: color .15s ease; }
.footer-col a:hover { color: var(--amber); }
.footer-newsletter input {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: white;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  width: 100%;
  margin-bottom: 10px;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,.45); }
.footer-newsletter input:focus { outline: 0; border-color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer-lang {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.7);
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-full);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .values-grid, .courses-grid, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { grid-template-columns: 1fr; gap: 36px; padding: 44px 32px; }
  .cta-banner-actions { min-width: 0; max-width: 380px; }
}
/* Navbar → mobile menu (hamburger) earlier than content, so the centered
   desktop nav never gets cramped between the logo and the CTA. */
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-flex; }
  .nav-actions { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 0 14px;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 20px 40px -16px rgba(15, 23, 42, .25);
  }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-links .nav-link {
    display: block;
    padding: 13px 24px;
    color: var(--gray-800);
    font-size: 15.5px;
  }
  .nav-links .nav-link::after { display: none; }
  .nav-mobile-cta { display: block; padding: 12px 24px 4px; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 110px 0 72px; min-height: 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .hero-stat .num { font-size: 26px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .courses-grid, .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Motion — section reveals (2026 CSS scroll-driven)
   ========================================================================== */

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

@supports (animation-timeline: view()) {
  /* Landing sections */
  .section-header,
  .values-grid > .value-card,
  .steps > .step,
  .diff-grid > *,
  .testimonials > .testimonial,
  .cta-banner,
  .faq,
  .contact-grid > *,
  .lang-tabs,
  .courses-grid > .course-card,
  /* Subpage shared blocks */
  .page-header-strip,
  .catalog-toolbar,
  .pagination,
  .course-hero,
  .teacher-card,
  .modules > .module,
  .learn-list > li,
  .cart-list > .cart-item,
  .cart-summary {
    animation: sectionReveal 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }

  /* Subtle stagger inside grids */
  .values-grid > .value-card:nth-child(2) { animation-delay: 60ms; }
  .values-grid > .value-card:nth-child(3) { animation-delay: 120ms; }
  .values-grid > .value-card:nth-child(4) { animation-delay: 180ms; }
  .steps > .step:nth-child(2) { animation-delay: 80ms; }
  .steps > .step:nth-child(3) { animation-delay: 160ms; }
  .testimonials > .testimonial:nth-child(2) { animation-delay: 80ms; }
  .testimonials > .testimonial:nth-child(3) { animation-delay: 160ms; }
  .courses-grid > .course-card:nth-child(2) { animation-delay: 60ms; }
  .courses-grid > .course-card:nth-child(3) { animation-delay: 120ms; }
  .courses-grid > .course-card:nth-child(4) { animation-delay: 180ms; }
  .courses-grid > .course-card:nth-child(5) { animation-delay: 240ms; }
  .courses-grid > .course-card:nth-child(6) { animation-delay: 300ms; }
  .cart-list > .cart-item:nth-child(2) { animation-delay: 80ms; }
  .learn-list > li:nth-child(2) { animation-delay: 40ms; }
  .learn-list > li:nth-child(3) { animation-delay: 80ms; }
  .learn-list > li:nth-child(4) { animation-delay: 120ms; }
  .learn-list > li:nth-child(5) { animation-delay: 160ms; }
  .learn-list > li:nth-child(6) { animation-delay: 200ms; }
  .modules > .module:nth-child(2) { animation-delay: 60ms; }
  .modules > .module:nth-child(3) { animation-delay: 120ms; }
  .modules > .module:nth-child(4) { animation-delay: 180ms; }
  .modules > .module:nth-child(5) { animation-delay: 240ms; }
}

@media (prefers-reduced-motion: reduce) {
  .section-header,
  .values-grid > .value-card, .steps > .step,
  .diff-grid > *, .testimonials > .testimonial, .cta-banner, .faq,
  .contact-grid > *, .lang-tabs, .courses-grid > .course-card,
  .page-header-strip, .catalog-toolbar, .pagination,
  .course-hero, .teacher-card, .modules > .module, .learn-list > li,
  .cart-list > .cart-item, .cart-summary {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .proof-track { animation: none; }
}

/* Hi Languages — Pages-specific styles
   Loaded alongside styles.css for non-landing screens.
   ========================================================================== */

/* ===================== Page header (sub-pages) ===================== */
.page-header-strip {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 56px 0 48px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs .sep { color: var(--gray-400); }
.breadcrumbs .current { color: var(--navy); font-weight: 500; }
.page-header-strip h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 8px;
}
.page-header-strip p { color: var(--gray-600); font-size: 17px; max-width: 640px; }

/* ===================== Catalog layout ===================== */
.catalog {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}
.catalog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  padding-right: 4px;
}
.filter-group { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-200); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); margin-bottom: 14px; font-weight: 600; }
.filter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.filter-list label {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: var(--gray-700);
  cursor: pointer;
  padding: 4px 0;
}
.filter-list input { accent-color: var(--navy); width: 16px; height: 16px; }
.filter-list .count { margin-left: auto; color: var(--gray-400); font-size: 13px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.price-range {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  margin-top: 8px;
}
.price-range input[type="range"] { flex: 1; accent-color: var(--amber); }
.filter-clear {
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  margin-top: 6px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.catalog-search {
  position: relative;
  flex: 1;
  max-width: 320px;
}
.catalog-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}
.catalog-search input {
  width: 100%;
  font-size: 14.5px;
  padding: 11px 16px 11px 42px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-full);
  background: white;
  min-height: 44px;
}
.catalog-search input:focus { outline: 0; border-color: var(--navy); }
.catalog-meta { color: var(--gray-500); font-size: 14px; }
.catalog-sort { display: flex; align-items: center; gap: 10px; }
.catalog-sort select {
  font-size: 14.5px;
  padding: 9px 36px 9px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-full);
  background: white;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23374151' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  min-height: 40px;
  cursor: pointer;
  font-family: inherit;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
}
.pagination button, .pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--gray-200);
  background: white;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 10px;
}
.pagination .is-active { background: var(--navy); color: white; border-color: var(--navy); }
.pagination button:hover:not(.is-active) { border-color: var(--navy); color: var(--navy); }

@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; max-height: none; }
  .catalog-toolbar > * { flex: 1 1 100%; }
}

/* ===================== Course detail ===================== */
.course-hero {
  padding: 48px 0 0;
}
.course-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.course-gallery {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 16/10;
}
.course-gallery img { width: 100%; height: 100%; object-fit: cover; }
.course-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.course-thumb {
  width: 80px; height: 56px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--gray-100);
  cursor: pointer;
  border: 2px solid transparent;
}
.course-thumb.is-active { border-color: var(--navy); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }

.course-info h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 14px 0 12px; line-height: 1.15; }
.course-info .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.course-info-teacher {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0;
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--r-md);
}
.course-info-teacher-avatar {
  width: 48px; height: 48px;
  border-radius: var(--r-full);
  background: var(--navy);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.course-info-rating {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 24px;
  color: var(--gray-700);
  font-size: 14px;
}
.course-info-rating .stars { color: var(--amber); font-size: 16px; letter-spacing: 1px; }
.course-info-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 24px; padding: 20px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.course-info-stats .cell { padding: 4px 8px; border-right: 1px solid var(--gray-200); }
.course-info-stats .cell:last-child { border-right: 0; }
.course-info-stats .lbl { font-size: 12px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; }
.course-info-stats .val { font-size: 16px; color: var(--navy); font-weight: 600; margin-top: 2px; }

.course-sticky {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.course-sticky .price-big {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.course-sticky .price-big .curr { font-size: 14px; color: var(--gray-500); font-weight: 500; margin-right: 4px; }
.course-sticky .price-meta {
  display: flex; align-items: center; gap: 6px;
  color: var(--gray-500); font-size: 13.5px;
  margin: 8px 0 20px;
}
.course-sticky .price-meta .strike { text-decoration: line-through; }
.course-sticky .price-meta .save { background: var(--success-50); color: var(--success); padding: 2px 8px; border-radius: var(--r-full); font-weight: 600; font-size: 12px; }
.course-sticky .benefits {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.course-sticky .benefits li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
}
.course-sticky .benefits .check {
  color: var(--success);
}

.course-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid var(--gray-200);
  margin: 48px 0 32px;
  position: sticky;
  top: var(--header-h);
  background: white;
  z-index: 10;
}
.course-tabs button {
  padding: 14px 4px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  margin-right: 24px;
  cursor: pointer;
}
.course-tabs button.is-active { color: var(--navy); border-bottom-color: var(--amber); font-weight: 600; }

.course-section { padding: 8px 0 40px; }
.course-section h2 { font-size: 22px; margin-bottom: 18px; }
.course-section p { color: var(--gray-700); font-size: 15.5px; line-height: 1.7; max-width: 760px; }

.learn-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 760px; }
.learn-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--gray-700); font-size: 15px; }
.learn-list .check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: var(--r-full);
  background: var(--amber-100);
  color: var(--amber-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

.modules { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.module {
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  overflow: hidden;
  background: white;
}
.module-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  font-weight: 600; color: var(--navy);
  text-align: left;
  cursor: pointer;
}
.module-head .meta { font-size: 13px; color: var(--gray-500); font-weight: 400; }
.module-head--static { cursor: default; }
.module-body { padding: 0 18px 16px; display: none; }
.module.is-open .module-body { display: block; }
.module-class { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--gray-100); color: var(--gray-700); font-size: 14px; }

.teacher-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding: 28px;
  background: var(--gray-50);
  border-radius: var(--r-lg);
  align-items: start;
  max-width: 820px;
}
.teacher-card-avatar {
  width: 180px; height: 200px;
  border-radius: var(--r-md);
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
  font-size: 64px;
  font-weight: 800;
  font-family: Georgia, serif;
}

@media (max-width: 900px) {
  .course-hero-grid { grid-template-columns: 1fr; }
  .course-sticky { position: static; }
  .course-info-stats { grid-template-columns: 1fr 1fr; }
  .course-info-stats .cell:nth-child(2) { border-right: 0; }
  .course-info-stats .cell:nth-child(1), .course-info-stats .cell:nth-child(2) { border-bottom: 1px solid var(--gray-200); padding-bottom: 12px; margin-bottom: 12px; }
  .teacher-card { grid-template-columns: 1fr; }
  .teacher-card-avatar { width: 140px; height: 160px; }
  .learn-list { grid-template-columns: 1fr; }
}

/* ===================== Cart ===================== */
.cart-page { padding: 48px 0 96px; }
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  padding: 16px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  align-items: center;
}
.cart-item-cover { width: 120px; height: 90px; border-radius: var(--r-md); overflow: hidden; background: var(--gray-100); }
.cart-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-title { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.cart-item-meta { font-size: 13.5px; color: var(--gray-500); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cart-item-price { font-size: 18px; font-weight: 700; color: var(--navy); text-align: right; margin-bottom: 8px; }
.cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.cart-item-remove {
  background: transparent;
  color: var(--gray-500);
  font-size: 13px;
  text-decoration: underline;
  padding: 4px;
}
.cart-item-remove:hover { color: var(--gray-900); }

.cart-summary {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.cart-summary h3 { font-size: 16px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; color: var(--gray-700); }
.summary-row.total {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  border-top: 1px solid var(--gray-200);
  margin-top: 12px;
  padding-top: 16px;
}
.coupon-row {
  display: flex; gap: 8px;
  margin: 12px 0;
}
.coupon-row input { flex: 1; padding: 10px 12px; min-height: 40px; border: 1.5px solid var(--gray-200); border-radius: var(--r-md); font-size: 14px; }
.coupon-row button { padding: 10px 14px; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--navy); }

@media (max-width: 900px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item-cover { width: 80px; height: 60px; }
  .cart-item-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--gray-100); }
}

/* ===================== Checkout ===================== */
.checkout-page { padding: 48px 0 96px; background: var(--gray-50); min-height: calc(100vh - var(--header-h)); }
.checkout-shell {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}
.stepper-step {
  display: flex; align-items: center; gap: 10px;
  color: var(--gray-400);
  font-size: 14px; font-weight: 500;
}
.stepper-step .num {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: var(--gray-200);
  color: var(--gray-500);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.stepper-step.is-active { color: var(--navy); }
.stepper-step.is-active .num { background: var(--navy); color: white; }
.stepper-step.is-done .num { background: var(--success); color: white; }
.stepper-line {
  width: 60px; height: 2px;
  background: var(--gray-200);
  margin: 0 16px;
}
.stepper-step.is-active ~ .stepper-line,
.stepper-step.is-done + .stepper-line { background: var(--success); }

.checkout-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 16px;
}
.checkout-card h2 { font-size: 18px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.payment-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.payment-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-md);
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-700);
  background: white;
  transition: all .15s ease;
  font-size: 14.5px;
}
.payment-tab.is-active { border-color: var(--navy); background: var(--navy); color: white; }

.payment-demo {
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--r-md);
  padding: 24px;
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
}
.payment-demo strong { color: var(--gray-700); display: block; margin-bottom: 4px; }

.trust-signals {
  display: flex; gap: 24px; flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
  padding: 16px;
  color: var(--gray-500);
  font-size: 13px;
}
.trust-signals span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 900px) {
  .checkout-shell { grid-template-columns: 1fr; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .stepper-line { width: 30px; margin: 0 8px; }
  .stepper-step span:not(.num) { display: none; }
}

/* ===================== Auth ===================== */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: white;
}
.auth-form-inner {
  width: 100%;
  max-width: 420px;
}
.auth-form h1 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin-bottom: 8px;
}
.auth-form .sub { color: var(--gray-600); margin-bottom: 32px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: 13px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.auth-bottom { text-align: center; margin-top: 24px; font-size: 14px; color: var(--gray-600); }
.auth-bottom a { color: var(--navy); font-weight: 600; }
.demo-tip {
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--gray-700);
  margin-bottom: 20px;
}
.demo-tip strong { color: var(--navy); }
.demo-tip code { background: white; padding: 2px 6px; border-radius: 4px; font-size: 12.5px; color: var(--navy); }

.auth-visual {
  position: relative;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow: hidden;
  isolation: isolate;
}
.auth-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('assets/hero.png');
  background-size: cover;
  background-position: center;
  opacity: .35;
  z-index: -1;
}
.auth-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,26,58,.7) 0%, rgba(10,26,58,.92) 100%);
  z-index: -1;
}
.auth-visual-inner {
  max-width: 420px;
  position: relative;
  z-index: 1;
}
.auth-visual h2 { color: white; font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: 16px; line-height: 1.15; }
.auth-visual h2 .accent { color: var(--amber); }
.auth-visual p { color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.6; }
.auth-visual-badges {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.auth-visual-badge {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 14px;
  backdrop-filter: blur(4px);
}
.auth-visual-badge .ico {
  width: 32px; height: 32px;
  background: var(--amber);
  color: var(--navy);
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form { padding: 32px 20px; min-height: calc(100vh - var(--header-h)); }
}

/* ===================== Thank you ===================== */
.thanks-page {
  padding: 80px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  min-height: calc(100vh - var(--header-h));
}
.thanks-inner {
  max-width: 640px;
  width: 100%;
  background: white;
  border-radius: var(--r-2xl);
  padding: 56px 48px;
  text-align: center;
  border: 1px solid var(--gray-200);
}
.thanks-check {
  width: 84px; height: 84px;
  border-radius: var(--r-full);
  background: var(--success-50);
  color: var(--success);
  margin: 0 auto 24px;
  display: inline-flex; align-items: center; justify-content: center;
  animation: pop .6s ease;
}
@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.thanks-inner h1 { margin-bottom: 12px; }
.thanks-inner .sub { color: var(--gray-600); font-size: 17px; max-width: 480px; margin: 0 auto 32px; }

.order-summary-card {
  background: var(--gray-50);
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
}
.order-summary-card .order-id { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.order-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}
.order-row:last-of-type { border-bottom: 0; }
.order-row .cover {
  width: 56px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--gray-200);
  overflow: hidden;
}
.order-row .cover img { width: 100%; height: 100%; object-fit: cover; }
.order-row .ttl { flex: 1; font-weight: 500; color: var(--navy); font-size: 14.5px; }
.order-row .px { font-weight: 600; color: var(--navy); }
.order-total { display: flex; justify-content: space-between; padding: 14px 0 4px; font-weight: 700; color: var(--navy); font-size: 16px; }

.info-callout {
  display: flex; gap: 14px;
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  text-align: left;
  margin-bottom: 28px;
}
.info-callout .ico {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: var(--amber);
  color: var(--navy);
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.info-callout .body { font-size: 14.5px; color: var(--gray-700); line-height: 1.55; }
.info-callout strong { color: var(--navy); display: block; margin-bottom: 4px; }

.thanks-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===================== Account portal ===================== */
.account-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--header-h));
  background: var(--gray-50);
}
.account-sidebar {
  background: white;
  border-right: 1px solid var(--gray-200);
  padding: 28px 18px;
}
.account-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 20px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 18px;
}
.account-user-avatar {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: var(--navy);
  color: var(--amber);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.account-user-info { min-width: 0; }
.account-user-name { font-size: 14.5px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-user-email { font-size: 12.5px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--gray-700);
  font-size: 14.5px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.account-link:hover { background: var(--gray-50); color: var(--navy); }
.account-link.is-active { background: var(--navy); color: white; }
.account-link.is-active svg { color: var(--amber); }
.account-link svg { color: var(--gray-400); flex-shrink: 0; }
.account-link.is-active svg { color: var(--amber); }
.account-sep { height: 1px; background: var(--gray-200); margin: 14px 4px; }
.account-link.danger { color: var(--gray-500); }
.account-link.danger:hover { color: #b91c1c; background: #fef2f2; }

.account-content { padding: 40px 48px; max-width: 1100px; }
.account-greeting { margin-bottom: 32px; }
.account-greeting h1 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 6px; }
.account-greeting p { color: var(--gray-600); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.stat-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 20px;
}
.stat-card .lbl { font-size: 13px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.stat-card .num { font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin: 6px 0 4px; }
.stat-card .sub { font-size: 13.5px; color: var(--gray-600); }
.stat-card.warn { background: var(--amber-50); border-color: var(--amber-100); }
.stat-card.warn .num { font-size: 18px; color: var(--amber-600); }

.dashboard-2col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.panel {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 24px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-head h3 { font-size: 16px; }
.panel-head a { font-size: 13.5px; color: var(--navy); font-weight: 500; }

.course-status-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 20px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
}
.course-status-cover { width: 96px; height: 72px; border-radius: var(--r-md); overflow: hidden; background: var(--gray-100); }
.course-status-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-status-body { min-width: 0; }
.course-status-title { font-weight: 600; color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.course-status-meta { color: var(--gray-500); font-size: 13.5px; margin-bottom: 10px; }
.course-status-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.timeline { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 12px; }
.timeline-step {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--gray-400);
}
.timeline-step .dot {
  width: 14px; height: 14px;
  border-radius: var(--r-full);
  background: var(--gray-200);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px;
  color: white;
}
.timeline-step.is-done .dot { background: var(--success); }
.timeline-step.is-done { color: var(--success); }
.timeline-step.is-current .dot { background: var(--amber); }
.timeline-step.is-current { color: var(--amber-600); font-weight: 600; }
.timeline-bar { width: 24px; height: 2px; background: var(--gray-200); }
.timeline-bar.is-done { background: var(--success); }

.credential-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 14px;
}
.credential-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--gray-100);
}
.credential-row:first-of-type { border-top: 0; padding-top: 0; }
.credential-row .lbl { font-size: 12.5px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.credential-row .val { font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 14px; color: var(--navy); word-break: break-all; }
.credential-row .copy { color: var(--navy); font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.credential-row .copy:hover { color: var(--amber-600); }

/* ============================================================
   Differentiator / "Nuestro método" section — ported from the
   original index.html inline <style> block, same gap as the proof
   strip and contact section below: classes were used in front-page.php
   but never defined, so bullets had no icon circles and the image had
   no rounded card treatment.
   ============================================================ */
.diff-section { background: var(--gray-50); }
.diff-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.diff-bullets { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 18px; }
.diff-bullets li { display: flex; gap: 14px; align-items: flex-start; }
.diff-bullets .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: var(--amber);
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.diff-bullets .ttl { font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.diff-bullets .sub { font-size: 14.5px; color: var(--gray-600); line-height: 1.55; }

.diff-visual {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: var(--r-2xl);
  background: var(--navy);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.diff-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }

@media (max-width: 900px) {
  .diff-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   Proof strip marquee (flag carousel) — ported from the original
   index.html inline <style> block, which was missing from this file
   just like .contact-grid was (see below): the classes were used in
   front-page.php but never defined, so flags rendered at native size
   with no scroll animation instead of a small looping carousel.
   ============================================================ */
.proof-strip-inner { gap: 28px; align-items: center; }
.proof-marquee {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 5%, black 95%, transparent 100%);
}
.proof-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: proofScroll 45s linear infinite;
}
.proof-marquee:hover .proof-track { animation-play-state: paused; }
.proof-flag {
  flex-shrink: 0;
  width: 44px; height: 30px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(10, 26, 60, 0.12), 0 0 0 1px rgba(10, 26, 60, 0.06);
  background: var(--gray-100);
}
.proof-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes proofScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 720px) {
  .proof-strip-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .proof-strip .label { text-align: center; }
}
/* Note: the reduced-motion override for .proof-track already exists
   further down, in the shared prefers-reduced-motion block. */

/* ============================================================
   Contact section (landing #contacto + dedicated Contacto page)
   Ported from the original index.html inline <style> block, which was
   missing from this file — the classes were used but undefined.
   ============================================================ */
.contact-section { background: var(--gray-50); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { margin-top: 10px; }
.contact-info p { color: var(--gray-600); font-size: 17px; margin-top: 14px; max-width: 440px; }
.contact-meta {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-direction: column; gap: 14px;
}
.contact-meta li {
  display: flex; align-items: center; gap: 12px;
  color: var(--navy); font-size: 14.5px; font-weight: 500;
}
.contact-meta-ic {
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  background: white;
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.contact-form {
  background: white;
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--amber);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-xs);
}
.contact-form-heading { color: var(--navy); margin-bottom: 20px; }
.contact-form .field { margin-bottom: 16px; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.contact-form textarea.input { resize: vertical; min-height: 84px; font-family: inherit; }
.contacto-field-error { display: block; font-size: 12.5px; color: var(--warn); margin-top: 4px; min-height: 15px; }
.contact-success {
  margin-top: 14px;
  padding: 12px 16px;
  background: color-mix(in oklab, var(--success, #16a34a) 12%, white);
  color: var(--success, #16a34a);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 24px; }
  .contact-form .field-row { grid-template-columns: 1fr; }
}

/* Dedicated Contacto page — dark hero, mirrors PreuAtom's contacto-hero.php
   structure (badge kicker + white title + subtitle + accent underline) with
   Hi Languages' own navy/amber palette instead of Atom's blue. */
.contacto-page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
  color: white;
  padding: 72px 24px;
  text-align: center;
}
.contacto-page-hero .section-kicker { color: var(--amber); }
.contacto-page-hero h1 { color: white; font-size: 40px; margin: 10px 0 16px; }
.contacto-page-hero p { color: rgba(255,255,255,.75); font-size: 17px; max-width: 560px; margin: 0 auto; }
.contacto-page-hero-line {
  display: block;
  width: 56px; height: 3px;
  background: var(--amber);
  border-radius: var(--r-full);
  margin: 24px auto 0;
}
@media (max-width: 720px) {
  .contacto-page-hero { padding: 56px 20px; }
  .contacto-page-hero h1 { font-size: 30px; }
}

@media (max-width: 900px) {
  .account-shell { grid-template-columns: 1fr; }
  .account-sidebar { border-right: 0; border-bottom: 1px solid var(--gray-200); }
  .account-nav { flex-direction: row; flex-wrap: wrap; }
  .account-content { padding: 32px 20px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-2col { grid-template-columns: 1fr; }
  .course-status-card { grid-template-columns: 1fr; }
  .course-status-cover { width: 100%; height: 140px; }
  .credential-row { grid-template-columns: 1fr; gap: 4px; }
}
