/* Microscopedeals – estilos compartidos
   Oliva oscuro, botones lavanda, detalles dorados */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #292102;
  --bg-2: #403403;
  --card: #534405;
  --gold: #a08402;
  --gold-l: #bf9f1a;
  --gold-p: #dcbf58;
  --lav: #a192ed;
  --lav-h: #c0b6ff;
  --plum: #6d59b9;
  --tx: #f1f5f9;
  --tx-2: #e2e8f0;
  --mut: #cbd5e1;
  --cream: #fbf7e7;
  --ink: #1c1602;
  --line: rgba(220, 191, 88, 0.16);
  --line-strong: rgba(220, 191, 88, 0.32);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.18);
  --r: 14px;
  --r-lg: 16px;
  --gut: 16px;
  --sec: 56px;
  --sec-c: 48px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (min-width: 768px) { :root { --gut: 24px; --sec: 80px; --sec-c: 56px; } }
@media (min-width: 1024px) { :root { --gut: 32px; --sec: 96px; --sec-c: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--lav-h); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cream); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--tx); margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 2.2vw + 18px, 48px); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 1.3vw + 16px, 36px); }
h3 { font-size: clamp(19px, 0.4vw + 16px, 22px); }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lav-h); outline-offset: 3px; border-radius: 6px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--lav); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--ink); }

.shell { width: 100%; max-width: calc(1280px + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.band { padding: var(--sec) 0; position: relative; }
.band--tight { padding: var(--sec-c) 0; }
.band--deep { background: var(--bg-2); }
.band--glow { background: radial-gradient(1200px 500px at 85% 0%, rgba(161, 146, 237, 0.08), transparent 60%), radial-gradient(900px 500px at 0% 100%, rgba(160, 132, 2, 0.12), transparent 60%), var(--bg); }
.band-head { max-width: 760px; margin-bottom: 40px; }
.band-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.band-head p { color: var(--mut); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-p); margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--gold-l); }
.lead { font-size: clamp(17px, 0.4vw + 15px, 20px); color: var(--tx-2); }
.muted { color: var(--mut); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--lav); color: var(--ink); }
.btn--primary:hover { background: var(--lav-h); color: var(--ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--tx); border-color: rgba(241, 245, 249, 0.38); }
.btn--ghost:hover { border-color: var(--gold-p); color: var(--cream); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--lav-h); border: 1.5px solid var(--lav); }
.btn--outline:hover { background: rgba(161, 146, 237, 0.12); color: var(--cream); }
.btn--pill { border-radius: 999px; padding-left: 28px; padding-right: 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.masthead { position: sticky; top: 0; z-index: 60; background: rgba(41, 33, 2, 0.97); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(6px)) { .masthead { background: rgba(41, 33, 2, 0.9); backdrop-filter: blur(10px); } }
.masthead__bar { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--tx); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: var(--cream); }
.brand svg { width: 38px; height: 38px; color: #fff; }
.mainnav { display: none; }
.mainnav ul { list-style: none; display: flex; gap: 6px; }
.mainnav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--tx-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.mainnav a:hover { color: var(--cream); background: rgba(220, 191, 88, 0.08); }
.mainnav a[aria-current="page"] { color: var(--gold-p); box-shadow: inset 0 -2px 0 var(--gold-l); border-radius: 10px 10px 4px 4px; }
.masthead__aside { display: none; align-items: center; gap: 18px; }
.phone-link { display: inline-flex; align-items: center; gap: 8px; color: var(--tx-2); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.phone-link svg { width: 18px; height: 18px; color: var(--gold-p); }
.phone-link:hover { color: var(--cream); }
.masthead .btn { min-height: 44px; padding: 10px 18px; font-size: 14.5px; }
.burger { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--tx); cursor: pointer; }
.burger svg { width: 22px; height: 22px; }
.burger .i-close { display: none; }
.burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-close { display: block; }
.drawer { border-top: 1px solid var(--line); background: var(--bg); padding: 12px 0 24px; }
.drawer[hidden] { display: none; }
.drawer ul { list-style: none; }
.drawer li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--tx); text-decoration: none; font-weight: 500; font-size: 17px; }
.drawer li a[aria-current="page"] { color: var(--gold-p); }
.drawer__foot { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; }
@media (min-width: 1024px) {
  .mainnav, .masthead__aside { display: flex; }
  .burger, .drawer { display: none !important; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .mainnav a { padding: 10px 10px; }
  .masthead__aside { gap: 12px; }
}

/* Cards and decorations */
.tile { position: relative; background: linear-gradient(160deg, rgba(83, 68, 5, 0.96), rgba(64, 52, 3, 0.96)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px; transition: transform .25s, border-color .25s; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.tile p:last-child { margin-bottom: 0; }
.icon-box { width: 48px; height: 48px; flex: none; display: inline-grid; place-items: center; border-radius: 12px; background: rgba(161, 146, 237, 0.14); color: var(--lav-h); border: 1px solid rgba(161, 146, 237, 0.28); }
.icon-box svg { width: 24px; height: 24px; }
.num-badge { align-self: flex-start; justify-self: start; display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; background: rgba(220, 191, 88, 0.12); border: 1px solid var(--line-strong); color: var(--gold-p); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(109, 89, 185, 0.22); color: var(--lav-h); border: 1px solid rgba(161, 146, 237, 0.28); }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(161, 146, 237, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0b6ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.deco { position: absolute; pointer-events: none; border-radius: 50%; border: 1px solid rgba(220, 191, 88, 0.14); }
.deco--fill { background: radial-gradient(circle, rgba(161, 146, 237, 0.10), transparent 70%); border: 0; }
.photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--bg-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.note { font-size: 14.5px; color: var(--mut); border-left: 3px solid var(--gold-l); padding: 10px 0 10px 16px; margin-top: 28px; }

/* Page intro (sub pages) */
.intro { position: relative; padding: calc(var(--sec) - 8px) 0 var(--sec-c); overflow: hidden; background: radial-gradient(900px 420px at 90% -10%, rgba(161, 146, 237, 0.12), transparent 65%), linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); }
.intro h1 { max-width: 880px; }
.intro .lead { max-width: 760px; color: var(--mut); }
.crumbs { list-style: none; display: flex; gap: 8px; font-size: 14px; color: var(--mut); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--gold-l); }
.crumbs a { color: var(--mut); }

/* Footer */
.colophon { background: #1f1902; border-top: 1px solid var(--line); padding: 64px 0 28px; color: var(--mut); font-size: 15px; }
.colophon__grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .colophon__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .colophon__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.colophon h2 { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-p); margin-bottom: 16px; }
.colophon ul { list-style: none; display: grid; gap: 10px; }
.colophon a { color: var(--tx-2); text-decoration: none; }
.colophon a:hover { color: var(--cream); text-decoration: underline; }
.colophon .brand { margin-bottom: 16px; }
.colophon address { font-style: normal; display: grid; gap: 10px; }
.colophon__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; font-size: 14px; }
.linklike { background: none; border: 0; padding: 0; color: var(--tx-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.linklike:hover { color: var(--cream); }

/* Consent panel */
.consent { position: fixed; z-index: 120; left: 16px; bottom: 16px; width: min(440px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: #2f2603; border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); padding: 24px; transform: translateY(calc(100% + 40px)); opacity: 0; visibility: hidden; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, visibility 0s .45s; }
.consent.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.consent h2 { font-size: 20px; margin-bottom: 8px; }
.consent p { font-size: 14.5px; color: var(--mut); }
.consent__list { list-style: none; display: grid; gap: 10px; margin: 16px 0 20px; }
.consent__item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px; border-radius: 12px; background: rgba(83, 68, 5, 0.6); border: 1px solid var(--line); }
.consent__item strong { color: var(--tx); display: block; font-size: 15px; }
.consent__item span { font-size: 13.5px; color: var(--mut); }
.switch { position: relative; flex: none; width: 46px; height: 26px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(203, 213, 225, 0.25); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--tx); transition: transform .2s; }
.switch input:checked + i { background: var(--lav); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--ink); }
.switch input:disabled + i { opacity: 0.65; }
.switch input:focus-visible + i { outline: 3px solid var(--lav-h); outline-offset: 2px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent__actions .btn { flex: 1 1 auto; min-height: 44px; font-size: 14.5px; }
.consent__links { margin-top: 14px; font-size: 13.5px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tile:hover, .btn:hover { transform: none; }
}
