/* ================================================================
   VARIABLES & RESET
   ================================================================ */
:root {
  --green:      #1abc9c;
  --green-dk:   #16a085;
  --green-nl:   #27ae60;
  --dark:       #1a1a1a;
  --footer-bg:  #333333;
  --bottom-bg:  #222222;
  --text:       #555555;
  --text-lt:    #777777;
  --border:     #e5e5e5;
  --white:      #ffffff;
  --grey-bg:    #f7f7f7;
  --font:       'Ubuntu', sans-serif;
  --script:     'Euphoria Script', cursive;
  --maxw:       1200px;
  --tr:         .24s ease;
  --header-h:   93px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  {  font-size: 16px; }
body  { font-family: var(--font); font-weight: 300; font-size: 0.875rem; color: var(--text); line-height: 1.75; background: #fff; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; transition: color var(--tr); }
ul    { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: var(--font); }
figure { margin: 0; }

/* ================================================================
   LAYOUT
   ================================================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ================================================================
   REVEAL ON SCROLL
   ================================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ================================================================
   HEADER
   ================================================================ */
.magnis-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-row {
  display: flex; align-items: center;
  min-height: var(--header-h); gap: 20px;
}
.col-logo { flex-shrink: 0; }
.site-logo img { height: 6rem; width: auto; }
.logo-fallback { display: flex; flex-direction: column; }
.logo-fallback strong { font-size: 1.8rem; color: var(--green); font-weight: 700; line-height: 1; }
.logo-fallback small  { font-size: .75rem; color: var(--dark); letter-spacing:.04em; }

.col-nav { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* Social buttons */
.header-social-buttons { display: flex; gap: 5px; }
.header-social-buttons a {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: var(--dark); color: #fff; border-radius: 2px;
  transition: background var(--tr);
}
.header-social-buttons a svg { width: 13px; height: 13px; }
.header-social-buttons a:hover { background: var(--green); }

/* Contacts */
.header-contacts { display: flex; gap: 18px; }
.header-contacts p { display: flex; align-items: center; gap: 5px; font-size: 0.78125rem; }
.header-contacts svg { width: 12px; height: 12px; stroke: var(--green); flex-shrink: 0; }
.header-contacts a:hover { color: var(--green); }

/* Green line */
.gray-line { height: 3px; background: var(--green); }

/* Burger */
.mobile-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-burger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--tr); }
.mobile-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-burger.open span:nth-child(2) { opacity: 0; }
.mobile-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ================================================================
   NAVIGATION
   ================================================================ */
.site-desktop-menu > ul { display: flex; align-items: center; }
.site-desktop-menu > ul > li { position: relative; }
.site-desktop-menu > ul > li > a {
  display: block; padding: 8px 12px;
  font-size: 0.8125rem; color: var(--dark); white-space: nowrap;
  transition: color var(--tr);
}
.site-desktop-menu > ul > li > a:hover,
.site-desktop-menu > ul > li.current-menu-item > a { color: var(--green); }
.site-desktop-menu > ul > li.current-menu-item > a {
  border-bottom: 2px solid var(--green); padding-bottom: 6px;
}
.menu-item-has-children > a::after { content: ' ▾'; font-size: 0.5625rem; }

/* Dropdowns */
.sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 210px; background: #fff;
  border-top: 2px solid var(--green);
  box-shadow: 0 5px 16px rgba(0,0,0,.10);
  z-index: 500; opacity: 0; pointer-events: none;
  transform: translateY(6px);
  transition: opacity var(--tr), transform var(--tr);
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu { opacity: 1; pointer-events: all; transform: none; }
.sub-menu li { position: relative; }
.sub-menu li a {
  display: block; padding: 9px 15px; font-size: 0.78125rem; color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background var(--tr), color var(--tr);
}
.sub-menu li:last-child a { border-bottom: none; }
.sub-menu li a:hover { background: var(--grey-bg); color: var(--green); }
.sub-right { top: 0; left: 100%; }

/* ================================================================
   HERO SLIDER — contenido centrado
   ================================================================ */
.hero-slider {
  position: relative;
  height: calc(100vh - var(--header-h) - 3px);
  min-height: 460px; overflow: hidden;
}
.slides-wrap { position: relative; width: 100%; height: 100%; }

/* ── CAMBIO PRINCIPAL: centrado horizontal y vertical ── */
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .85s ease;
  display: flex; align-items: center; justify-content: center;
}
.slide--active { opacity: 1; }
.slide-content {
  position: relative; z-index: 2;
  padding: 0 40px;
  max-width: 900px;
  width: 100%;
  text-align: center;
}
/* ─────────────────────────────────────────────────────────────── */

.slide-eyebrow {
  font-size: 1.1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .22em;
  color: #fff; margin-bottom: 20px;
  font-family: 'Open Sans', sans-serif;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 3px rgba(0, 0, 0, 0.4);
}
.slide-heading {
  font-size: 6rem; font-weight: 700; line-height: 1.05;
  color: #fff; margin-bottom: 24px;
  font-family: 'Ubuntu', sans-serif;
  text-shadow: 0 3px 10px rgba(0,0,0,.6), 0 1px 4px rgba(0,0,0,.4);
}
.slide-heading span { color: var(--green); }
.slide-sub {
  font-size: 1.15rem; color: rgba(255,255,255,.98);
  line-height: 1.65; margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto; margin-right: auto;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}
.slide-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center;
}
.slide-btn {
  display: inline-block;
  padding: 15px 36px; border-radius: 3px;
  font-size: 1rem; font-weight: 600;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
  font-family: 'Ubuntu', sans-serif;
}
.slide-btn--primary {
  background: var(--green); color: #fff; border: 2px solid var(--green);
}
.slide-btn--primary:hover { background: var(--green-dk); border-color: var(--green-dk); }
.slide-btn--secondary {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7);
}
.slide-btn--secondary:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; font-size: 2rem; color: rgba(255,255,255,.75);
  padding: 8px 14px; transition: color var(--tr); user-select: none;
}
.slider-arrow:hover { color: #fff; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.sdot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.4); transition: background var(--tr); cursor: pointer;
}
.sdot--active { background: var(--green); }

/* ================================================================
   SECCIÓN GENERAL
   ================================================================ */
.wpb_row { padding: 60px 0; }
.section-grey { background: var(--grey-bg); }
.section-white { background: #fff; }

.section-banner {
  width: 100%;
  height: 350px;
  margin-bottom: 40px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 5%;
  display: block;
}

.contact-cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .section-banner { height: 220px; margin-bottom: 30px; }
  .contact-cities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .section-banner { height: 160px; }
  .contact-cities-grid { grid-template-columns: 1fr; }
}

.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 55px; align-items: center;
}
.two-col--top { align-items: start; }

.vc_box_border_grey img { width: 100%; border: 1px solid var(--border); border-radius: 3px; }

h2 { font-size: 1.4rem; font-weight: 400; color: var(--dark); margin-bottom: 18px; }
h2 b { color: var(--green); font-weight: 700; }
.section-h2-center { text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--text-lt); font-size: 0.84375rem; margin-bottom: 36px; }
.intro p { font-size: 0.84375rem; margin-bottom: 10px; line-height: 1.8; }

/* ================================================================
   CURSOS GRID
   ================================================================ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.course-card {
  border: 1px solid var(--border); border-radius: 4px;
  background: #fff; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow var(--tr), transform var(--tr);
}
.course-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.09); transform: translateY(-3px); }

.ccard-head { padding: 18px 14px 14px; color: #fff; display: flex; flex-direction: column; gap: 5px; }
.cc-coaching { background: var(--green); }
.cc-pnl      { background: var(--green-dk); }
.cc-sport    { background: #2980b9; }
.cc-ventas   { background: #8e44ad; }

.ccat { font-size: 0.625rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.ccard-head h3 { font-size: 0.88rem; font-weight: 700; line-height: 1.3; }

.ccard-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ccard-body p { font-size: 0.78125rem; color: var(--text); line-height: 1.6; flex: 1; }
.btn-course {
  display: inline-block; background: var(--green); color: #fff;
  padding: 7px 16px; border-radius: 2px; font-size: 0.75rem; font-weight: 500;
  align-self: flex-start; transition: background var(--tr);
}
.btn-course:hover { background: var(--green-dk); }

/* ================================================================
   PROGRAMAS
   ================================================================ */
.programas-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.programa-card {
  border: 1px solid var(--border); border-radius: 4px;
  background: #fff; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow var(--tr), transform var(--tr);
}
.programa-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.09); transform: translateY(-3px); }
.pcard-head {
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
  padding: 28px 24px 22px; color: #fff;
}
.pcard-badge {
  display: inline-block; font-size: 0.625rem; text-transform: uppercase;
  letter-spacing: .1em; background: rgba(255,255,255,.2);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.pcard-head h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.pcard-tagline { font-size: 0.8125rem; opacity: .88; }
.pcard-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.pcard-body p { font-size: 0.84375rem; color: var(--text); line-height: 1.75; flex: 1; }
.btn-programa {
  display: inline-block; background: var(--green); color: #fff;
  padding: 10px 24px; border-radius: 2px; font-size: 0.8125rem; font-weight: 500;
  align-self: flex-start; transition: background var(--tr);
}
.btn-programa:hover { background: var(--green-dk); }

/* ================================================================
   TESTIMONIOS
   ================================================================ */
.testimonials-1 h2 {
  font-size: 1.15rem; font-weight: 700; color: var(--dark);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.testi-item         { display: none; }
.testi-item--active { display: block; animation: tfade .4s ease; }
@keyframes tfade { from { opacity: 0; } to { opacity: 1; } }
.quote-ico {
  display: block; font-style: normal;
  font-size: 3.2rem; color: var(--green);
  font-family: Georgia, serif; line-height: 1; margin-bottom: 6px;
}
.testimonials-1 li p { font-size: 0.84375rem; line-height: 1.8; color: var(--text); margin-bottom: 12px; }
.testimonials-1 li span {
  display: block; font-family: var(--script); font-size: 2rem;
  color: var(--green); line-height: 1.2; margin-bottom: 2px;
}
.testimonials-1 li small { font-size: 0.75rem; color: var(--text-lt); }
.testi-dots { display: flex; gap: 8px; margin-top: 16px; }
.testimonials-centered { max-width: 700px; margin: 0 auto; }
.tdot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); transition: background var(--tr); cursor: pointer;
}
.tdot--active { background: var(--green); }

/* ================================================================
   CONTACTO
   ================================================================ */
.contact-h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.contact-item {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; font-size: 0.84375rem;
}
.cico { width: 15px; height: 15px; flex-shrink: 0; }
.contact-item a:hover { color: var(--green); }
.contact-item a[href^="mailto"] { word-break: break-all; font-size: 0.75rem; }
.contact-desc { font-size: 0.84375rem; line-height: 1.8; margin-top: 14px; }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.contact-form-section {
  background: var(--grey-bg);
  padding: 30px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.contact-form-section h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--dark);
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 3px;
  font-family: var(--font); font-size: 0.84375rem; color: var(--text);
  transition: border-color var(--tr), background var(--tr);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-checkbox { flex-direction: row; align-items: center; gap: 8px; margin-top: 8px; }
.form-checkbox input { width: 18px; height: 18px; cursor: pointer; }
.form-checkbox label { font-size: 0.84375rem; color: var(--text); cursor: pointer; }
.btn-submit {
  background: var(--green); color: #fff;
  padding: 12px 24px; border-radius: 3px;
  font-size: 0.875rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: background var(--tr);
  align-self: flex-start; margin-top: 8px;
}
.btn-submit:hover { background: var(--green-dk); }

.contact-info-section { display: flex; flex-direction: column; gap: 30px; }
.map-container {
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
}
.map-container h3 {
  font-size: 1rem; font-weight: 700; color: var(--dark);
  padding: 16px; background: var(--grey-bg); margin: 0;
  border-bottom: 1px solid var(--border);
}
.map-container iframe { display: block; width: 100%; height: 350px; border: none; }

/* ================================================================
   MAPA
   ================================================================ */
.mapa-wrap { width: 100%; height: 320px; border: 1px solid var(--border); border-radius: 3px; overflow: hidden; margin-top: 20px; }
.mapa-wrap iframe { width: 100%; height: 100%; border: none; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--footer-bg); padding: 50px 0 36px; color: var(--text-lt); }
.footer-widget { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; max-width: 900px; margin: 0 auto; }
.magnis-widget { text-align: center; }
.textwidget { text-align: center; }
.soc-icons { justify-content: center; }
.magnis-widget h3 {
  font-size: 0.78125rem; font-weight: 700; color: #fff;
  margin-bottom: 14px; letter-spacing: .05em; text-transform: uppercase;
}
.textwidget a { display: inline; font-size: 0.75rem; color: var(--green); line-height: 2.1; }
.textwidget a:hover { color: #2ecc71; }
.soc-icons { display: flex; gap: 8px; }
.soc-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; background: rgba(255,255,255,.08);
  border-radius: 3px; color: var(--green);
  transition: background var(--tr), color var(--tr);
}
.soc-icons a svg { width: 16px; height: 16px; }
.soc-icons a:hover { background: var(--green); color: #fff; }

.bottom-line { background: var(--bottom-bg); padding: 13px 0; color: var(--text-lt); }
.bottom-line-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px; flex-direction: column; text-align: center;
}
.bottom-line-inner p { font-size: 0.75rem; }
.bottom-menu ul { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.bottom-menu li { display: flex; align-items: center; font-size: 0.75rem; }
.bottom-menu a { color: var(--text-lt); font-size: 0.75rem; }
.bottom-menu a:hover { color: var(--green); }
.bottom-menu span { color: var(--text-lt); margin-left: 2px; }

#to-the-top {
  position: fixed; bottom: 22px; right: 22px; z-index: 999;
  width: 36px; height: 36px; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px; font-size: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity var(--tr), background var(--tr);
}
#to-the-top.visible { opacity: 1; pointer-events: all; }
#to-the-top:hover { background: var(--green-dk); }

/* ================================================================
   CONTACTO – grid de ciudades
   ================================================================ */
.contact-cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.contact-city-card {
  background: var(--grey-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px 18px;
}
.contact-city-title {
  font-size: 1rem; font-weight: 700;
  color: var(--green);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--green);
}
.mapa-contacto { width: 100%; height: 320px; border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.mapa-contacto iframe { width: 100%; height: 100%; border: none; display: block; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .courses-grid { grid-template-columns: repeat(3,1fr); }
  .site-desktop-menu > ul > li > a { padding: 8px 9px; font-size: 0.78125rem; }
  .footer-widget { grid-template-columns: repeat(3,1fr); }
  .contact-cities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .courses-grid { grid-template-columns: repeat(2,1fr); }
  .programas-grid { grid-template-columns: 1fr; }
  .section-banner { height: 240px; }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .programas-grid { grid-template-columns: 1fr; }
  .section-banner { height: 280px; margin-bottom: 35px; }
  body { font-size: 1.125rem; }
  h2 { font-size: 1.8rem; margin-bottom: 16px; }
  .slide-heading { font-size: 4.5rem; }
  .slide-sub { font-size: 1.05rem; }
  .slide-eyebrow { font-size: 1.1rem; }
  .slide-btn { padding: 13px 30px; font-size: 1rem; }
  .intro p { font-size: 1rem; line-height: 1.85; }
  .section-sub { font-size: 0.95rem; margin-bottom: 32px; }
  .ccard-body p { font-size: 0.90rem; line-height: 1.7; }
  .ccard-head h3 { font-size: 1.1rem; }
  .btn-course { padding: 9px 18px; font-size: 0.90rem; }
  .pcard-body p { font-size: 0.95rem; line-height: 1.8; }
  .pcard-head h3 { font-size: 1.5rem; }
  .btn-programa { padding: 12px 26px; font-size: 0.95rem; }
  .testimonials-1 li p { font-size: 0.95rem; line-height: 1.85; }
  .contact-h3 { font-size: 1.2rem; }
  .contact-item { font-size: 0.95rem; }
  .contact-form-section h3 { font-size: 1.4rem; }
  .form-group input, .form-group textarea { font-size: 0.95rem; padding: 13px 14px; }
  .btn-submit { font-size: 1rem; padding: 13px 26px; }
  .contact-cities-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .contact-city-title { font-size: 1.15rem; }
  .map-container iframe { height: 340px; }
  .footer-widget { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 72px; }
  .header-contacts { display: none; }
  .header-social-buttons { gap: 4px; }
  .mobile-burger { display: flex; }
  .site-logo img { height: 4.5rem; }
  .site-desktop-menu {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; z-index: 800;
    background: #fff; border-top: 2px solid var(--green);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }
  .site-desktop-menu.open { transform: none; opacity: 1; pointer-events: all; }
  .site-desktop-menu > ul { flex-direction: column; align-items: center; }
  .site-desktop-menu > ul > li > a {
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    font-size: 0.9375rem; text-align: center; display: block; width: 100%;
  }
  .site-desktop-menu > ul > li.current-menu-item > a { padding-bottom: 14px; border-bottom: 2px solid var(--green); }
  .menu-item-has-children > a::after { float: right; }
  .sub-menu {
    position: static; opacity: 1; pointer-events: none; transform: none;
    box-shadow: none; border-top: none; display: none; padding-left: 14px;
  }
  .menu-item-has-children.mob-open > .sub-menu { display: block; pointer-events: all; }
  .sub-right { left: 0; }
  .hero-slider { height: 65vw; min-height: 340px; }
  .slide-content { padding: 0 24px; max-width: 560px; }
  .slide-heading { font-size: 3rem; }
  .slide-sub { font-size: 0.95rem; margin-bottom: 22px; }
  .slide-btn { padding: 12px 26px; font-size: 0.9rem; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 30px; }
  .contact-form-section { padding: 20px; }
  .footer-widget { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .bottom-line-inner { flex-direction: column; text-align: center; }
  .bottom-menu ul { justify-content: center; }
}

@media (max-width: 520px) {
  :root { --header-h: 64px; }
  .wpb_row { padding: 38px 0; }
  .header-social-buttons { display: none; }
  .site-logo img { height: 3.8rem; }
  .col-nav { gap: 4px; }
  .hero-slider { height: 75vw; min-height: 280px; }
  .slide-content { padding: 0 16px; max-width: 100%; }
  .slide-eyebrow { font-size: 0.625rem; margin-bottom: 8px; }
  .slide-heading { font-size: 2rem; margin-bottom: 12px; }
  .slide-sub { display: none; }
  .slide-actions { gap: 10px; }
  .slide-btn { padding: 9px 16px; font-size: 0.75rem; }
  .section-banner { height: 180px; margin-bottom: 24px; }
  .courses-grid { grid-template-columns: 1fr; }
  .contact-cities-grid { grid-template-columns: 1fr; }
  .mapa-contacto { height: 220px; }
  .footer-widget { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .slide-heading { font-size: 1.6rem; }
  .slide-btn { padding: 8px 12px; font-size: 0.71875rem; }
  .slide-actions { flex-direction: column; align-items: center; gap: 8px; }
}

/* ================================================================
   PÁGINAS LEGALES
   ================================================================ */
.legal-hero { background: var(--dark); padding: 40px 0 32px; }
.legal-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78125rem; margin-bottom: 12px;
  color: rgba(255,255,255,0.5);
}
.legal-breadcrumb a { color: var(--green); }
.legal-breadcrumb a:hover { color: #2ecc71; }
.legal-breadcrumb span:last-child { color: rgba(255,255,255,0.7); }
.legal-hero h1 {
  color: #fff; font-size: 1.8rem; font-weight: 700;
  border-left: 4px solid var(--green); padding-left: 16px;
}
.legal-content { padding: 56px 0 72px; }
.legal-body { max-width: 820px; }
.legal-body h2 {
  font-size: 1.15rem; font-weight: 700; color: var(--dark);
  margin: 36px 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--green);
}
.legal-body h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 24px 0 10px; }
.legal-body p { font-size: 0.84375rem; line-height: 1.85; color: var(--text); margin-bottom: 14px; }
.legal-body ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal-body ul li { font-size: 0.84375rem; line-height: 1.85; color: var(--text); margin-bottom: 6px; }
.legal-body a { color: var(--green); }
.legal-body a:hover { color: var(--green-dk); text-decoration: underline; }

@media (max-width: 768px) {
  .legal-hero { padding: 28px 0 22px; }
  .legal-hero h1 { font-size: 1.4rem; }
  .legal-content { padding: 36px 0 48px; }
}