/* Fuentes alojadas en el tema (OFL): sin peticiones a terceros */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/dm-sans-400.woff2) format('woff2')}
@font-face{font-family:'Sora';font-style:normal;font-weight:500 700;font-display:swap;src:url(../fonts/sora-500.woff2) format('woff2')}
/* AmaFull — "Observatorio": una vitrina nocturna, futurista y acogedora.
   Índigo profundo (no negro), luces cálidas de coral y melocotón, cristal suave y cada producto sobre su pedestal luminoso.
   Pensada como lanzadera: ves el producto, lo comparas y saltas a Amazon.
   Movimiento: solo transform/opacity, curvas propias, respuesta al pulsar y una entrada de portada. */
:root {
  --bg: #14123A;
  --bg-2: #1B1850;
  --bg-3: #26226E;
  --deep: #0E0C2C;
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .1);
  --edge: rgba(255, 255, 255, .13);
  --text: #F4F2FF;
  --text-2: #B7B2E6;
  --violet: #8B6CFF;
  --violet-d: #6B4BF0;
  --coral: #FF5C85;
  --coral-d: #F0436F;
  --coral-ink: #2B0715;
  --peach: #FFB38A;
  --mint: #6BF2C0;
  --ice: #F1EEFF;
  --display: "Sora", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --glow-v: 0 18px 50px -16px rgba(139, 108, 255, .65);
  --glow-c: 0 16px 40px -14px rgba(255, 92, 133, .7);
  --gutter: clamp(14px, 4vw, 40px);
  --max: 1240px;
  --r: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--body); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background-image: radial-gradient(60vw 40vw at 85% -10%, rgba(139, 108, 255, .22), transparent 70%), radial-gradient(45vw 35vw at -5% 12%, rgba(255, 92, 133, .12), transparent 70%); background-repeat: no-repeat; }
#app { flex: 1; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a, label, summary, select, input, button, [role="button"] { touch-action: manipulation; }
button, .btn, .chip, .nav a, .card .pic, .thumbs button, .pick, .brand, .seg a, .cookie, .tray, .buybar { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, select, textarea { font-size: 16px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.03em; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--peach); color: var(--coral-ink); padding: 8px 14px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ext { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- botones ---------- */
.btn { color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .7em 1.4em; border: 1px solid var(--edge); border-radius: 16px; background: var(--glass-2); font-weight: 700; text-decoration: none; line-height: 1.1; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn.go, .btn.sun { background: var(--coral); border-color: transparent; color: var(--coral-ink); box-shadow: var(--glow-c); }
.btn.go:active, .btn.sun:active { background: var(--coral-d); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 44px; padding: .5em 1.1em; font-size: .95rem; }
.btn.block { width: 100%; }
.btn.big { min-height: 58px; font-size: 1.1rem; border-radius: 18px; }
.btn.is-on { background: rgba(107, 242, 192, .16); border-color: rgba(107, 242, 192, .5); color: var(--mint); }
.btn small { font-weight: 600; opacity: .85; }

/* ---------- confianza y cabecera (cristal) ---------- */
.ann { background: linear-gradient(90deg, var(--violet-d), #8F4BF0); color: #fff; text-align: center; font-size: .86rem; font-weight: 600; padding: .5em var(--gutter); line-height: 1.35; }
.top { position: sticky; top: 0; z-index: 30; background: rgba(20, 18, 58, .72); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--edge); }
.top .wrap { display: flex; align-items: center; gap: 18px; padding-block: 10px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 44px; width: auto; }
.search { flex: 1; max-width: 520px; margin-inline: auto; position: relative; }
.search input { width: 100%; font: inherit; font-size: 16px; border: 1px solid var(--edge); border-radius: 16px; padding: .7em 1.1em .7em 2.9em; background: var(--glass); color: var(--text); transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.search input::placeholder { color: #8F89C8; }
.search input:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 108, 255, .25); }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; pointer-events: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; padding: .5em .8em; border-radius: 12px; transition: background-color 160ms var(--ease-out); }
.nav .cmp, .nav .acct { display: inline-flex; align-items: center; gap: 7px; }
.nav svg { width: 22px; height: 22px; }
.count { background: var(--coral); color: var(--coral-ink); min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .82rem; font-weight: 800; }
.count[data-n="0"] { background: var(--glass-2); color: var(--text-2); }
.search-btn { display: none; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; padding: 0; }
.search-btn svg { width: 24px; height: 24px; }
.top.open-search .search-btn { background: var(--glass-2); }

/* ---------- portada: la vitrina ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 1.5px 1.5px, rgba(255, 255, 255, .22) 1px, transparent 1.4px) 0 0 / 38px 38px; -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 80px); align-items: center; padding-block: clamp(34px, 5vw, 76px) clamp(48px, 6vw, 96px); }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { color: #C9BBFF; }
.hero h1 span:last-child { background: linear-gradient(90deg, var(--coral), var(--peach)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 22px; font-size: 1.18rem; max-width: 36ch; color: var(--text-2); }
.hero .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .actions .btn { white-space: nowrap; }

.stage { position: relative; justify-self: center; width: min(100%, 470px); aspect-ratio: 1 / 1.02; display: grid; place-items: center; }
.stage .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); inset: 0; }
.stage .ring.r2 { inset: 11%; border-style: dashed; border-color: rgba(255, 255, 255, .2); }
.stage .ring.r3 { inset: 24%; border-color: rgba(255, 179, 138, .35); }
.stage .glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 92, 133, .55), rgba(139, 108, 255, .35) 55%, transparent 72%); filter: blur(26px); }
.stage .pad { position: absolute; left: 14%; right: 14%; bottom: 7%; height: 14%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 255, 255, .55), rgba(139, 108, 255, .4) 45%, transparent 70%); }
.stage .card { position: relative; z-index: 2; width: 68%; }
.stage .tag { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .4em; padding: .5em .95em; border-radius: 999px; background: rgba(20, 18, 58, .75); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 700; font-size: .9rem; box-shadow: var(--glow-v); }
.stage .tag.t1 { left: -2%; top: 18%; color: var(--peach); }
.stage .tag.t2 { right: -3%; top: 8%; color: var(--mint); }
.stage .tag.t3 { left: -3%; top: 56%; color: #C9BBFF; }

.facts { padding-block: 4px 0; }
.facts .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.facts span { display: inline-flex; align-items: baseline; gap: 8px; background: var(--glass); border: 1px solid var(--edge); border-radius: 999px; padding: .55em 1.3em; color: var(--text-2); font-weight: 600; font-size: .98rem; }
.facts b { font: 600 1.3rem/1 var(--display); color: var(--peach); letter-spacing: -.03em; }

/* ---------- categorías ---------- */
.cats { width: 100%; display: flex; gap: 10px; overflow-x: auto; padding: 28px var(--gutter) 10px; margin-inline: auto; max-width: var(--max); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.chip { color: var(--text); flex: none; min-height: 46px; border: 1px solid var(--edge); background: var(--glass); border-radius: 999px; padding: .4em 1.2em; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.chip small { font-weight: 700; color: var(--peach); }
.chip:active { transform: scale(.96); }
.chip[aria-current="page"] { background: var(--violet-d); border-color: transparent; box-shadow: var(--glow-v); }
.chip[aria-current="page"] small { color: #fff; }

/* ---------- secciones ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block: 46px 22px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section-head p { color: var(--text-2); margin-top: 8px; }
.tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tools label { font-weight: 600; font-size: .92rem; display: inline-flex; gap: 8px; align-items: center; color: var(--text-2); }
.tools select { font: inherit; font-size: 16px; min-height: 46px; border: 1px solid var(--edge); border-radius: 14px; padding: .35em 1em; background: var(--bg-2); color: var(--text); }
.tools input[type=range] { accent-color: var(--coral); width: 130px; height: 32px; }
.tools output { color: var(--text); font-weight: 700; }
#catalogo { scroll-margin-top: 120px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 24px 20px; padding-bottom: 64px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(264px, 300px); gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 6px 34px; margin-inline: -6px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; }
.rail > * { scroll-snap-align: start; }

/* ---------- tarjeta: el producto sobre su pedestal ---------- */
.card { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid var(--edge); border-radius: var(--r); transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.card:active { transform: scale(.985); }
.card .pic { display: block; margin: 10px 10px 0; aspect-ratio: 1 / .94; background: radial-gradient(circle at 50% 40%, #fff 0%, var(--tint, var(--ice)) 78%); border-radius: 22px; padding: 22px; position: relative; overflow: hidden; }
.card .pic::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 8%; height: 8%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(20, 18, 58, .28), transparent 70%); }
.card .pic img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 320ms var(--ease-out); }
.card .body { position: relative; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card .cat { font-size: .82rem; font-weight: 700; color: var(--violet); letter-spacing: .01em; }
.card h3 { font-size: 1.14rem; line-height: 1.18; font-weight: 600; letter-spacing: -.02em; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.card .row { margin-top: auto; padding-top: 4px; display: grid; gap: 6px; }
.card .acts { display: grid; position: relative; z-index: 2; margin-top: 6px; gap: 8px; }
.stamp { position: absolute; z-index: 2; left: 12px; top: 12px; display: grid; place-items: center; min-width: 54px; height: 32px; padding: 0 .7em; border-radius: 999px; background: var(--coral); color: var(--coral-ink); font: 700 .88rem/1 var(--display); letter-spacing: -.02em; box-shadow: var(--glow-c); }
.label { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 700; color: var(--peach); background: rgba(255, 179, 138, .12); border: 1px solid rgba(255, 179, 138, .35); padding: .22em .75em; border-radius: 999px; }
.fab { display: none; }
.stars { --r: 4; display: inline-block; font-size: 1rem; letter-spacing: 1px; line-height: 1; background: linear-gradient(90deg, var(--peach) calc(var(--r) / 5 * 100%), #4C4690 0); -webkit-background-clip: text; background-clip: text; color: transparent; vertical-align: -1px; }
.rate { font-size: .88rem; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.rate b { color: var(--text); }

.ptag { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ptag .now { font: 600 1.9rem/1 var(--display); letter-spacing: -.04em; color: var(--text); }
.ptag .was { font-size: .9rem; color: #8F89C8; font-weight: 500; }
.ptag.big .now { font-size: clamp(2.9rem, 6vw, 4.2rem); }
.ptag.big .was { font-size: 1.15rem; }
.save-txt { display: inline-block; justify-self: start; font-weight: 700; color: var(--mint); background: rgba(107, 242, 192, .12); border: 1px solid rgba(107, 242, 192, .3); font-size: .88rem; padding: .2em .8em; border-radius: 999px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; border-radius: var(--r); background: var(--glass); border: 1px dashed var(--edge); color: var(--text-2); }
.empty h3 { font-size: 1.7rem; margin-bottom: 8px; color: var(--text); }

/* ---------- ficha de producto ---------- */
.crumbs { padding-block: 22px 8px; font-size: .92rem; color: var(--text-2); }
.crumbs a { text-decoration: none; font-weight: 700; color: var(--peach); }
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; padding-block: 12px 40px; }
.gallery .main { position: relative; background: radial-gradient(circle at 50% 40%, #fff 0%, var(--tint, var(--ice)) 80%); border-radius: 36px; aspect-ratio: 1; padding: clamp(24px, 6vw, 64px); box-shadow: var(--glow-v); }
.gallery .main::after { content: ""; position: absolute; left: 24%; right: 24%; bottom: 9%; height: 6%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(20, 18, 58, .3), transparent 70%); }
.gallery .main img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery .stamp { height: 40px; min-width: 70px; font-size: 1.05rem; left: 20px; top: 20px; }
.thumbs { display: flex; gap: 10px; margin-top: 16px; }
.thumbs button { width: 72px; height: 72px; padding: 6px; border: 1px solid var(--edge); border-radius: 18px; background: #fff; }
.thumbs button[aria-current="true"] { outline: 3px solid var(--violet); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.info h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.04; }
.info .sum { margin-top: 16px; font-size: 1.12rem; max-width: 46ch; color: var(--text-2); }
.info .rate { font-size: 1rem; }
.buybox { position: relative; margin-top: 26px; padding: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); border: 1px solid var(--edge); border-radius: 30px; display: grid; gap: 20px; }
.buybox .price-row { display: grid; gap: 10px; }
.buybox .buttons { display: grid; gap: 10px; }
.fine { font-size: .84rem; color: var(--text-2); line-height: 1.45; }
.feat { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.feat li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.feat li::before { content: ""; width: 24px; height: 24px; background: var(--violet-d) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; border-radius: 50%; margin-top: 1px; }
.cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding-bottom: 50px; }
.panel { background: var(--glass); border: 1px solid var(--edge); border-radius: 30px; padding: 28px; }
.panel h2 { font-size: 1.6rem; margin-bottom: 14px; }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: .7em 0; border-bottom: 1px solid var(--edge); vertical-align: top; }
.spec tr:last-child > * { border-bottom: 0; }
.spec th { font-weight: 600; color: var(--text-2); width: 45%; padding-right: 14px; }
.pc { display: grid; gap: 20px; align-content: start; }
.pc ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.pc h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--peach); }
.buybar { display: none; }

/* ---------- comparador ---------- */
.cmp-wrap { overflow-x: auto; padding: 10px 6px 30px; margin-inline: -6px; overscroll-behavior-x: contain; }
.cmp-table { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.cmp-table th, .cmp-table td { padding: 14px 16px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--edge); min-width: 210px; background: var(--bg); }
.cmp-table thead th { border-bottom: 0; padding-top: 0; }
.cmp-table tbody th { position: sticky; left: 0; z-index: 2; min-width: 120px; width: 120px; max-width: 120px; color: var(--text-2); font-weight: 600; font-size: .92rem; }
.cmp-table thead th:first-child { position: sticky; left: 0; z-index: 3; min-width: 120px; width: 120px; padding: 0; }
.cmp-table tr.diff > * { background: #1E1B55; }
.cmp-table td.best { background: rgba(255, 92, 133, .16); font-weight: 700; }
.cmp-table .miss { color: #6D67AE; }
.cmp-head { position: relative; background: var(--bg-2); border: 1px solid var(--edge); border-radius: 26px; padding: 14px; display: grid; gap: 10px; }
.cmp-head .pic { background: radial-gradient(circle at 50% 40%, #fff, var(--tint, var(--ice)) 80%); border-radius: 16px; aspect-ratio: 1.2; padding: 10px; display: block; }
.cmp-head .pic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cmp-head h3 { font-size: 1rem; line-height: 1.15; }
.cmp-head h3 a { text-decoration: none; }
.cmp-head .x { position: absolute; top: -10px; right: -10px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg); background: var(--coral); color: var(--coral-ink); font-weight: 800; line-height: 1; display: grid; place-items: center; padding: 0; }
.cmp-add { display: grid; place-items: center; text-align: center; border: 2px dashed var(--edge); border-radius: 26px; min-height: 260px; padding: 20px; color: var(--text-2); font-weight: 600; text-decoration: none; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: .92rem; color: var(--text-2); }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 5px; vertical-align: -2px; margin-right: 6px; }
.toggle { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; color: var(--text); }
.toggle input { accent-color: var(--coral); width: 22px; height: 22px; }

/* ---------- bandeja de comparación: sube desde abajo ---------- */
.tray { position: fixed; z-index: 40; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(100% - 24px, 640px); background: rgba(27, 24, 80, .88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--edge); color: var(--text); border-radius: 22px; padding: 10px 12px 10px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--glow-v), 0 20px 40px -12px rgba(0, 0, 0, .5); translate: -50% 0; transform: translateY(0); opacity: 1; transition: transform 280ms var(--ease-drawer), opacity 200ms var(--ease-out); }
.tray[data-open="false"] { transform: translateY(140%); opacity: 0; pointer-events: none; }
.tray .th { display: flex; gap: 8px; flex: 1; align-items: center; min-width: 0; }
.tray .th span { width: 46px; height: 46px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #fff, var(--tint, var(--ice)) 85%); padding: 4px; flex: none; }
.tray .th img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tray .th em { font-style: normal; font-size: .9rem; color: var(--text-2); }
.tray .clear { background: none; border: 0; color: var(--text-2); text-decoration: underline; padding: 6px; min-height: 44px; }

/* ---------- ofertas por correo ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; font-weight: 600; color: #FF9DB5; font-size: .95rem; }
.form-msg.ok { color: var(--mint); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: .95rem; cursor: pointer; color: var(--text-2); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--coral); }
.check a { font-weight: 700; color: var(--text); }
.picks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.picks legend { font-size: .92rem; font-weight: 600; margin-bottom: 8px; padding: 0; width: 100%; color: var(--text-2); }
.pick { cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-flex; align-items: center; min-height: 44px; padding: .3em 1.1em; border-radius: 999px; background: var(--glass); border: 1px solid var(--edge); font-weight: 700; font-size: .95rem; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.pick input:checked + span { background: var(--violet-d); border-color: transparent; color: #fff; }
.pick input:focus-visible + span { outline: 3px solid var(--peach); outline-offset: 3px; }
.pick:active span { transform: scale(.96); }

.band { margin-top: 30px; position: relative; overflow: hidden; background: linear-gradient(135deg, #3B2BB5, #6B4BF0 55%, #A04BE0); border-block: 1px solid var(--edge); }
.band::before { content: ""; position: absolute; width: 480px; aspect-ratio: 1; right: -140px; top: -190px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 92, 133, .6), transparent 68%); pointer-events: none; }
.band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1.5px 1.5px, rgba(255, 255, 255, .22) 1px, transparent 1.4px) 0 0 / 34px 34px; -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); mask-image: linear-gradient(90deg, transparent 20%, #000); pointer-events: none; }
.band-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(22px, 5vw, 64px); align-items: center; padding-block: clamp(38px, 6vw, 70px); }
.band-copy { display: grid; gap: 14px; justify-items: start; }
.band-copy .dog { width: 76px; height: 76px; }
.band-copy h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.04; }
.band-copy p { font-size: 1.1rem; max-width: 36ch; color: #E4DDFF; }
.offers { display: grid; gap: 14px; }
.offers-row { display: flex; gap: 10px; }
.offers input[type=email] { flex: 1; min-width: 0; font: inherit; font-size: 16px; min-height: 54px; padding: .7em 1.2em; border: 1px solid rgba(255, 255, 255, .3); border-radius: 16px; background: rgba(255, 255, 255, .95); color: #1A1747; }
.offers .picks .pick span { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.offers .picks .pick input:checked + span { background: #fff; color: var(--violet-d); }
.offers .check, .offers .picks legend { color: #E4DDFF; }
.offers .check a { color: #fff; }
.offers .form-msg { color: #fff; }
.done { font: 600 1.6rem/1.15 var(--display); }

/* ---------- cuenta ---------- */
.auth { max-width: 460px; margin-inline: auto; padding-block: 34px 70px; display: grid; gap: 18px; }
.auth.center { text-align: center; justify-items: center; }
.auth h1 { font-size: clamp(2.2rem, 7vw, 3rem); }
.auth .sub { color: var(--text-2); }
.auth .panel { display: grid; gap: 16px; }
.auth .panel h2 { margin: 0; }
.auth form:not(.panel) { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input { font: inherit; font-size: 16px; min-height: 52px; padding: .7em 1.1em; border: 1px solid var(--edge); border-radius: 16px; background: var(--glass); color: var(--text); width: 100%; transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.field input:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 108, 255, .25); }
.hint { font-size: .85rem; color: var(--text-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--edge); border-radius: 18px; background: var(--glass); padding: 5px; gap: 5px; }
.seg a { text-align: center; text-decoration: none; font-weight: 700; padding: .55em; border-radius: 14px; min-height: 46px; display: grid; place-items: center; transition: background-color 160ms var(--ease-out); }
.seg a[aria-current="page"] { background: var(--violet-d); box-shadow: var(--glow-v); }
.gwrap { min-height: 44px; display: flex; justify-content: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: .9rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.status { font-weight: 600; font-size: .95rem; padding: .7em 1em; border-radius: 14px; background: var(--glass); border: 1px solid var(--edge); }
.status.confirmed { background: rgba(107, 242, 192, .12); border-color: rgba(107, 242, 192, .4); color: var(--mint); }
.status.pending { background: rgba(255, 179, 138, .12); border-color: rgba(255, 179, 138, .4); color: var(--peach); }

/* ---------- textos ---------- */
.prose { max-width: 68ch; padding-block: 40px 70px; }
.prose h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-bottom: 22px; }
.prose h2 { font-size: 1.5rem; margin: 30px 0 10px; color: var(--peach); }
.prose p, .prose li { margin-bottom: 12px; color: #D6D1F5; }
.prose mark { background: rgba(255, 179, 138, .25); color: var(--peach); padding: 0 .25em; border-radius: 6px; }

/* ---------- pie ---------- */

/* ---------- aviso ---------- */
.toast { position: fixed; z-index: 60; left: 50%; top: 78px; translate: -50% 0; background: rgba(38, 34, 110, .95); border: 1px solid var(--edge); color: var(--text); border-radius: 16px; padding: .7em 1.3em; font-weight: 600; box-shadow: var(--glow-v); max-width: calc(100% - 28px); text-align: center; animation: toast-in 240ms var(--ease-out); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } }

/* ---------- entrada de la portada: una sola vez ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: no-preference) {
  body.intro .hero-copy > * { animation: rise 520ms var(--ease-out) backwards; }
  body.intro .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  body.intro .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  body.intro .stage { animation: pop 640ms var(--ease-out) 120ms backwards; }
  body.intro .facts span { animation: rise 460ms var(--ease-out) backwards; }
  body.intro .facts span:nth-child(2) { animation-delay: 50ms; }
  body.intro .facts span:nth-child(3) { animation-delay: 100ms; }
  .stage .card { animation: float 6s ease-in-out infinite; }
}

/* ---------- ratón: solo con hover real ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--glass-2); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
  .btn.go:hover { background: var(--coral-d); border-color: transparent; }
  .nav a:hover { background: var(--glass-2); }
  .chip:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .3); }
  .card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, .28); box-shadow: var(--glow-v); }
  .card:hover .pic img { transform: translateY(-6px) scale(1.04); }
  .pick:hover span { transform: translateY(-2px); }
  .seg a:hover:not([aria-current]) { background: var(--glass-2); }
}

/* ---------- pantallas medianas ---------- */
@media (max-width: 900px) {
  .hero-grid, .detail, .cols, .band-in { grid-template-columns: 1fr; }
  .stage { width: min(100%, 400px); }
}

/* ---------- móvil ---------- */
@media (max-width: 720px) {
  :root { --gutter: 14px; --r: 24px; }
  .ann { font-size: .78rem; }
  .top .wrap { padding-block: 8px; gap: 8px 10px; }
  .brand img { height: 38px; }
  .search { display: none; order: 3; flex-basis: 100%; max-width: none; }
  .top.open-search .search { display: block; padding-bottom: 4px; }
  .search input { padding-block: .8em; }
  .search-btn { display: inline-grid; }
  .nav { gap: 0; }
  .nav a { padding: .6em .55em; }
  .nav a.hide-s, .nav .acct .hide-s, .nav .cmp .lbl { display: none; }
  .nav .acct, .nav .cmp { justify-content: center; min-width: 44px; min-height: 44px; }
  .toast { top: 66px; }

  .hero-grid { padding-block: 22px 40px; gap: 24px; }
  .hero h1 { font-size: clamp(2.5rem, 12.5vw, 3.4rem); }
  .hero p.lead { margin-top: 16px; font-size: 1.06rem; }
  .hero .actions { margin-top: 22px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .stage { width: min(100%, 340px); }
  .stage .tag { font-size: .8rem; padding: .4em .8em; }
  .facts .wrap { justify-content: flex-start; gap: 8px; }
  .facts span { font-size: .88rem; padding: .5em 1em; }
  .facts b { font-size: 1.1rem; }

  .cats { padding-top: 20px; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
  .chip { scroll-snap-align: start; }
  .section-head { margin-block: 30px 14px; }
  .tools { width: 100%; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .tools label { justify-content: space-between; width: 100%; }
  .tools select { flex: 1; max-width: 62%; }
  .tools input[type=range] { flex: 1; width: auto; }
  .tools output { min-width: 4.2em; text-align: right; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding-bottom: 48px; }
  .rail { grid-auto-columns: minmax(70vw, 76vw); gap: 14px; }
  .card .pic { margin: 8px 8px 0; aspect-ratio: 1; padding: 14px; border-radius: 18px; }
  .card .body { padding: 12px 12px 14px; gap: 8px; }
  .card h3 { font-size: 1rem; }
  .card .cat { font-size: .78rem; }
  .card .rate { font-size: .8rem; flex-wrap: wrap; }
  .card .rate .n { display: none; }
  .ptag .now { font-size: 1.5rem; }
  .ptag .was { font-size: .8rem; }
  .stamp { height: 28px; min-width: 48px; font-size: .8rem; left: 10px; top: 10px; }
  .rail .card .pic { aspect-ratio: 1.1; }
  .fab { display: grid; place-items: center; position: absolute; z-index: 3; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--edge); border-radius: 50%; background: rgba(20, 18, 58, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text); font: 500 1.5rem/1 var(--display); transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out); }
  .fab:active { transform: scale(.92); }
  .fab.is-on { background: var(--mint); color: #06281C; border-color: transparent; }
  .card .acts [data-cmp] { display: none; }
  .card .acts .btn { white-space: nowrap; padding-inline: .6em; }

  .crumbs { padding-block: 14px 4px; }
  .detail { gap: 18px; padding-bottom: 24px; }
  .gallery .main { aspect-ratio: 1.15; padding: 16px; border-radius: 28px; }
  .gallery .stamp { height: 34px; min-width: 60px; font-size: .92rem; left: 14px; top: 14px; }
  .thumbs { overflow-x: auto; padding: 4px 4px 8px; }
  .thumbs button { flex: none; width: 64px; height: 64px; }
  .info h1 { font-size: 2.2rem; }
  .info .sum { font-size: 1.05rem; }
  .buybox { padding: 20px; border-radius: 26px; margin-top: 18px; }
  .panel { padding: 20px; border-radius: 26px; }
  .panel h2 { font-size: 1.4rem; }
  .spec th { width: 42%; }
  .cols { gap: 18px; padding-bottom: 36px; }
  .buybar { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(20, 18, 58, .85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--edge); }
  .buybar .ptag .now { font-size: 1.55rem; }
  .buybar .ptag .was { display: none; }
  .buybar .btn { flex: 1; }
  body.has-buybar { padding-bottom: 76px; }
  body.has-buybar .tray { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

  .cmp-wrap { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .cmp-table th, .cmp-table td { min-width: 168px; padding: 12px; }
  .cmp-table tbody th, .cmp-table thead th:first-child { width: 94px; min-width: 94px; max-width: 94px; padding: 12px 8px; font-size: .8rem; line-height: 1.25; overflow-wrap: anywhere; }
  .cmp-head { padding: 10px; border-radius: 22px; }
  .cmp-head .btn { white-space: nowrap; padding-inline: .5em; }
  .cmp-head .x { width: 36px; height: 36px; top: -12px; right: -12px; }

  .band-in { padding-block: 38px; }
  .offers-row { flex-direction: column; }
  .offers-row .btn { width: 100%; }
  .auth { padding-block: 22px 56px; }
  .prose { padding-block: 26px 50px; }
  .tray { width: calc(100% - 20px); padding: 8px 8px 8px 12px; gap: 8px; border-radius: 20px; }
  .tray .th { gap: 6px; }
  .tray .th span { width: 38px; height: 38px; border-radius: 12px; padding: 3px; }
  .tray .clear { font-size: .88rem; padding-inline: 4px; }
  .tray .th em { display: none; }
}
@media (max-width: 359px) { .grid { grid-template-columns: 1fr; } }

/* ---------- accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .tray[data-open="false"] { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .top, .tray, .buybar, .btn { background: var(--bg-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Fotos reales: llenan el recuadro en vez de flotar sobre el pedestal ---------- */
img[src*="/photos/"] { object-fit: cover !important; mix-blend-mode: normal !important; border-radius: inherit; }
.card .pic:has(img[src*="/photos/"]), .cmp-head .pic:has(img[src*="/photos/"]), .gallery .main:has(img[src*="/photos/"]) { padding: 0; }
.card .pic:has(img[src*="/photos/"])::after, .gallery .main:has(img[src*="/photos/"])::after { display: none; }
.tray .th span:has(img[src*="/photos/"]) { padding: 0; overflow: hidden; }
.thumbs img[src*="/photos/"] { border-radius: 12px; }

/* Páginas de categoría: texto editorial, comparativa y guía */
main.wrap > h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.12; margin: 6px 0 12px; }
main.wrap > .lead { max-width: 62ch; margin: 0 0 24px; color: var(--muted, inherit); }
main.wrap > .panel { margin: 0 0 28px; overflow-x: auto; }
main.wrap > .panel .spec thead th { text-align: left; font-weight: 700; padding: 10px 12px; }
main.wrap > .panel .spec td { vertical-align: middle; }
main.wrap > .panel h3 { margin: 16px 0 4px; }
main.ssr > section > h2 { margin: 28px 0 14px; }

main.wrap .panel.pc h4 { margin: 12px 0 4px; }
main.wrap .spec thead th { vertical-align: top; min-width: 150px; }
main.wrap .spec thead img { display: block; margin: 0 auto 8px; max-width: 100px; height: auto; }

/* Ficha editorial: veredicto, cómo se revisó, fotos propias */
.panel.verdict { border-left: 4px solid var(--accent, #FF5C85); }
.panel.verdict p { font-size: 1.05rem; line-height: 1.55; max-width: 66ch; margin: 0; }
.basis { font-size: .9rem; margin: -14px 0 24px; opacity: .8; }
.basis.ok { opacity: 1; font-weight: 600; }
.basis.ok::before { content: "✓ "; }
.own { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.own img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

/* ---------- aviso de cookies ---------- */
.cookie { position: fixed; z-index: 55; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: min(340px, calc(100% - 28px)); display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: rgba(27, 24, 80, .96); border: 1px solid var(--edge); box-shadow: var(--glow-v); color: var(--text); font-size: .88rem; line-height: 1.45; transition: opacity 160ms ease-out, transform 160ms ease-out; }
.cookie p { margin: 0; color: var(--text-2); }
.cookie b { color: var(--text); }
.cookie a { color: var(--peach); text-decoration: underline; text-underline-offset: 2px; }
.cookie .btn { justify-self: start; }
.cookie.out { opacity: 0; transform: translateY(8px); }
@starting-style { .cookie { opacity: 0; transform: translateY(12px); } }
body.has-buybar .cookie { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 520px) { .cookie { left: 10px; right: 10px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .cookie { transition: opacity 160ms ease-out; } .cookie.out { transform: none; } @starting-style { .cookie { transform: none; } } }

/* ---------- pie de página ---------- */
.foot { background: var(--deep); color: var(--text-2); margin-top: auto; border-top: 1px solid var(--edge); }
.foot-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px 40px; padding-block: 52px 40px; }
.foot-brand .brand { display: inline-block; }
.foot-brand p { font-size: .93rem; line-height: 1.55; max-width: 36ch; margin: 14px 0 0; }
.foot-brand .mail { display: inline-block; margin-top: 14px; color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 4px; }
.foot-brand .mail:hover { text-decoration-color: var(--peach); }
.foot nav h2 { font: 600 .8rem/1.2 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--text); margin: 0 0 14px; }
.foot nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot nav a { display: inline-block; padding-block: 5px; color: var(--text-2); font-size: .93rem; transition: color 120ms ease-out; }
@media (hover: hover) and (pointer: fine) { .foot nav a:hover { color: var(--text); } }
.foot-bar { border-top: 1px solid var(--edge); }
.foot-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); font-size: .8rem; line-height: 1.5; }
.foot-bar p { margin: 0; }
.foot-bar .amz { max-width: 72ch; }
@media (max-width: 900px) { .foot-main { grid-template-columns: 1fr 1fr; padding-block: 38px 28px; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-main { gap: 28px 20px; } .foot nav a { font-size: .9rem; } }
.foot nav a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot nav a:hover { text-decoration: underline; text-decoration-color: var(--peach); text-underline-offset: 4px; } }

/* ---------- móvil: dedos, no ratón ---------- */
/* Zonas táctiles de 44 px como mínimo en pantallas táctiles */
@media (pointer: coarse) {
  .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .foot nav a, .foot-brand .mail { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
  .foot nav ul { gap: 0; }
  .cookie .btn, .toast { min-height: 44px; }
  .tools input[type=range] { height: 44px; }
  .check { min-height: 44px; align-items: center; }
  .check input { width: 24px; height: 24px; margin: 0; }
  .crumbs a { display: inline-block; padding-block: 12px; }
}
/* Los carriles de scroll horizontal no arrastran la página */
.rail, .cmp-wrap, .cats, .thumbs { overscroll-behavior-x: contain; }
/* El pie no se pinta hasta que se acerca: menos trabajo al cargar */
.foot { content-visibility: auto; contain-intrinsic-size: auto 520px; }
@media (max-width: 900px) { .foot { contain-intrinsic-size: auto 760px; } }
/* Con el teclado abierto no se queda el aviso de cookies encima del campo */
@media (max-height: 480px) { .cookie { display: none; } }

/* ---------- publicidad: el hueco se reserva antes de que llegue el anuncio ---------- */
.ad { grid-column: 1 / -1; display: block; margin: 6px 0 18px; padding-top: 8px; min-height: 300px; contain: layout paint; text-align: center; color: var(--text-2); overflow: hidden; }
.ad-tag { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin-bottom: 6px; }
.ad ins { min-height: 250px; width: 100%; }
.ad-article { margin-block: 28px; }
@media (min-width: 900px) { .ad { min-height: 140px; } .ad ins { min-height: 90px; } .ad-article { min-height: 300px; } .ad-article ins { min-height: 250px; } }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
