/* ==========================================================================
   ATF3D.COM — capa "VAULT": acabado HUD igual a la vista previa.
   Se carga la ultima, por encima de theme.css y enhance.css.
   ========================================================================== */

/* --- 1. Cabecera: banda inferior con marca de agua legible ---------------- */
@media (min-width: 1100px) {
  :root { --header-h: 140px; }
  .af-header { flex-wrap: wrap; row-gap: 6px; padding-bottom: 8px; }
  .af-header__left, .af-header__right { flex: 0 0 auto; }
  .af-header__center {
    position: static;
    transform: none;
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    overflow: visible;
    padding-top: 4px;
    border-top: 1px solid rgba(0, 242, 255, .12);
  }
  .af-header.is-scrolled .af-header__center { padding-top: 2px; }
}

.af-header__watermark {
  position: static;
  transform: none;
  font-size: clamp(18px, 1.8vw, 30px);
  letter-spacing: .42em;
  text-indent: .42em;
  line-height: 1.1;
  white-space: nowrap;
  color: rgba(0, 242, 255, .08);
  -webkit-text-stroke: 1px rgba(0, 242, 255, .5);
  text-shadow: 0 0 26px rgba(0, 242, 255, .25);
  opacity: 1;
}

.af-header__center-row {
  position: relative;
  width: auto;
  flex: 0 0 auto;
  width: min(520px, 46vw);
  min-width: 260px;
}
.af-header__epic {
  font-size: 10.5px;
  letter-spacing: .3em;
  color: rgba(230, 253, 255, .8);
  text-shadow: 0 0 14px rgba(0, 242, 255, .55);
}

.af-header { border-bottom-color: rgba(0, 242, 255, .22); }

/* --- 2. Menu principal con iconos ---------------------------------------- */
.af-nav ul { gap: 26px; }
.af-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 2px;
}
.af-nav .af-mi {
  font-size: 17px;
  line-height: 1;
  color: inherit;
  opacity: .85;
}
.af-nav .current-menu-item > a,
.af-nav .current_page_item > a {
  border-bottom: none;
  text-shadow: 0 0 12px rgba(0, 242, 255, .5);
}
.af-nav .current-menu-item > a::after,
.af-nav .current_page_item > a::after { width: 100%; }
.af-mobile-nav a { display: flex; align-items: center; gap: 10px; }
.af-mobile-nav .af-mi { font-size: 18px; color: var(--primary); }

/* --- 3. Marco HUD reutilizable ------------------------------------------- */
.af-frame { position: relative; }
.af-frame > .af-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid rgba(0, 242, 255, .75);
  pointer-events: none;
  z-index: 4;
}
.af-corner--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.af-corner--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.af-corner--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.af-corner--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* --- 4. Hero enmarcado como la vista previa ------------------------------ */
.af-hero .af-hero__grid {
  position: relative;
  border: 1px solid rgba(0, 242, 255, .28);
  border-radius: 6px;
  background:
    radial-gradient(120% 90% at 85% 40%, rgba(0, 242, 255, .07), transparent 60%),
    rgba(12, 14, 18, .72);
  padding: clamp(22px, 3vw, 46px);
  box-shadow: inset 0 0 60px rgba(0, 242, 255, .05);
}
.af-hero__title { letter-spacing: .01em; }

/* --- 5. Barra de estadisticas -------------------------------------------- */
.af-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 26px;
  border: 1px solid rgba(0, 242, 255, .25);
  border-radius: 6px;
  background: rgba(13, 15, 19, .7);
  overflow: hidden;
}
@media (min-width: 900px) { .af-stats { grid-template-columns: repeat(5, 1fr); } }
.af-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  box-shadow: inset -1px 0 0 rgba(0, 242, 255, .14);
}
.af-stat .material-symbols-outlined { font-size: 26px; color: var(--primary); }
.af-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  line-height: 1.1;
}
.af-stat small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

/* --- 6. Cabecera de seccion tipo "FEATURED MODELS" ----------------------- */
.af-section__head { position: relative; }
.af-secbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.af-secbar h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  text-shadow: 0 0 16px rgba(0, 242, 255, .35);
}
.af-secbar h2 .material-symbols-outlined { font-size: 22px; }
.af-secbar .af-btn { font-size: 11px; padding: 8px 14px; }

/* --- 7. Tarjetas de producto con marco HUD permanente -------------------- */
.woocommerce ul.products li.product {
  position: relative;
  background: rgba(12, 14, 18, .82);
  border: 1px solid rgba(0, 242, 255, .22);
  border-radius: 6px;
  padding: 14px 14px 16px;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 255, .6);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 26px rgba(0, 242, 255, .12);
}
.woocommerce ul.products li.product::after {
  content: "";
  position: absolute; top: 8px; left: 8px;
  width: 18px; height: 18px;
  border-top: 2px solid rgba(0, 242, 255, .7);
  border-left: 2px solid rgba(0, 242, 255, .7);
  opacity: 1;
}
.woocommerce ul.products li.product .af-card-corners i {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(0, 242, 255, .7);
  pointer-events: none;
}
.woocommerce ul.products li.product img {
  border-radius: 4px;
  background: #06080b;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #eafcff;
  padding: 12px 0 4px;
}
.woocommerce ul.products li.product .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--primary);
  text-shadow: 0 0 14px rgba(0, 242, 255, .35);
}
.woocommerce ul.products li.product .price del {
  font-size: 13px;
  color: rgba(255, 255, 255, .35);
  opacity: 1;
}
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce span.onsale {
  top: 14px; left: 14px; right: auto;
  margin: 0;
  padding: 3px 10px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  background: var(--accent);
  color: #fff;
}
.woocommerce ul.products li.product a.button {
  position: absolute;
  right: 14px;
  bottom: 16px;
  width: 40px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  font-size: 0;
  border: 1px solid rgba(0, 242, 255, .45);
  background: rgba(0, 242, 255, .10);
  border-radius: 4px;
}
.woocommerce ul.products li.product a.button::before {
  content: "shopping_cart";
  font-family: "Material Symbols Outlined";
  font-size: 19px;
  color: var(--primary);
}
.woocommerce ul.products li.product a.button:hover { background: var(--primary); }
.woocommerce ul.products li.product a.button:hover::before { color: #05070a; }

/* --- 8. Ajustes finos ----------------------------------------------------- */
.af-lang__toggle, .af-cart, .af-btn--ghost { border-radius: 4px; }

/* --- 9. Logotipo: la palabra FORGE tambien visible ------------------------ */
.af-logo__word em { opacity: 1; }
.af-logo__main { gap: .5ch; }

/* --- 10. Correcciones criticas ------------------------------------------- */
/* La cabecera vuelve a quedar fija arriba (enhance.css la habia soltado). */
.af-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 60;
}
.af-header__center { min-width: 0; }

/* Los iconos deben usar siempre la fuente de simbolos. */
.material-symbols-outlined,
.af-trust .material-symbols-outlined,
.af-list .material-symbols-outlined,
.af-nav .af-mi {
  font-family: "Material Symbols Outlined" !important;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-weight: normal;
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Etiqueta de descuento en rosa neon, como la referencia. */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
  background: linear-gradient(135deg, #ff2fd0, #b400ff);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  border: 1px solid rgba(255, 90, 220, .8);
  box-shadow: 0 0 18px rgba(255, 0, 212, .55);
  z-index: 5;
}

/* Rejilla de productos de 4 en 4 como la vista previa. */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
}
@media (min-width: 700px)  { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); } }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }

/* Hero mas compacto y proporcionado. */
.af-hero { padding: 40px 0 28px; }
.af-hero .af-hero__grid { padding: clamp(20px, 2.2vw, 34px); }
.af-hero__media .scanline { aspect-ratio: 16/11; }
.af-section { padding: 48px 0; }

/* Esquina HUD limpia en las tarjetas (evita el triangulo relleno). */
.woocommerce ul.products li.product::after {
  content: "";
  position: absolute;
  top: 10px; left: 10px;
  width: 18px; height: 18px;
  background: none !important;
  border: 0;
  border-top: 2px solid rgba(0, 242, 255, .7);
  border-left: 2px solid rgba(0, 242, 255, .7);
  opacity: 1;
  z-index: 3;
}
.woocommerce ul.products li.product > a { display: block; }

/* El destello diagonal solo al pasar el raton (antes quedaba fijo). */
.woocommerce ul.products li.product a::after { opacity: 0; transition: opacity .3s ease; }
.woocommerce ul.products li.product:hover a::after { opacity: 1; }

/* --- Logotipo ATF 3D ----------------------------------------------------
   La palabra pasa de once letras a tres. Con el tamano de antes quedaba
   pequena al lado del recuadro del 3D, asi que se le sube un punto y se
   separan las letras: asi los dos bloques pesan parecido. */
.af-logo__word--forge {
	font-size: 1.18em;
	letter-spacing: .14em;
	margin-right: .06em;
}
.af-logo__main { gap: .38ch; }
