/* ══════════════════════════════════════════════════════════
   VASKLAN — modo OSCURO de lujo (estilo "glass": negro, oro, esmeralda)
   Se activa con <html data-theme="dark"> (partials/tema.php). El modo claro
   es el diseño original de main.css. Botón ☀/☾ en el menú.
══════════════════════════════════════════════════════════ */
html[data-theme="dark"] {
  color-scheme: dark;
  --ivory:   #0e0d12;
  --ivory-2: #15141a;
  --ivory-3: #1c1b22;
  --charcoal: #f3efe6;            /* en main.css "charcoal" es el color del texto principal */
  --char-3:  #2a2830;
  --text:    #f3efe6;
  --text-dim: rgba(243,239,230,0.66);
  --text-mut: rgba(243,239,230,0.46);
  --gold:        #d9b85b;
  --gold-mid:    #cfae55;
  --gold-bright: #e9cd7f;
  --gold-pale:   rgba(217,184,91,0.14);
  --dk:   #08080b;
  --dk-2: #101015;
  --br:     rgba(255,255,255,0.08);
  --br-mid: rgba(255,255,255,0.14);
  --br-str: rgba(255,255,255,0.24);
  --esm:  #3fcf95;
  --vidrio: rgba(255,255,255,0.045);
  --vidrio-borde: rgba(255,255,255,0.10);
  --oro-grad: linear-gradient(135deg, #f0d68b, #d9b85b 55%, #c49a3c);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(63,207,149,0.07), transparent 60%),
    radial-gradient(800px 600px at 0% 30%, rgba(217,184,91,0.06), transparent 60%),
    #0e0d12;
  background-attachment: fixed;
}

/* ── Encabezado de vidrio ── */
html[data-theme="dark"] .announce-bar { background: #050507; }
html[data-theme="dark"] nav.main-nav,
html[data-theme="dark"] #navbar nav { background: rgba(14,13,18,0.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--vidrio-borde); }
html[data-theme="dark"] .nav-links a::after { background: var(--gold); }
html[data-theme="dark"] .cart-badge { background: var(--oro-grad); color: #16120a; }
html[data-theme="dark"] .nav-cta { border-color: rgba(217,184,91,0.6); color: var(--gold-bright); border-radius: 999px; }
html[data-theme="dark"] .nav-cta:hover { background: var(--oro-grad); color: #16120a; border-color: transparent; }
html[data-theme="dark"] .nav-logo img { box-shadow: 0 0 0 1px rgba(217,184,91,0.35); border-radius: 6px; }
html[data-theme="dark"] .mobile-nav { background: rgba(10,9,13,0.97); backdrop-filter: blur(20px); }
html[data-theme="dark"] .mobile-close:hover { background: var(--oro-grad); color: #16120a; }

/* ── Botones ── */
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .bid-btn { background: var(--oro-grad); color: #16120a; border-radius: 999px; box-shadow: 0 12px 28px -14px rgba(217,184,91,0.8); }
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .bid-btn:hover { background: var(--oro-grad); filter: brightness(1.07); }
html[data-theme="dark"] .btn-ghost { border-radius: 999px; border-color: var(--br-str); }
html[data-theme="dark"] .btn-ghost:hover { background: var(--oro-grad); color: #16120a; border-color: transparent; }
html[data-theme="dark"] .filter-btn:hover, html[data-theme="dark"] .filter-btn.active,
html[data-theme="dark"] .cat-pill:hover, html[data-theme="dark"] .cat-pill.active { background: var(--oro-grad); border-color: transparent; color: #16120a; }
html[data-theme="dark"] .tab-btn::after { background: var(--gold); }
html[data-theme="dark"] .step-num { background: var(--oro-grad); color: #16120a; }

/* ── Franjas y secciones oscuras ── */
html[data-theme="dark"] .marquee-strip { background: #050507; }
html[data-theme="dark"] .section-inner.dk-bg { background: #08080b; }

/* ── Tarjetas de producto (vidrio) ── */
html[data-theme="dark"] .product-card { background: var(--vidrio); border: 1px solid var(--vidrio-borde); border-radius: 18px; transition: border-color .3s, transform .3s; }
html[data-theme="dark"] .product-card:hover { border-color: rgba(217,184,91,0.45); transform: translateY(-3px); }
html[data-theme="dark"] .products-grid { gap: 14px; }
html[data-theme="dark"] .product-img { background: #111015; }
html[data-theme="dark"] .product-info { background: transparent; }
html[data-theme="dark"] .product-badge { background: rgba(10,9,13,0.75); color: var(--gold-bright); border: 1px solid rgba(217,184,91,0.4); border-radius: 999px; backdrop-filter: blur(8px); }
html[data-theme="dark"] .product-badge.sale { background: rgba(180,64,64,0.85); color: #fff; border-color: transparent; }
html[data-theme="dark"] .action-btn,
html[data-theme="dark"] .auction-timer { background: rgba(14,13,18,0.82); color: var(--text); border-color: var(--vidrio-borde); border-radius: 50%; backdrop-filter: blur(8px); }
html[data-theme="dark"] .auction-timer { border-radius: 999px; }
html[data-theme="dark"] .action-btn:hover { background: var(--oro-grad); color: #16120a; border-color: transparent; }
html[data-theme="dark"] .auction-card, html[data-theme="dark"] .cat-banner-card, html[data-theme="dark"] .testimonial-card, html[data-theme="dark"] .trust-item {
  background: var(--vidrio); border-color: var(--vidrio-borde); border-radius: 18px; }

/* ── Ficha de producto (estilos propios de producto.php) ── */
html[data-theme="dark"] .pd-main-img, html[data-theme="dark"] .pd-thumb { background: #111015; }
html[data-theme="dark"] .pd-main-img { border-radius: 18px; border: 1px solid var(--vidrio-borde); }
html[data-theme="dark"] .pd-name, html[data-theme="dark"] .pd-price-current, html[data-theme="dark"] .pd-related-title { color: var(--text); }
html[data-theme="dark"] .pd-desc, html[data-theme="dark"] .pd-stock { color: var(--text-dim); }
html[data-theme="dark"] .pd-divider { border-top-color: var(--br); }
html[data-theme="dark"] .btn-buy { background: var(--oro-grad); color: #16120a; border-radius: 999px; }
html[data-theme="dark"] .btn-buy:hover { background: var(--oro-grad); filter: brightness(1.07); color: #16120a; }
html[data-theme="dark"] .btn-cart { background: transparent; color: var(--gold-bright); border-color: rgba(217,184,91,0.6); border-radius: 999px; }
html[data-theme="dark"] .btn-cart:hover { background: rgba(217,184,91,0.12); color: var(--gold-bright); }
html[data-theme="dark"] .btn-wa { border-radius: 999px; }

/* ── Tienda: carrito, checkout, comprobante, agenda (tienda.css) ── */
html[data-theme="dark"] .tk-card { background: var(--vidrio); border-color: var(--vidrio-borde); border-radius: 20px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
html[data-theme="dark"] .tk-field input, html[data-theme="dark"] .tk-field select, html[data-theme="dark"] .tk-field textarea {
  background: rgba(255,255,255,0.05); border-color: var(--vidrio-borde); color: var(--text); border-radius: 12px; }
html[data-theme="dark"] .tk-field input:focus, html[data-theme="dark"] .tk-field select:focus, html[data-theme="dark"] .tk-field textarea:focus { background: rgba(255,255,255,0.08); border-color: rgba(217,184,91,0.6); }
html[data-theme="dark"] .tk-field select option { background: #15141a; color: var(--text); }
html[data-theme="dark"] .tk-pay { background: var(--oro-grad); color: #16120a; border-radius: 999px; }
html[data-theme="dark"] .tk-pay:hover { background: var(--oro-grad); filter: brightness(1.07); color: #16120a; }
html[data-theme="dark"] .tk-receipt { background: rgba(0,0,0,0.25); border-color: var(--vidrio-borde); border-radius: 14px; }
html[data-theme="dark"] .tk-item img, html[data-theme="dark"] .tk-cart-img { background: #111015; border-radius: 10px; }
html[data-theme="dark"] .tk-warn { background: rgba(217,184,91,0.12); color: var(--gold-bright); }
html[data-theme="dark"] .tk-err { background: rgba(214,69,69,0.14); color: #ff9a9a; }
html[data-theme="dark"] .tk-wa { color: var(--esm); }
html[data-theme="dark"] .ag-tipo { border-color: var(--vidrio-borde); border-radius: 14px; }
html[data-theme="dark"] .ag-tipo:has(input:checked) { background: rgba(217,184,91,0.12); border-color: rgba(217,184,91,0.6); }
html[data-theme="dark"] .ag-cal { background: rgba(0,0,0,0.22); border-color: var(--vidrio-borde); border-radius: 16px; }
html[data-theme="dark"] .ag-slots { border-color: rgba(217,184,91,0.25); border-radius: 16px; background: rgba(217,184,91,0.03); }
html[data-theme="dark"] .ag-nav { border-color: var(--vidrio-borde); color: var(--text); }
html[data-theme="dark"] .ag-nav:not(:disabled):hover { background: var(--oro-grad); color: #16120a; border-color: transparent; }
html[data-theme="dark"] .ag-dia span { background: rgba(217,184,91,0.14); color: var(--gold-bright); }
html[data-theme="dark"] .ag-dia input:checked + span { background: var(--oro-grad); color: #16120a; }
html[data-theme="dark"] .ag-leyenda i.on { background: rgba(217,184,91,0.25); }
html[data-theme="dark"] .ag-hora { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--vidrio-borde); border-radius: 999px; }
html[data-theme="dark"] .ag-hora.on { background: var(--oro-grad); color: #16120a; border-color: transparent; }

/* ── Botón de tema (☀ / ☾) ── */
.nav-tema .tema-sol { display: none; }
html[data-theme="dark"] .nav-tema .tema-luna { display: none; }
html[data-theme="dark"] .nav-tema .tema-sol { display: block; }
html[data-theme="dark"] .nav-tema { color: var(--gold-bright); }
@media (max-width: 768px) { .nav-icon-btn.nav-tema { display: flex; } }

/* ══════════════════════════════════════════════════════════
   Comunes a todo el sitio (rediseño 19-nov): esmeralda para las acciones
   principales, pie con logo y encabezados de página con foto.
══════════════════════════════════════════════════════════ */
:root {
  --esm: #13865a;
  --esm-2: #0f6e4a;
  --esm-grad: linear-gradient(135deg, #1fae74, #13865a 60%, #0d6b46);
  --in-card: #ffffff;
  --in-borde: rgba(17,17,17,0.08);
  --in-radio: 18px;
  --in-gutter: max(20px, calc((100vw - 1320px) / 2));
}
html[data-theme="dark"] {
  --esm: #3fcf95;
  --esm-2: #2fb37f;
  --esm-grad: linear-gradient(135deg, #5fe0ad, #2fb37f 55%, #1d8f62);
  --in-card: rgba(255,255,255,0.04);
  --in-borde: rgba(255,255,255,0.09);
}

.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* "Agendar cita": CTA principal en esmeralda (todas las páginas que cargan este archivo) */
.nav-cta, html[data-theme="dark"] .nav-cta {
  background: var(--esm-grad); color: #fff; border: 0; border-radius: 999px; padding: 10px 22px;
  box-shadow: 0 10px 24px -14px rgba(19,134,90,0.9); transition: filter .25s, transform .25s;
}
.nav-cta:hover, html[data-theme="dark"] .nav-cta:hover { background: var(--esm-grad); color: #fff; filter: brightness(1.08); transform: translateY(-1px); }

/* ── Botones ──────────────────────────────────────────────── */
.btn-esm {
  display: inline-flex; align-items: center; gap: 10px; background: var(--esm-grad); color: #fff !important; border: 0;
  border-radius: 999px; padding: 15px 34px; font: 600 0.62rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; box-shadow: 0 14px 30px -14px rgba(19,134,90,0.85); transition: filter .25s, transform .25s; cursor: pointer;
}
.btn-esm:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-esm:focus-visible, .portada-cita:focus-visible, .in-ver:focus-visible, .mos-item:focus-visible, .pz-bolsa:focus-visible {
  outline: 2px solid var(--gold-bright); outline-offset: 3px;
}
.in-btn { margin-top: 22px; }

/* ── Pie ──────────────────────────────────────────────────── */
.pie-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; margin-bottom: 18px; }

/* ── Encabezado de páginas internas con foto ──────────────── */
.page-hero-foto { position: relative; isolation: isolate; color: #fff; }
.page-hero-foto::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--fondo) center / cover; }
.page-hero-foto::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0.25)); }
.page-hero-foto h1, .page-hero-foto p { color: #fff !important; }


/* Franja del descuento LIVE (se prende desde Panel › Descuentos y vendedores) */
.live-bar { display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; padding:8px 16px; text-align:center;
  background:linear-gradient(90deg,#b4232f,#e0414f,#b4232f); color:#fff; text-decoration:none; font:500 0.62rem/1.4 var(--sans); letter-spacing:.14em; text-transform:uppercase; }
.live-bar strong { font-weight:700; }
.live-bar:hover { color:#fff; filter:brightness(1.06); }
.live-punto { width:8px; height:8px; border-radius:50%; background:#fff; animation:livePulso 1.2s infinite; }
@keyframes livePulso { 50% { opacity:.25; } }
@media (max-width: 760px) { .live-largo { display:none; } .live-bar { flex-wrap:nowrap; white-space:nowrap; font-size:.58rem; letter-spacing:.1em; } }

/* ══════════════════════════════════════════════════════════
   Pie de página: marca compacta + menús en pestañas (todas las pantallas)
══════════════════════════════════════════════════════════ */
footer.pie { padding: clamp(44px, 6vw, 70px) max(20px, calc((100vw - 1320px) / 2)) 26px; }
.pie-arriba { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px clamp(28px, 5vw, 80px); align-items: start; padding-bottom: 30px; }
.pie-marca { display: flex; flex-direction: column; gap: 18px; }
.pie-marca-fila { display: flex; align-items: center; gap: 16px; }
.pie-marca-fila .pie-logo { margin: 0; flex: none; }
.pie-marca-fila .footer-tagline { margin: 0; }
.pie-wa { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; padding: 10px 18px 10px 12px; border-radius: 999px;
  border: 1px solid rgba(63,207,149,.35); color: var(--dk-text, #f3efe6); text-decoration: none; transition: border-color .2s, background .2s; }
.pie-wa svg { color: #3fcf95; flex: none; }
.pie-wa span { display: flex; flex-direction: column; font-size: .82rem; font-weight: 500; letter-spacing: .02em; line-height: 1.2; }
.pie-wa small { font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dk-dim, rgba(243,239,230,.6)); }
.pie-wa:hover { border-color: #3fcf95; background: rgba(63,207,149,.08); }
.pie-contacto { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pie .footer-social { gap: 10px; }
.pie .social-btn { width: 40px; height: 40px; border-radius: 50%; }

.pie-menus { border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 8px 8px 18px; background: rgba(255,255,255,.025); }
.pie-tabs { display: none; }
.pie-menus.con-tabs .pie-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); margin-bottom: 14px; }
.pie-tabs button { flex: 1; border: 0; background: none; color: var(--dk-dim, rgba(243,239,230,.6)); padding: 11px 10px; border-radius: 999px; cursor: pointer;
  font: 600 .6rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; transition: background .2s, color .2s; }
.pie-tabs button:hover { color: #f3efe6; }
.pie-tabs button[aria-selected="true"] { background: linear-gradient(135deg, #f0d68b, #d9b85b 55%, #c49a3c); color: #16120a; }
.pie-tabs button:focus-visible { outline: 2px solid #e9cd7f; outline-offset: 2px; }
.pie-panel { padding: 4px 12px 0; }
.pie-menus.con-tabs .pie-panel-tit { display: none; }
.pie-panel-tit { display: block; font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-bright, #e9cd7f); font-weight: 600; margin: 14px 0 10px; }
.pie .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.pie .footer-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .82rem; }
.pie .footer-links a span { opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; color: #e9cd7f; }
.pie .footer-links a:hover span { opacity: 1; transform: none; }
.pie .footer-bottom { padding-top: 22px; }

@media (max-width: 900px) { .pie-arriba { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .pie .footer-links { grid-template-columns: 1fr; }
  .pie-tabs button { letter-spacing: .12em; padding: 11px 6px; }
  .pie .footer-bottom { flex-direction: column; align-items: flex-start; }
}
