/* Tienda 3D – estilo neón (fondo oscuro, cian y magenta). Sin fuentes ni recursos externos. */

body.t3d {
  --t3d-bg: #0a0e1a;
  --t3d-bg2: #0f1530;
  --t3d-card: #141b33;
  --t3d-card2: #1a2342;
  --t3d-text: #dfe6ff;
  --t3d-muted: #9aa6c7;
  --t3d-cyan: #00e5ff;
  --t3d-magenta: #ff2bd6;
  --t3d-violet: #825aff;
  --t3d-line: rgba(0, 229, 255, .28);
  --t3d-glow-c: 0 0 14px rgba(0, 229, 255, .45);
  --t3d-glow-m: 0 0 14px rgba(255, 43, 214, .5);
  --t3d-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;

  /* Variables globales de Astra: hacen que gran parte del tema adopte los colores. */
  --ast-global-color-0: #00e5ff;
  --ast-global-color-1: #ff2bd6;
  --ast-global-color-2: #ffffff;
  --ast-global-color-3: #dfe6ff;
  --ast-global-color-4: #0a0e1a;
  --ast-global-color-5: #141b33;
  --ast-global-color-6: #1a2342;
  --ast-global-color-7: #2a3560;
  --ast-global-color-8: #0f1530;

  color: var(--t3d-text);
  background-color: var(--t3d-bg);
  background-image:
    radial-gradient(900px 500px at 85% -5%, rgba(255, 43, 214, .14), transparent 60%),
    radial-gradient(900px 500px at 5% 0%, rgba(0, 229, 255, .12), transparent 60%),
    linear-gradient(rgba(0, 229, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .045) 1px, transparent 1px);
  background-size: auto, auto, 36px 36px, 36px 36px;
  background-attachment: fixed;
}

/* ---------- Estructura y contenedores ---------- */
body.t3d .site,
body.t3d .site-content,
body.t3d #content,
body.t3d .ast-container { background: transparent; }

body.t3d.ast-separate-container .ast-article-post,
body.t3d.ast-separate-container .ast-article-single,
body.t3d.ast-separate-container .comment-respond,
body.t3d.ast-separate-container .ast-comment-list li,
body.t3d.ast-separate-container .ast-woocommerce-container,
body.t3d.ast-separate-container .error-404,
body.t3d.ast-separate-container .no-results {
  background: var(--t3d-card);
  border: 1px solid var(--t3d-line);
  border-radius: 14px;
}
body.t3d.ast-separate-container #primary,
body.t3d.ast-separate-container.ast-two-container #secondary .widget { background: transparent; }

/* ---------- Tipografía ---------- */
body.t3d h1, body.t3d h2, body.t3d h3, body.t3d h4, body.t3d h5, body.t3d h6,
body.t3d .entry-title, body.t3d .entry-title a { color: #fff; }
body.t3d h1, body.t3d h2, body.t3d .entry-title { letter-spacing: .02em; }
body.t3d h1.entry-title, body.t3d .page-title, body.t3d .woocommerce-products-header__title {
  font-family: var(--t3d-mono);
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 229, 255, .45);
}
body.t3d a { color: var(--t3d-cyan); }
body.t3d a:hover, body.t3d a:focus { color: var(--t3d-magenta); }
body.t3d ::selection { background: var(--t3d-magenta); color: #fff; }

/* ---------- Cabecera ---------- */
body.t3d .main-header-bar,
body.t3d .ast-primary-header-bar,
body.t3d .ast-above-header-bar,
body.t3d .ast-mobile-header-wrap .ast-mobile-header-content,
body.t3d .main-header-menu .sub-menu {
  background: rgba(10, 14, 26, .92);
  backdrop-filter: blur(8px);
  border-bottom: 0;
}
body.t3d .site-header { position: relative; }
body.t3d .site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--t3d-cyan), var(--t3d-violet), var(--t3d-magenta));
  box-shadow: 0 0 12px rgba(0, 229, 255, .6);
}
body.t3d .site-title a, body.t3d .site-title a:hover {
  font-family: var(--t3d-mono); text-transform: uppercase; letter-spacing: .08em;
  color: #fff; text-shadow: 0 0 14px rgba(0, 229, 255, .6);
}
body.t3d .site-description { color: var(--t3d-muted); }
body.t3d .main-header-menu a, body.t3d .ast-header-break-point .main-navigation a {
  color: var(--t3d-text); font-family: var(--t3d-mono); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem;
}
body.t3d .main-header-menu .menu-item:hover > a,
body.t3d .main-header-menu .current-menu-item > a,
body.t3d .main-header-menu .current_page_item > a {
  color: var(--t3d-cyan); text-shadow: 0 0 10px rgba(0, 229, 255, .7);
}
body.t3d .custom-logo-link img, body.t3d .site-logo-img img { max-height: 54px; width: auto; }
body.t3d .ast-mobile-menu-buttons .menu-toggle,
body.t3d .ast-header-break-point .ast-button-wrap .menu-toggle { color: var(--t3d-cyan); }

/* ---------- Botones ---------- */
body.t3d .button, body.t3d button, body.t3d .ast-button,
body.t3d input[type="button"], body.t3d input[type="submit"], body.t3d input[type="reset"],
body.t3d .woocommerce a.button, body.t3d .woocommerce button.button, body.t3d .woocommerce input.button,
body.t3d .woocommerce #respond input#submit, body.t3d .wp-block-button__link,
body.t3d .wc-block-components-button:not(.is-link) {
  background: transparent;
  color: var(--t3d-cyan);
  border: 2px solid var(--t3d-cyan);
  border-radius: 10px;
  font-family: var(--t3d-mono);
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  box-shadow: var(--t3d-glow-c), inset 0 0 10px rgba(0, 229, 255, .12);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
body.t3d .button:hover, body.t3d button:hover, body.t3d .ast-button:hover,
body.t3d input[type="submit"]:hover, body.t3d .woocommerce a.button:hover,
body.t3d .woocommerce button.button:hover, body.t3d .wp-block-button__link:hover {
  background: linear-gradient(90deg, var(--t3d-cyan), var(--t3d-magenta));
  color: #0a0e1a; border-color: transparent;
  box-shadow: 0 0 22px rgba(255, 43, 214, .55);
  transform: translateY(-1px);
}
body.t3d .single_add_to_cart_button, body.t3d .woocommerce a.button.alt, body.t3d .woocommerce button.button.alt,
body.t3d #place_order, body.t3d .checkout-button, body.t3d .t3d-btn-primario {
  background: linear-gradient(90deg, var(--t3d-cyan), var(--t3d-magenta)) !important;
  color: #0a0e1a !important; border-color: transparent !important;
  box-shadow: 0 0 20px rgba(255, 43, 214, .45);
}
body.t3d .single_add_to_cart_button:hover, body.t3d #place_order:hover, body.t3d .checkout-button:hover,
body.t3d .t3d-btn-primario:hover { filter: brightness(1.12); transform: translateY(-1px); }
body.t3d :focus-visible { outline: 3px solid var(--t3d-magenta); outline-offset: 2px; }

/* ---------- Formularios ---------- */
body.t3d input[type="text"], body.t3d input[type="email"], body.t3d input[type="tel"],
body.t3d input[type="url"], body.t3d input[type="number"], body.t3d input[type="search"],
body.t3d input[type="password"], body.t3d select, body.t3d textarea,
body.t3d .select2-container--default .select2-selection--single {
  background: #0d1226; color: var(--t3d-text);
  border: 1px solid var(--t3d-line); border-radius: 8px;
}
body.t3d input:focus, body.t3d select:focus, body.t3d textarea:focus {
  border-color: var(--t3d-cyan); box-shadow: var(--t3d-glow-c); outline: none;
}
body.t3d label, body.t3d .woocommerce form .form-row label { color: var(--t3d-text); }
body.t3d ::placeholder { color: #6e7aa3; }

/* ---------- WooCommerce: listado de productos ---------- */
body.t3d.woocommerce ul.products li.product,
body.t3d.woocommerce-page ul.products li.product {
  background: var(--t3d-card);
  border: 1px solid var(--t3d-line);
  border-radius: 14px;
  padding: 12px 12px 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
body.t3d.woocommerce ul.products li.product:hover,
body.t3d.woocommerce-page ul.products li.product:hover {
  transform: translateY(-5px);
  border-color: var(--t3d-magenta);
  box-shadow: var(--t3d-glow-m);
}
body.t3d ul.products li.product img { border-radius: 10px; background: #0d1226; }
body.t3d ul.products li.product .woocommerce-loop-product__title,
body.t3d ul.products li.product .ast-woo-product-category {
  color: #fff; font-family: var(--t3d-mono); font-size: 1rem; letter-spacing: .02em;
}
body.t3d .woocommerce ul.products li.product .price,
body.t3d .woocommerce div.product p.price, body.t3d .woocommerce div.product span.price,
body.t3d .woocommerce-Price-amount { color: var(--t3d-cyan); font-weight: 700; }
body.t3d .woocommerce span.onsale { background: var(--t3d-magenta); color: #fff; border-radius: 8px; }
body.t3d .woocommerce-ordering select, body.t3d .woocommerce-result-count { color: var(--t3d-muted); }

/* ---------- WooCommerce: ficha de producto ---------- */
body.t3d .woocommerce div.product .product_title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
body.t3d .woocommerce div.product div.images img,
body.t3d .woocommerce div.product .flex-control-thumbs img { border-radius: 12px; background: #0d1226; }
body.t3d .woocommerce div.product .flex-control-thumbs img { border: 1px solid var(--t3d-line); opacity: .7; }
body.t3d .woocommerce div.product .flex-control-thumbs img.flex-active,
body.t3d .woocommerce div.product .flex-control-thumbs img:hover { opacity: 1; border-color: var(--t3d-cyan); }
body.t3d .woocommerce div.product .woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--t3d-line); }
body.t3d .woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom-color: var(--t3d-line); }
body.t3d .woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: var(--t3d-card); border-color: var(--t3d-line); border-radius: 10px 10px 0 0;
}
body.t3d .woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--t3d-muted); font-family: var(--t3d-mono); }
body.t3d .woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--t3d-card2); }
body.t3d .woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--t3d-cyan); }
body.t3d .woocommerce div.product .woocommerce-tabs .panel { color: var(--t3d-text); }
body.t3d .product_meta { color: var(--t3d-muted); }
body.t3d .t3d-credito { color: var(--t3d-muted); font-size: .9rem; border-top: 1px dashed var(--t3d-line); padding-top: .8em; }

/* Selector de color de filamento */
body.t3d .t3d-colores legend { color: var(--t3d-cyan); font-family: var(--t3d-mono); text-transform: uppercase; letter-spacing: .06em; }
body.t3d .t3d-colores label { border-color: var(--t3d-line); background: #0d1226; color: var(--t3d-text); transition: box-shadow .15s ease, border-color .15s ease; }
body.t3d .t3d-colores label:hover { border-color: var(--t3d-magenta); }
body.t3d .t3d-colores label:has(input:checked) { border-color: var(--t3d-cyan); box-shadow: var(--t3d-glow-c); color: #fff; }
body.t3d .t3d-colores .t3d-muestra { box-shadow: 0 0 8px rgba(255, 255, 255, .25); }

/* ---------- Carrito, reserva y avisos ---------- */
body.t3d table.shop_table, body.t3d .woocommerce table.shop_table {
  background: var(--t3d-card); border: 1px solid var(--t3d-line); border-radius: 12px; border-collapse: separate; overflow: hidden;
}
body.t3d table.shop_table th, body.t3d table.shop_table td { border-color: var(--t3d-line); color: var(--t3d-text); }
body.t3d .woocommerce-checkout #payment, body.t3d .woocommerce-checkout #payment div.payment_box {
  background: var(--t3d-card2); color: var(--t3d-text); border-radius: 12px;
}
body.t3d .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--t3d-card2); }
body.t3d .woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--t3d-line); }
body.t3d .woocommerce-message, body.t3d .woocommerce-info, body.t3d .woocommerce-error {
  background: var(--t3d-card); color: var(--t3d-text); border-top-color: var(--t3d-cyan); border-radius: 10px;
}
body.t3d .woocommerce-message::before, body.t3d .woocommerce-info::before { color: var(--t3d-cyan); }
body.t3d .woocommerce-error { border-top-color: var(--t3d-magenta); }
body.t3d .woocommerce-error::before { color: var(--t3d-magenta); }
body.t3d .woocommerce-order-received .woocommerce-thankyou-order-received { color: var(--t3d-cyan); font-weight: 700; }

/* Nota de entrega en la reserva */
.t3d-nota-entrega {
  background: rgba(0, 229, 255, .07); border-left: 3px solid #00e5ff; border-radius: 8px;
  padding: .8em 1em; margin: 0 0 1em; color: #dfe6ff; font-size: .95rem;
}

/* ---------- Pie ---------- */
body.t3d .site-footer, body.t3d .site-primary-footer-wrap, body.t3d .ast-small-footer,
body.t3d .site-below-footer-wrap, body.t3d .site-above-footer-wrap {
  background: #070a14; color: var(--t3d-muted); border-top: 0;
}
body.t3d .site-footer { position: relative; margin-top: 3rem; }
body.t3d .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--t3d-magenta), var(--t3d-violet), var(--t3d-cyan));
  box-shadow: 0 0 12px rgba(255, 43, 214, .6);
}
body.t3d .site-footer h2, body.t3d .site-footer h3, body.t3d .site-footer .widget-title {
  color: #fff; font-family: var(--t3d-mono); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem;
}
body.t3d .site-footer a { color: var(--t3d-text); }
body.t3d .site-footer a:hover { color: var(--t3d-cyan); }
body.t3d #ast-scroll-top { background: var(--t3d-magenta); color: #fff; border-radius: 10px; box-shadow: var(--t3d-glow-m); }

/* ---------- Bloques de la portada (clases propias) ---------- */
.t3d-hero {
  text-align: center; padding: clamp(2.5rem, 7vw, 5.5rem) 1.2rem;
  border: 1px solid var(--t3d-line, rgba(0,229,255,.28)); border-radius: 18px;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(0, 229, 255, .16), transparent 70%),
    radial-gradient(600px 300px at 85% 100%, rgba(255, 43, 214, .18), transparent 70%),
    #0f1530;
  box-shadow: 0 0 40px rgba(0, 229, 255, .08);
}
.t3d-hero h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 .5em; }
.t3d-hero h1 span {
  background: linear-gradient(90deg, #00e5ff, #ff2bd6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.t3d-hero p { max-width: 38em; margin: 0 auto 1.6em; color: #b7c2e6; font-size: 1.1rem; }
.t3d-hero .wp-block-buttons { justify-content: center; }
.t3d-etiqueta {
  display: inline-block; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: #00e5ff; border: 1px solid rgba(0,229,255,.4); border-radius: 999px; padding: .25em .9em; margin-bottom: 1em;
}
.t3d-seccion { margin: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; text-align: center; }
.t3d-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.t3d-paso {
  background: #141b33; border: 1px solid rgba(0,229,255,.28); border-radius: 14px; padding: 1.4rem 1.3rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.t3d-paso:hover { transform: translateY(-4px); border-color: #ff2bd6; box-shadow: 0 0 16px rgba(255, 43, 214, .45); }
.t3d-paso .t3d-num {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; margin-bottom: .7rem;
  font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: #0a0e1a;
  background: linear-gradient(135deg, #00e5ff, #ff2bd6);
}
.t3d-paso h3 { margin: 0 0 .4em; font-size: 1.2rem; }
.t3d-paso p { margin: 0; color: #b7c2e6; }
.t3d-faq details {
  background: #141b33; border: 1px solid rgba(0,229,255,.28); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .7rem;
}
.t3d-faq summary { cursor: pointer; font-weight: 700; color: #fff; }
.t3d-faq details[open] { border-color: #00e5ff; }
.t3d-faq details p { margin: .7em 0 0; color: #b7c2e6; }
.t3d-banda {
  text-align: center; padding: 2rem 1.2rem; border-radius: 16px; margin-top: 3rem;
  border: 1px dashed rgba(255, 43, 214, .6); background: rgba(255, 43, 214, .06);
}

@media (max-width: 640px) {
  body.t3d { background-attachment: scroll; }
  body.t3d .custom-logo-link img, body.t3d .site-logo-img img { max-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  body.t3d *, body.t3d *::before, body.t3d *::after { transition: none !important; animation: none !important; }
  body.t3d ul.products li.product:hover, .t3d-paso:hover { transform: none; }
}
