/* test02 · páginas internas (comprar, pagar, gracias, términos, 404) con el MISMO estilo de la portada y la
   tienda: fondo lavanda con brumas, Poppins, tarjetas blancas que flotan, botón principal en degradado.
   Se carga después de estilo.css y solo cambia sus tokens y unos pocos componentes. */
:root {
  --fondo: #f3effb; --superficie: rgba(255, 255, 255, .8); --superficie-2: rgba(255, 255, 255, .62); --texto: #1f1a2e; --tenue: #7c7590;
  --borde: rgba(124, 108, 242, .16); --marca: #49bbc4; --marca-media: #2f97a1; --marca-suave: rgba(73, 187, 196, .14);
  --activa: #221d33; --activa-texto: #ffffff; --campo: rgba(255, 255, 255, .9);
  --vidrio: rgba(255, 255, 255, .78); --linea-tarjeta: rgba(255, 255, 255, .85); --desenfoque: blur(14px);
  --sombra-1: 0 6px 16px -10px rgba(40, 30, 90, .3);
  --sombra-2: 0 26px 50px -24px rgba(40, 30, 90, .42), 0 6px 14px -6px rgba(40, 30, 90, .12);
  --sombra-3: 0 40px 70px -30px rgba(40, 30, 90, .5), 0 10px 20px -8px rgba(40, 30, 90, .16);
  --barra-fondo: rgba(243, 239, 251, .7);
  --fondo-luz: radial-gradient(700px 520px at 18% 18%, #cdeef0, transparent 65%), radial-gradient(640px 520px at 88% 78%, #fbe1ee, transparent 65%), radial-gradient(600px 500px at 60% 10%, #ddd6ff, transparent 60%);
  --letra: "Poppins", "Segoe UI", system-ui, sans-serif;
  --degradado: linear-gradient(120deg, #49bbc4, #5f97dc 50%, #7c6cf2);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --fondo: #0b0816; --superficie: rgba(255, 255, 255, .06); --superficie-2: rgba(255, 255, 255, .045); --texto: #eeeaff; --tenue: #9a92b8;
  --borde: rgba(255, 255, 255, .1); --activa: #eeeaff; --activa-texto: #16112a; --campo: rgba(8, 6, 18, .5);
  --vidrio: rgba(255, 255, 255, .06); --linea-tarjeta: rgba(255, 255, 255, .09); --barra-fondo: rgba(11, 8, 22, .6);
  --sombra-2: 0 26px 50px -22px rgba(0, 0, 0, .8); --sombra-3: 0 40px 70px -26px rgba(0, 0, 0, .9);
  --fondo-luz: radial-gradient(700px 520px at 18% 18%, #0f4a55, transparent 65%), radial-gradient(640px 520px at 88% 78%, #2a1a6e, transparent 65%), radial-gradient(600px 500px at 60% 10%, #1d1450, transparent 60%); } }
:root[data-theme="dark"] {
  --fondo: #0b0816; --superficie: rgba(255, 255, 255, .06); --superficie-2: rgba(255, 255, 255, .045); --texto: #eeeaff; --tenue: #9a92b8;
  --borde: rgba(255, 255, 255, .1); --activa: #eeeaff; --activa-texto: #16112a; --campo: rgba(8, 6, 18, .5);
  --vidrio: rgba(255, 255, 255, .06); --linea-tarjeta: rgba(255, 255, 255, .09); --barra-fondo: rgba(11, 8, 22, .6);
  --sombra-2: 0 26px 50px -22px rgba(0, 0, 0, .8); --sombra-3: 0 40px 70px -26px rgba(0, 0, 0, .9);
  --fondo-luz: radial-gradient(700px 520px at 18% 18%, #0f4a55, transparent 65%), radial-gradient(640px 520px at 88% 78%, #2a1a6e, transparent 65%), radial-gradient(600px 500px at 60% 10%, #1d1450, transparent 60%); }

body { background: var(--fondo-luz), var(--fondo); background-attachment: fixed; font-weight: 400; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; }
.tarjeta { background: var(--vidrio); border: 1px solid var(--linea-tarjeta); backdrop-filter: var(--desenfoque); -webkit-backdrop-filter: var(--desenfoque); box-shadow: var(--sombra-2); }
.boton.principal { background: var(--degradado); color: #fff; box-shadow: 0 14px 30px -14px rgba(92, 120, 220, .7); }
.boton.secundario { background: var(--superficie); border: 1px solid var(--borde); }
.pildora.ok, .pildora.marca-sm { border-radius: 999px; }
.precio { font-weight: 600; letter-spacing: -.02em; }
input, select, textarea { font-family: var(--letra); }
.foto-producto img { border-radius: 18px; box-shadow: var(--sombra-2); }

/* barra superior como la portada: logo, enlaces discretos y botón de tema redondo */
.barra { background: var(--barra-fondo); }
.barra .menu { display: none; }
.barra .lado { gap: 14px; }
.barra .enlace { text-decoration: none; font-size: 14px; color: var(--tenue); }
.barra .enlace:hover, .barra .enlace.activa { color: var(--texto); }
.boton-tienda { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; background: var(--degradado); color: #fff; box-shadow: 0 10px 22px -12px rgba(92, 120, 220, .7); }
.boton-tienda svg { width: 17px; height: 17px; }
.boton-tema { background: var(--superficie); border: 1px solid var(--linea-tarjeta); border-radius: 12px; width: 40px; height: 40px; color: #7c6cf2; }
.barra .boton.principal { display: none; }
.barra .marca { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0; }
.barra .boton-tienda, .barra .boton-tienda.activa { background: var(--degradado) !important; color: #fff !important; border: 0; }

/* Captcha (inc/captcha.php): imagen + botón para cambiarla + campo */
.captcha { display: grid; gap: 8px; }
.captcha-titulo { font-weight: 500; font-size: 14px; }
.captcha-fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-img { width: 170px; height: 56px; border-radius: 10px; border: 1px solid rgba(124, 108, 242, .22); background: #f4f1fb; }
.captcha-otro { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(124, 108, 242, .22); background: transparent; color: #7c6cf2; display: grid; place-items: center; cursor: pointer; }
.captcha-otro:hover { background: rgba(124, 108, 242, .1); }
.captcha-campo { width: 130px; font: 600 17px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .25em; text-transform: uppercase; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(124, 108, 242, .22); background: rgba(255, 255, 255, .95); color: #1f1a2e; outline: none; }
.captcha-campo:focus { border-color: #49bbc4; box-shadow: 0 0 0 3px rgba(73, 187, 196, .25); }
.captcha.con-error .captcha-campo { border-color: #e0453f; }

/* ===== Página de producto (comprar.php), breve como Hikvision / EZVIZ: foto grande + lo esencial ===== */
.pagina-producto { padding-block: 18px 40px; }
.pagina-producto .migas { font-size: 13px; color: var(--tenue); margin: 0 0 14px; }
.pagina-producto .migas a { color: inherit; }
.pp-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.pp-foto { position: sticky; top: 90px; border-radius: 28px; background: #fff; overflow: hidden; box-shadow: var(--sombra-3); }
.pp-foto img { display: block; width: 100%; height: auto; transition: transform .5s; }
.pp-foto:hover img { transform: scale(1.04); }
.pp-info { display: grid; gap: 16px; align-content: start; padding-top: 6px; }
.pp-estado { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: 12.5px; font-weight: 500; color: #15803d; background: rgba(21, 128, 61, .1); padding: 5px 12px; border-radius: 999px; }
.pp-estado .punto { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pp-info h1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.pp-bajada { margin: -6px 0 0; color: var(--tenue); font-size: 17px; }
.pp-destacados { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-destacados li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--vidrio); border: 1px solid var(--linea-tarjeta); font-size: 14px; line-height: 1.3; box-shadow: var(--sombra-1); }
.pp-destacados svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: #2f97a1; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pp-destacados li:nth-child(even) svg { stroke: #7c6cf2; }
.pp-precio { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pp-precio b { font-size: 38px; font-weight: 600; letter-spacing: -.03em; }
.pp-precio span { color: var(--tenue); font-size: 13.5px; }
.pp-nota { margin: -4px 0 0; font-size: 13px; color: var(--tenue); }
.pp-botones { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-botones .boton { padding: 14px 24px; font-size: 15px; }
.pp-botones .boton[hidden] { display: none; }
.pp-botones svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pp-compra { padding: 22px; border-radius: 22px; background: var(--vidrio); border: 1px solid var(--linea-tarjeta); box-shadow: var(--sombra-2); scroll-margin-top: 90px; }
.js .pp-compra:not(.abierto) { display: none; }
.pp-compra .form { gap: 12px; }
.pp-compra .aviso { margin-bottom: 12px; }
/* Cómo funciona: 3 pasos + video al lado */
.pp-como { display: grid; grid-template-columns: 1.2fr minmax(240px, 330px); gap: 40px; align-items: center; margin-top: 70px; padding: 36px 40px; border-radius: 30px; background: var(--vidrio); border: 1px solid var(--linea-tarjeta); box-shadow: var(--sombra-2); }
.pp-etiqueta { margin: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--tenue); }
.pp-como h2 { font-size: clamp(28px, 3vw, 38px); margin: 6px 0 22px; }
.pp-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pp-pasos li { display: flex; gap: 16px; align-items: center; }
.pp-pasos li > span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 600; font-size: 18px; color: #fff; background: var(--degradado); box-shadow: 0 10px 20px -10px rgba(92, 120, 220, .8); }
.pp-pasos div { display: grid; gap: 2px; }
.pp-pasos b { font-size: 18px; font-weight: 600; }
.pp-pasos small { color: var(--tenue); font-size: 14px; }
.pp-video video { width: 100%; height: auto; display: block; border-radius: 22px; background: #000; box-shadow: var(--sombra-3); }
.pp-faq { margin-top: 50px; }
.pp-faq h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 14px; }
.pp-aviso { margin-top: 30px; text-align: center; font-size: 12.5px; color: var(--tenue); }
@media (max-width: 900px) {
  .pp-hero { grid-template-columns: 1fr; gap: 22px; }
  .pp-foto { position: static; }
  .pp-como { grid-template-columns: 1fr; padding: 26px 22px; gap: 26px; margin-top: 44px; }
  .pp-video { max-width: 320px; justify-self: center; width: 100%; }
}
@media (max-width: 460px) { .pp-destacados { grid-template-columns: 1fr; } .pp-botones .boton { flex: 1; } }
/* "Tienda" en las páginas internas: más grande y visible */
.barra .boton-tienda { height: 44px; padding: 0 20px 0 14px; font-size: 15px; font-weight: 600; box-shadow: 0 12px 26px -12px rgba(92, 120, 220, .85); }
.barra .boton-tienda svg { width: 20px; height: 20px; }

/* ===== Modo oscuro de las fotos de productos (v2.18): versión recortada / escena oscura y tarjetas oscuras ===== */
.foto-oscuro { display: none !important; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .foto-claro { display: none !important; }
:root:not([data-theme="light"]) .foto-oscuro { display: block !important; }
:root:not([data-theme="light"]) .item-foto { background: radial-gradient(circle at 50% 46%, rgba(132, 118, 230, .30), rgba(73, 187, 196, .10) 42%, transparent 70%), linear-gradient(180deg, #1c1830, #120f1f); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06); }
:root:not([data-theme="light"]) .item-foto img.foto-oscuro:not([src*="servicio-"]) { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .6)) !important; }
:root:not([data-theme="light"]) .item:hover .item-foto { box-shadow: 0 34px 60px -22px rgba(0, 0, 0, .9), 0 0 0 1px rgba(124, 108, 242, .35); }
:root:not([data-theme="light"]) .destacado, :root:not([data-theme="light"]) .promo-foto { background: radial-gradient(520px 340px at 78% 45%, rgba(124, 108, 242, .28), transparent 70%), linear-gradient(150deg, #1f1a35, #13101f) !important; color: #eeeaff !important; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .9) !important; }
:root:not([data-theme="light"]) .destacado .suave, :root:not([data-theme="light"]) .promo-foto .suave { color: #a39bc0 !important; }
:root:not([data-theme="light"]) .destacado-foto.foto-oscuro:not(.servicio) { -webkit-mask-image: none !important; mask-image: none !important; filter: drop-shadow(0 26px 26px rgba(0, 0, 0, .65)) !important; }
:root:not([data-theme="light"]) .promo-foto img.foto-oscuro:not([src*="servicio-"]) { object-fit: contain; background: radial-gradient(circle, rgba(132, 118, 230, .3), transparent 70%); filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .6)) !important; }
:root:not([data-theme="light"]) .promo-foto .mini-boton { background: #eeeaff; color: #16112a; }
:root:not([data-theme="light"]) .pp-foto { background: radial-gradient(circle at 50% 48%, rgba(132, 118, 230, .32), rgba(73, 187, 196, .10) 40%, transparent 70%), linear-gradient(180deg, #1c1830, #110e1c); border: 1px solid rgba(255, 255, 255, .08); }
:root:not([data-theme="light"]) .pp-foto img.foto-oscuro { padding: 6% 8%; filter: drop-shadow(0 26px 24px rgba(0, 0, 0, .6)); }
:root:not([data-theme="light"]) .mini-productos img.foto-oscuro:not([src*="servicio-"]) { object-fit: contain; background: radial-gradient(circle, rgba(132, 118, 230, .3), transparent 70%), #17142a; padding: 6%; box-sizing: border-box; }
}
:root[data-theme="dark"] .foto-claro { display: none !important; }
:root[data-theme="dark"] .foto-oscuro { display: block !important; }
:root[data-theme="dark"] .item-foto { background: radial-gradient(circle at 50% 46%, rgba(132, 118, 230, .30), rgba(73, 187, 196, .10) 42%, transparent 70%), linear-gradient(180deg, #1c1830, #120f1f); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .item-foto img.foto-oscuro:not([src*="servicio-"]) { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .6)) !important; }
:root[data-theme="dark"] .item:hover .item-foto { box-shadow: 0 34px 60px -22px rgba(0, 0, 0, .9), 0 0 0 1px rgba(124, 108, 242, .35); }
:root[data-theme="dark"] .destacado, :root[data-theme="dark"] .promo-foto { background: radial-gradient(520px 340px at 78% 45%, rgba(124, 108, 242, .28), transparent 70%), linear-gradient(150deg, #1f1a35, #13101f) !important; color: #eeeaff !important; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .9) !important; }
:root[data-theme="dark"] .destacado .suave, :root[data-theme="dark"] .promo-foto .suave { color: #a39bc0 !important; }
:root[data-theme="dark"] .destacado-foto.foto-oscuro:not(.servicio) { -webkit-mask-image: none !important; mask-image: none !important; filter: drop-shadow(0 26px 26px rgba(0, 0, 0, .65)) !important; }
:root[data-theme="dark"] .promo-foto img.foto-oscuro:not([src*="servicio-"]) { object-fit: contain; background: radial-gradient(circle, rgba(132, 118, 230, .3), transparent 70%); filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .6)) !important; }
:root[data-theme="dark"] .promo-foto .mini-boton { background: #eeeaff; color: #16112a; }
:root[data-theme="dark"] .pp-foto { background: radial-gradient(circle at 50% 48%, rgba(132, 118, 230, .32), rgba(73, 187, 196, .10) 40%, transparent 70%), linear-gradient(180deg, #1c1830, #110e1c); border: 1px solid rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .pp-foto img.foto-oscuro { padding: 6% 8%; filter: drop-shadow(0 26px 24px rgba(0, 0, 0, .6)); }
:root[data-theme="dark"] .mini-productos img.foto-oscuro:not([src*="servicio-"]) { object-fit: contain; background: radial-gradient(circle, rgba(132, 118, 230, .3), transparent 70%), #17142a; padding: 6%; box-sizing: border-box; }
/* Botón "Comprar por WhatsApp" (verde de WhatsApp, junto al precio) */
.boton.boton-wsp { background: #25d366; color: #fff; border: 0; box-shadow: 0 14px 28px -14px rgba(37, 211, 102, .8); }
.boton.boton-wsp:hover { background: #1fbe5b; }
.boton.boton-wsp svg { fill: #fff; stroke: none; width: 20px; height: 20px; }

/* Botón "Comprar por chat" (abre el chat en línea con el producto ya escrito) */
.boton.boton-chat { background: var(--texto); color: var(--fondo); border: 0; }
.boton.boton-chat svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pp-estado.agotado .punto { background: #e0445f; box-shadow: 0 0 0 3px rgba(224, 68, 95, .25); }
.pp-estado.pedido { color: #a35d00; background: rgba(217, 138, 28, .14); }
