/*
Theme Name: Leichi Academy
Theme URI: https://leichistudio.com
Author: Alexis Rivera
Description: Tema personalizado para Leichi Academy, compatible con Tutor LMS y WooCommerce.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: leichi-academy
*/
:root {
  --bg: #08090c;
  --bg-soft: #0e1015;
  --card: #12151c;
  --card-2: #171a22;
  --text: #f4f6fb;
  --muted: #a3a8b5;
  --line: rgba(255,255,255,.1);
  --accent: #d8ff3e;
  --accent-dark: #a9cc20;
  --purple: #7b61ff;
  --radius: 22px;
  --shadow: 0 25px 80px rgba(0,0,0,.42);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }

.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 110px 0; position: relative; }

.header {
  position: fixed; inset: 0 0 auto; z-index: 30;
  background: rgba(8,9,12,.72); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: .3s ease;
}
.header.scrolled { border-color: var(--line); background: rgba(8,9,12,.92); }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: "Space Grotesk"; font-weight: 700; letter-spacing: -.02em; }
.logo strong { color: var(--accent); }
.logo-mark { width: 37px; height: 37px; display: grid; place-items: center; color: #08090c; background: var(--accent); border-radius: 10px; font-size: 20px; }
.nav-menu { display: flex; align-items: center; gap: 28px; color: #d8dbe3; font-size: 14px; font-weight: 600; }
.nav-menu > a:not(.button):hover { color: var(--accent); }
.nav-login { padding-left: 20px; border-left: 1px solid var(--line); }
.menu-toggle { display: none; background: none; border: 0; width: 38px; }
.menu-toggle span { display: block; height: 2px; background: white; margin: 7px 0; transition: .25s; }

/* NAVEGACIÓN Y MENÚ DESPLEGABLE */
.nav-menu > a,
.dropdown-toggle {
  color: inherit;
  transition: color .25s ease;
}

.nav-menu > a:hover,
.dropdown-toggle:hover,
.nav-menu .active-page {
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.dropdown-toggle span {
  font-size: 11px;
  transition: transform .25s ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -18px;
  min-width: 210px;
  padding: 8px;
  background: rgba(17,19,23,.98);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown.open .dropdown-toggle span,
.nav-dropdown:hover .dropdown-toggle span {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: #e7e9ef;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: var(--accent);
  background: rgba(255,255,255,.055);
}

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 25px; border: 1px solid var(--accent);
  background: var(--accent); color: #0b0c0f; border-radius: 10px;
  font-weight: 800; transition: .25s ease; box-shadow: 0 8px 30px rgba(216,255,62,.12);
}
.button:hover { transform: translateY(-2px); background: #e4ff75; box-shadow: 0 12px 35px rgba(216,255,62,.22); }
.button-small { min-height: 42px; padding: 0 18px; font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #e7e9ef; }
.text-link:hover { color: var(--accent); }
.play { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow i { width: 24px; height: 1px; background: var(--accent); }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.08; }
h1 { font-size: clamp(50px, 6.3vw, 88px); letter-spacing: -.055em; margin: 24px 0; }
h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.85); }
h2 { font-size: clamp(38px, 4vw, 58px); letter-spacing: -.04em; }
h3 { font-size: 24px; }

.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  padding: 82px 0 0;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: #030807;
}
.hero-video-layer { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.08);
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,8,7,.94) 0%, rgba(3,8,7,.74) 35%, rgba(3,8,7,.26) 68%, rgba(3,8,7,.58) 100%),
    linear-gradient(180deg, rgba(3,8,7,.25) 0%, rgba(3,8,7,.08) 45%, rgba(3,8,7,.9) 100%);
}
.hero-grid {
  width: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 760px) 1fr;
  align-items: start;
  padding-top: 100px;
  padding-bottom: 50px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-left: 64px;
  margin-top: 0;
  text-shadow: 0 3px 30px rgba(0,0,0,.45);
}


.hero-copy h1 {
  margin: 0 0 28px;
  font-size: clamp(48px, 5.5vw, 82px);
}

.hero-copy > p {
  max-width: 680px;
  margin: 0;
  color: rgba(244,246,251,.82);
  font-size: 18px;
  line-height: 1.65;
}
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 35px; }
.hero-proof { display: flex; gap: 18px; align-items: center; margin-top: 42px; }
.avatars { display: flex; }
.avatars img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }
.stars { color: var(--accent); letter-spacing: 2px; }
.hero-proof small { color: rgba(244,246,251,.72); }
.video-sound-toggle {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 122px;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  color: white;
  background: rgba(6,10,10,.45);
  backdrop-filter: blur(12px);
  transition: .25s ease;
}
.video-sound-toggle:hover { transform: translateY(-2px); border-color: var(--accent); }
.software-strip {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 5;
  width: 100%;
  height: 96px;
  padding: 0 max(50px, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  background: rgba(10,10,12,.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,.08);
}

.software-strip > span{
  display:flex;
  align-items:center;
  height:100%;
  max-width:620px;
  font-size:16px;
  font-weight:700;
  color:#f3f3f3;
  letter-spacing:-.01em;
  line-height:1;
}

.software-list {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 28px;
}


.software-item {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition:
    transform .28s ease,
    border-color .28s ease,
    background .28s ease,
    box-shadow .28s ease;
}

.software-item:hover {
  transform: translateY(-4px) scale(1.06);
  border-color: rgba(216,255,62,.7);
  background: rgba(216,255,62,.075);
  box-shadow:
    0 10px 28px rgba(0,0,0,.34),
    0 0 22px rgba(216,255,62,.16);
}

.software-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  opacity: .9;
  filter: grayscale(1) brightness(1.9);
  transition:
    opacity .28s ease,
    filter .28s ease,
    transform .28s ease;
}

.software-item:hover img {
  opacity: 1;
  filter: none;
  transform: scale(1.06);
}


@media (prefers-reduced-motion: reduce) {
  .software-item,
  .software-item img {
    transition: none;
  }

  .software-item:hover,
  .software-item:hover img {
    transform: none;
  }

  .hero-background-video { display: none; }
  .hero-video-layer {
    background: linear-gradient(90deg, rgba(3,8,7,.88), rgba(3,8,7,.36)),
      url("https://images.unsplash.com/photo-1614728263952-84ea256f9679?auto=format&fit=crop&w=1800&q=85") center / cover no-repeat;
  }
}

.courses { background: var(--bg-soft); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; margin-bottom: 50px; }
.section-heading h2 { margin-top: 16px; }
.section-heading > p { max-width: 460px; color: var(--muted); }
.section-heading.centered { flex-direction: column; text-align: center; align-items: center; }
.section-heading.centered p { max-width: 600px; }
.filters { display: flex; gap: 10px; margin-bottom: 30px; }
.filter { padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); background: transparent; }
.filter:hover, .filter.active { color: #0a0b0d; background: var(--accent); border-color: var(--accent); }
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.course-card { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); transition: .3s ease; }
.course-card:hover { transform: translateY(-7px); border-color: rgba(216,255,62,.35); box-shadow: var(--shadow); }
.course-card.hidden { display: none; }
.course-image { height: 310px; position: relative; overflow: hidden; }
.course-image img { height: 100%; object-fit: cover; transition: .45s; }
.course-card:hover .course-image img { transform: scale(1.05); }
.course-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.72)); }
.badge { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 7px 10px; border-radius: 6px; background: white; color: black; font-size: 10px; font-weight: 800; }
.badge-accent { background: var(--accent); }
.course-software { position: absolute; z-index: 2; right: 18px; bottom: 16px; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.course-content { padding: 28px; }
.course-level { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.course-content h3 { margin: 12px 0; }
.course-content p { color: var(--muted); }
.course-footer { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.course-footer a { font-size: 13px; font-weight: 700; }
.course-footer a:hover { color: var(--accent); }

.featured-grid, .instructor-grid, .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; align-items: center; }
.featured-media { height: 620px; border-radius: var(--radius); overflow: hidden; position: relative; }
.featured-media img { height: 100%; object-fit: cover; }
.featured-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(123,97,255,.15), rgba(0,0,0,.35)); }
.video-button { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 85px; height: 85px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(8,9,12,.65); color: white; backdrop-filter: blur(10px); font-size: 22px; }
.video-button:hover { background: var(--accent); color: black; }
.featured-copy h2, .instructor-copy h2 { margin: 18px 0 22px; }
.featured-copy > p, .instructor-copy > p { color: var(--muted); margin-bottom: 18px; }
.feature-list { list-style: none; margin: 30px 0 35px; display: grid; gap: 15px; }
.feature-list li { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.feature-list span { color: var(--accent); margin-right: 12px; }

.method { background: var(--bg-soft); }
.method-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; margin-top: 20px; }
.method-card { position: relative; min-height: 300px; padding: 35px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.method-card:hover { border-color: rgba(216,255,62,.35); }
.method-number { position: absolute; right: 20px; top: 10px; font: 700 74px "Space Grotesk"; color: rgba(255,255,255,.035); }
.method-icon { width: 58px; height: 58px; display: grid; place-items: center; background: rgba(216,255,62,.08); border: 1px solid rgba(216,255,62,.2); color: var(--accent); border-radius: 16px; font-size: 24px; }
.method-card h3 { margin: 35px 0 14px; }
.method-card p { color: var(--muted); }

.instructor-image { height: 680px; position: relative; }
.instructor-image img { height: 100%; object-fit: cover; object-position: center; border-radius: 150px 20px 20px 20px; filter: saturate(.8); }
.experience-pill { position: absolute; right: -25px; bottom: 45px; width: 155px; height: 155px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--accent); color: #090a0c; border-radius: 50%; transform: rotate(-8deg); box-shadow: var(--shadow); }
.experience-pill strong { font: 700 42px "Space Grotesk"; line-height: 1; }
.experience-pill span { font-size: 12px; font-weight: 700; }
.instructor-copy h3 { color: var(--accent); font-size: 18px; margin: -8px 0 25px; }
.instructor-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.instructor-tags span { padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; color: #d5d8df; font-size: 12px; }

.stats { padding: 50px 0; background: var(--accent); color: #090a0c; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stats-grid > div { text-align: center; border-right: 1px solid rgba(0,0,0,.18); }
.stats-grid > div:last-child { border: 0; }
.stats strong { display: block; font: 700 48px "Space Grotesk"; letter-spacing: -.04em; }
.stats strong::before { content: "+"; }
.stats-grid > div:last-child strong::before { content: ""; }
.stats span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }

.slider-controls { display: flex; gap: 10px; }
.slider-controls button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: white; }
.slider-controls button:hover { background: var(--accent); color: black; border-color: var(--accent); }
.testimonial-window { overflow: hidden; }
.testimonial-track { display: flex; gap: 24px; transition: transform .45s ease; }
.testimonial-card { flex: 0 0 calc((100% - 48px)/3); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.testimonial-card > p { min-height: 170px; margin: 20px 0; color: #d7d9df; font-size: 16px; }
.student { display: flex; gap: 13px; align-items: center; }
.student img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.student strong, .student span { display: block; }
.student span { color: var(--muted); font-size: 12px; }

.community { padding-top: 30px; }
.community-box { min-height: 460px; border-radius: 30px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 60px; background: radial-gradient(circle at 80% 20%, rgba(216,255,62,.16), transparent 30%), linear-gradient(135deg,#171a22,#101217); border: 1px solid var(--line); }
.community-copy { position: relative; z-index: 3; }
.community-copy h2 { margin: 17px 0; }
.community-copy p { color: var(--muted); max-width: 500px; margin-bottom: 30px; }
.community-cards { position: relative; min-height: 330px; }
.chat-card { position: absolute; width: min(330px, 90%); padding: 18px; border-radius: 14px; background: rgba(28,31,40,.88); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.chat-card b, .chat-card span { display: block; }
.chat-card b { color: var(--accent); font-size: 12px; margin-bottom: 5px; }
.chat-card span { font-size: 14px; }
.chat-one { top: 15px; right: 0; transform: rotate(3deg); }
.chat-two { top: 125px; left: 0; transform: rotate(-4deg); }
.chat-three { bottom: 0; right: 30px; transform: rotate(2deg); }

.faq-grid { align-items: start; }
.faq-intro { position: sticky; top: 130px; }
.faq-intro h2 { margin: 18px 0; }
.faq-intro p { color: var(--muted); margin-bottom: 28px; max-width: 440px; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-header { width: 100%; display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 25px 0; background: transparent; color: white; border: 0; text-align: left; font-weight: 700; font-size: 17px; }
.accordion-header b { color: var(--accent); font-size: 24px; transition: .25s; }
.accordion-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.accordion-content p { overflow: hidden; color: var(--muted); }
.accordion-item.active .accordion-content { grid-template-rows: 1fr; }
.accordion-item.active .accordion-content p { padding-bottom: 25px; }
.accordion-item.active .accordion-header b { transform: rotate(45deg); }

.newsletter { padding: 0 0 90px; }
.newsletter-box { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; padding: 50px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.newsletter-box h2 { margin: 14px 0 8px; font-size: 38px; }
.newsletter-box p { color: var(--muted); }
.newsletter-form { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter-form input { min-width: 0; min-height: 52px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: white; padding: 0 18px; outline: none; }
.newsletter-form input:focus { border-color: var(--accent); }
.form-message { position: absolute; top: calc(100% + 8px); left: 2px; color: var(--accent); }

.footer { padding: 70px 0 25px; background: #050609; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 50px; }
.footer-grid p { color: var(--muted); margin-top: 20px; max-width: 350px; }
.footer h4 { margin-bottom: 18px; }
.footer-grid > div > a:not(.logo) { display: block; color: var(--muted); margin-bottom: 10px; font-size: 14px; }
.footer-grid > div > a:hover { color: var(--accent); }
.footer-bottom { margin-top: 55px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #666b76; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1200px) {
  .hero-copy {
    padding-left: 32px;
  }
}

@media (max-width: 980px) {
  .menu-toggle { display: block; z-index: 33; }
  .nav-menu { position: fixed; inset: 0; background: rgba(8,9,12,.98); flex-direction: column; justify-content: center; font-size: 19px; transform: translateX(100%); transition: .3s; }
  .nav-menu.active { transform: translateX(0); }
  .nav-login { border: 0; padding: 0; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .hero-grid, .featured-grid, .instructor-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-copy {
    max-width: 760px;
    padding-left: 0;
    margin-inline: auto;
    text-align: center;
  }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .software-strip {
    min-height: 112px;
    padding: 16px 24px;
    flex-direction: row;
    gap: 22px;
  }

  .software-strip > span {
    max-width: 390px;
    font-size: 15px;
  }

  .software-list {
    justify-content: flex-end;
    gap: 16px;
  }

  .software-item {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .software-item img {
    width: 35px;
    height: 35px;
  }
  .course-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .featured-media { height: 520px; }
  .instructor-image { max-width: 680px; width: 100%; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 35px 0; }
  .stats-grid > div:nth-child(2) { border: 0; }
  .testimonial-card { flex-basis: calc((100% - 24px)/2); }
  .faq-intro { position: static; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 80px 0; }
  .hero { padding-top: 125px; }
  h1 { font-size: 48px; }
  h2 { font-size: 38px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .text-link { justify-content: center; }
  .floating-card-top { left: 10px; }
  .floating-card-bottom { right: 10px; }
  .software-list {
    gap: 12px;
  }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .filters { overflow-x: auto; padding-bottom: 5px; }
  .course-image { height: 240px; }
  .featured-media { height: 430px; }
  .instructor-image { height: 520px; }
  .experience-pill { width: 125px; height: 125px; right: -4px; }
  .stats strong { font-size: 38px; }
  .stats span { font-size: 10px; }
  .testimonial-card { flex-basis: 100%; }
  .community-box { grid-template-columns: 1fr; padding: 35px 25px; }
  .community-cards { min-height: 290px; margin-top: 25px; }
  .newsletter-box { grid-template-columns: 1fr; padding: 40px 0; }
  .newsletter-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}


@media (max-width: 980px) {
  .hero { padding-top: 135px; }
  .hero-grid { padding-bottom: 135px; }
  .hero-video-overlay {
    background: linear-gradient(90deg, rgba(3,8,7,.88), rgba(3,8,7,.48)),
      linear-gradient(180deg, rgba(3,8,7,.18), rgba(3,8,7,.88));
  }
  .video-sound-toggle { right: 24px; bottom: 132px; }
}

@media (max-width: 680px) {
  .hero { min-height: 100svh; padding-top: 118px; }
  .hero-grid { padding-bottom: 125px; }
  .hero-background-video { object-position: 62% center; }
  .hero-video-overlay {
    background: linear-gradient(180deg, rgba(3,8,7,.54) 0%, rgba(3,8,7,.58) 38%, rgba(3,8,7,.96) 100%);
  }
  .video-sound-toggle { right: 16px; bottom: 145px; width: 42px; height: 42px; }
  .software-strip {
    min-height: 106px;
    padding: 12px 14px;
    align-items: center;
    gap: 14px;
  }

  .software-strip > span {
    display: none;
  }

  .software-list {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .software-list::-webkit-scrollbar {
    display: none;
  }

  .software-item {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .software-item img {
    width: 31px;
    height: 31px;
  }
}


/* BOTÓN VOLVER ARRIBA */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  color: #08090c;
  background: var(--accent);
  box-shadow: 0 12px 35px rgba(0,0,0,.32);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .25s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px); background: #e4ff75; }
.back-to-top:focus-visible { outline: 3px solid rgba(216,255,62,.35); outline-offset: 4px; }


/* AJUSTES RESPONSIVE FINALES */
@media (max-width: 980px) {
  .hero { height: auto; min-height: 100svh; padding-top: 82px; }
  .hero-grid { align-items: center; padding-top: 70px; padding-bottom: 140px; }
  .hero-copy { padding-left: 0; margin-inline: auto; text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .software-strip { min-height: 112px; height: auto; padding: 16px 24px; }
}
@media (max-width: 680px) {
  .hero { min-height: 100svh; padding-top: 76px; }
  .hero-grid { padding-top: 48px; padding-bottom: 122px; }
  .hero-copy h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-copy > p { font-size: 16px; line-height: 1.6; }
  .software-strip { min-height: 106px; padding: 12px 14px; }
  .software-strip > span { display: none; }
  .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}


/* Enlace hacia la página completa del instructor */
.instructor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.instructor-tags span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  font-size: 13px;
  font-weight: 700;
}

.instructor-profile-link {
  margin-top: 28px;
}


@media (max-width: 980px) {
  .nav-dropdown {
    width: min(320px, calc(100% - 48px));
    text-align: center;
  }

  .dropdown-toggle {
    justify-content: center;
    width: 100%;
    padding: 10px;
    font-size: 19px;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    max-height: 0;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
    transition: max-height .3s ease, padding .3s ease;
  }

  .nav-dropdown.open .dropdown-menu {
    max-height: 150px;
    padding: 6px 0;
  }

  .dropdown-menu a {
    padding: 10px;
    font-size: 16px;
    color: #aeb3bd;
  }
}

/* Página Instructor — estilos específicos */
.instructor-page { background: var(--bg); }
.instructor-page .nav-menu .active-page { color: var(--accent); }
.instructor-page main { overflow: hidden; }

.instructor-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 90px;
  background:
    radial-gradient(circle at 78% 35%, rgba(216,255,62,.10), transparent 28%),
    linear-gradient(135deg, #08090c 0%, #0d1014 55%, #08090c 100%);
}
.instructor-hero-glow { position: absolute; width: 520px; height: 520px; right: -160px; top: 80px; border-radius: 50%; background: rgba(123,97,255,.12); filter: blur(100px); pointer-events: none; }
.instructor-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.75fr); align-items: center; gap: 80px; }
.instructor-hero-copy h1 { max-width: 760px; margin: 20px 0 26px; font-family: "Space Grotesk", sans-serif; font-size: clamp(54px,7vw,104px); line-height: .92; letter-spacing: -.055em; }
.instructor-hero-copy h1 span { color: var(--accent); }
.instructor-hero-copy > p { max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.instructor-hero-copy .instructor-lead { margin-bottom: 12px; color: var(--text); font-size: clamp(19px,2vw,24px); line-height: 1.5; }
.instructor-quick-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 44px; }
.instructor-quick-stats div { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); }
.instructor-quick-stats strong, .instructor-quick-stats span { display: block; }
.instructor-quick-stats strong { margin-bottom: 5px; color: var(--accent); font-family: "Space Grotesk", sans-serif; font-size: 18px; }
.instructor-quick-stats span { color: var(--muted); font-size: 12px; }
.instructor-portrait { position: relative; }
.portrait-frame { position: relative; aspect-ratio: 4/5; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 28px; background: linear-gradient(145deg,#171b23,#0c0e12); box-shadow: var(--shadow); }
.portrait-frame::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg,transparent 55%,rgba(8,9,12,.85)); pointer-events:none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-label { position: absolute; left: -34px; bottom: 34px; z-index: 2; padding: 16px 20px; border: 1px solid rgba(216,255,62,.25); border-radius: 15px; background: rgba(8,9,12,.86); backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.portrait-label span, .portrait-label strong { display: block; }
.portrait-label span { margin-bottom: 5px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.portrait-label strong { font-size: 13px; }

.story-section { background: var(--bg-soft); }
.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.section-heading-stack h2 { max-width: 520px; margin-top: 18px; font-size: clamp(38px,5vw,68px); line-height: 1.02; letter-spacing: -.04em; }
.story-copy p { margin-bottom: 22px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.story-copy blockquote { margin-top: 36px; padding: 28px 30px; border-left: 3px solid var(--accent); border-radius: 0 18px 18px 0; color: var(--text); background: rgba(216,255,62,.055); font-family: "Space Grotesk", sans-serif; font-size: clamp(22px,3vw,32px); line-height: 1.35; }

.timeline-section { background: #090b0f; }
.timeline { position: relative; max-width: 900px; margin: 70px auto 0; }
.timeline::before { content:""; position:absolute; left: 108px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--accent),rgba(255,255,255,.08)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 54px; padding: 0 0 48px; }
.timeline-item::before { content:""; position:absolute; left: 102px; top: 8px; width: 13px; height: 13px; border-radius:50%; background: var(--accent); box-shadow: 0 0 0 7px rgba(216,255,62,.10); }
.timeline-year { color: var(--accent); font-family:"Space Grotesk",sans-serif; font-weight:800; text-align:right; }
.timeline-item h3 { margin-bottom: 9px; font-size: 22px; }
.timeline-item p { color: var(--muted); line-height: 1.7; }

.tools-section { background: var(--bg-soft); }
.tool-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:50px; }
.tool-card { min-height:155px; display:flex; flex-direction:column; justify-content:flex-end; padding:24px; border:1px solid var(--line); border-radius:20px; background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018)); transition:.28s ease; }
.tool-card:hover { transform:translateY(-5px); border-color:rgba(216,255,62,.5); background:rgba(216,255,62,.055); }
.tool-card strong { margin-bottom:7px; font-size:18px; }
.tool-card span { color:var(--muted); font-size:13px; line-height:1.5; }

.projects-section { background:#090b0f; }
.project-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.project-card { overflow:hidden; border:1px solid var(--line); border-radius:22px; background:var(--card); transition:.3s ease; }
.project-card:hover { transform:translateY(-6px); border-color:rgba(216,255,62,.35); box-shadow:var(--shadow); }
.project-image { aspect-ratio:16/10; overflow:hidden; }
.project-image img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.project-card:hover img { transform:scale(1.05); }
.project-card > div:last-child { padding:25px; }
.project-card span { color:var(--accent); font-size:11px; font-weight:800; letter-spacing:.15em; }
.project-card h3 { margin:12px 0 10px; font-size:21px; line-height:1.25; }
.project-card p { color:var(--muted); font-size:14px; line-height:1.7; }

.philosophy-section { background:var(--bg-soft); }
.philosophy-box { max-width:1080px; padding:70px; border:1px solid rgba(216,255,62,.22); border-radius:30px; text-align:center; background:radial-gradient(circle at 50% 0,rgba(216,255,62,.10),transparent 48%),#101319; }
.philosophy-box h2 { max-width:900px; margin:22px auto; font-size:clamp(38px,5vw,66px); line-height:1.05; letter-spacing:-.045em; }
.philosophy-box p { max-width:760px; margin:auto; color:var(--muted); font-size:17px; line-height:1.8; }

.instructor-cta { padding:0 0 110px; background:var(--bg-soft); }
.instructor-cta-box { display:flex; justify-content:space-between; align-items:center; gap:35px; padding:48px 54px; border-radius:24px; background:var(--accent); color:#090b0f; }
.instructor-cta-box .eyebrow { color:#090b0f; }
.instructor-cta-box .eyebrow i { background:#090b0f; }
.instructor-cta-box h2 { max-width:700px; margin-top:12px; font-size:clamp(32px,4vw,52px); line-height:1.05; }
.instructor-cta-box .button { flex:0 0 auto; border-color:#090b0f; background:#090b0f; color:white; }

@media (max-width: 980px) {
  .instructor-hero-grid, .story-grid { grid-template-columns:1fr; }
  .instructor-hero-grid { gap:55px; }
  .instructor-portrait { max-width:520px; }
  .story-grid { gap:40px; }
  .tool-grid { grid-template-columns:repeat(2,1fr); }
  .project-grid { grid-template-columns:1fr; }
}
@media (max-width: 680px) {
  .instructor-hero { padding-top:120px; }
  .instructor-hero-copy h1 { font-size:52px; }
  .instructor-quick-stats { grid-template-columns:1fr; }
  .portrait-label { left:14px; bottom:14px; }
  .timeline::before { left:11px; }
  .timeline-item { grid-template-columns:1fr; gap:9px; padding-left:38px; }
  .timeline-item::before { left:5px; }
  .timeline-year { text-align:left; }
  .tool-grid { grid-template-columns:1fr; }
  .philosophy-box { padding:42px 22px; }
  .instructor-cta-box { flex-direction:column; align-items:flex-start; padding:36px 25px; }
}

/* Páginas interiores */
.simple-page{min-height:100vh;padding-top:170px}.simple-card{max-width:860px;padding:48px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.025)}.simple-card p{max-width:680px;color:var(--muted);font-size:18px;line-height:1.8}.simple-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}.contact-form{display:grid;gap:16px;margin-top:30px}.contact-form input,.contact-form textarea{width:100%;padding:16px 18px;color:#fff;background:#101217;border:1px solid var(--line);border-radius:10px;font:inherit}.contact-form textarea{min-height:160px;resize:vertical}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:680px){.simple-card{padding:28px}}
