/* estilo.css (base + PROFESOR + FAQ SEO + YOUTUBE GRID) */
:root{
  --bg: #ffffff;
  --bg-soft: #f2f4f4;
  --text: #1b1f23;
  --muted: #5b6670;

  --green: #6f8f12;
  --orange: #f39a1a;
  --orange-dark: #d98206;

  --card: #ffffff;

  --shadow: 0 10px 24px rgba(0,0,0,.08);
  --shadow-soft: 0 8px 18px rgba(0,0,0,.06);

  --container: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
p{ margin:0 0 14px; color: var(--muted); font-size: 14px; }
h1,h2,h3,h4,h5{ margin:0 0 12px; line-height:1.12; color: var(--text); }
.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* Skip link */
.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: 12px;
  top: 12px;
  width:auto;
  height:auto;
  padding: 10px 12px;
  background:#fff;
  border:1px solid rgba(0,0,0,.15);
  z-index: 9999;
}

/* HEADER / NAV */
header{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.topbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
#corporativo{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 260px;
}
#corporativo img{
  width: 42px;
  height: 42px;
  object-fit: contain;
}
#corporativo .texto{
  display:flex;
  flex-direction: column;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: .2px;
}
#corporativo .texto .t1{ font-size: 14px; color:#24303a; }
#corporativo .texto .t2{ font-size: 12px; font-weight: 650; color:#6c7a86; margin-top:2px; }

nav{
  display:flex;
  align-items:center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav a{
  font-size: 13px;
  color: #2f3a44;
  opacity: .9;
  padding: 8px 6px;
}
nav a:hover{ opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-cta{
  margin-left: 10px;
  background: var(--orange);
  color:#fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(243,154,26,.22);
}
.nav-cta:hover{ background: var(--orange-dark); text-decoration:none; }

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .35px;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  user-select:none;
  white-space: nowrap;
}
.btn-primary{
  background: var(--orange);
  color:#fff;
  box-shadow: 0 10px 22px rgba(243,154,26,.24);
}
.btn-primary:hover{
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(243,154,26,.26);
}

/* HERO (IMPORTANT: matches hero_image in JSON) */
#heroe{
  position: relative;
  min-height: 430px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.30), rgba(0,0,0,.40)),
    url("img/hero.png") center/cover no-repeat;
}
#heroe::after{
  content:"";
  position:absolute;
  right:-180px;
  bottom:-180px;
  width: 520px;
  height: 520px;
  background: var(--bg);
  border-radius: 999px;
  transform: rotate(-8deg);
  box-shadow: -30px -10px 0 rgba(255,255,255,.25);
}
.hero-inner{
  position:relative;
  z-index: 2;
  padding: 74px 0 84px;
  text-align:center;
  color:#fff;
}
.hero-inner h1{
  color:#fff;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: .2px;
  margin-bottom: 10px;
  text-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.hero-inner p{
  max-width: 820px;
  margin: 0 auto 22px;
  color: rgba(255,255,255,.92);
  font-size: 14.5px;
}
.hero-micro{
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,.85);
}

/* SECCIONES */
main{ background: var(--bg); }
section{ padding: 70px 0; position:relative; }
.soft{ background: var(--bg-soft); }

.section-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items:center;
}
.section-grid.reverse{ grid-template-columns: .95fr 1.05fr; }

.media{
  border-radius: 0;
  overflow:hidden;
  box-shadow: none;
  background: #e9edf0;
}
.media img{
  width:100%;
  height: 340px;
  object-fit: cover;
}

.content h2{
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: .1px;
}
.content .kicker{
  display:inline-block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color:#6a7480;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

#destacado2 .content h2{
  display:inline-block;
  background-image: linear-gradient(to bottom, transparent 70%, rgba(111,143,18,.30) 70%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
}

.pill-card{
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  display:grid;
  grid-template-columns: 240px 1fr;
  gap: 38px;
  align-items: center;
  min-height: 220px;
}
.pill-card .left{
  padding: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: transparent;
}
.pill-card .left img{
  width: 210px;
  height: 210px;
  object-fit: cover;
  clip-path: polygon(14% 6%, 86% 6%, 100% 50%, 86% 94%, 14% 94%, 0% 50%);
  border: 6px solid rgba(243,154,26,.85);
  box-shadow: var(--shadow-soft);
  border-radius: 18px;
  background:#fff;
}
.pill-card .right{ padding: 0; }
.pill-card p{ max-width: 760px; }

.iconline{
  display:flex;
  align-items:center;
  gap: 16px;
  margin-bottom: 10px;
}
.iconbox{
  width: 86px;
  height: 86px;
  border-radius: 0;
  background: transparent;
  display:flex;
  align-items:center;
  justify-content:center;
}
.iconbox img{
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.band{
  border-radius: 0;
  overflow:hidden;
  box-shadow: none;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 280px;
}
.band .band-left{
  background: var(--green);
  padding: 34px 34px;
  color:#fff;
  display:flex;
  flex-direction: column;
  justify-content:center;
  gap: 10px;
}
.band .band-left h2{ color:#fff; font-size: 28px; }
.band .band-left p{ color: rgba(255,255,255,.92); }
.band .band-right{ background: #e9edf0; }
.band .band-right img{ width:100%; height:100%; object-fit: cover; }

.cta-photo{
  position:relative;
  padding: 88px 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.50), rgba(0,0,0,.58)),
    url("img/cta.png") center/cover no-repeat;
  color:#fff;
  overflow:hidden;
}
.cta-photo .cta-inner{
  text-align:center;
  max-width: 920px;
  margin: 0 auto;
}
.cta-photo h2{
  color:#fff;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  margin-bottom: 12px;
  text-shadow: 0 12px 24px rgba(0,0,0,.28);
}
.cta-photo p{
  color: rgba(255,255,255,.92);
  margin: 0 auto 22px;
  max-width: 760px;
}

.why{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: start;
}
.why .why-card{
  background: var(--card);
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.why .why-card p{ max-width: 820px; }
.why .callout{
  background: var(--orange);
  color:#fff;
  border-radius: 0;
  padding: 18px 18px;
  box-shadow: none;
  align-self: center;
}
.why .callout p{ color: rgba(255,255,255,.95); margin:0; }

/* YOUTUBE SECTION */
#videos{
  background: #ffffff;
  padding: 70px 0;
}
.youtube-head p{ max-width: 860px; }

.youtube-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.youtube-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  padding: 12px;
}

.youtube-frame{
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display:block;
}

.youtube-title{
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 900;
  color: #1b1f23;
}

.youtube-meta{
  margin: 6px 0 0;
  font-size: 12px;
  color: #6a7480;
}

#contacto{
  background: #f3f4f5;
  padding: 70px 0;
}
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  align-items: start;
}
.footer-mini, form{
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 22px;
  border: 1px solid rgba(0,0,0,.08);
}
label{
  display:block;
  font-size: 12px;
  color:#2f3a44;
  font-weight: 800;
  margin: 12px 0 6px;
}
input, textarea{
  width:100%;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 0;
  padding: 12px 12px;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  background: #fff;
}
textarea{ min-height: 130px; resize: vertical; }
input:focus, textarea:focus{
  border-color: rgba(243,154,26,.75);
  box-shadow: 0 0 0 3px rgba(243,154,26,.18);
}
.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-legal{
  margin-top: 10px;
  font-size: 12px;
  color: #6a7480;
}

footer{
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 18px 0;
  color: #5b6670;
  font-size: 12px;
}
.footer-wrap{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.social{
  display:flex;
  gap: 10px;
  opacity: .9;
}
.social a{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.06);
}

/* PROFESOR */
.teacher-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: start;
}
.teacher-card, .teacher-proof{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  padding: 22px;
  border-radius: 0;
  box-shadow: none;
}
.teacher-head{
  display:flex;
  gap: 14px;
  align-items:center;
  margin-bottom: 12px;
}
.teacher-photo{
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 0;
  border: 6px solid rgba(243,154,26,.30);
  background: #fff;
}
.teacher-sub{
  margin: 0 0 10px;
  font-size: 13px;
  color: #6a7480;
}
.teacher-badges{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,.10);
  font-size: 12px;
  font-weight: 800;
  color: #2f3a44;
  background: #fff;
}
.teacher-points{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
.teacher-points .point{
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}
.teacher-points .point strong{
  display:block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #1b1f23;
}
.teacher-links{
  margin-top: 14px;
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}
.link-soft{
  font-size: 13px;
  color: #2f3a44;
  opacity: .85;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.teacher-proof-links{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.teacher-proof-links a{
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: .9;
}
.teacher-proof-links a:hover{ opacity: 1; }

.proof-list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}
.proof-list li{ margin: 0 0 8px; }
.mini-note{
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(243,154,26,.08);
}

/* FAQ */
.faq-head p{ max-width: 860px; }
.faq-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}
.faq-item{
  border: 1px solid rgba(0,0,0,.10);
  background:#fff;
  padding: 0;
}
.faq-item summary{
  cursor:pointer;
  padding: 14px 14px;
  font-weight: 900;
  font-size: 14px;
  color:#1b1f23;
  list-style: none;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+";
  float:right;
  font-weight: 900;
  opacity:.7;
}
.faq-item[open] summary::after{ content:"–"; }
.faq-a{
  padding: 0 14px 14px;
}
.faq-a p{ margin: 0; }

/* Responsive */
@media (max-width: 980px){
  .section-grid,
  .section-grid.reverse,
  .band,
  .pill-card,
  .why,
  .contact-grid{
    grid-template-columns: 1fr;
  }
  .teacher-grid{ grid-template-columns: 1fr; }
  .media img{ height: 280px; }
  .pill-card{ gap: 18px; }
  nav{ justify-content: flex-start; }
  #heroe::after{
    right:-240px;
    bottom:-240px;
    width: 560px;
    height: 560px;
  }
}
@media (max-width: 560px){
  .form-row{ grid-template-columns: 1fr; }
  #corporativo{ min-width: auto; }
  #heroe{ min-height: 420px; }
  .hero-inner{ padding: 54px 0 74px; }
  section{ padding: 58px 0; }
  .teacher-photo{ width: 96px; height: 96px; }
}

