/* ============================================================
   Komplex Logopédia — Design System
   Rebuilt to match /nyelvlokeses-nyeles-terapia
   Brand blue #008AE6 · pink accent #DB2777 · Nunito Sans
   ============================================================ */

:root {
  /* Brand */
  --blue: #008ae6;
  --blue-600: #0072c0;
  --blue-700: #015e9e;
  --blue-50: #ecf7ff;
  --blue-100: #d6ecfd;
  --pink: #db2777;
  --pink-600: #be185d;
  --pink-50: #fff0f5;
  --gold: #fbbf24;
  --green: #16a34a;
  --green-50: #ecfdf3;

  /* Neutrals */
  --ink: #111827;
  --ink-2: #1f2937;
  --body: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --slate: #f8fafc;
  --slate-2: #f1f5f9;
  --white: #ffffff;

  /* Type */
  --font-head: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radius & shadow */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 6px 20px rgba(16, 24, 40, .08);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, .12);
  --shadow-blue: 0 14px 30px rgba(0, 138, 230, .28);

  /* Layout */
  --container: 1160px;
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.08rem; font-weight: 700; }
p { color: var(--body); }
strong { color: var(--ink-2); font-weight: 700; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.container-narrow { max-width: 820px; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--slate { background: var(--slate); }
.section--blue-tint { background: linear-gradient(180deg, #f4fbff, #ffffff); }
.section--pink { background: var(--pink-50); }
.section--dark { background: linear-gradient(160deg, #0b2236, #123a57); color: #cfe3f2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow--pink { color: var(--pink); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.08rem; margin-top: 14px; }
.lead { font-size: 1.15rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--r-sm); border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1; text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 14px 30px rgba(219,39,119,.26); }
.btn-pink:hover { background: var(--pink-600); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }
.btn-white { background:#fff; color: var(--blue); }
.btn-white:hover { background:#eef7ff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 18px; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo img { height: 42px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav__menu a {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  color: var(--ink-2); font-weight: 600; font-size: .98rem; transition: background .15s, color .15s;
}
.nav__menu a:hover { background: var(--blue-50); color: var(--blue); }
.nav__item { position: relative; }
.nav__item.has-drop > a::after { content: "▾"; font-size: .7rem; opacity: .7; }
.nav__drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease; list-style: none;
}
.nav__item.has-drop:hover .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__drop a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; }
.nav__drop a span { font-size: .8rem; color: var(--muted); font-weight: 500; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; background: none; border: none; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }
.nav-open .nav__toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-open .nav__toggle span:nth-child(2){ opacity: 0; }
.nav-open .nav__toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,20,32,.82) 0%, rgba(8,20,32,.55) 45%, rgba(8,20,32,.30) 100%); }
.hero__inner { position: relative; z-index: 1; padding: clamp(70px, 11vw, 130px) 0; max-width: 760px; }
.hero h1 { color: #fff; }
.hero__sub { color: rgba(255,255,255,.92); font-size: 1.2rem; font-weight: 600; margin-top: 18px; max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__badge { margin-top: 28px; display: inline-flex; background: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); }
.hero__badge img { height: 46px; }
.trust-bar { position: relative; z-index: 1; background: rgba(8,20,32,.55); border-top: 1px solid rgba(255,255,255,.12); }
.trust-bar__row { display: flex; flex-wrap: wrap; gap: 10px 30px; padding: 16px 0; justify-content: center; }
.trust-bar__item { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: .95rem; }
.trust-bar__item::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px;
  background: var(--blue); border-radius: 50%; color: #fff; font-size: .8rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.card--soft { box-shadow: var(--shadow); border-color: transparent; }
.feature { background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); font-size: 1.5rem; margin-bottom: 18px; }
.feature__icon--pink { background: var(--pink-50); color: var(--pink); }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: .98rem; }

/* Split media + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.split img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; }
.split--rev .split__media { order: 2; }

/* Checklist */
.checklist { list-style: none; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: "✓"; flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--green-50); color: var(--green); font-weight: 800; margin-top: 2px; }
.checklist--blue li::before { background: var(--blue-50); color: var(--blue); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 880px; margin-inline: auto; align-items: start; }
.price-card { background:#fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 34px 30px; box-shadow: var(--shadow); position: relative; }
.price-card--featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.price-card__tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color:#fff; font-family: var(--font-head); font-weight: 800; font-size: .8rem;
  padding: 6px 16px; border-radius: 999px; letter-spacing: .04em; }
.price-card h3 { font-size: 1.35rem; }
.price-card__price { font-family: var(--font-head); font-weight: 900; font-size: 2.6rem; color: var(--ink); margin: 6px 0 2px; }
.price-card__price small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.price-card .checklist { margin: 22px 0 26px; }
.price-card .checklist li { font-size: .96rem; }
.bonus-flag { display:inline-block; background: var(--pink-50); color: var(--pink-600); font-weight: 700; font-size: .82rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- Testimonials ---------- */
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.review { background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); display:flex; flex-direction:column; gap:12px; }
.review__head { display:flex; align-items:center; gap: 12px; }
.review__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-50); color: var(--blue);
  display:grid; place-items:center; font-weight:800; font-family: var(--font-head); }
.review__name { font-weight: 700; color: var(--ink); font-family: var(--font-head); }
.review__name span { display:block; font-size: .8rem; color: var(--muted); font-weight: 500; }
.review p { font-size: .97rem; color: var(--body); }

/* ---------- Steps / timeline ---------- */
.steps { display:grid; gap: 16px; max-width: 760px; margin-inline:auto; }
.step { display:flex; gap: 18px; background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.step__num { flex:0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color:#fff;
  font-family: var(--font-head); font-weight: 900; font-size: 1.25rem; display:grid; place-items:center; }
.step__meta { font-size: .82rem; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.step h3 { margin: 2px 0 6px; }
.step p { font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { background:#fff; border:1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq__q { width:100%; text-align:left; background:none; border:none; padding: 20px 22px; font-family: var(--font-head);
  font-weight: 700; font-size: 1.05rem; color: var(--ink); display:flex; justify-content:space-between; align-items:center; gap: 16px; }
.faq__q::after { content: "+"; font-size: 1.5rem; color: var(--blue); transition: transform .2s; line-height: 1; }
.faq__item.open .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a > div { padding: 0 22px 20px; color: var(--body); }
.faq__item.open .faq__a { max-height: 600px; }

/* ---------- Comparison table ---------- */
.compare { width:100%; border-collapse: separate; border-spacing: 0; background:#fff; border-radius: var(--r-lg); overflow:hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 16px 18px; text-align:left; border-bottom: 1px solid var(--line); font-size: .96rem; }
.compare thead th { background: var(--slate-2); font-family: var(--font-head); color: var(--ink); }
.compare thead th.hl { background: var(--blue); color:#fff; }
.compare td.hl { background: var(--blue-50); font-weight: 600; color: var(--ink-2); }
.compare tr:last-child td { border-bottom: none; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue), #2aa0ee); border-radius: var(--r-xl); padding: clamp(36px,6vw,64px); color:#fff; text-align:center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 560px; margin: 14px auto 28px; font-size: 1.1rem; }
.cta-band--pink { background: linear-gradient(120deg, var(--pink), #ec5a9b); }

/* Garancia badge box */
.guarantee { display:flex; gap: 26px; align-items:center; background:#fff; border:1px solid var(--line);
  border-radius: var(--r-xl); padding: 34px; box-shadow: var(--shadow); max-width: 880px; margin-inline:auto; }
.guarantee img { width: 120px; height:auto; flex:0 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: #0b2236; color: #9fb6c9; padding: 64px 0 30px; }
.site-footer a { color: #c9dcea; }
.site-footer a:hover { color:#fff; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color:#fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { list-style:none; padding:0; display:grid; gap: 10px; font-size: .95rem; }
.footer-logo img { height: 46px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-social { display:flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display:grid; place-items:center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap: 12px; font-size: .88rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display:block; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; font-size: .92rem; }
.field input, .field select, .field textarea {
  width:100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background:#fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }

/* ---------- Booking modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(8,20,32,.6); backdrop-filter: blur(3px); z-index: 200;
  display:none; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow-y: auto; }
.modal-overlay.open { display:flex; }
.modal { background:#fff; border-radius: var(--r-xl); width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal__head { padding: 20px 24px; border-bottom: 1px solid var(--line); display:flex; justify-content: space-between; align-items:center; }
.modal__head h3 { margin:0; }
.modal__close { background:none; border:none; font-size: 1.6rem; color: var(--muted); line-height: 1; }
.modal__body { padding: 24px; }

/* ---------- Booking widget ---------- */
.book-spin { width: 34px; height: 34px; border: 3px solid var(--blue-100); border-top-color: var(--blue); border-radius: 50%; margin: 0 auto 12px; animation: bkspin .8s linear infinite; }
@keyframes bkspin { to { transform: rotate(360deg); } }
.book-cat { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; transition: border-color .15s, box-shadow .15s; }
.book-cat:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.book-cat__dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.book-cat__txt { flex: 1; display: flex; flex-direction: column; }
.book-cat__txt strong { color: var(--ink); }
.book-cat__txt small { color: var(--muted); font-size: .85rem; }
.book-cat__meta { text-align: right; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.book-cat__meta b { color: var(--blue); }
.book-days { display: grid; gap: 14px; max-height: 360px; overflow-y: auto; }
.book-day__label { font-family: var(--font-head); font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.book-times { display: flex; flex-wrap: wrap; gap: 8px; }
.book-time { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: .92rem; transition: .15s; }
.book-time:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.book-summary { background: var(--slate); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; color: var(--ink-2); }
.book-check { width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); color: var(--green); font-size: 2rem; display: grid; place-items: center; margin: 0 auto; }

/* utilities */
.mt-2{margin-top:8px} .mt-4{margin-top:16px} .mt-6{margin-top:24px} .mt-8{margin-top:32px}
.mb-0{margin-bottom:0} .hide{display:none}
.pill { display:inline-flex; align-items:center; gap:6px; background: var(--blue-50); color: var(--blue); font-weight:700; font-size:.82rem; padding:6px 14px; border-radius:999px; }
.pill--pink { background: var(--pink-50); color: var(--pink); }
.text-pink{color:var(--pink)} .text-blue{color:var(--blue)}
.muted{color:var(--muted)}
.divider{height:1px;background:var(--line);margin:40px 0}

/* Prose (legal / long-form) */
.prose { max-width: 800px; margin-inline: auto; }
.prose h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.prose h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--body); margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose a { text-decoration: underline; }
.page-hero { background: var(--slate); border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav__menu, .nav__cta .btn-ghost { display: none; }
  .nav__toggle { display: block; }
  .nav.nav--open .nav__menu {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column;
    align-items: stretch; background:#fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px; box-shadow: var(--shadow);
  }
  .nav--open .nav__drop { position: static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none; padding-left: 12px; }
  .split, .grid-2, .pricing { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .guarantee { flex-direction: column; text-align:center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
