:root {
  --ink: #1c2c38;
  --ink-soft: #3c5160;
  --muted: #5c6d7b;
  --blue: #4e86a4;
  --blue-deep: #2c6480;
  --blue-dark: #1d4c63;
  --mist: #e6f1f6;
  --sand: #f3efe8;
  --paper: #f6f4f0;
  --white: #fffcf8;
  --line: #e3dcd2;
  --shadow: 0 18px 44px rgba(28, 52, 68, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Outfit, "Segoe UI", sans-serif;
  --header: 92px;
  --turnos: #2c6480;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(78, 134, 164, 0.16), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

body.sheet-open { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: var(--blue-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.7rem); margin: 0 0 16px; }
h2 { font-size: clamp(2rem, 3.4vw, 3.15rem); margin: 0 0 14px; }
h3 { font-size: 1.45rem; margin: 0 0 8px; }

p { margin: 0 0 12px; }

button, input, summary { font: inherit; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: white;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 120;
}

.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
}

::selection { background: #c5dfeb; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 244, 240, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled { border-bottom-color: rgba(28, 44, 56, 0.08); }

.header-inner {
  position: relative;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: flex; align-items: center; margin-right: auto; order: 1; }
.brand img { height: 74px; width: auto; }

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav { order: 2; }
.header-cta { order: 3; }
.nav-toggle { order: 4; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="true"] { color: var(--blue-deep); }

.nav-turno { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.btn-primary { background: var(--blue-deep); color: white; }
.btn-primary:hover { background: var(--blue-dark); color: white; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #c9d4db;
}

.btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px var(--mist);
}

.hero {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 36px;
  align-items: center;
  padding: 18px 0 10px;
}

section[id] { scroll-margin-top: 108px; }

.lede {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.14rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--blue-deep);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 14px;
}

.quiet {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual { text-align: center; }

.disc {
  width: min(430px, 100%);
  margin-inline: auto;
  padding: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #fff 0 60%, transparent 61%),
    radial-gradient(circle at 50% 50%, #e7f2f7, #efeae3 74%);
  box-shadow: var(--shadow);
}

.disc img { width: 100%; border-radius: 50%; }

.visual-caption {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
}

.visual-caption span {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 34px 0 10px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.trust strong { display: block; font-size: 1.02rem; }
.trust span { color: var(--muted); font-size: 0.95rem; }

.section { padding: 78px 0; }
.section-head { max-width: 44rem; margin-bottom: 28px; }
.section-head p:last-child { color: var(--ink-soft); }

.catalog { position: relative; }

.filters {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.filters label {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
}

.filter-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#f-todos:checked ~ .filters label[for="f-todos"],
#f-discretos:checked ~ .filters label[for="f-discretos"],
#f-medida:checked ~ .filters label[for="f-medida"],
#f-potencia:checked ~ .filters label[for="f-potencia"],
#f-oido:checked ~ .filters label[for="f-oido"],
#f-facil:checked ~ .filters label[for="f-facil"],
#f-todos:focus-visible ~ .filters label[for="f-todos"],
#f-discretos:focus-visible ~ .filters label[for="f-discretos"],
#f-medida:focus-visible ~ .filters label[for="f-medida"],
#f-potencia:focus-visible ~ .filters label[for="f-potencia"],
#f-oido:focus-visible ~ .filters label[for="f-oido"],
#f-facil:focus-visible ~ .filters label[for="f-facil"] {
  background: var(--blue-deep);
  color: white;
  border-color: var(--blue-deep);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  min-height: 100%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 16px 18px;
  color: inherit;
  text-decoration: none;
}

.card-art {
  height: 180px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 45%, #fff, var(--mist) 70%);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.card-art svg { width: 86%; height: 150px; }
.product-photo { width: 78%; height: 150px; object-fit: contain; margin-inline: auto; }
.study .product-photo, .steps .product-photo { width: 100%; height: 140px; object-fit: cover; border-radius: 16px; margin: 0 0 14px; }
.sheet-art .product-photo { width: 100%; height: 280px; }

.kicker {
  margin: 0 0 4px;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card p { color: var(--ink-soft); flex: 1; }

.more {
  margin-top: 8px;
  color: var(--blue-deep);
  font-weight: 700;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card:hover .more { text-decoration: underline; }

.compare { margin-top: 34px; }

.compare h3 { margin-bottom: 8px; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  min-width: 720px;
}

th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.96rem;
}

thead th {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

tbody th a { font-family: var(--serif); font-size: 1.12rem; text-decoration: none; }

.note {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 10px;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--blue);
}

.study-grid,
.sede-grid,
.bring {
  display: grid;
  gap: 14px;
}

.study-grid { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }

.study,
.sede,
.bring {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}

.study p,
.sede p,
.bring li { color: var(--ink-soft); }

.about {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.about-mark {
  width: min(360px, 100%);
  margin-inline: auto;
}

.about-mark img { border-radius: 50%; background: white; }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  margin-top: 28px;
}

.bring ul { margin: 0; padding: 0; list-style: none; }
.bring li { padding-left: 16px; position: relative; margin: 8px 0; }
.bring li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.sede-grid { grid-template-columns: repeat(3, 1fr); }

address { font-style: normal; }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 18px;
}

.faq details + details { margin-top: 10px; }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 32px 14px 0;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--blue-deep);
  border-bottom: 2px solid var(--blue-deep);
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-70%) rotate(45deg);
}

.faq details[open] summary::after { transform: translateY(-20%) rotate(225deg); }
.faq details p { color: var(--ink-soft); margin-top: 0; }

.cta-band {
  padding: 28px 0 80px;
}

.cta-inner {
  background: linear-gradient(160deg, #245979, #3d86a8);
  color: white;
  border-radius: 32px;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
}

.cta-inner h2,
.cta-inner p { color: white; }
.cta-inner p { max-width: 38rem; opacity: 0.92; }
.cta-inner .btn-primary { background: white; color: var(--blue-dark); }
.cta-inner .btn-primary:hover { background: var(--sand); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.site-footer img { height: 64px; width: auto; }
.site-footer a { text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.legal {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.mobile-cta { display: none; }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
  overflow: auto;
  background: var(--paper);
}

.sheet:target,
.sheet.is-open {
  visibility: visible;
  pointer-events: auto;
}

.sheet-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(246, 244, 240, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.sheet-bar img { height: 52px; width: auto; }

.sheet-back, .sheet-x {
  background: transparent;
  border: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.sheet-layout {
  width: min(1040px, calc(100% - 36px));
  margin: 28px auto 72px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: start;
}

.sheet-art {
  position: sticky;
  top: 96px;
  background: white;
  border-radius: 28px;
  border: 1px solid var(--line);
  padding: 18px;
}

.sheet-art svg { width: 100%; height: auto; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.facts div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.facts dd { margin: 4px 0 0; }

.sheet h3 { margin-top: 18px; }

.callout {
  background: var(--sand);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--ink-soft);
}

.clean { margin: 0; padding: 0; list-style: none; }
.clean li { position: relative; padding-left: 16px; margin: 8px 0; color: var(--ink-soft); }
.clean li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  left: 0;
  top: 0.55em;
}

#f-discretos:checked ~ .grid .card:not([data-tags~="discretos"]),
#f-medida:checked ~ .grid .card:not([data-tags~="medida"]),
#f-potencia:checked ~ .grid .card:not([data-tags~="potencia"]),
#f-oido:checked ~ .grid .card:not([data-tags~="oido"]),
#f-facil:checked ~ .grid .card:not([data-tags~="facil"]),
#f-discretos:checked ~ .compare tbody tr:not([data-tags~="discretos"]),
#f-medida:checked ~ .compare tbody tr:not([data-tags~="medida"]),
#f-potencia:checked ~ .compare tbody tr:not([data-tags~="potencia"]),
#f-oido:checked ~ .compare tbody tr:not([data-tags~="oido"]),
#f-facil:checked ~ .compare tbody tr:not([data-tags~="facil"]) { display: none; }

.cta-inner .eyebrow { color: #d7ebf3; }
.cta-inner .eyebrow::before {
  background: white;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
}

@media (max-width: 980px) {
  .hero, .about, .split, .cta-inner, .footer-grid, .sheet-layout { grid-template-columns: 1fr; }
  .grid, .study-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .sheet-art { position: static; }
  .cta-inner .btn { justify-self: start; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav-turno { display: inline-flex; }
  .header-inner { position: static; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 22px 18px;
    background: #f6f4f0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(28, 44, 56, 0.08);
  }
  .nav a { padding: 10px 0; }
  .nav-check:checked ~ .nav { display: flex; }
  #nav-check:checked + .nav-toggle .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  #nav-check:checked + .nav-toggle .bar:nth-child(3) { opacity: 0; }
  #nav-check:checked + .nav-toggle .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .brand img { height: 60px; }
  .disc { width: min(250px, 72vw); }
  .hero { width: min(1120px, calc(100% - 28px)); }
  .sheet-bar img { display: none; }
  table tbody th { display: block; }
  .grid, .study-grid, .steps, .sede-grid, .trust, .facts { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .cta-inner { padding: 32px 22px; }
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(246, 244, 240, 0.95);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { width: 100%; }
  body { padding-bottom: 74px; }
  body.sheet-open { padding-bottom: 0; }
  body.sheet-open .mobile-cta { display: none; }
  table { min-width: 0; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  tbody tr {
    margin-bottom: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px 0;
  }
  td, tbody th { border: 0; display: grid; grid-template-columns: 42% 1fr; gap: 8px; }
  td::before { content: attr(data-label); color: var(--muted); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
