/*
Theme Name: Mi Podólogo
Theme URI: https://mipodologo.com
Author: Mi Podólogo
Author URI: https://mipodologo.com
Description: Tema profesional para academia de podología. Compatible con LifterLMS y WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mi-podologo
Tags: education, ecommerce, lms, custom-colors, custom-logo
*/

/* ============================================================
   VARIABLES Y RESET
   ============================================================ */
:root {
  --navy:        #0B1E3D;
  --navy-mid:    #162E56;
  --navy-light:  #1E3A68;
  --teal:        #1A7A6E;
  --teal-hover:  #14635A;
  --teal-light:  #E4F2F0;
  --cream:       #FAF8F4;
  --warm-white:  #FDFCFA;
  --accent:      #D4922A;
  --accent-dark: #B5771A;
  --text:        #1A1A2E;
  --muted:       #6B7280;
  --border:      #E5E0D8;
  --white:       #ffffff;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  10px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 20px rgba(11,30,61,.07);
  --shadow-hover: 0 12px 32px rgba(11,30,61,.12);

  --container:  1380px;
  --gutter:     40px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#colophon { margin-top: auto; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-hover); }

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  color: var(--navy);
}
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: clamp(20px, 3vw, 24px); }
h4 { font-size: 18px; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.75;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
}
.section { padding: 64px 0; }
.section--cream { background: var(--cream); }
.section--navy  { background: var(--navy); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info .section-label { color: var(--accent); }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 32px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.6);
}
.contact-detail svg { color: var(--accent); flex-shrink: 0; }

/* CF7 dentro de la sección navy */
.contact-info .wpcf7 input:not([type=submit]),
.contact-info .wpcf7 textarea {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color .2s;
  box-sizing: border-box;
}
.contact-info .wpcf7 input:not([type=submit]):focus,
.contact-info .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-info .wpcf7 input::placeholder,
.contact-info .wpcf7 textarea::placeholder { color: rgba(255,255,255,.35); }
.contact-info .wpcf7 textarea { min-height: 120px; resize: vertical; }
.contact-info .wpcf7 label { color: rgba(255,255,255,.6); font-size: 13px; }
.contact-info .wpcf7 .wpcf7-form-control-wrap { display: block; margin-bottom: 14px; }
.contact-info .wpcf7 input[type=submit] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}
.contact-info .wpcf7 input[type=submit]:hover { background: var(--accent-dark); }
.contact-info .wpcf7 .wpcf7-response-output {
  border-color: var(--accent) !important;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  margin-top: 12px;
}

/* CF7 grid 2 columnas */
.contact-info .wpcf7 .cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.contact-info .wpcf7 .cf7-col { display: flex; flex-direction: column; gap: 3px; }
.contact-info .wpcf7 .cf7-field { margin-bottom: 8px; display: flex; flex-direction: column; gap: 3px; }
.contact-info .wpcf7 .wpcf7-form-control-wrap { margin: 0; }
.contact-info .wpcf7 label { margin-bottom: 0; }
.contact-info .wpcf7 textarea { min-height: 80px; }

/* Mapa */
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  height: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn:active { transform: scale(.98); }

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

.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-dark); color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
}
.btn-outline:hover { background: rgba(255,255,255,.08); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--teal);
  padding: 0;
  font-size: 13px;
}
.btn-ghost::after { content: ' →'; transition: margin-left .2s; }
.btn-ghost:hover::after { margin-left: 4px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#masthead {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 16px rgba(11,30,61,.10);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
/* Agrupar nav + acciones a la derecha */
.main-navigation,
.header-cart,
.header-account { margin-left: 0; }
.main-navigation { margin-left: auto; }

/* Botón login / mi cuenta */
.header-account {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
  color: var(--navy);
  background: transparent;
  border: 1.5px solid var(--navy);
  margin-left: 10px;
}
.header-account:hover {
  background: var(--navy);
  color: var(--white);
}
.header-account--login {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.header-account--login:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  color: var(--white);
}
@media (max-width: 768px) {
  .header-account span { display: none; }
  .header-account { padding: 6px 10px; margin-left: 6px; }
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-logo__mark {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-logo__mark svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.site-logo__text { line-height: 1.1; }
.site-logo__name {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--navy);
  letter-spacing: 0.02em;
  display: block;
}
.site-logo__tagline {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-top: 1px;
}

/* Logo imagen personalizada (WordPress genera .custom-logo-link) */
.custom-logo-link { display: flex; align-items: center; line-height: 0; }
.custom-logo-link img,
.custom-logo { max-height: 50px; width: auto; display: block; }

/* Nav principal */
.main-navigation ul {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}
.main-navigation a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color .2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--navy) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 500 !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* Carrito en header */
.header-cart {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
  padding: 6px;
  margin-left: 4px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.header-cart:hover { color: var(--teal); background: rgba(26,122,110,.07); }
.header-cart svg { width: 22px; height: 22px; }
.header-cart__count {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 99px;
  box-sizing: border-box;
  transition: transform .2s, opacity .2s;
}
.header-cart__count.is-empty {
  opacity: 0;
  transform: scale(0);
}

/* Hamburger móvil */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: all .3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  /* Fondo dividido al 50%: izq=navy (content), der=navy-mid (image) */
  /* Coincide exactamente con la división del grid 1fr 1fr */
  background: linear-gradient(to right, var(--navy) 50%, var(--navy-mid) 50%);
  overflow: hidden;
}
.hero__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}
.hero__content {
  padding: 72px 48px 72px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 500;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 50px);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}
.hero__body {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  line-height: 1.8;
  margin-bottom: 34px;
  font-weight: 300;
  max-width: 420px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
/* ── Hero stats cards ── */
.hero__stats {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: center;
  padding: 20px 16px;
}

.hero-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 18px 20px;
  transition: transform .3s ease, background .3s;
}
.hero-stat-card:hover {
  background: rgba(255,255,255,.13);
  transform: translateY(-3px);
}

/* Escalonado sutil en diagonal */
.hero-stat-card--1 { margin-top: 24px; }
.hero-stat-card--2 { margin-top: 0; }
.hero-stat-card--3 { margin-top: -8px; }
.hero-stat-card--4 { margin-top: 16px; }

.hero-stat-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(26,122,110,.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.hero-stat-card__icon svg { width: 20px; height: 20px; }

.hero-stat-card--1 .hero-stat-card__icon { background: rgba(212,146,42,.2); color: var(--accent); }

.hero-stat-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat-card__num {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  line-height: 1;
  font-weight: 400;
}
.hero-stat-card__label {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  font-weight: 400;
}
.hero__badge {
  position: absolute;
  bottom: 32px;
  left: 32px;
  background: rgba(255,255,255,.08);
  border: 0.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  backdrop-filter: blur(8px);
}
.hero__badge-num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--white);
  line-height: 1;
}
.hero__badge-label {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ============================================================
   HERO MOCKUP — laptop device
   ============================================================ */
.hero__mockup {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 40px 40px;
}

/* Laptop frame */
.mockup-laptop {
  width: 100%;
  max-width: 420px;
  background: #1a2e52;
  border-radius: 14px 14px 0 0;
  padding: 8px 8px 0;
  box-shadow: 0 24px 64px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
  z-index: 1;
}
.mockup-laptop__screen {
  background: #0f1929;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
.mockup-laptop__base {
  background: #232f4a;
  height: 14px;
  border-radius: 0 0 3px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-laptop__notch {
  width: 60px;
  height: 5px;
  background: #151e30;
  border-radius: 3px;
}

/* Browser chrome */
.mockup-browser__bar {
  background: #0a1220;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mockup-browser__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mockup-browser__dot--red    { background: #FF5F57; }
.mockup-browser__dot--yellow { background: #FFBD2E; }
.mockup-browser__dot--green  { background: #28C840; }
.mockup-browser__url {
  flex: 1;
  background: rgba(255,255,255,.07);
  border-radius: 4px;
  font-size: 10px;
  color: rgba(255,255,255,.4);
  padding: 3px 10px;
  margin-left: 6px;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

/* Mockup content area */
.mockup-content {
  display: flex;
  gap: 0;
  height: 210px;
}
.mockup-content__video {
  width: 55%;
  flex-shrink: 0;
  position: relative;
  background: #050d1a;
  overflow: hidden;
}
.mockup-content__video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .75;
}
.mockup-content__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-content__play svg {
  width: 32px;
  height: 32px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
.mockup-content__info {
  flex: 1;
  padding: 12px 12px;
  background: #0f1929;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.mockup-content__title {
  font-family: var(--font-display);
  font-size: 11px;
  color: #fff;
  line-height: 1.3;
}
.mockup-content__progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mockup-content__progress-bar {
  height: 3px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
  overflow: hidden;
}
.mockup-content__progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
}
.mockup-content__progress span {
  font-size: 9px;
  color: rgba(255,255,255,.4);
}
.mockup-content__lessons {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}
.mockup-lesson {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: rgba(255,255,255,.45);
  padding: 4px 6px;
  border-radius: 4px;
  transition: background .2s;
}
.mockup-lesson--active {
  background: rgba(26,122,110,.2);
  color: rgba(255,255,255,.85);
}
.mockup-lesson__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

/* Floating badge */
.mockup-badge {
  position: absolute;
  bottom: 30px;
  left: 0px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  z-index: 2;
  animation: badgeFloat 3s ease-in-out infinite;
}
.mockup-badge svg { color: var(--accent); flex-shrink: 0; }
.mockup-badge strong {
  display: block;
  font-size: 14px;
  font-family: var(--font-display);
  line-height: 1;
}
.mockup-badge span {
  font-size: 10px;
  color: rgba(255,255,255,.6);
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-bar__inner {
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.trust-item__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ============================================================
   TARJETAS DE CURSOS
   ============================================================ */
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.curso-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.curso-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.curso-card__thumb {
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.curso-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.curso-card__thumb--fallback {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
}
.curso-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,.15);
  border: 0.5px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.curso-card__body { padding: 18px 20px 20px; }
.curso-card__cat {
  font-size: 11px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 6px;
}
.curso-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.curso-card__meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.curso-card__meta span::before {
  content: '· ';
  opacity: .5;
}
.curso-card__meta span:first-child::before { content: ''; }
.curso-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 0.5px solid var(--border);
}
.curso-card__price {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--navy);
}
.curso-card__price small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.curso-card__cta {
  background: var(--teal);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}
.curso-card__cta:hover { background: var(--teal-hover); color: var(--white); }

/* ============================================================
   SECCIÓN INSTRUCTOR
   ============================================================ */
.instructor {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.instructor__content {
  padding-top: 72px;
  padding-right: var(--gutter);
  padding-bottom: 72px;
  padding-left: max(var(--gutter), calc(50vw - 560px));
}
.instructor__content .section-label { color: var(--accent); }
.instructor__content .section-title { color: var(--white); }
.instructor__content .section-sub { color: rgba(255,255,255,.55); }
.instructor__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 38px;
}
.stat {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--white);
  line-height: 1;
}
.stat__label {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  margin-top: 4px;
}
.instructor__photo {
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: max(var(--gutter), calc(50vw - 560px));
  padding-left: var(--gutter);
}
.instructor__photo img {
  width: min(380px, 80%);
  height: min(380px, 80%);
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(212,146,42,.35);
}
.instructor__placeholder {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.instructor__placeholder svg {
  width: 75%;
  max-width: 300px;
  height: auto;
  display: block;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}
.testimonial-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.testimonial-card__stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonial-card__quote {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 20px;
}
.testimonial-card__author { display: flex; align-items: center; gap: 10px; }
.testimonial-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  flex-shrink: 0;
  text-transform: uppercase;
}
.testimonial-card__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}
.testimonial-card__role { font-size: 11px; color: var(--muted); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--teal);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  color: var(--white);
  margin-bottom: 14px;
}
.cta-banner p {
  color: rgba(255,255,255,.75);
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 30px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--navy);
  color: rgba(255,255,255,.5);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
  border-bottom: 0.5px solid rgba(255,255,255,.08);
}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}
.footer-brand__tagline {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.footer-brand__desc {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,.38);
  font-weight: 300;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.42);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  font-size: 12px;
}
.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.4);
}
.site-footer__legal a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .2s;
}
.site-footer__legal a:hover { color: var(--white); }

/* ============================================================
   COMPAT: WOOCOMMERCE — MY ACCOUNT
   ============================================================ */

/* Wrapper general */
.woocommerce-account .woocommerce {
  padding: 48px 0 80px;
  width: 100%;
}

/* Hero header de la página */
.woocommerce-account .page-title-wrap {
  display: none; /* usamos nuestro propio header abajo */
}

/* Navegación lateral */
.woocommerce-MyAccount-navigation {
  width: 220px;
  flex-shrink: 0;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  margin: 0;
}
.woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.woocommerce-MyAccount-navigation ul li:last-child { border-bottom: none; }
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.woocommerce-MyAccount-navigation ul li a:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard.is-active a {
  background: rgba(212,146,42,.15);
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 17px;
}

/* Layout: nav izquierda + contenido derecha */
.woocommerce-MyAccount-content {
  flex: 1;
  min-width: 0;
}

/* Contenedor del account con flex */
.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce > .woocommerce-MyAccount-content {
  display: block;
}
.woocommerce-account .woocommerce {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Título de sección dentro del content */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 20px;
}

/* Mensaje de bienvenida */
.woocommerce-MyAccount-content p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}
.woocommerce-MyAccount-content a {
  color: var(--teal);
  text-decoration: none;
}
.woocommerce-MyAccount-content a:hover { text-decoration: underline; }

/* Card de contenido */
.woocommerce-MyAccount-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: 0 2px 12px rgba(11,30,61,.04);
}

/* ── Mi Cuenta: Direcciones ── */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 20px;
  width: 100% !important;
  box-sizing: border-box;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-1,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-2 {
  float: none !important;
  width: calc(50% - 10px) !important;
  flex: 1 1 calc(50% - 10px) !important;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.woocommerce-Address-title h2 {
  font-size: 15px !important;
  font-weight: 600;
  color: var(--navy);
  margin: 0 !important;
  font-family: var(--font-body) !important;
  line-height: 1.3;
}
.woocommerce-Address-title .edit {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.woocommerce-Address-title .edit:hover {
  background: var(--teal);
  color: #fff;
  text-decoration: none;
}
.woocommerce-Address address {
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  flex: 1;
}

/* ── Mi Cuenta: Login / Registro ── */
.woocommerce-account:not(.logged-in) {
  background: linear-gradient(150deg, #0B1E3D 0%, #0e2d50 50%, #0f3060 100%);
  min-height: 100vh;
}
.woocommerce-account:not(.logged-in) .page-hero,
.woocommerce-account:not(.logged-in) .entry-header { display: none; }

.woocommerce-account:not(.logged-in) .woocommerce {
  display: flex;
  justify-content: center;
  padding: 80px 20px 100px;
}

/* Override WC 2-col layout */
.woocommerce-account:not(.logged-in) #customer_login.col2-set {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0;
}

/* Each column becomes the card */
.woocommerce-account:not(.logged-in) .u-column1,
.woocommerce-account:not(.logged-in) .u-column2 {
  background: #fff;
  border-radius: 20px;
  padding: 52px 52px 40px;
  box-shadow: 0 24px 72px rgba(0,0,0,.35);
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
}

/* WC renders h2 outside the form — hide them, we inject our own titles */
.woocommerce-account:not(.logged-in) .u-column1 > h2,
.woocommerce-account:not(.logged-in) .u-column2 > h2 { display: none; }

/* Register column hidden by default */
.woocommerce-account:not(.logged-in) .u-column2 { display: none; }
.woocommerce-account:not(.logged-in) .u-column2.auth-active { display: block; }

/* Strip inner form card styling — column IS the card now */
.woocommerce-account:not(.logged-in) .woocommerce-form-login,
.woocommerce-account:not(.logged-in) .woocommerce-form-register {
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  max-width: none !important;
}

/* Injected card titles */
.auth-card-title {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 6px;
}
.auth-card-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 36px;
  font-weight: 400;
}

/* Toggle link row */
.auth-toggle-wrap {
  text-align: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.auth-toggle-wrap a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}
.auth-toggle-wrap a:hover { text-decoration: underline; }

.woocommerce-form-login__submit {
  width: 100% !important;
  margin-top: 8px;
  font-size: 15px !important;
  padding: 14px 24px !important;
}
.woocommerce-form-register__submit {
  width: 100% !important;
  margin-top: 4px;
}

.woocommerce-form-row { margin-bottom: 18px; }
.woocommerce-form-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
  display: block;
}
.woocommerce-form-row input.input-text {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: #fafafa;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.woocommerce-form-row input.input-text:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,122,110,.1);
}
.woocommerce-privacy-policy-text { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.lost_password { margin-top: 14px; text-align: right; }
.lost_password a { font-size: 13px; color: var(--teal); text-decoration: none; }
.lost_password a:hover { text-decoration: underline; }
.woocommerce-form__input-checkbox { width: auto !important; margin-right: 6px; }
.woocommerce-form-login__rememberme { font-size: 13px; color: var(--muted); }

/* Página Mi Cuenta — page header */
.woocommerce-account .entry-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2a50 100%);
  padding: 48px 40px;
  border-bottom: 3px solid var(--accent);
  margin-bottom: 0;
}
.woocommerce-account .entry-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
}

/* Tabla de pedidos */
.woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.woocommerce-orders-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.woocommerce-orders-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.woocommerce-orders-table tr:last-child td { border-bottom: none; }
.woocommerce-orders-table .button {
  padding: 6px 16px !important;
  font-size: 12px !important;
}

/* Responsive */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce {
    flex-direction: column;
    padding: 24px 20px 48px;
  }
  .woocommerce-MyAccount-navigation { width: 100%; }
  .woocommerce-account:not(.logged-in) .u-column1,
  .woocommerce-account:not(.logged-in) .u-column2 { padding: 40px 28px 32px; }
  .woocommerce-account:not(.logged-in) .woocommerce { padding: 48px 16px 64px; }
  .woocommerce-MyAccount-content { padding: 24px 20px; }
}

/* ============================================================
   COMPAT: WOOCOMMERCE
   ============================================================ */
.woocommerce .button,
.woocommerce button.button {
  background: var(--teal) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  border: none !important;
  padding: 12px 24px !important;
  transition: background .2s !important;
}
.woocommerce .button:hover,
.woocommerce button.button:hover {
  background: var(--teal-hover) !important;
}
/* ── Carrito (WooCommerce Blocks) ── */

/* Items table */
.wc-block-cart-items {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.wc-block-cart-items__header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.wc-block-cart-items__header span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
}
.wc-block-cart-items__row { border-bottom: 1px solid var(--border); }
.wc-block-cart-items__row:last-child { border-bottom: none; }

/* Imagen */
.wc-block-cart-item__image img { border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* Nombre */
.wc-block-cart-item__product a,
.wc-block-components-product-name {
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  color: var(--navy) !important;
  text-decoration: none !important;
}
.wc-block-cart-item__product a:hover { color: var(--teal) !important; }

/* Precio */
.wc-block-cart-item__total .wc-block-components-formatted-money-amount {
  font-weight: 600;
  color: var(--navy);
}

/* Eliminar */
.wc-block-cart-item__remove-link {
  color: var(--muted) !important;
  font-size: 12px !important;
}
.wc-block-cart-item__remove-link:hover { color: #dc2626 !important; }

/* ── Sidebar totales — un solo card unificado ── */
.wc-block-cart__sidebar { font-family: var(--font-body) !important; }

/* Encabezado navy */
.wc-block-cart__totals-title {
  font-family: var(--font-display) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  background: var(--navy) !important;
  padding: 16px 20px !important;
  border-bottom: 3px solid var(--accent) !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

/* Quitar bordes y radius individuales de cada wrapper */
.wc-block-cart__sidebar .wc-block-components-totals-wrapper {
  border: none !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  background: var(--white) !important;
  margin: 0 !important;
  padding: 0 !important;
}
.wc-block-cart__sidebar .wc-block-components-totals-wrapper:last-of-type {
  border-bottom: none !important;
}

/* Envolver sidebar en un solo card */
.wc-block-cart__sidebar > * {
  border-left: 1px solid var(--border) !important;
  border-right: 1px solid var(--border) !important;
}
.wc-block-cart__sidebar > *:first-child {
  border-top: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}
.wc-block-cart__sidebar > *:last-child {
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
}

/* Cupón */
.wc-block-components-panel__button {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  padding: 14px 20px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  width: 100% !important;
  text-align: left !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
.wc-block-components-panel__button:hover { color: var(--teal) !important; }
.wc-block-components-panel__content { padding: 0 20px 16px !important; }

/* Filas de totales */
.wc-block-components-totals-item {
  padding: 14px 20px !important;
}
.wc-block-components-totals-item__label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
}
.wc-block-components-totals-item__value {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
}

/* Total final */
.wc-block-components-totals-footer-item { background: var(--cream) !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
}
.wc-block-components-totals-footer-item .wc-block-components-formatted-money-amount {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--teal) !important;
}

/* Botón proceder al pago */
.wc-block-cart__submit-container { padding: 16px 20px !important; background: var(--white) !important; }
.wc-block-cart__submit-button,
.wc-block-components-checkout-button {
  background: var(--teal) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  padding: 14px 24px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: .02em !important;
  transition: background .2s !important;
  border: none !important;
  width: 100% !important;
  cursor: pointer !important;
  display: block !important;
  text-align: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-button:hover { background: var(--teal-hover) !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display) !important;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--navy) !important;
  font-family: var(--font-display) !important;
  font-size: 24px !important;
}

/* ============================================================
   PAGE HERO — páginas internas (Mi Cuenta, legales, etc.)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2a50 100%);
  padding: 48px 0;
  border-bottom: 3px solid var(--accent);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

/* ============================================================
   SINGLE COURSE – Hero
   ============================================================ */
.course-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2a50 100%);
  padding: 64px 0 60px;
  border-bottom: 3px solid var(--accent);
}
.course-hero__inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  align-items: center;
}
.course-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-bottom: 18px;
}
.course-breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; }
.course-breadcrumb a:hover { color: var(--accent); }
.course-hero__cat {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid rgba(212,146,42,.4);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  margin-bottom: 18px;
  font-weight: 600;
  background: rgba(212,146,42,.08);
}
.course-hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 18px;
  font-weight: 700;
}
.course-hero__excerpt {
  font-size: 16px;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 28px;
}
.course-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.course-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  font-weight: 500;
}
.course-meta-item svg { flex-shrink: 0; color: var(--accent); }
.course-hero__instructor {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.course-hero__instructor img {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.2);
}
.course-hero__instructor strong { color: rgba(255,255,255,.85); }
.course-hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-hero__thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-hero__thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,.2);
  font-size: 13px;
}
.course-hero__thumb-placeholder svg { opacity: .3; }

/* ============================================================
   SINGLE COURSE – Layout principal
   ============================================================ */
.course-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
  width: 100%;
}
.course-main { min-width: 0; width: 100%; }
.course-sidebar { min-width: 0; }
.course-section-block {
  margin-bottom: 56px;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(11,30,61,.04);
}
.course-section-block:last-child { margin-bottom: 0; }
.course-section-heading {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 21px);
  color: var(--navy);
  margin-bottom: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.course-section-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.course-description { font-size: 15px; line-height: 1.9; color: var(--text); }
.course-description ul { list-style: disc; padding-left: 1.5rem; margin: 0.75rem 0 1rem; }
.course-description ol { list-style: decimal; padding-left: 1.5rem; margin: 0.75rem 0 1rem; }
.course-description li { margin-bottom: 0.4rem; }
.course-description p { margin-bottom: 1rem; }

/* Acordeón de Tutor LMS (temario) */
.tutor-course-content-title { display: none !important; } /* Ocultamos el de Tutor, usamos el nuestro */
.tutor-mt-40 { margin-top: 0 !important; }
.tutor-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.tutor-accordion-item { border-bottom: 1px solid var(--border); }
.tutor-accordion-item:last-child { border-bottom: none; }
.tutor-accordion-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--cream);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  gap: 12px;
  user-select: none;
  transition: background .2s;
}
.tutor-accordion-item-header:hover { background: #ece8e0; }
.tutor-accordion-item-header.is-active { background: var(--navy); color: #fff; }
.tutor-course-content-list { list-style: none; padding: 0; margin: 0; }
.tutor-course-content-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.tutor-course-content-list-item:last-child { border-bottom: none; }
.tutor-course-content-list-item:hover { background: #faf9f7; }
.tutor-course-content-list-item-title { flex: 1; }
.tutor-course-content-list-item-duration { color: var(--muted); font-size: 12px; white-space: nowrap; }
.tutor-course-content-list-item-icon { color: var(--teal); margin-right: 10px; flex-shrink: 0; }

/* Card instructor */
.course-instructor-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.course-instructor-card__avatar img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.course-instructor-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 700;
}
.course-instructor-card__bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ============================================================
   SINGLE COURSE – Sidebar & Enrollment
   ============================================================ */
.course-sidebar__sticky { position: sticky; top: 90px; }
.enrollment-card__thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
}
.enrollment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 24px rgba(11,30,61,.08);
}
.enrollment-card__thumb + .enrollment-card {
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.enrollment-card__enrolled { text-align: center; }
.enrollment-card__enrolled-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}
.enrollment-card__price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* Precio en el hero (visible en móvil) */
.course-hero__price {
  display: none;
}
@media (max-width: 1024px) {
  .course-hero__price {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    margin-top: 16px;
  }
  .course-hero__price del { opacity: .5; font-size: 18px; }
  .course-hero__price ins { text-decoration: none; }
}

/* Barra sticky de compra en móvil */
.mobile-buy-bar {
  display: none;
}
@media (max-width: 1024px) {
  .mobile-buy-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--white);
    padding: 12px var(--gutter);
    box-shadow: 0 -2px 12px rgba(0,0,0,.12);
    gap: 12px;
  }
  .mobile-buy-bar__price {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
  }
  .mobile-buy-bar__price del { opacity: .5; font-size: 14px; }
  .mobile-buy-bar__price ins { text-decoration: none; }
  .mobile-buy-bar__btn {
    flex-shrink: 0;
    padding: 10px 20px !important;
    font-size: 14px !important;
  }
  .mobile-buy-bar .added_to_cart { display: none; }
  /* Pad bottom so content isn't hidden behind bar */
  body.single-courses { padding-bottom: 70px; }
}

/* Lista de incluidos */
.course-includes {
  list-style: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.course-includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.course-includes li:last-child { border-bottom: none; }
.course-includes li svg { color: var(--teal); flex-shrink: 0; }

/* ============================================================
   ARCHIVO DE CURSOS
   ============================================================ */
.archive-header {
  background: var(--navy);
  padding: 52px 0 44px;
}
.archive-header__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--white);
  margin-top: 10px;
}
.archive-header__desc {
  color: rgba(255,255,255,.55);
  font-size: 15px;
  font-weight: 300;
  margin-top: 12px;
  max-width: 560px;
}
.course-filter-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.course-filter-bar__inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.course-filter-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--white);
  text-decoration: none;
  transition: all .18s;
}
.course-filter-tag:hover { border-color: var(--teal); color: var(--teal); }
.course-filter-tag.is-active { background: var(--teal); border-color: var(--teal); color: var(--white); }
.course-filter-tag__count {
  display: inline-block;
  font-size: 10px;
  opacity: .6;
  margin-left: 3px;
}
.no-courses {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
}
.no-courses p { margin-bottom: 24px; }
.archive-pagination { margin-top: 48px; text-align: center; }
.archive-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: all .18s;
}
.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.archive-pagination .prev, .archive-pagination .next { width: auto; padding: 0 16px; }

/* ============================================================
   SINGLE LESSON – Layout
   ============================================================ */
/* Video dentro de la columna de contenido */
.lesson-video-wrap {
  width: 100%;
  background: #000;
  margin: 0 0 0 0;
}
.lesson-video-wrap .tutor-ratio.tutor-ratio-16x9 {
  border-radius: 0;
}
.lesson-video-wrap .tutor-video-player {
  border-radius: 0;
}

/* Barra de progreso debajo del video */
.lesson-progress-bar {
  height: 4px;
  background: rgba(0,0,0,.12);
}
.lesson-progress-bar__fill {
  height: 100%;
  background: var(--accent);
  transition: width .4s ease;
}

.lesson-page { width: 100%; }
.lesson-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  align-items: stretch;
  min-height: calc(100vh - 200px);
}

/* Sidebar de navegación — panel oscuro tipo LMS */
.lesson-nav-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #0e1c35;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
  border-right: 1px solid rgba(255,255,255,.06);
}
.lesson-nav__header {
  padding: 20px 20px 16px;
  background: #071224;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lesson-nav__body {
  flex: 1;
  overflow-y: auto;
}
.lesson-nav__back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 10px;
}
.lesson-nav__back:hover { color: var(--accent); }
.lesson-nav__back svg { opacity: .6; }
.lesson-nav__course-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.4;
}
.lesson-nav__progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lesson-nav__progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.lesson-nav__progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width .4s ease;
}
.lesson-nav__progress-label {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  min-width: 28px;
  text-align: right;
}

.lesson-nav__section { padding: 0; }
.lesson-nav__section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  font-weight: 600;
  padding: 18px 20px 6px;
}
.lesson-nav__list { list-style: none; }
.lesson-nav__item { border-bottom: 1px solid rgba(255,255,255,.05); }
.lesson-nav__item:last-child { border-bottom: none; }
.lesson-nav__item-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 20px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: background .15s, color .15s;
  line-height: 1.45;
}
.lesson-nav__item-link:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.lesson-nav__item.is-current .lesson-nav__item-link {
  background: rgba(212,146,42,.12);
  color: #fff;
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 17px;
}
.lesson-nav__item.is-complete .lesson-nav__item-link { color: rgba(255,255,255,.4); }
.lesson-nav__item.is-complete .lesson-nav__item-check { color: var(--teal); }
.lesson-nav__item-link.is-locked {
  color: rgba(255,255,255,.2);
  cursor: default;
  pointer-events: none;
}
.lesson-nav__item-check { flex-shrink: 0; margin-top: 2px; color: rgba(255,255,255,.2); }
.lesson-nav__item.is-complete .lesson-nav__item-check { color: #2ecc71; }
.lesson-nav__item.is-current .lesson-nav__item-check { color: var(--accent); }
.lesson-nav__free-tag {
  margin-left: auto;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--accent);
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Contenido de la lección */
.lesson-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.lesson-content__inner {
  padding: 36px 48px 56px;
}
.lesson-content__header { margin-bottom: 24px; }
.lesson-content__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 34px);
  color: var(--navy);
  line-height: 1.2;
}
/* Video player de Tutor LMS */
.tutor-video-player-wrapper { margin-bottom: 2rem; }

.tutor-video-player,
.tutor-video-player-wrapper .tutor-video-player {
  width: 100%;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.tutor-ratio.tutor-ratio-16x9 {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
}
.tutor-ratio.tutor-ratio-16x9 iframe,
.tutor-ratio.tutor-ratio-16x9 video {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
}
.plyr__video-embed.tutorPlayer {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.plyr__video-embed.tutorPlayer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.lesson-content__body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}
.lesson-content__body h2,
.lesson-content__body h3 { margin: 2rem 0 1rem; }
.lesson-content__body p { margin-bottom: 1.2rem; }
.lesson-content__body img { border-radius: var(--radius-md); margin: 1.5rem 0; }
.lesson-content__body ul,
.lesson-content__body ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.lesson-content__body li { margin-bottom: .4rem; }

/* Navegación prev/next de lección */
.lesson-navigation-wrap { margin-top: 40px; padding-top: 32px; border-top: 0.5px solid var(--border); }
.llms-lesson-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.llms-lesson-navigation a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
  transition: all .18s;
}
.llms-lesson-navigation a:hover { background: var(--teal); color: var(--white); }

/* Navegación prev/next — Tutor LMS */
.tutor-course-lesson-nav,
.lesson-navigation-wrap .tutor-course-lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.tutor-course-lesson-nav a,
.tutor-prev-lesson-btn,
.tutor-next-lesson-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
  transition: all .18s;
}
.tutor-course-lesson-nav a:hover,
.tutor-prev-lesson-btn:hover,
.tutor-next-lesson-btn:hover { background: var(--teal); color: var(--white); }

/* Botón completar lección — Tutor LMS */
.lesson-complete-wrap {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* Tutor LMS mark-complete button */
.tutor-mark-as-complete-btn,
.tutor-btn.tutor-mark-as-complete-btn,
#tutor-mark-as-complete-button,
.tutor-course-lesson-mark-complete .tutor-btn,
.lesson-complete-wrap .tutor-btn {
  background: var(--teal) !important;
  color: #fff !important;
  border: none !important;
  padding: 13px 28px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background .18s !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.tutor-mark-as-complete-btn:hover,
.tutor-btn.tutor-mark-as-complete-btn:hover,
#tutor-mark-as-complete-button:hover,
.tutor-course-lesson-mark-complete .tutor-btn:hover,
.lesson-complete-wrap .tutor-btn:hover {
  background: #155f56 !important;
}
.tutor-course-lesson-mark-complete {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}
.lesson-complete-wrap--done {
  display: flex;
  justify-content: flex-end;
}
.lesson-complete-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
}

/* ============================================================
   PÁGINA DE CONTACTO
   ============================================================ */
.contact-info-bar {
  background: var(--navy);
  padding: 24px 0;
  border-bottom: 3px solid var(--accent);
}
.contact-info-bar__inner {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  line-height: 1.6;
}
.contact-info-item svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-section-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.contact-map__embed {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(11,30,61,.08);
}
.contact-map__embed iframe { display: block; width: 100%; height: 100%; }

.contact-form-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* Contact Form 7 styles */
.wpcf7-form .cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.wpcf7-form .cf7-col,
.wpcf7-form .cf7-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.wpcf7-form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,122,110,.1);
}
.wpcf7-form textarea { min-height: 130px; resize: vertical; }
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  background: var(--teal) !important;
  color: #fff !important;
  border: none !important;
  padding: 13px 32px !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background .2s !important;
  width: 100%;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover { background: #155f56 !important; }
.wpcf7-not-valid-tip { font-size: 12px; color: #e74c3c; margin-top: 4px; }
.wpcf7-response-output {
  margin-top: 16px !important;
  padding: 12px 16px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 14px !important;
  border: none !important;
}
.wpcf7-mail-sent-ok { background: #d4edda !important; color: #155724 !important; }
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng { background: #f8d7da !important; color: #721c24 !important; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-map__embed { height: 300px; }
  .wpcf7-form .cf7-row { grid-template-columns: 1fr; }
  .contact-info-bar__inner { gap: 28px; flex-direction: column; align-items: flex-start; padding: 0 20px; }
}

/* ============================================================
   COMPAT: LIFTERLMS – componentes
   ============================================================ */

/* Syllabus */
.llms-course-syllabus {
  border: 0.5px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
}
.llms-course-syllabus .llms-section {
  border-bottom: 0.5px solid var(--border) !important;
}
.llms-course-syllabus .llms-section:last-child { border-bottom: none !important; }
.llms-course-syllabus .llms-section-title {
  color: var(--navy) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  background: var(--cream) !important;
  padding: 14px 18px !important;
}
.llms-course-syllabus .llms-lesson-preview {
  border-bottom: 0.5px solid var(--border) !important;
  padding: 10px 18px !important;
  font-size: 13px !important;
}
.llms-course-syllabus .llms-lesson-preview:last-child { border-bottom: none !important; }
.llms-course-syllabus .llms-lesson-preview--title {
  color: var(--text) !important;
}
.llms-course-syllabus .llms-lesson-preview.is-free .llms-lesson-preview--title::after {
  background: var(--accent) !important;
  color: var(--navy) !important;
  font-size: 9px !important;
}
.llms-course-syllabus .llms-lesson-preview.is-complete .llms-lesson-preview--title::before {
  color: var(--teal) !important;
}

/* Pricing table */
.llms-access-plans { margin: 0 !important; }
.llms-access-plan {
  border: 0.5px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 20px !important;
}
.llms-access-plan-title {
  font-family: var(--font-display) !important;
  font-size: 20px !important;
  color: var(--navy) !important;
}
.llms-access-plan-price .llms-price {
  font-family: var(--font-display) !important;
  font-size: 34px !important;
  color: var(--navy) !important;
}
.llms-access-plan-price .llms-price-currency {
  font-family: var(--font-body) !important;
  font-size: 18px !important;
  color: var(--muted) !important;
}
.llms-access-plan .llms-button-action,
.llms-form-wrapper .llms-button-action {
  width: 100% !important;
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 13px 24px !important;
  transition: background .2s !important;
}
.llms-access-plan .llms-button-action:hover,
.llms-form-wrapper .llms-button-action:hover {
  background: var(--teal-hover) !important;
  border-color: var(--teal-hover) !important;
}

/* Barra de progreso */
.llms-progress { border-radius: var(--radius-full) !important; }
.llms-progress .progress-bar-complete {
  background: var(--teal) !important;
  border-radius: var(--radius-full) !important;
}

/* Notificaciones / mensajes */
.llms-notice, .woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-left-color: var(--teal) !important;
  background: var(--teal-light) !important;
  color: var(--navy) !important;
  border-radius: var(--radius-md) !important;
  font-size: 14px !important;
}

/* Dashboard de estudiante */
.llms-content-wrap .llms-student-dashboard { padding: 0; }
.llms-content-wrap .llms-sd-section-title {
  font-family: var(--font-display) !important;
  color: var(--navy) !important;
  border-bottom-color: var(--border) !important;
}
.llms-content-wrap .llms-course-list-item {
  border-color: var(--border) !important;
  border-radius: var(--radius-lg) !important;
}

/* ============================================================
   COMPAT: LIFTERLMS (overrides originales)
   ============================================================ */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --gutter: 28px; }
  .cursos-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .course-hero__inner { grid-template-columns: 1fr; }
  .course-hero__media { max-height: 220px; overflow: hidden; border-radius: var(--radius-md); }
  .course-layout { grid-template-columns: 1fr; }
  .course-sidebar__sticky { position: static; }
  .lesson-layout { grid-template-columns: 260px 1fr; }
  .lesson-content { padding: 28px 32px; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .hero { background: var(--navy); }
  .hero__container { grid-template-columns: 1fr; padding: 0 var(--gutter); }
  .hero__content { padding: 52px 0; }
  .hero__stats { display: none; }
  .hero__mockup { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-map { min-height: 260px; }
  .instructor { grid-template-columns: 1fr; }
  .instructor__content {
    padding-top: 52px;
    padding-right: var(--gutter);
    padding-bottom: 52px;
    padding-left: var(--gutter);
  }
  .instructor__photo { min-height: 260px; }
  .cursos-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .main-navigation { display: none; }
  .main-navigation.toggled { display: block; }
  .main-navigation.toggled ul {
    flex-direction: column;
    gap: 0;
    background: var(--navy-mid);
    padding: 12px 0;
  }
  .main-navigation.toggled ul a {
    display: block;
    padding: 10px var(--gutter);
    color: rgba(255,255,255,.8);
  }
  .menu-toggle { display: block; }
  .trust-bar__inner { gap: 18px; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-nav-sidebar { position: static; max-height: 280px; order: -1; }
  .lesson-content { padding: 24px 20px; }
  .course-filter-bar__inner { gap: 8px; }
}

/* ── Tutor LMS Dashboard: espaciado del header ────────────────────────── */
.tutor-frontend-dashboard-header {
    padding-top: 48px;
    padding-bottom: 40px;
}
.tutor-dashboard-header-avatar .tutor-avatar {
    width: 72px !important;
    height: 72px !important;
    font-size: 28px !important;
}

/* ============================================================
   CHECKOUT — PADDING MÓVIL
   ============================================================ */
@media (max-width: 768px) {
  .wp-block-woocommerce-checkout,
  .wc-block-checkout,
  .woocommerce-checkout {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }

  .wc-block-checkout__main,
  .wc-block-checkout__sidebar,
  .wc-block-components-address-form,
  .wc-block-checkout__contact-fields,
  .wc-block-checkout__billing-fields,
  .wc-block-checkout__shipping-fields,
  .wc-block-checkout__payment-method,
  .wp-block-woocommerce-checkout-fields-block,
  .wp-block-woocommerce-checkout-payment-block,
  .wp-block-woocommerce-checkout-order-summary-block {
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }

  /* Inputs no se salgan del borde */
  .wc-block-components-text-input input,
  .wc-block-components-select select,
  .wc-block-components-country-input input {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}
