:root {
  --accent: #FE5502;
  --accent-deep: #D63E00;
  --bg: #ffffff;
  --bg-soft: #f6f4f2;
  --text: #17120f;
  --muted: #6b625c;
  --line: #e9e4e0;
  --card: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121010;
    --bg-soft: #1c1918;
    --text: #f4f0ed;
    --muted: #b0a7a1;
    --line: #2e2a28;
    --card: #1c1918;
  }
  header.top img.logo-light { display: none; }
  header.top img.logo-dark { display: block; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Cabecera */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
header.top .wrap > a { flex-shrink: 0; }
header.top img { height: 26px; width: auto; max-width: none; display: block; }
header.top img.logo-dark { display: none; }
header.top nav { display: flex; gap: 18px; font-size: 15px; }
header.top nav a { color: var(--muted); text-decoration: none; }
header.top nav a:hover, header.top nav a[aria-current="page"] { color: var(--text); }

/* Portada */
.hero { background: linear-gradient(160deg, var(--accent), var(--accent-deep)); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 0; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 20px; margin: 0 0 28px; opacity: 0.95; }
.hero .shot { align-self: end; }
.hero .shot img { display: block; width: 100%; max-width: 380px; margin: 0 auto; border-radius: 28px 28px 0 0; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 14px; font-weight: 600;
}
.badge small { display: block; font-weight: 400; font-size: 12px; opacity: 0.8; line-height: 1.2; }
.note { font-size: 14px; opacity: 0.85; margin-top: 12px; }

section.block { padding: 72px 0; }
section.block.soft { background: var(--bg-soft); }
section.block h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
section.block p.sub { color: var(--muted); margin: 0 0 36px; font-size: 19px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.card h3 { margin: 10px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { font-size: 28px; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shots img { border-radius: 22px; display: block; }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.price.featured { border: 2px solid var(--accent); }
.price .tag { display: inline-block; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.price h3 { margin: 12px 0 4px; font-size: 20px; }
.price .amount { font-size: 32px; font-weight: 800; }
.price ul { padding-left: 20px; color: var(--muted); font-size: 15px; margin: 12px 0 0; }

/* Páginas de texto */
article.doc { padding: 48px 0 72px; }
article.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.1; margin: 0 0 6px; }
article.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
article.doc h2 { font-size: 22px; margin: 36px 0 8px; }
article.doc p, article.doc li { color: var(--text); }
article.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
article.doc th, article.doc td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
article.doc th { background: var(--bg-soft); }
.callout { background: var(--bg-soft); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 8px; margin: 18px 0; }
.todo { background: #fff3cd; color: #5c4400; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
details { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 12px 0; background: var(--card); }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; }

footer.bottom { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer.bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.bottom a { color: var(--muted); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; }
  .grid, .prices, .shots { grid-template-columns: 1fr; }
  .shots img { max-width: 360px; margin: 0 auto; }
  header.top nav { gap: 12px; font-size: 14px; }
  header.top img { height: 22px; }
  header.top nav .hide-sm { display: none; }
  section.block { padding: 52px 0; }
}

/* Selector de idioma */
header.top nav { align-items: center; }
.lang-menu { position: relative; border: 0; padding: 0; margin: 0; background: none; border-radius: 0; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); }
.lang-menu summary svg { width: 16px; height: 16px; }
.lang-menu summary .chev { width: 10px; height: 10px; transition: transform .2s; }
.lang-menu[open] summary .chev { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; margin: 0; padding: 6px; list-style: none; z-index: 60;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .25);
}
header.top nav .lang-menu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 15px; color: var(--text); }
header.top nav .lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a small { font-size: 12px; font-weight: 700; color: var(--muted); }
header.top nav .lang-menu a[aria-current="page"], .lang-menu a[aria-current="page"] small { color: var(--accent); font-weight: 700; }
