/* Poli Check-in — estilos del sitio. Sin librerías. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --text: #14171c;
  --muted: #525a66;
  --accent: #f3d77a;
  --accent-hover: #ecc955;
  --accent-soft: #fff3c2;
  --accent-text: #b08500;
  --surface: #f6f7f9;
  --border: #e6e8ec;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(20, 23, 28, 0.35);
  --width: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }

:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--accent); color: var(--text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--text); transform: translateY(-1px); }
.btn-ghost { border-color: #cfd4db; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  padding-top: 10px; padding-bottom: 10px;
}
.site-logo { margin-right: auto; display: inline-flex; flex: none; }
.site-logo img { height: 60px; width: auto; max-width: none; aspect-ratio: 480 / 232; flex: none; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 550; font-size: 0.97rem; padding: 6px 0; }
.site-nav .btn { padding: 0.6em 1.25em; font-size: 0.95rem; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--border);
  border-radius: 12px; background: #fff; color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .site-nav { width: 100%; gap: 2px 20px; padding-bottom: 4px; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 10px; }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .js .site-nav .btn { margin-top: 14px; padding: 0.8em 1.25em; }
}

/* ---------- Secciones ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.eyebrow {
  display: block; margin: 0 0 14px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text);
}

.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 54ch; }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 88px); }
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero .lead { margin-bottom: 1.6em; }
.hero-media img { border-radius: 28px; box-shadow: var(--shadow); width: 100%; max-width: 440px; margin: 0 auto; }

.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 30px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); list-style: none; }
.trust li:first-child { flex-basis: 100%; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.trust li:not(:first-child) { display: inline-flex; align-items: center; gap: 9px; font-size: 0.98rem; font-weight: 600; color: var(--text); }
.trust li:not(:first-child)::before { content: ""; width: 6px; height: 11px; margin: -3px 2px 0; border: solid var(--accent-hover); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* ---------- Dos columnas ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { border-radius: 22px; box-shadow: var(--shadow); }
.split p { color: var(--muted); }
.split .btn-row { margin-top: 1.4em; }

/* ---------- Tarjetas ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.card {
  background: var(--surface); border: 1px solid transparent; border-radius: var(--radius);
  padding: 26px; color: var(--muted); font-size: 0.98rem;
}
.section-alt .card { background: #fff; border-color: var(--border); }
.card h3 { color: var(--text); margin-bottom: 0.45em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent-text);
}
.card-icon svg { width: 24px; height: 24px; }

a.card { display: block; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--accent); color: var(--muted); transform: translateY(-2px); }
.card-meta { display: block; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.card-more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--accent-text); }

/* Entradas del blog: foto arriba */
.post-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
a.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #eeede9; }
.post-card img.img-entera { object-fit: contain; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 26px; }
.post-body h2, .post-body h3 { color: var(--text); font-size: 1.3rem; line-height: 1.25; margin-bottom: 0.45em; }
.post-body p { margin: 0; }
.post-body .card-more { margin-top: auto; padding-top: 14px; }

/* ---------- Listados de manuales ---------- */

.manual-rows { display: grid; gap: 14px; }
.manual-row {
  display: flex; align-items: stretch; gap: 24px; text-decoration: none; color: var(--muted);
  background: var(--surface); border: 1px solid transparent; border-radius: 16px;
  padding: 22px 22px 22px 28px; transition: border-color 0.15s;
}
.section-alt .manual-row { background: #fff; border-color: var(--border); }
.manual-row:hover { border-color: var(--accent); color: var(--muted); }
.manual-text { display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; }
.manual-text h3 { color: var(--text); margin-bottom: 0.3em; }
.manual-text p { margin: 0; }
.manual-text .card-more { margin-top: 10px; }
.manual-row img {
  flex: none; width: 230px; height: 132px; object-fit: cover; object-position: top left;
  border-radius: 10px; border: 1px solid var(--border); background: #fff;
}
.manual-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.manual-tile {
  display: flex; flex-direction: column; text-decoration: none; color: var(--muted); overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; transition: border-color 0.15s, transform 0.15s;
}
.manual-tile:hover { border-color: var(--accent); color: var(--muted); transform: translateY(-2px); }
.manual-tile img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left;
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.manual-tile .manual-text { padding: 20px 22px 24px; justify-content: flex-start; }
.manual-tile .card-more { margin-top: auto; padding-top: 12px; }
.manual-row img.img-centro, .manual-tile img.img-centro { object-position: center; }
.manual-row img.img-entera, .manual-tile img.img-entera { object-fit: contain; object-position: center; }
@media (max-width: 620px) {
  .manual-row { flex-direction: column; padding: 20px; }
  .manual-row img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* ---------- Precio ---------- */

.price-card {
  max-width: 460px; margin: 0 auto; padding: 36px 32px; text-align: center;
  background: #fff; border: 2px solid var(--accent); border-radius: 22px; box-shadow: var(--shadow);
}
.price-card h3, .price-card .price-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-text); }
.price { font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.price-term { color: var(--muted); margin: 6px 0 22px; }
.price-list { list-style: none; padding: 0; margin: 0 0 26px; text-align: left; }
.price-list li { padding: 11px 0 11px 32px; border-top: 1px solid var(--border); position: relative; font-weight: 550; }
.price-list li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent-text); border-bottom: 2.5px solid var(--accent-text); transform: rotate(-45deg);
}
.price-card .btn { width: 100%; }

/* ---------- Contacto ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 860px; margin: 0 auto; }
.contact-grid .card { text-align: center; }
.contact-grid .card-icon { margin-left: auto; margin-right: auto; }
.contact-value { display: block; font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.notice { font-size: 0.85rem; line-height: 1.5; margin-top: 14px; }

/* ---------- Páginas interiores ---------- */

.page-head { padding: clamp(22px, 2.6vw, 34px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 0.2em; }
.page-head .lead { margin: 0; font-size: 1rem; max-width: none; }

.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 clamp(26px, 3.4vw, 44px); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.prose { max-width: 740px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose a:not(.btn) { color: var(--accent-text); font-weight: 600; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose .summary { font-size: 1.15rem; color: var(--muted); border-left: 4px solid var(--accent); padding-left: 18px; }
.post-meta { color: var(--accent-text); font-size: 0.92rem; }

.container-narrow { max-width: 780px; }
.prose figure { margin: 1.6em 0; }
.prose .tiendas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.prose .tiendas img { margin: 0; border-radius: 0; }
.prose figure img { margin: 0 auto; border: 1px solid var(--border); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose mark { background: var(--accent-soft); color: inherit; padding: 0.05em 0.25em; border-radius: 4px; }
.prose mark.naranja { background: #f8d2a8; }
.prose mark.rojo { background: #f8c4c4; }
.prose mark.verde { background: #c3f0d4; }
.prose mark.gris { background: #dddcdc; }
.prose .t-rojo { color: #c21515; font-weight: 600; }
.prose .t-azul { color: #1558b0; font-weight: 600; }
.prose .t-morado { color: #503aa8; font-weight: 600; }
.prose .t-verde { color: #17794a; font-weight: 600; }
.prose .t-naranja { color: #a85a0b; font-weight: 600; }
.prose .nota, .prose .destacado {
  background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px;
}
.prose details { border: 1px solid var(--border); border-radius: var(--radius); padding: 0 18px; margin: 0 0 12px; background: #fff; }
.prose summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.prose details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.article-foot { margin-top: 2.5em; padding-top: 1.2em; border-top: 1px solid var(--border); }
article { padding-bottom: 64px; }
.link-list { list-style: none; padding: 0; margin: 12px 0 0; }
.link-list li { margin-bottom: 8px; }
.link-list a { font-weight: 600; color: var(--accent-text); }

.legal { padding-top: 32px; padding-bottom: 64px; }

/* ---------- Pie ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 44px 0 36px; font-size: 0.94rem; color: var(--muted); }
.site-footer .container { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.site-footer img { height: 44px; width: auto; margin-bottom: 14px; }
.site-footer .footer-brand p { max-width: 17.5em; margin: 0; text-wrap: balance; }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 20px; margin: 0; font-size: 0.86rem; }

/* ---------- Adaptación ---------- */

@media (max-width: 860px) {
  .hero .container, .split { grid-template-columns: 1fr; }
  .hero .container > *, .split > * { min-width: 0; }
  .hero-media { order: -1; }
  .hero-media img { max-width: 300px; }
  .split img { width: 100%; max-width: 520px; margin: 0 auto; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .btn-row .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; }
  .site-footer .container { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Preguntas frecuentes: títulos de grupo en el color de los enlaces */
.faq h2 { color: var(--accent-text); }
.faq h2:first-child { margin-top: 0; }
