/* Clases con Nayelys - Barcelona */

:root {
  --ink: #1f4e9c;
  --ink-dark: #173d7d;
  --navy: #0f2547;
  --navy-2: #0b1c37;
  --sky: #edf2f9;
  --paper: #f8f6f1;
  --grid: #dfe7f3;
  --marker: #ffdc5e;
  --text: #232a36;
  --muted: #5b6474;
  --line: #dfe3ea;
  --white: #fff;
  --wa: #25d366;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --container: 1160px;
  --radius: 6px;
  --shadow: 0 14px 36px rgba(15, 37, 71, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-dark); }
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.2; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h3, h4 { font-family: var(--sans); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 600 16px/1.2 var(--sans);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--lg { padding: 14px 24px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--ink-dark); color: var(--white); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--marker); color: var(--navy); }
.btn .fa-whatsapp { font-size: 1.25em; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.link i { font-size: .85em; transition: transform .2s; }
.link:hover i.fa-arrow-right { transform: translateX(3px); }

.kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 0 4px;
  font: 700 13px/1.6 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  background: linear-gradient(transparent 55%, var(--marker) 55%);
}
.kicker--light { color: var(--white); padding: 0 0 3px; background: linear-gradient(transparent 86%, var(--marker) 86%); }

/* ---------- Cabecera ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.header.is-stuck { box-shadow: 0 4px 18px rgba(15, 37, 71, .08); }
.header__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.logo:hover { color: var(--navy); }
.logo__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--ink);
}
.logo__mark svg { width: 38px; height: 38px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { font: 700 25px/1 var(--serif); letter-spacing: -.01em; }
.logo__text small { margin-top: 4px; font-size: 13px; color: var(--muted); }

.menu { display: flex; gap: 2px; margin-left: auto; }
.menu a {
  position: relative;
  padding: 8px 11px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.menu a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 3px;
  background: var(--marker);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.menu a:hover, .menu a.is-active { color: var(--navy); }
.menu a:hover::after, .menu a.is-active::after { transform: scaleX(1); }

.header__right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang button {
  padding: 6px 9px;
  border: 0;
  background: var(--white);
  font: 700 12px var(--sans);
  color: var(--muted);
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 19px;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Papel cuadriculado ---------- */
.grid-paper {
  background-color: var(--white);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: -1px -1px;
}

/* ---------- Portada ---------- */
.hero { padding: 76px 0 88px; border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero h1 { font-size: 56px; line-height: 1.08; margin-bottom: 22px; }
.hero h1 mark { color: inherit; background: linear-gradient(transparent 60%, var(--marker) 60%); padding: 0 .06em; }
.hero__lead { max-width: 540px; font-size: 19px; color: var(--muted); margin-bottom: 30px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; color: var(--navy); }
.hero__facts i { color: var(--ink); margin-right: 4px; }

/* Asiento de ejemplo */
.entry {
  margin: 0;
  padding: 26px 28px 20px;
  background: var(--white);
  border: 1px solid #d4ddea;
  border-top: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.entry__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.entry__title { margin: 6px 0 8px; font-size: 25px; }
.entry__task { font-size: 16px; color: var(--muted); margin-bottom: 18px; }
.entry__table { width: 100%; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.entry__table th {
  padding: 0 8px 8px;
  border-bottom: 2px solid var(--navy);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
}
.entry__table th:first-child, .entry__table td:first-child { text-align: right; width: 92px; padding-left: 0; }
.entry__table th:last-child, .entry__table td:last-child { text-align: right; width: 92px; padding-right: 0; }
.entry__table td { padding: 10px 8px; border-bottom: 1px solid var(--grid); color: var(--text); }
.entry__table td b { color: var(--ink); margin-right: 4px; }
.entry__to { padding-left: 34px !important; }
.entry__table tfoot td { border-bottom: 0; font-weight: 700; color: var(--navy); background: rgba(255, 220, 94, .5); }
.entry__table tfoot td:nth-child(2) { font-size: 14px; }
.entry__table tfoot i { color: #1f8a3e; margin-right: 4px; }
.entry__foot { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--sky { background: var(--sky); }
.section--paper { background: var(--paper); }

.head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 48px;
}
.head h2 { font-size: 42px; }
.head > p { margin: 0; color: var(--muted); font-size: 18px; }

/* ---------- Para quién ---------- */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.who__card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 4px solid var(--ink);
  box-shadow: 0 1px 3px rgba(15, 37, 71, .06);
}
.who__card:nth-child(3) { border-top-color: var(--navy); }
.who__level { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.who__card h3 { font: 600 25px/1.2 var(--serif); margin-bottom: 12px; }
.who__card p:not(.who__level) { color: var(--muted); font-size: 16px; }
.who__card .link { margin-top: auto; }

/* ---------- Materias ---------- */
.needs { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: stretch; }
.needs__title { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.subjects li {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.subjects li:last-child { border-bottom: 0; }
.subjects__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--sky);
  color: var(--ink);
  font-size: 19px;
}
.subjects h4 { font-size: 19px; margin: 2px 0 4px; }
.subjects p { margin: 0; color: var(--muted); font-size: 16px; }

.needs__study {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px 36px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #d3dcea;
}
.needs__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--marker);
  color: var(--navy);
  font-size: 21px;
}
.needs__study h3 { font: 600 30px/1.15 var(--serif); color: var(--white); margin-bottom: 10px; }
.ticks { display: grid; gap: 10px; margin: 8px 0 30px; }
.ticks li { position: relative; padding-left: 28px; color: var(--white); }
.ticks li::before {
  content: "\f00c";
  position: absolute;
  left: 0;
  top: 1px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 14px;
  color: var(--marker);
}
.needs__study .btn { margin-top: auto; }

/* ---------- Cómo trabajo ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: none; }
.steps li { padding-top: 22px; border-top: 2px solid var(--navy); }
.steps__n {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font: 700 22px/1 var(--serif);
  color: var(--ink);
  background: var(--white);
}
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Sobre mí ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.profile {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.profile__top { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.profile__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font: 600 38px/1 var(--serif);
  box-shadow: 0 0 0 5px var(--sky);
}
.profile__name { margin: 0; font: 700 28px/1.1 var(--serif); color: var(--navy); }
.profile__role { margin: 4px 0 0; color: var(--muted); }
.profile__list { margin: 0; }
.profile__list div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.profile__list div:last-child { border-bottom: 0; padding-bottom: 0; }
.profile__list dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.profile__list dd { margin: 0; font-weight: 600; color: var(--navy); }

.about__text h2 { font-size: 42px; margin-bottom: 20px; }
.about__text > p:not(.kicker) { color: #3c4554; font-size: 18px; }
.about__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 30px; }

/* ---------- Modalidades ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mode {
  display: grid;
  grid-template-columns: 42% 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 37, 71, .06);
}
.mode img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.mode__body { display: flex; flex-direction: column; align-items: flex-start; padding: 30px 28px; }
.mode h3 { font: 600 24px/1.2 var(--serif); margin-bottom: 12px; }
.mode h3 i { color: var(--ink); font-size: 19px; margin-right: 4px; }
.mode p { color: var(--muted); font-size: 16px; }
.mode .link { margin-top: auto; }

/* ---------- Preguntas ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq__head h2 { font-size: 42px; margin-bottom: 16px; }
.faq__head > p:not(.kicker) { color: var(--muted); }
.faq__list { border-top: 2px solid var(--navy); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  position: relative;
  padding: 20px 48px 20px 0;
  font: 600 20px/1.35 var(--serif);
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "\2b";
  position: absolute;
  right: 4px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: var(--sky);
  font: 900 13px "Font Awesome 6 Free";
  color: var(--ink);
}
.faq__list details[open] summary::after { content: "\f068"; background: var(--marker); color: var(--navy); }
.faq__list summary:hover { color: var(--ink); }
.faq__list details p { margin: -4px 0 22px; padding-right: 48px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { padding: 96px 0; background: var(--navy); color: #d3dcea; }
.contact__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; }
.contact h2 { font-size: 44px; color: var(--white); margin-bottom: 16px; }
.contact__lead { font-size: 18px; margin-bottom: 28px; }
.contact__where { display: flex; gap: 12px; align-items: baseline; margin: 34px 0 26px; color: var(--white); font-weight: 600; }
.contact__where i { color: var(--marker); }
.contact__where p { margin: 0; }

.hours-box { padding: 24px 26px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); }
.hours-box__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-weight: 700; color: var(--white); }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours td { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-closed td:last-child { color: #8e9bb3; }
.hours tr.is-today td { color: var(--marker); font-weight: 700; }
.hours-box__note { margin: 12px 0 0; font-size: 14px; color: #a9b6cc; }

.status {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}
.status--open { background: #1f8a3e; color: var(--white); }
.status--closed { background: #3a4a66; color: #dfe6f2; }

.form {
  padding: 34px 32px 28px;
  background: var(--white);
  border-radius: var(--radius);
  color: var(--text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.form h3 { font: 600 28px/1.2 var(--serif); margin-bottom: 6px; }
.form__intro { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; margin-bottom: 14px; }
.form label > span { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 700; color: var(--navy); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfd6e1;
  border-radius: var(--radius);
  background: #fbfcfe;
  font: 16px var(--sans);
  color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid rgba(31, 78, 156, .25);
  border-color: var(--ink);
  background: var(--white);
}
.form textarea { resize: vertical; }
.form .is-invalid input { border-color: #c62828; }
.form__error { color: #c62828; font-size: 14px; font-weight: 700; }
.form__note { margin: 12px 0 0; text-align: center; font-size: 13.5px; color: #7a8291; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-2); color: #a9b6cc; font-size: 15.5px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding: 64px 24px 44px; }
.footer h4 { margin-bottom: 16px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--white); }
.footer ul { display: grid; gap: 9px; }
.footer a { color: #d3dcea; }
.footer a:hover { color: var(--white); }
.footer li i { width: 18px; color: var(--marker); }
.footer__brand p { max-width: 380px; margin-top: 18px; }
.logo--footer .logo__text strong { color: var(--white); }
.logo--footer .logo__text small { color: #8e9bb3; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 18px 24px; }
.footer__bottom nav { display: flex; gap: 20px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.wa-float:hover { color: var(--white); }
.wa-float > i {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  font-size: 32px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.wa-float:hover > i { transform: scale(1.06); }
.wa-float__label {
  padding: 7px 14px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.wa-float:hover .wa-float__label { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header__inner { gap: 18px; }
  .menu a { padding: 8px 8px; font-size: 15.5px; }
  .menu a::after { left: 8px; right: 8px; }
  .hero h1 { font-size: 48px; }
  .hero__inner { gap: 44px; }
  .mode { grid-template-columns: 1fr; }
  .mode img { min-height: 0; height: 200px; }
}

@media (max-width: 991px) {
  .menu-toggle { display: block; }
  .header__cta { display: none; }
  .header__right { margin-left: auto; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 24px 18px;
    background: var(--white);
    border-bottom: 3px solid var(--ink);
    box-shadow: 0 12px 24px rgba(15, 37, 71, .1);
    display: none;
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .menu a::after { display: none; }

  .hero { padding: 56px 0 64px; }
  .hero__inner, .about, .faq, .contact__inner, .needs { grid-template-columns: 1fr; }
  .hero__inner { gap: 40px; }
  .entry { max-width: 560px; }
  .head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 36px; }
  .who { grid-template-columns: 1fr 1fr; }
  .who__card:nth-child(3) { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .about, .faq, .contact__inner { gap: 44px; }
  .profile { max-width: 560px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .header__inner { min-height: 66px; }
  .logo__mark { width: 40px; height: 40px; }
  .logo__mark svg { width: 34px; height: 34px; }
  .logo__text strong { font-size: 22px; }
  .logo__text small { font-size: 12px; }
  .lang button { padding: 6px 7px; }

  .hero { padding: 40px 0 52px; }
  .hero h1 { font-size: 36px; }
  .hero__lead { font-size: 17px; }
  .hero__buttons .btn { width: 100%; }
  .entry { padding: 20px 16px 16px; }
  .entry__title { font-size: 21px; }
  .entry__table { font-size: 14px; }
  .entry__table th:first-child, .entry__table td:first-child,
  .entry__table th:last-child, .entry__table td:last-child { width: 68px; }
  .entry__table td { padding: 9px 5px; }
  .entry__to { padding-left: 18px !important; }

  .section, .contact { padding: 64px 0; }
  .head h2, .about__text h2, .faq__head h2 { font-size: 32px; }
  .contact h2 { font-size: 34px; }
  .who { grid-template-columns: 1fr; }
  .needs__study { padding: 30px 24px; }
  .modes { grid-template-columns: 1fr; }
  .profile { padding: 24px 20px; }
  .profile__list div { grid-template-columns: 1fr; gap: 2px; }
  .faq__list summary { font-size: 18px; }
  .form { padding: 26px 20px 22px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .hours-box { padding: 20px 18px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 52px; }
  .footer__bottom-inner { padding-bottom: 92px; }
  .wa-float__label { display: none; }
}
