/* ============================================================================
   GLOBAL ENGLISH ACADEMY — styles.css
   Archetype: Glassmorphism Modern (adapted to corporate blue/green palette)
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------------ */
:root{
  /* Brand */
  --blue: #1A39DF;
  --blue-dark: #011683;
  --green: #7ED957;
  --white: #FFFFFF;

  /* Neutrals */
  --ink: #0B1130;
  --ink-soft: #555E80;
  --ink-mute: #8891B5;
  --bg: #F5F7FE;
  --bg-soft: #EDF1FC;
  --line: rgba(11, 17, 48, 0.08);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 20px 60px -20px rgba(11, 17, 48, 0.25);

  --glass-bg-dark: rgba(255, 255, 255, 0.08);
  --glass-border-dark: rgba(255, 255, 255, 0.16);

  /* Typography */
  --font-display: "Sora", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;

  /* Layout */
  --container: 1240px;
  --container-narrow: 760px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: .25s;
  --dur-med: .5s;
  --dur-slow: .9s;
}

/* ---------------------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

button { font-family: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--white);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 999;
}

/* ---------------------------------------------------------------------------
   3. LAYOUT HELPERS
   ------------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); }

.section {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0;
  overflow: hidden;
}
.section-soft { background: var(--bg-soft); }

.section-on-dark {
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}
.eyebrow-on-dark { color: var(--green); }
.hero .eyebrow { color: #7ED957; }

.hero-eyebrow {
  color: var(--green);
  font-weight: 700;
  text-shadow: 0 0 18px rgba(126, 217, 87, 0.45), 0 2px 14px rgba(1, 22, 131, 0.55);
}

.section-title {
  font-size: clamp(28px, 4.2vw, 44px);
  color: var(--ink);
}
.title-on-dark { color: var(--white); }

/* ---------------------------------------------------------------------------
   4. GRIDS
   ------------------------------------------------------------------------ */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  will-change: transform;
}

.btn-primary {
  background: var(--green);
  color: var(--blue-dark);
  box-shadow: 0 10px 30px -8px rgba(126, 217, 87, 0.55);
}
.btn-primary:hover {
  background: #8fe66c;
  box-shadow: 0 14px 36px -8px rgba(126, 217, 87, 0.65);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--blue-dark);
}
.btn-light:hover {
  background: var(--green);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-xl { padding: 20px 44px; font-size: 18px; }

/* ---------------------------------------------------------------------------
   6. NAV
   ------------------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              backdrop-filter var(--dur-med) var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 8px 30px -16px rgba(11, 17, 48, 0.25);
}

/* Article pages: navbar visible from the start (no dark hero behind it) */
body.article-page .nav:not(.is-scrolled) {
  background: #1A39DF;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(26, 57, 223, .18);
}
body.article-page .nav:not(.is-scrolled) .nav-link,
body.article-page .nav:not(.is-scrolled) .nav-logo {
  color: #ffffff;
}
body.article-page .nav:not(.is-scrolled) .nav-burger span {
  background: #ffffff;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  height: 58px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.03);
}

@media (max-width: 720px) {
  .nav-logo-img { height: 46px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav.is-scrolled .nav-link { color: var(--ink-soft); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--white); }
.nav.is-scrolled .nav-link:hover { color: var(--blue); }
.nav-link:hover::after { width: 100%; }
.nav-link-disabled { opacity: .4; cursor: default; pointer-events: none; }
.nav-link-disabled::after { display: none; }


.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 0 auto;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav.is-scrolled .nav-burger span { background: var(--ink); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile-link {
  padding: 12px 4px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-mobile-cta { margin-top: 14px; width: 100%; }

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ---------------------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 22, 131, 0.78) 0%, rgba(1, 22, 131, 0.62) 45%, rgba(1, 22, 131, 0.92) 100%);
}

.hero-mesh {
  position: absolute;
  inset: -10%;
  z-index: -1;
  opacity: .55;
  background:
    radial-gradient(40% 40% at 18% 22%, rgba(126, 217, 87, 0.45), transparent 60%),
    radial-gradient(45% 45% at 85% 15%, rgba(26, 57, 223, 0.55), transparent 60%),
    radial-gradient(50% 50% at 50% 100%, rgba(1, 22, 131, 0.6), transparent 65%);
  filter: blur(40px);
  background-size: 200% 200%;
  animation: meshDrift 24s ease-in-out infinite alternate;
}

@keyframes meshDrift {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%; }
  100% { background-position: 20% 20%, 80% 30%, 60% 80%; }
}

.hero-inner { position: relative; z-index: 1; padding-top: 76px; }

.hero-content { max-width: 720px; }

.hero-title {
  font-size: clamp(34px, 6vw, 64px);
  margin: 0 0 20px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0 0 28px;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 36px;
}
.hero-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}
.hero-checks li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.hero-promo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border-dark);
  backdrop-filter: blur(14px);
}
.hero-promo-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}
.hero-promo-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}
.hero-promo-price s { font-weight: 400; opacity: .55; margin-right: 6px; }
.hero-promo-price small { font-size: 13px; font-weight: 500; opacity: .75; }
.hero-promo-note { font-size: 12px; color: rgba(255,255,255,.7); }

/* ---------------------------------------------------------------------------
   8. GLASS CARDS
   ------------------------------------------------------------------------ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}

@supports not (backdrop-filter: blur(1px)) {
  .glass-card { background: var(--white); }
  .glass-card-dark { background: rgba(255,255,255,.08); }
}

.glass-card-dark {
  background: var(--glass-bg-dark);
  border-color: var(--glass-border-dark);
  color: var(--white);
}

.card {
  padding: 32px 28px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(26,57,223,.12), rgba(126,217,87,.18));
  margin-bottom: 18px;
}
.glass-card-dark .card-icon {
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(126,217,87,.22));
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.glass-card-dark p { color: rgba(255,255,255,.78); }

/* tilt support */
[data-tilt] { transform-style: preserve-3d; }

/* ---------------------------------------------------------------------------
   9. SOLUTION SECTION
   ------------------------------------------------------------------------ */
.section-mesh { position: relative; }
.section-mesh::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(40% 40% at 80% 10%, rgba(126, 217, 87, 0.28), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(26, 57, 223, 0.35), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}

.solution-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.device-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border-dark);
  box-shadow: var(--glass-shadow);
  aspect-ratio: 4 / 5;
}
.device-frame img {
  width: 100%; height: 100%; object-fit: cover;
}

.solution-blocks {
  display: grid;
  gap: 18px;
}
.solution-block {
  position: relative;
  padding: 24px 26px;
  color: var(--white);
  overflow: hidden;
}
.solution-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .12em;
  margin-bottom: 8px;
}

/* Big decorative background number (used on the main landing's solution blocks) */
.solution-num-deco {
  position: absolute;
  top: -0.18em;
  right: 0.3em;
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 110px);
  font-weight: 800;
  line-height: 1;
  color: var(--blue-dark);
  opacity: .22;
  letter-spacing: -0.02em;
  pointer-events: none;
  z-index: 0;
}
.solution-block-content {
  position: relative;
  z-index: 1;
  max-width: 86%;
}
.solution-block h3 { font-size: 17px; margin-bottom: 6px; }
.solution-block p { font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.6; }

@media (max-width: 880px) {
  .solution-layout { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   10. ROADMAP ("Cómo funciona")
   ------------------------------------------------------------------------ */
.roadmap {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.roadmap-step {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 28px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -20px rgba(11, 17, 48, 0.25);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out);
}
.roadmap-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(26, 57, 223, 0.35);
  border-color: rgba(26, 57, 223, 0.28);
}

.roadmap-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1;
  color: var(--blue);
  opacity: .2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.roadmap-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.roadmap-step p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.roadmap-connector {
  flex: 0 0 56px;
  align-self: center;
  position: relative;
  height: 2px;
  margin: 0 -2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: .35;
}
.roadmap-connector::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.roadmap-step-final {
  flex: 1.15;
  border-color: rgba(126, 217, 87, 0.6);
  background:
    linear-gradient(160deg, rgba(26, 57, 223, 0.10), rgba(126, 217, 87, 0.14)),
    var(--glass-bg-strong);
  box-shadow:
    0 0 0 1px rgba(126, 217, 87, 0.3),
    0 28px 64px -28px rgba(126, 217, 87, 0.55);
}
.roadmap-step-final:hover {
  box-shadow:
    0 0 0 1px rgba(126, 217, 87, 0.45),
    0 32px 72px -24px rgba(126, 217, 87, 0.65);
}
.roadmap-step-final .roadmap-num {
  color: var(--green);
  opacity: .35;
}

.roadmap-badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

@media (max-width: 960px) {
  .roadmap {
    flex-direction: column;
    gap: 20px;
  }
  .roadmap-connector { display: none; }
  .roadmap-step,
  .roadmap-step-final { flex: none; }
}

/* ---------------------------------------------------------------------------
   10b. TIMELINE (used on empresas.html)
   ------------------------------------------------------------------------ */
.timeline {
  display: grid;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--green));
  opacity: .35;
}

.timeline-step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  align-items: flex-start;
}

.timeline-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 10px 24px -8px rgba(26, 57, 223, 0.5);
}

.timeline-content h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.timeline-content p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------------------------------------------------------------------------
   11. TESTIMONIALS / RATING
   ------------------------------------------------------------------------ */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -12px rgba(11,17,48,.18);
}
.rating-stars { color: var(--green); letter-spacing: 2px; font-size: 14px; }
.rating-text { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial .rating-stars { font-size: 15px; }
.testimonial blockquote {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  font-style: normal;
}
.testimonial figcaption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--blue);
}

/* ---------------------------------------------------------------------------
   12. PLAN CARD
   ------------------------------------------------------------------------ */
.plan-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  background: linear-gradient(165deg, rgba(255,255,255,.85), rgba(255,255,255,.55));
}

.plan-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.plan-price {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}
.plan-price-current {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--ink);
}
.plan-price-current small {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
}
.plan-price-old {
  font-size: 15px;
  color: var(--ink-mute);
  text-decoration: line-through;
}

.plan-includes {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.plan-includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.plan-includes li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.program-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.program-card h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
}
.program-includes {
  display: grid;
  gap: 10px;
  margin: 8px 0 8px;
}
.program-includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.program-includes li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.program-card .btn { align-self: flex-start; margin-top: auto; }

.values-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.values-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.glass-card-dark .values-list li { color: var(--white); }
.values-list li span { font-size: 20px; flex-shrink: 0; line-height: 1; }

/* ---------------------------------------------------------------------------
   12B. BLOG / ARTICLE CARDS
   ------------------------------------------------------------------------ */
.article-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(145deg, rgba(26,57,223,.12), rgba(126,217,87,.18));
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.glass-card-dark .article-tag {
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(126,217,87,.22));
  color: var(--white);
}

/* Premium hover: scale + glow on the whole card */
.article-card,
.featured-article {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.card.article-card,
.card.featured-article {
  transition: opacity var(--dur-slow) var(--ease-out), transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s cubic-bezier(.22,.61,.36,1);
}
.card.article-card.is-visible:hover,
.card.featured-article.is-visible:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(26,57,223,.12);
}

.article-card-image,
.article-card-media,
.blog-card-media,
.blog-card-image,
.article-thumbnail {
  position: relative;
  margin: -32px -28px 20px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.article-card-image img,
.article-card-media img,
.blog-card-media img,
.blog-card-image img,
.article-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
/* Editorial zoom effect on the cover image when the card is hovered */
.article-card:hover .article-card-image img,
.article-card:hover .article-card-media img,
.article-card:hover .blog-card-media img,
.article-card:hover .blog-card-image img,
.article-card:hover .article-thumbnail img,
.featured-article:hover .featured-article-media img {
  transform: scale(1.08);
}
.article-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}
.article-meta {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-mute);
  opacity: .8;
}
.article-card .btn { margin-top: 18px; align-self: flex-start; }

/* Arrow micro-interaction on "Leer artículo" buttons */
.btn .link-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform .3s var(--ease-out);
}
.btn:hover .link-arrow {
  transform: translateX(4px);
}

/* Featured articles grid: full-width horizontal cards, stacked */
.featured-grid {
  grid-template-columns: 1fr;
  gap: 28px;
}

/* Featured article card: image on the side, content on the other (horizontal) */
.featured-article {
  padding: 0;
  flex-direction: row;
  align-items: stretch;
}
.featured-article-media {
  position: relative;
  flex: 0 0 45%;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.featured-article-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-article-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.featured-article-body h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.3;
  margin-bottom: 14px;
}
.featured-article-body p { color: var(--ink-mute); margin-bottom: 20px; }

@media (max-width: 880px) {
  .featured-article { flex-direction: column; }
  .featured-article-media {
    flex: none;
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .featured-article-body { padding: 28px; }
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tag-chip {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.tag-chip:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}
.section-on-dark .tag-chip {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: var(--white);
}
.section-on-dark .tag-chip:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--blue-dark);
}

/* ---------------------------------------------------------------------------
   13. FAQ ACCORDION
   ------------------------------------------------------------------------ */
.accordion {
  display: grid;
  gap: 14px;
}

.accordion-item {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px -16px rgba(11,17,48,.18);
}

.accordion-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.accordion-item summary::-webkit-details-marker { display: none; }

.accordion-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.accordion-item[open] summary::after {
  transform: rotate(135deg);
  background: var(--green);
  color: var(--blue-dark);
}

.accordion-body {
  padding: 0 24px 22px;
}
.accordion-body p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------------------
   14. CTA FINAL
   ------------------------------------------------------------------------ */
.cta-final {
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  text-align: center;
}
.hero-mesh-cta,
.hero-mesh-results {
  position: absolute;
  inset: -20%;
  opacity: .5;
  background:
    radial-gradient(40% 40% at 80% 20%, rgba(126, 217, 87, 0.35), transparent 60%),
    radial-gradient(45% 45% at 15% 80%, rgba(255, 255, 255, 0.12), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-final-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-final-title {
  font-size: clamp(28px, 4.6vw, 46px);
  margin-bottom: 16px;
}
.cta-final-sub {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
}

/* ---------------------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------------------ */
.footer {
  background: var(--ink);
  background: var(--blue-dark);
  color: rgba(255,255,255,.8);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-logo-img {
  height: 56px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  align-self: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-links a:hover { color: var(--green); }

.footer-social { display: flex; gap: 12px; }
.social-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  color: var(--white);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.social-link:hover {
  background: var(--green);
  color: var(--blue-dark);
  transform: translateY(-2px);
}
.footer-copy {
  width: 100%;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  text-align: center;
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
}

/* ---------------------------------------------------------------------------
   16. WHATSAPP FAB
   ------------------------------------------------------------------------ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  color: var(--blue-dark);
  box-shadow: 0 12px 30px -10px rgba(126, 217, 87, 0.6);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 36px -10px rgba(126, 217, 87, 0.7);
}

/* ---------------------------------------------------------------------------
   17. REVEAL ANIMATIONS
   ------------------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* defensive: never let split-text reveals stay invisible if JS fails */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* stagger inside grids */
.grid [data-reveal]:nth-child(1) { transition-delay: 0s; }
.grid [data-reveal]:nth-child(2) { transition-delay: .06s; }
.grid [data-reveal]:nth-child(3) { transition-delay: .12s; }
.grid [data-reveal]:nth-child(4) { transition-delay: .18s; }
.grid [data-reveal]:nth-child(5) { transition-delay: .24s; }
.grid [data-reveal]:nth-child(6) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .hero-mesh-cta, .hero-mesh-results { animation: none; }
}

/* ---------------------------------------------------------------------------
   18. BLOG ARTICLE TEMPLATE
   ------------------------------------------------------------------------ */
.btn-outline-dark {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--line);
}
.btn-outline-dark:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--ink-soft); transition: color var(--dur-fast) var(--ease-out); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* Article hero */
.article-hero { padding-top: calc(76px + clamp(40px, 6vw, 72px)); }
.article-hero-head { max-width: 760px; }
.article-hero-head h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  color: var(--ink);
  margin: 14px 0 18px;
}
.article-hero-excerpt {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-mute);
}
.article-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

.article-hero-media {
  margin-top: 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.article-hero-media img {
  width: 100%;
  height: clamp(220px, 40vw, 440px);
  object-fit: cover;
}

/* Two-column layout (with sidebar) */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 60px;
  align-items: start;
}
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
}
/* Article pages: single card in .grid-3 expands to full width */
body.article-page .grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Prose */
.article-content {
  max-width: 70ch;
  text-align: justify;
}
.article-content h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--ink);
  margin: 2.2rem 0 .9rem;
  line-height: 1.3;
  text-align: left;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  margin: 36px 0 16px;
  text-align: left;
}
.article-content p {
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink-soft);
  text-align: justify;
  margin-bottom: 1.1rem;
}
.article-content ul,
.article-content ol {
  display: grid;
  gap: 14px;
  margin: 0 0 32px;
}
.article-content ul li,
.article-content ol li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.3;
  color: var(--ink-soft);
  text-align: justify;
}
.article-content ol { counter-reset: article-counter; }
.article-content ol li { counter-increment: article-counter; }
.article-content ol li::before {
  content: counter(article-counter);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(26,57,223,.12), rgba(126,217,87,.18));
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
}
.article-content ul li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Pull quote */
.pull-quote {
  margin: 36px 0;
  padding: 32px 36px;
  border-radius: var(--radius-md);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--green);
  box-shadow: var(--glass-shadow);
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

/* Summary box */
.summary-box {
  margin: 36px 0;
  padding: 30px 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(26,57,223,.06), rgba(126,217,87,.12));
  border: 1px solid var(--line);
}
.summary-box h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 14px;
}
.summary-box ul { margin: 0; }
.summary-box ul li::before { background: var(--blue); }

/* Inline CTA */
.cta-inline {
  margin: 40px 0;
  padding: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  text-align: center;
}
.cta-inline h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--white);
  margin-bottom: 10px;
}
.cta-inline p {
  color: rgba(255,255,255,.8);
  margin-bottom: 20px;
}

/* Sidebar */
.article-sidebar {
  display: grid;
  gap: 24px;
  position: sticky;
  top: 100px;
}
@media (max-width: 980px) {
  .article-sidebar { position: static; }
}
.sidebar-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.sidebar-card h3 {
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue);
  margin-bottom: 16px;
}
.sidebar-card p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 16px; }
.sidebar-toc {
  display: grid;
  gap: 10px;
}
.sidebar-toc a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease-out);
}
.sidebar-toc a:hover { color: var(--blue); }
.sidebar-list { display: grid; gap: 4px; }
.sidebar-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color var(--dur-fast) var(--ease-out);
}
.sidebar-list a:last-child { border-bottom: none; }
.sidebar-list a:hover { color: var(--blue); }
.sidebar-card .btn { width: 100%; }

/* Inline article images */
.article-image-block,
.article-inline-image {
  margin: 40px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  background: var(--glass-bg-strong);
}
.article-image-block img,
.article-inline-image img {
  display: block;
  width: 100%;
  height: clamp(200px, 38vw, 380px);
  object-fit: cover;
}
.article-caption {
  display: block;
  padding: 14px 20px;
  font-size: 13.5px;
  line-height: 1.5;
  font-style: italic;
  text-align: center;
  color: var(--ink-mute);
}

/* Back to blog link */
.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.article-back-link:hover {
  color: var(--blue);
  transform: translateX(-3px);
}
.article-back-link-block {
  text-align: center;
  margin: 8px 0 0;
}

/* ---------------------------------------------------------------------------
   19. RESPONSIVE TWEAKS
   ------------------------------------------------------------------------ */
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .plan-card { padding: 36px 24px; }
  .footer-copy { text-align: left; }
}

@media (max-width: 540px) {
  .hero-title { font-size: 32px; }
  .card { padding: 26px 22px; }
}

/* ---------------------------------------------------------------------------
   20. ARTICLE — COVER IMAGE, SHARE BAR & COMMENTS
   ------------------------------------------------------------------------ */

/* Premium cover image */
.article-cover-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(1,22,131,.18);
  margin-top: 2rem;
  background: var(--blue-dark);
}
.article-cover-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform .6s var(--ease-out);
}
.article-cover-wrap:hover img { transform: scale(1.02); }
.article-cover-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1,22,131,.35) 0%, transparent 55%);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
@media (max-width: 720px) {
  .article-cover-wrap img { height: 260px; }
}

/* Share bar — lives outside .article-layout grid, spans full container width */
.share-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  max-width: 860px;
  border-top: 1px solid rgba(26,57,223,.1);
  border-bottom: 1px solid rgba(26,57,223,.1);
  margin: 2.5rem 0 0;
}
.share-bar-label {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-shrink: 0;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem .8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.share-btn:hover { opacity: .85; }
.share-btn svg { flex-shrink: 0; }
.share-btn-fb { background: #1877f2; color: #fff; }
.share-btn-wa { background: #25d366; color: #fff; }
.share-btn-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.share-btn-copy { background: var(--bg-soft); color: var(--ink); border: 1px solid rgba(26,57,223,.15); }

/* Share toast */
.share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--blue-dark);
  color: #fff;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(1,22,131,.3);
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Comments section — lives outside .article-layout grid, spans full container width */
.comments-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 2px solid rgba(26,57,223,.1);
  max-width: 860px;
}
.comments-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: .5rem;
}
.comments-section .comments-sub {
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}
#disqus_thread {
  background: #fff;
  border: 1px solid rgba(26,57,223,.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-height: 200px;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-soft);
  border: 1px solid rgba(26,57,223,.1);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(26,57,223,.15);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  box-sizing: border-box;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,57,223,.1);
}
.comment-form textarea {
  resize: vertical;
  min-height: 120px;
}
.comment-form .comment-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #25d366;
  color: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  padding: .85rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  align-self: flex-start;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.comment-form .comment-submit:hover { background: #1eb85a; transform: translateY(-2px); }
.comment-form .comment-note {
  font-family: var(--font-body);
  font-size: .75rem;
  color: var(--ink-mute);
  margin: 0;
}
@media (max-width: 600px) {
  .comment-form-row { grid-template-columns: 1fr; }
  .comment-form { padding: 1.25rem; }
}

/* ============================================================================
   LEARNING EXPERIENCE BUILDER — EDITOR VISUAL (FASE UX-01B)
   ========================================================================== */

/* Editor principal: 3 paneles */
.editor-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInLeft {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1.5px solid var(--c-border);
  background: var(--c-surface);
  gap: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(11, 17, 48, 0.08);
  animation: slideInDown 0.4s ease-out;
}

.lesson-editor {
  display: grid;
  grid-template-columns: 220px 1fr 350px;
  gap: 1.25rem;
  flex: 1;
  overflow: hidden;
  padding: 1.25rem;
}

.editor-panel-left,
.editor-panel-center,
.editor-panel-right {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(11, 17, 48, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.editor-panel-left {
  animation: slideInLeft 0.4s ease-out;
}

.editor-panel-center {
  animation: slideInDown 0.4s ease-out 0.1s backwards;
}

.editor-panel-right {
  background: linear-gradient(135deg, rgba(26, 57, 223, 0.03), rgba(126, 217, 87, 0.03));
  animation: slideInDown 0.4s ease-out 0.2s backwards;
}

.editor-panel-left:hover,
.editor-panel-center:hover,
.editor-panel-right:hover {
  box-shadow: 0 8px 24px rgba(11, 17, 48, 0.12);
  border-color: rgba(26, 57, 223, 0.2);
}

/* Scrollbar mejorado */
.editor-panel-left::-webkit-scrollbar,
.editor-panel-center::-webkit-scrollbar,
.editor-panel-right::-webkit-scrollbar {
  width: 6px;
}

.editor-panel-left::-webkit-scrollbar-track,
.editor-panel-center::-webkit-scrollbar-track,
.editor-panel-right::-webkit-scrollbar-track {
  background: transparent;
}

.editor-panel-left::-webkit-scrollbar-thumb,
.editor-panel-center::-webkit-scrollbar-thumb,
.editor-panel-right::-webkit-scrollbar-thumb {
  background: rgba(26, 57, 223, 0.3);
  border-radius: 3px;
}

.editor-panel-left::-webkit-scrollbar-thumb:hover,
.editor-panel-center::-webkit-scrollbar-thumb:hover,
.editor-panel-right::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 57, 223, 0.5);
}

/* Bloques en editor */
.block-item {
  cursor: grab;
  padding: 1rem;
  border: 2px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-surface);
  margin-bottom: 0.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  animation: slideInLeft 0.3s ease-out;
}

.block-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--green));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s ease-out;
}

.block-item:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(26, 57, 223, 0.15);
  transform: translateY(-2px);
}

.block-item:hover::before {
  transform: scaleY(1);
}

.block-item:active {
  cursor: grabbing;
  box-shadow: 0 12px 32px rgba(26, 57, 223, 0.2);
}

.block-item.selected {
  border-color: var(--blue);
  background: linear-gradient(135deg, rgba(26, 57, 223, 0.08), rgba(126, 217, 87, 0.04));
  box-shadow: 0 8px 24px rgba(26, 57, 223, 0.2);
  border-left: 4px solid var(--blue);
}

/* Tipos de bloques (panel izq) */
.block-type-btn {
  width: 100%;
  padding: 0.85rem;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-surface);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

.block-type-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue), var(--green));
  opacity: 0;
  transition: opacity 0.3s ease-out;
  z-index: -1;
}

.block-type-btn:hover {
  border-color: var(--blue);
  background: rgba(26, 57, 223, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 57, 223, 0.12);
}

.block-type-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(26, 57, 223, 0.1);
}

/* Formularios */
.form-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  font-size: 0.85rem;
  background: var(--c-surface);
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  position: relative;
}

.form-input:hover {
  border-color: rgba(26, 57, 223, 0.3);
  box-shadow: 0 2px 8px rgba(26, 57, 223, 0.06);
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 57, 223, 0.15), inset 0 1px 2px rgba(26, 57, 223, 0.05);
  background: linear-gradient(135deg, rgba(26, 57, 223, 0.02), rgba(126, 217, 87, 0.01));
}

.form-input textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'Monaco', 'Courier New', monospace;
  line-height: 1.5;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Modales con animación */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.95) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  background: transparent;
  animation: modalFadeIn 0.3s ease-out;
}

.modal[style*="display: flex"] {
  animation: modalFadeIn 0.3s ease-out;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  backdrop-filter: blur(4px);
  animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
  position: relative;
  background: var(--c-surface);
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid rgba(26, 57, 223, 0.1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem;
  border-bottom: 1.5px solid var(--c-border);
  background: linear-gradient(135deg, rgba(26, 57, 223, 0.02), rgba(126, 217, 87, 0.01));
}

.modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink-mute);
  transition: all 0.2s ease;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-left: 0.5rem;
}

.modal-close:hover {
  color: var(--ink);
  background: rgba(26, 57, 223, 0.08);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.75rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.75rem;
  border-top: 1.5px solid var(--c-border);
  background: linear-gradient(135deg, rgba(26, 57, 223, 0.01), rgba(126, 217, 87, 0.005));
}

/* Animación de slide up */
@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Pulsing animation para indicadores */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Mobile responsive */
@media (max-width: 1400px) {
  .lesson-editor {
    grid-template-columns: 200px 1fr 330px;
    gap: 1rem;
  }
}

@media (max-width: 1200px) {
  .lesson-editor {
    grid-template-columns: 160px 1fr 280px;
    gap: 0.9rem;
  }

  .editor-toolbar {
    padding: 1rem 0.9rem;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .editor-panel-left,
  .editor-panel-center,
  .editor-panel-right {
    padding: 1rem;
    border-radius: 12px;
  }
}

@media (max-width: 1024px) {
  .lesson-editor {
    grid-template-columns: 140px 1fr 250px;
    gap: 0.75rem;
  }

  .lesson-editor {
    padding: 1rem 0.75rem;
  }

  .editor-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .editor-toolbar > div:first-child {
    display: flex;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .lesson-editor {
    grid-template-columns: 1fr;
    gap: 1rem;
    overflow: visible;
    padding: 0.75rem;
  }

  .editor-wrapper {
    height: auto;
  }

  .editor-panel-left {
    display: none;
  }

  .editor-panel-right {
    order: 1;
  }

  .editor-panel-center {
    order: 2;
  }

  .editor-toolbar {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0.75rem;
    margin-bottom: 1rem;
  }

  .editor-toolbar button {
    width: 100%;
  }

  .editor-panel-left,
  .editor-panel-center,
  .editor-panel-right {
    max-height: 500px;
    padding: 1rem;
  }

  .block-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .modal-content {
    width: 95%;
    max-height: 85vh;
  }
}

@media (max-width: 480px) {
  .lesson-editor {
    grid-template-columns: 1fr;
    padding: 0.5rem;
    gap: 0.75rem;
  }

  .editor-toolbar {
    padding: 0.75rem 0.5rem;
    gap: 0.5rem;
  }

  .editor-panel-left,
  .editor-panel-center,
  .editor-panel-right {
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .block-item {
    padding: 0.6rem;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }

  .c-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

  .editor-panel-left,
  .editor-panel-right {
    display: none;
  }

  .modal-content {
    max-width: 95%;
    width: 95%;
  }
}
