/* Letras servidas desde la propia web (sin Google Fonts): Barlow e Inter, licencia SIL OFL 1.1 (ver fonts/) */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/barlow-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); }

/* =========================================================
   Magistral Formación · Academia Parque Picasso
   Colores tomados de la web actual (versión 3)
   ========================================================= */
:root {
  --navy: #011E41;
  --navy-deep: #001630;
  --cyan: #00C1DE;
  --cyan-text: #0097B4;   /* cian con contraste suficiente sobre claro */
  --yellow: #FFC629;
  --green: #009845;
  --red: #F5333F;
  --purple: #8E5CF2;
  --light: #E4FCFF;
  --line: #CDEFF3;
  --text: #1F2B3D;
  --white: #FFFFFF;

  --f-head: "Barlow", "Arial Narrow", Arial, sans-serif;
  --f-body: "Inter", "Segoe UI", Arial, sans-serif;
  --w: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--f-body); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--light); }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 99; background: var(--yellow); padding: 8px 14px; color: var(--navy); }

.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--sm { width: 14px; height: 14px; }

/* ---------- Títulos (Barlow en mayúsculas, como la web actual) ---------- */
.h-hero, .h-navy, .h-cyan {
  font-family: var(--f-head); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin: 0;
}
.h-navy { color: var(--navy); font-size: clamp(30px, 3.4vw, 40px); text-align: center; margin-bottom: 14px; }
.h-left { text-align: left; }
.h-cyan { color: var(--cyan); font-size: clamp(36px, 4.4vw, 54px); letter-spacing: .03em; text-align: center; margin-bottom: 28px; }
.lead { text-align: center; max-width: 640px; margin: 0 auto 40px; font-size: 16px; }

/* ---------- Botones ---------- */
.btn-y {
  display: inline-block; background: var(--yellow); color: var(--navy);
  font-family: var(--f-body); font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 11px 26px; border: 0; border-radius: 3px; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.08); transition: background-color .15s;
}
.btn-y:hover { background: #F2B70F; color: var(--navy); }
.btn-y--sm { font-size: 14px; padding: 8px 20px; }
.btn-grad {
  display: inline-block; color: var(--white); text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 34px; border-radius: 2px;
  background: linear-gradient(90deg, #3435F3 0%, #E91B5B 100%);
  box-shadow: 0 0 18px rgba(52,53,243,.45);
}
.btn-grad:hover { filter: brightness(1.08); color: var(--white); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-deep); color: var(--white); font-size: 12.5px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar__rows { display: flex; flex-direction: column; gap: 4px; }
.topbar__row { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.topbar__row li { display: flex; align-items: center; gap: 8px; }
.topbar .ico { color: var(--cyan); }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__login { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.topbar__login .ico { color: var(--white); }
@media (max-width: 760px) {
  .topbar__row li:nth-child(3) { display: none; }
  .topbar__login { display: none; }
}

/* ---------- Cabecera ---------- */
.header { background: var(--navy); position: sticky; top: 0; z-index: 40; }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--white); background: #00183A; padding: 18px 16px; align-self: stretch; }
.brand img { width: 40px; height: auto; }
.brand__txt { display: flex; flex-direction: column; font-family: var(--f-head); line-height: 1.05; }
.brand__l1 { font-weight: 400; font-size: 17px; letter-spacing: .06em; }
.brand__l2 { font-weight: 700; font-size: 13px; letter-spacing: .02em; }

.menu { display: flex; align-items: center; gap: 46px; }
.menu__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.menu__list > li > a, .menu__toggle {
  display: flex; align-items: center; gap: 6px; padding: 10px 0;
  color: var(--white); text-decoration: none; text-transform: uppercase;
  font-family: var(--f-head); font-weight: 700; font-size: 13.5px; letter-spacing: .03em;
  background: none; border: 0; cursor: pointer;
}
.menu__list > li > a:hover, .menu__toggle:hover { color: var(--cyan); }
.menu__drop { position: relative; }
.menu__sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 270px;
  list-style: none; margin: 0; padding: 8px 0; background: var(--white);
  border-top: 3px solid var(--cyan); box-shadow: 0 10px 30px rgba(1,30,65,.25);
}
.menu__sub.is-open { display: block; }
.menu__sub a { display: block; padding: 9px 18px; color: var(--navy); text-decoration: none; font-size: 14px; }
.menu__sub a:hover { background: var(--light); color: var(--cyan-text); }

.burger { display: none; background: none; border: 0; width: 46px; height: 46px; padding: 11px; cursor: pointer; }
.burger span { display: block; height: 3px; background: var(--white); margin: 4px 0; border-radius: 2px; }

@media (max-width: 1060px) {
  .burger { display: block; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--navy); padding: 8px 20px 24px; border-top: 1px solid rgba(255,255,255,.1);
  }
  .menu.is-open { display: flex; }
  .menu__list { flex-direction: column; gap: 0; }
  .menu__list > li > a, .menu__toggle { width: 100%; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .menu__sub { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 22px; }
  .menu__sub a { color: #CFE3F0; }
  .menu__sub a:hover { background: transparent; color: var(--cyan); }
  .btn-grad { text-align: center; }
}

/* ---------- Decoración común ---------- */
.light { background: var(--light); position: relative; }
.spark { position: absolute; width: 34px; height: 34px; fill: none; stroke: #BEE9F0; stroke-width: 1.2; pointer-events: none; }
.deco { position: absolute; width: 110px; height: 110px; fill: none; stroke: #C7ECF2; stroke-width: 1.4; pointer-events: none; }
@media (max-width: 900px) { .deco { display: none; } }

.wave { display: block; width: 100%; height: 90px; position: absolute; left: 0; bottom: -1px; fill: var(--navy); }
.wave--light { fill: var(--light); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: #E5F9FA;
  background-image: repeating-linear-gradient(to bottom, transparent 0 41px, var(--line) 41px 42px);
  padding-bottom: 70px;
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; min-height: 560px; }
.hero__text { position: relative; padding: 60px 20px 60px max(20px, calc((100vw - var(--w)) / 2 + 20px)); display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.slide.is-on { opacity: 1; visibility: visible; }
.h-hero { color: var(--navy); font-size: clamp(36px, 4vw, 50px); max-width: 12em; margin-bottom: 14px; }
.hero__p { font-family: var(--f-head); font-weight: 500; font-size: 20px; line-height: 1.4; margin: 0 0 22px; max-width: 25em; color: var(--navy); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero__tel { color: var(--navy); font-weight: 600; }

.hero__art { position: relative; height: 560px; }
.hero__blob {
  position: absolute; top: -4px; right: 0; width: 72%; height: 92%;
  border: 14px solid var(--yellow); border-right: 0;
  border-radius: 46% 0 0 52% / 58% 0 0 42%;
  overflow: hidden; background: #DCEFF2;
}
.hero__blob img { width: 100%; height: 100%; object-fit: cover; }
.hero__circle {
  position: absolute; left: 6%; top: 24%; width: 400px; height: 400px; max-width: 64%; aspect-ratio: 1;
  border-radius: 50%; border: 11px solid var(--cyan); overflow: hidden; background: #DCEFF2;
  box-shadow: 0 0 0 6px #E5F9FA;
}
.hero__circle img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; left: 2%; top: 17%; width: 112px; height: 112px; border-radius: 50%; }

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__text { padding: 44px 20px 10px; }
  .hero__art { height: 380px; }
  .hero__circle { width: 280px; height: 280px; top: 18%; }
  .hero__badge { width: 80px; height: 80px; top: 10%; }
}
@media (max-width: 520px) {
  .hero__art { height: 300px; }
  .hero__circle { width: 210px; height: 210px; }
}

/* ---------- Sobre nosotros ---------- */
.about { background: var(--navy); color: var(--white); position: relative; padding: 44px 0 150px; overflow: hidden; }
.dots {
  position: absolute; left: 0; top: 120px; width: 300px; height: 420px; pointer-events: none;
  background-image: radial-gradient(rgba(0,193,222,.28) 1.4px, transparent 1.6px); background-size: 14px 14px;
}
.ring { position: absolute; border-radius: 50%; border: 2px solid; pointer-events: none; }
.ring--purple { width: 26px; height: 26px; border-color: var(--purple); }
.ring--cyan { width: 46px; height: 46px; border-color: var(--cyan); }
.ring--pink { width: 26px; height: 26px; border-color: #F2537A; }
.slider-dots { display: flex; justify-content: center; gap: 0; margin-bottom: 18px; position: relative; }
.slider-dot { width: 26px; height: 26px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slider-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #9FB1C6; }
.slider-dot.is-on::before { background: var(--cyan); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; max-width: 960px; margin: 0 auto; position: relative; }
.about__img { width: 100%; border-radius: 8px; }
.about__txt p { margin: 0 0 14px; font-size: 14.5px; }
@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; } }


/* ---------- Sellos ---------- */
.seals { padding: 56px 0 10px; }
.seals__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 960px; }
.seal { display: flex; align-items: center; gap: 14px; }
.seal p { margin: 0; font-size: 15px; color: var(--navy); line-height: 1.35; }
.seal strong { font-family: var(--f-head); font-weight: 700; font-size: 18px; }
.seal .seal__big { font-size: 26px; font-weight: 800; }
.seal__ico { flex: none; width: 54px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--white); }
.seal__ico .ico { width: 24px; height: 24px; }
.seal__ico--cyan { background: var(--cyan); }
.seal__ico--green { background: var(--green); }
.seal__ico--red { background: var(--red); }
@media (max-width: 760px) { .seals__grid { grid-template-columns: 1fr; max-width: 360px; } }

/* ---------- Bloques con tarjetas (inglés, apoyo) ---------- */
.block { padding: 64px 0 30px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 920px; margin: 0 auto; }
.card { background: var(--navy); color: var(--white); border-radius: 6px; padding: 16px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
.card__img { border-radius: 3px; overflow: hidden; aspect-ratio: 1; align-self: start; background: #0A2D57; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img--tile { display: grid; place-items: center; }
.card__img--cyan { background: var(--cyan); }
.card__img--green { background: var(--green); }
.card__img--red { background: var(--red); }
.tile-ico { width: 64px; height: 64px; fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card__age { margin: 0; color: var(--cyan); font-weight: 600; font-size: 13.5px; }
.card h3 { font-family: var(--f-head); font-size: 24px; font-weight: 700; margin: 2px 0 8px; line-height: 1.12; }
.card p { margin: 0 0 14px; font-size: 14.5px; }
.card .btn-y { white-space: nowrap; padding: 10px 20px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .card { grid-template-columns: 1fr; } .card__img { max-width: 150px; } }

.pack {
  max-width: 920px; margin: 22px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  border: 2px solid var(--yellow); background: var(--navy); color: var(--white); border-radius: 4px; padding: 14px 20px;
}
.pack p { margin: 0; }
.pack a { color: var(--yellow); font-weight: 700; }

/* ---------- Inglés en Irlanda ---------- */
.ireland { padding: 30px 0 10px; }
.ireland__box { max-width: 920px; margin: 0 auto; background: var(--navy); color: var(--white); border-radius: 6px; padding: 18px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; border-left: 8px solid var(--green); }
.ireland__tile { background: var(--green); border-radius: 3px; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; align-self: start; }
.ireland__t { font-family: var(--f-head); font-weight: 700; font-size: 28px; line-height: 1.1; margin: 4px 0 10px; }
.ireland__body > p:not(.card__age) { margin: 0 0 16px; font-size: 14.5px; }
.ireland__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ireland__link { color: var(--yellow); font-weight: 600; }
@media (max-width: 600px) { .ireland__box { grid-template-columns: 1fr; } .ireland__tile { max-width: 120px; } }

/* ---------- Robótica y programación ---------- */
.code { background: var(--navy); color: var(--white); position: relative; padding: 140px 0 170px; margin-top: 40px; overflow: hidden; }
.wave--top-light { top: -1px; bottom: auto; fill: var(--light); height: 70px; }
.lead--dark { color: #D3DFEC; }
.levels { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1000px; position: relative; }
.level { position: relative; background: #0A2A52; border-radius: 6px; padding: 22px 22px 24px; border-top: 6px solid; }
.level--cyan { border-color: var(--cyan); }
.level--yellow { border-color: var(--yellow); }
.level--green { border-color: #19B864; }
.level--red { border-color: var(--red); }
.level--purple { border-color: var(--purple); }
.level__age { display: inline-block; font-family: var(--f-head); font-weight: 700; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; color: var(--navy); background: var(--yellow); padding: 3px 10px; border-radius: 3px; }
.level--cyan .level__age { background: var(--cyan); }
.level--green .level__age { background: #19B864; }
.level--red .level__age { background: var(--red); color: var(--white); }
.level--purple .level__age { background: var(--purple); color: var(--white); }
.level__ico { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; fill: none; stroke: #8FA6C2; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.level h3 { font-family: var(--f-head); font-size: 22px; font-weight: 700; line-height: 1.15; margin: 14px 0 8px; }
.level p { margin: 0; font-size: 14px; color: #D3DFEC; }
@media (max-width: 900px) { .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .levels { grid-template-columns: 1fr; } }
.code__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 36px; text-align: center; position: relative; }
.code__cta p { margin: 0; color: #D3DFEC; }

/* ---------- Plataformas ---------- */
.platforms { padding: 50px 0 30px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.plat { background: var(--white); border-radius: 6px; padding: 26px 24px; border-bottom: 6px solid var(--cyan); box-shadow: 0 2px 10px rgba(1,30,65,.07); }
.plat h3 { font-family: var(--f-head); font-weight: 700; font-size: 21px; color: var(--navy); margin: 14px 0 6px; }
.plat p { margin: 0; font-size: 14.5px; }
.plat__ico { width: 54px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--white); }
.plat__ico .ico { width: 24px; height: 24px; }
.plat__ico--cyan { background: var(--cyan); }
.plat__ico--yellow { background: var(--yellow); color: var(--navy); }
.plat__ico--red { background: var(--red); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; max-width: 460px; } }

/* ---------- Cómo funciona la prueba ---------- */
.trial { padding: 40px 0 20px; }
.trial__list { list-style: none; margin: 30px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; max-width: 900px; text-align: center; }
.trial__i .ico { width: 26px; height: 26px; color: var(--white); box-sizing: content-box; padding: 14px; border-radius: 50%; }
.trial__i--1 .ico { background: var(--cyan); }
.trial__i--2 .ico { background: var(--green); }
.trial__i--3 .ico { background: var(--red); }
.trial__i h3 { font-family: var(--f-head); font-size: 19px; color: var(--navy); margin: 12px 0 4px; }
.trial__i p { margin: 0; font-size: 14.5px; }
@media (max-width: 700px) { .trial__list { grid-template-columns: 1fr; } }

/* ---------- Valores ---------- */
.values { padding: 60px 0 40px; }
.values__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 60px; align-items: center; }
.values__intro { font-size: 14px; max-width: 470px; margin: 0 0 32px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: v; max-width: 470px; }
.steps__i { position: relative; padding: 0 0 18px 74px; counter-increment: v; }
.steps__i::before {
  content: counter(v); position: absolute; left: 0; top: 0; width: 54px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white); font-family: var(--f-head); font-weight: 600; font-size: 22px;
}
.steps__i::after { content: ""; position: absolute; left: 26px; top: 50px; bottom: 0; width: 1.5px; }
.steps__i--1::before, .steps__i--1::after { background: var(--cyan); }
.steps__i--2::before, .steps__i--2::after { background: var(--green); }
.steps__i--3::before, .steps__i--3::after { background: var(--red); }
.steps h3 { font-family: var(--f-head); font-size: 17px; font-weight: 700; color: var(--navy); margin: 4px 0 12px; }
.steps p { margin: 0; font-size: 13.5px; line-height: 1.6; }

.quote {
  position: relative; margin: 0; background: var(--navy); color: var(--white); text-align: center;
  border: 5px solid var(--cyan); border-radius: 14px; padding: 64px 32px; max-width: 380px; text-align: left; justify-self: center; width: 100%;
}
.quote__mark { position: absolute; font-family: Georgia, serif; font-weight: 700; font-size: 110px; line-height: 1; color: var(--yellow); background: var(--light); padding: 0 4px; height: 56px; overflow: hidden; }
.quote__mark--open { top: -22px; left: -18px; }
.quote__mark--close { bottom: -12px; right: -18px; line-height: .55; }
.quote__row { font-family: var(--f-head); font-weight: 800; line-height: 1.05; margin: 0; white-space: nowrap; font-size: clamp(34px, 3.6vw, 44px); }
.quote__row sup { font-size: .5em; vertical-align: .8em; line-height: 0; }
.quote__row--dim { color: #8FA6C4; font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 6px; }
.quote__res { color: var(--yellow); }
.quote__cap { font-family: var(--f-head); font-weight: 600; font-size: 18px; line-height: 1.3; color: #C9D8EA; margin-top: 14px; }
@media (max-width: 860px) { .values__grid { grid-template-columns: 1fr; } }

/* ---------- Formulario ---------- */
.contact { padding: 40px 0 60px; }
.wrap--form { max-width: 1030px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }
.f { display: flex; flex-direction: column; gap: 6px; }
.f label { font-size: 14px; font-weight: 500; color: #1D2327; }
.req { color: #E0475A; }
.f input:not([type="checkbox"]), .f select, .f textarea {
  font: inherit; font-size: 14px; color: var(--text); background: var(--white);
  border: 1px solid #CED4DA; border-radius: 4px; padding: 9px 12px; min-height: 40px; width: 100%;
}
.f textarea { resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,193,222,.2); }
.f input[aria-invalid="true"] { border-color: #D63340; }
.f--check { flex-direction: row; align-items: center; gap: 8px; }
.f--check input { width: 16px; height: 16px; margin: 0; }
.f--check a { color: #E0475A; text-decoration: none; }
.f--check a:hover { text-decoration: underline; }
.f__err { margin: 0; color: #C02634; font-size: 13px; }
.f__err:empty { display: none; }
.form .btn-y { align-self: flex-start; }
.form__ok { background: var(--white); border-left: 4px solid var(--green); padding: 12px 16px; margin: 0; }

/* ---------- Opiniones ---------- */
.reviews { padding: 40px 0 50px; }
.reviews__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 700px; margin: 40px auto 0; align-items: start; }
@media (max-width: 820px) { .reviews__grid { grid-template-columns: 1fr; max-width: 420px; } }
.rev { background: var(--white); padding: 24px 24px 26px; border-bottom: 8px solid var(--cyan); box-shadow: 0 2px 10px rgba(1,30,65,.08); }
.rev__head { display: grid; grid-template-columns: 58px minmax(0, 1fr) 20px; gap: 20px; align-items: center; }
.rev__av { width: 58px; height: 58px; border-radius: 50%; color: var(--white); display: grid; place-items: center; font-size: 28px; }
.rev__name { margin: 0; font-weight: 600; font-size: 16px; color: #333; }
.rev__stars { margin: 0; color: #F6BB06; letter-spacing: 1px; line-height: 1.2; }
.rev__date { margin: 0; font-size: 11px; color: #777; }
.rev__g { width: 18px; height: 18px; align-self: start; }
.rev__txt { margin: 24px 0 0; font-size: 12.5px; color: #555; }
.rev__txt a { color: #1A73E8; }

/* ---------- Otros cursos ---------- */
.others { padding: 0 0 110px; text-align: center; }
.others p { margin: 0 auto; max-width: 760px; }

/* ---------- Pie ---------- */
.footer { background: var(--navy); color: #C9D6E5; position: relative; padding: 90px 0 0; font-size: 14px; }
.wave--top { top: -1px; bottom: auto; fill: var(--light); height: 70px; }
.footer .brand { display: inline-flex; padding: 0; background: none; margin-bottom: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 30px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h3 { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; color: var(--cyan); font-size: 16px; letter-spacing: .04em; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer p { margin: 0; }
.footer__p { max-width: 300px; }
.footer a { color: #C9D6E5; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 18px; padding-bottom: 22px; font-size: 13px; }
.footer__bottom ul { flex-direction: row; flex-wrap: wrap; gap: 18px; }

/* ---------- WhatsApp ---------- */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa__btn { width: 58px; height: 58px; border-radius: 50%; border: 0; background: #25D366; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.wa__btn svg { width: 30px; height: 30px; fill: var(--white); }
.wa__box { width: min(300px, calc(100vw - 36px)); background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.wa__box p { margin: 0; padding: 14px 16px 0; font-size: 14px; }
.wa__box .wa__t { background: #075E54; color: var(--white); font-weight: 600; padding: 12px 16px; }
.wa__box a { display: block; margin: 14px 16px 16px; text-align: center; background: #25D366; color: #073B1C; font-weight: 700; text-decoration: none; padding: 10px; border-radius: 4px; }

/* Imagen que falta: se oculta en lugar de mostrar el icono roto */
img.sin-imagen { visibility: hidden; }

.ireland__tile img { width: 100%; height: 100%; object-fit: cover; }
.code__art { display: block; width: 100%; max-width: 1000px; height: auto; margin: 0 auto 32px; border-radius: 10px; position: relative; }

/* ---------- Botón con aspecto de enlace (pie) ---------- */
.linklike { background: none; border: 0; padding: 0; color: #C9D6E5; font: inherit; cursor: pointer; }
.linklike:hover { color: var(--white); text-decoration: underline; }

/* ---------- Páginas legales ---------- */
.legal { background: var(--light); padding: 40px 0 70px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-family: var(--f-head); font-weight: 800; font-size: clamp(32px, 4vw, 44px); color: var(--navy); line-height: 1.05; margin: 0 0 8px; }
.legal h2 { font-family: var(--f-head); font-weight: 700; font-size: 22px; color: var(--navy); margin: 32px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; max-width: 70ch; }
.legal .fecha { color: #5B6B80; font-size: 14px; margin: 0 0 24px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; background: var(--white); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--navy); color: var(--white); font-family: var(--f-head); font-weight: 600; }
.legal mark { background: #FFE58A; padding: 0 3px; }
.legal .volver { display: inline-block; margin-bottom: 18px; color: var(--cyan-text); font-weight: 600; }
.legal .tabla { overflow-x: auto; }
@media (max-width: 600px) {
  .legal .stack thead { display: none; }
  .legal .stack tr { display: grid; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .legal .stack td { border: 0; padding: 3px 12px; }
  .legal .stack td::before { content: attr(data-l); display: block; font-weight: 700; color: var(--navy); font-size: 13px; }
}

/* ---------- Enlaces «Más sobre…» de la portada ---------- */
.mas { display: inline-block; margin-left: 14px; color: var(--cyan); font-weight: 600; font-size: 14px; }
.card .mas { margin: 10px 0 0; display: block; }
.code__mas { margin-top: 6px !important; font-size: 14px; }
.code__mas a { color: var(--cyan); font-weight: 600; }

/* ---------- Páginas de cada servicio ---------- */
.svc-hero { background: var(--navy); color: var(--white); padding: 34px 0 40px; position: relative; }
.svc-hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 44px; align-items: center; }
.migas { font-size: 13px; color: #A9BBD1; margin-bottom: 14px; }
.migas a { color: var(--cyan); }
.svc-hero h1 { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.04; margin: 0 0 16px; text-wrap: balance; }
.svc-hero__p { font-size: 18px; line-height: 1.6; color: #D3DFEC; margin: 0 0 24px; max-width: 58ch; }
.svc-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.svc-hero__wa { color: var(--white); font-weight: 600; }
.btn-y--line { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--yellow); }
.btn-y--line:hover { background: rgba(255,198,41,.12); color: var(--white); }
.svc-hero__art img { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 5px solid var(--cyan); margin-left: auto; display: block; }
.svc-hero__art--wide img { max-width: 520px; aspect-ratio: auto; border: 0; }
.svc-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 34px auto 0; padding: 0 20px; position: relative; z-index: 1; }
.svc-facts li { background: var(--white); color: var(--navy); padding: 16px 18px; border-left: 1px solid var(--line); box-shadow: 0 8px 20px rgba(1,30,65,.12); display: flex; flex-direction: column; gap: 2px; }
.svc-facts li:first-child { border-left: 6px solid var(--yellow); border-radius: 6px 0 0 6px; }
.svc-facts li:last-child { border-radius: 0 6px 6px 0; }
.svc-facts span { font-size: 12px; color: #5B6B80; }
.svc-facts strong { font-family: var(--f-head); font-size: 18px; line-height: 1.2; }
.svc-levels { padding: 40px 0 50px; margin-top: 0; border-top: 1px solid rgba(255,255,255,.08); }
.svc-levels + .svc-body { padding-top: 50px; }
.svc-body { padding: 50px 0 30px; }
.svc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.svc-sec { background: var(--white); border-radius: 8px; padding: 24px 26px; border-top: 5px solid var(--cyan); }
.svc-sec:nth-child(2) { border-top-color: var(--yellow); }
.svc-sec:nth-child(3) { border-top-color: var(--green); }
.svc-sec h2 { font-family: var(--f-head); font-weight: 700; color: var(--navy); font-size: 24px; margin: 0 0 10px; line-height: 1.15; }
.svc-sec p { margin: 0 0 10px; font-size: 16px; line-height: 1.65; }
.svc-list { margin: 0; padding: 0; list-style: none; }
.svc-list li { position: relative; padding: 0 0 10px 28px; font-size: 16px; line-height: 1.55; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.svc-narrow { max-width: 820px; }
.svc-faq { padding: 40px 0 50px; }
.faq__i { background: var(--white); border-radius: 6px; margin-bottom: 10px; border: 1px solid var(--line); }
.faq__i summary { cursor: pointer; padding: 16px 48px 16px 20px; font-family: var(--f-head); font-weight: 700; font-size: 18px; color: var(--navy); list-style: none; position: relative; min-height: 44px; }
.faq__i summary::-webkit-details-marker { display: none; }
.faq__i summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 24px; color: var(--cyan-text); }
.faq__i[open] summary::after { content: "–"; }
.faq__i p { margin: 0; padding: 0 20px 18px; font-size: 16px; line-height: 1.6; }
.svc-cta { background: var(--navy); color: var(--white); padding: 50px 0; text-align: center; }
.svc-cta h2 { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 10px; color: var(--yellow); }
.svc-cta p { color: #D3DFEC; font-size: 17px; margin: 0 auto 22px; max-width: 60ch; }
.svc-cta .svc-hero__ctas { justify-content: center; }
.svc-related { padding: 46px 0 70px; }
.svc-rels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-rel { display: block; background: var(--white); border-radius: 8px; padding: 18px 20px; text-decoration: none; border: 1px solid var(--line); color: var(--text); }
.svc-rel strong { display: block; font-family: var(--f-head); font-size: 19px; color: var(--navy); margin-bottom: 4px; }
.svc-rel:hover { border-color: var(--cyan); }
@media (max-width: 860px) {
  .svc-hero__in { grid-template-columns: 1fr; gap: 24px; }
  .svc-hero__art img { margin: 0; max-width: 260px; }
  .svc-hero__art--wide img { max-width: 100%; }
  .svc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-facts li { border-radius: 0 !important; border-left: 1px solid var(--line) !important; }
  .svc-rels { grid-template-columns: 1fr; }
}
