/* Estilos base de las piezas comunes de D1–D6 (promo-ui.js). Cada boceto los ajusta con sus variables:
   --bg, --surface, --ink, --muted, --line y --accent (por defecto el cian de MR). */
:root { --accent: var(--mr-cyan); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700;
       border: 1px solid rgba(255,255,255,.2); color: #fff; background: transparent; cursor: pointer; transition: background .3s, color .3s, border-color .3s; white-space: nowrap; }
.btn:hover, .btn.solid { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn.solid:hover { background: #fff; border-color: #fff; }

/* Cursor */
.p-cursor { position: fixed; left: 0; top: 0; z-index: 900; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent);
            pointer-events: none; mix-blend-mode: difference; display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), opacity .2s; will-change: transform; }
.p-cursor span { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #000; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.p-cursor.big { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; }
.p-cursor.big span { opacity: 1; }

/* Comparador */
.cmp { --x: .5; }
.cmp-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--surface); touch-action: pan-y; user-select: none; cursor: ew-resize; }
.cmp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp-stage.contain { background: #fff; }
.cmp-stage.contain img { object-fit: contain; }
.cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc((1 - var(--x)) * 100%) 0 0); }
.cmp-before img { filter: saturate(.85); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 100%); width: 0; z-index: 2; }
.cmp-handle i { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--accent); box-shadow: 0 0 24px rgba(53,215,240,.6); }
.cmp-handle span { position: absolute; top: 50%; left: 0; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--accent); color: var(--bg);
                   display: grid; place-items: center; font-weight: 800; font-size: 18px; letter-spacing: .1em; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.cmp-label { position: absolute; top: 18px; z-index: 1; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px;
             background: rgba(6,12,19,.7); color: #fff; backdrop-filter: blur(6px); }
.cmp-l { left: 18px; } .cmp-r { right: 18px; background: var(--accent); color: var(--bg); }
.cmp-thumbs { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.cmp-thumbs::-webkit-scrollbar { display: none; }
.cmp-thumbs button { flex: none; width: 84px; height: 54px; border-radius: 8px; border: 2px solid transparent; background-size: cover; background-position: center; cursor: pointer; opacity: .45; transition: opacity .3s, border-color .3s; }
.cmp-thumbs button:hover { opacity: .85; } .cmp-thumbs button.on { opacity: 1; border-color: var(--accent); }

/* Reseñas */
.rv-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.rv-badge { display: flex; align-items: center; gap: 14px; }
.rv-badge b { font-size: 17px; }
.rv-badge small { font-size: 12px; color: var(--muted); margin-left: 8px; }
.rv-g { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.g-logo { width: 22px; height: 22px; flex: none; }
.stars { color: #FBBC05; letter-spacing: 2px; font-size: 13px; }
.rv-all { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); }
.rv-all:hover { border-color: var(--accent); color: var(--accent); }
.rv-track-wrap { overflow: hidden; margin: 0 calc(var(--pad) * -1); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rv-track { display: flex; gap: 18px; width: max-content; padding: 4px var(--pad); animation: rv-marquee 90s linear infinite; }
.rv-track-wrap:hover .rv-track { animation-play-state: paused; }
@keyframes rv-marquee { to { transform: translateX(-50%); } }
.rv-card { flex: none; width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color .3s; }
.rv-card:hover { border-color: rgba(53,215,240,.4); }
.rv-card header { display: flex; align-items: center; gap: 12px; }
.rv-card header div { flex: 1; min-width: 0; }
.rv-card header b { display: block; font-size: 14px; } .rv-card header small { font-size: 12px; color: var(--muted); }
.rv-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--mr-dark)); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.rv-card p { margin: 0; font-size: 14px; line-height: 1.65; color: #c4cfd6; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* Formulario */
.pf { display: grid; gap: 12px; }
.pf > * { min-width: 0; }
.pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-two > * { min-width: 0; }
.pf input, .pf textarea, .pf select { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font: inherit; font-size: 15px;
  color: var(--ink); outline: none; transition: border-color .3s, box-shadow .3s; }
.pf select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.pf select:invalid, .pf select option[value=""] { color: var(--muted); }
.pf select option { color: #000; }
.pf input:focus, .pf textarea:focus, .pf select:focus { border-color: var(--accent); }
.pf select.flash { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(53,215,240,.25); }
.pf input::placeholder, .pf textarea::placeholder { color: var(--muted); }
.pf-send { padding: 18px; }
.pf-send:disabled { opacity: .6; cursor: default; }
.pf-ok { margin: 4px 0 0; color: var(--accent); font-weight: 600; }

/* Datos de contacto */
.p-cinfo { display: grid; }
.p-cinfo a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; display: flex; justify-content: space-between; gap: 12px; transition: color .3s; }
.p-cinfo a span { overflow-wrap: anywhere; text-align: right; }
.p-cinfo small { font-size: 11px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; font-weight: 700; align-self: center; }
.p-cinfo a:hover { color: var(--accent); }

/* Pie */
.p-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.p-foot nav { display: flex; gap: 22px; flex-wrap: wrap; } .p-foot a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .pf-two { grid-template-columns: 1fr; }
  .p-cinfo a { font-size: 15px; }
  .p-cinfo a span { overflow-wrap: normal; }
  .rv-card { width: 290px; }
  .cmp-handle span { width: 48px; height: 48px; margin: -24px 0 0 -24px; font-size: 15px; }
}
