/*
Theme Name: AlfaClon
Theme URI: https://www.alfaclon.com
Author: AlfaClon GmbH
Author URI: https://www.alfaclon.com
Description: Tema custom para AlfaClon. Sin dependencias de page builders. HTML/CSS/PHP puro, optimizado para WooCommerce.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.2
License: Proprietary
Text Domain: alfaclaude
*/

/* ── VARIABLES GLOBALES ── */
:root {
  --hero: #efede8;
  --hero-deep: #e8e5de;
  --hero-ink: #0b100d;
  --night: #050a08;
  --night-soft: #09110e;
  --panel: #0d1713;
  --panel-raised: #111e19;
  --white: #fbfcfa;
  --mist: #afbab2;
  --muted: #829087;
  --line: rgba(227, 237, 230, .12);
  --line-strong: rgba(227, 237, 230, .22);
  --acid: #39ff14;
  --acid-muted: #5dcc48;
  --sage: #80ad96;
  --sage-dark: #244b3a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-300.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-300italic.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/dm-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/dm-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/dm-sans-600.woff2") format("woff2");
}
:root {
  --max: 1260px;
  --radius-button: 4px;
  --radius-pill: 999px;
  --radius-small: 8px;
  --radius-card: 12px;
  --radius-media: 14px;
  --radius-feature: 18px;
  --glow: 0 0 32px rgba(57, 255, 20, .12);
  --green-text: linear-gradient(102deg, #225141 0%, #458a5e 38%, #38b929 100%);
  --luminous-text: linear-gradient(100deg, #f1f7f2 3%, #9cc9af 44%, #39ff14 100%);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  color: var(--white);
  background: var(--night);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: 0; color: inherit; font: inherit; cursor: pointer; }
p, h1, h2, h3, h4, figure { margin: 0; }
p { color: var(--mist); }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ── UTILIDADES ── */
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 11px 16px;
  color: var(--night);
  background: var(--acid);
  border-radius: var(--radius-button);
  transform: translateY(-150%);
}
.skip:focus { transform: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.gradient {
  color: var(--sage);
  background: var(--luminous-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-ink {
  color: var(--sage-dark);
  background: var(--green-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--acid), transparent);
}
.eyebrow.dark { color: var(--sage-dark); }
.eyebrow.dark::before { background: var(--sage-dark); }
.eyebrow.center::before { display: none; }

.title {
  margin-top: 21px;
  font-family: var(--serif);
  font-size: clamp(43px, 5.15vw, 61px);
  font-weight: 500;
  letter-spacing: -.048em;
  line-height: 1.02;
}

.intro {
  max-width: 610px;
  margin-top: 20px;
  color: var(--mist);
  font-size: 17px;
  line-height: 1.76;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 27px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .25s, background .25s, box-shadow .25s, transform .25s;
}
.button:hover, .button:focus-visible {
  border-color: rgba(57, 255, 20, .48);
  transform: translateY(-1px);
}
.button-brand {
  color: #041008;
  background: var(--acid);
  border-color: var(--acid);
}
.button-brand:hover, .button-brand:focus-visible {
  background: #50ff35;
  border-color: #50ff35;
  box-shadow: var(--glow);
  transform: translateY(-2px);
}
.button-ink {
  border-color: rgba(11, 16, 13, .28);
  color: var(--hero-ink);
}
.button-ink:hover, .button-ink:focus-visible {
  border-color: rgba(11, 16, 13, .55);
  background: rgba(11, 16, 13, .06);
  transform: translateY(-1px);
}

:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 8, .91);
  -webkit-backdrop-filter: blur(17px);
  backdrop-filter: blur(17px);
  height: 72px;
}

/* Admin bar: compensar el desplazamiento que WP añade al body */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

.header-inner {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 38px;
  height: 31px;
  object-fit: contain;
}
.brand-name {
  color: var(--white);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1;
}
.brand-name span { color: var(--acid); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  color: #b4c0b8;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:not(.button):not(.header-cart):not(.header-account) {
  color: #b4c0b8;
  text-decoration: none;
  transition: color .2s;
  position: relative;
}

.site-nav a:not(.button):not(.header-cart):not(.header-account):hover,
.site-nav a:not(.button):not(.header-cart):not(.header-account):focus-visible {
  color: var(--acid);
}

/* Página activa — solo color verde, sin subrayado */
.site-nav a.current-menu-item,
.site-nav a[aria-current="page"] {
  color: var(--acid) !important;
}

/* ── DROPDOWN VARIEDADES ── */
.nav-item-variedades {
  position: relative;
}
.nav-item-variedades .nav-item-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #b4c0b8;
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-decoration: none;
  transition: color .2s;
}
.nav-item-variedades .nav-item-btn:hover,
.nav-item-variedades.open .nav-item-btn {
  color: var(--acid);
}
.nav-item-variedades .nav-item-btn .dd-arrow {
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
  display: inline-flex;
}
.nav-item-variedades.open .nav-item-btn .dd-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-variedades {
  position: fixed;
  top: 72px;
  left: auto;
  right: 12px;
  transform: translateY(-8px);
  width: 600px;
  max-width: calc(100vw - 24px);
  background: rgba(12,12,10,.96);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.55), 0 4px 16px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.34,1.2,.64,1);
  z-index: 200;
}
.nav-item-variedades.open .nav-dropdown-variedades {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.admin-bar .nav-dropdown-variedades {
  top: 104px;
}
.dd-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
}
.dd-list {
  padding: 14px 8px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dd-link {
  display: block;
  padding: 12px 14px 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.dd-link:hover, .dd-link.dd-hovered {
  background: rgba(255,255,255,.07);
}
.dd-link::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2.5px; height: 20px;
  background: var(--acid);
  border-radius: 999px;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.dd-link.dd-hovered::before {
  transform: translateY(-50%) scaleY(1);
}
.dd-link-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.90);
  margin-bottom: 3px;
  letter-spacing: -.1px;
}
.dd-link-meta {
  font-size: 12px;
  color: rgba(255,255,255,.38);
  line-height: 1.4;
}
.dd-link-meta em {
  color: var(--acid);
  font-style: normal;
}
.dd-slot .dd-slot-title {
  color: rgba(255,255,255,.28) !important;
}
.dd-slot .dd-link-meta {
  color: rgba(255,255,255,.18) !important;
}
.dd-slot:hover {
  background: rgba(255,255,255,.03) !important;
}
.dd-separator {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 6px 14px;
}
.dd-link-catalog {
  margin-top: 2px;
  background: rgba(61,255,110,.06) !important;
  border: 1px solid rgba(61,255,110,.14);
  border-radius: 8px;
}
.dd-link-catalog:hover {
  background: rgba(61,255,110,.12) !important;
  border-color: rgba(61,255,110,.26);
}
.dd-link-catalog .dd-link-title {
  color: var(--acid) !important;
}
.dd-link-catalog .dd-link-meta {
  color: rgba(61,255,110,.5) !important;
}
.dd-link-catalog-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--acid);
}
.dd-link-catalog-inner > svg:first-child {
  flex: 0 0 auto;
  opacity: .7;
}
.dd-link-catalog-inner > div {
  flex: 1;
}
.dd-catalog-arrow {
  flex: 0 0 auto;
  opacity: .5;
  transition: transform .2s, opacity .2s;
}
.dd-link-catalog:hover .dd-catalog-arrow {
  transform: translateX(3px);
  opacity: 1;
}
.dd-preview {
  position: relative;
  background: #0a0a08;
  border-radius: 0 16px 16px 0;
  min-height: 260px;
}
.dd-preview-img {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px); height: calc(100% - 20px);
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .35s ease, transform .45s cubic-bezier(.4,0,.2,1);
}
.dd-preview-img.dd-img-active {
  opacity: 1;
  transform: scale(1);
}
.dd-preview::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,0,0,.3) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.nav-dd-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
}
.nav-dd-overlay.active {
  pointer-events: all;
}

/* ── ICONOS HEADER (carrito + cuenta) — mismo estilo ── */
.header-cart,
.header-account {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #b4c0b8;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  transition: color .2s, border-color .2s, background .2s;
  flex-shrink: 0;
}
.header-cart:hover, .header-cart:focus-visible,
.header-account:hover, .header-account:focus-visible {
  color: var(--white);
  border-color: rgba(57,255,20,.48);
}
.header-cart.has-items {
  color: var(--acid);
  border-color: rgba(57,255,20,.55);
  background: rgba(57,255,20,.08);
}
.header-cart.has-items:hover {
  background: rgba(57,255,20,.14);
}
/* Usuario logueado: icono verde suave */
.header-account.is-logged {
  color: var(--acid);
  border-color: rgba(57,255,20,.4);
}
.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  background: var(--acid);
  color: #041008;
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  border-radius: 10px;
  transition: transform .2s;
}
.cart-count[hidden] { display: none; }
.cart-count.pop { transform: scale(1.3); }

/* ── POPUP CARRITO ── */
.cart-popup {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 999;
  min-width: 280px;
  max-width: 340px;
  background: var(--night);
  border: 1px solid rgba(57,255,20,.35);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(57,255,20,.1);
  opacity: 0;
  transform: translateY(-12px) scale(.96);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
  visibility: hidden;
}
.cart-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}
.cart-popup[hidden] { display: none !important; }
.cart-popup-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}
.cart-popup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--acid);
  border-radius: 50%;
  color: #041008;
}
.cart-popup-text { flex: 1; min-width: 0; }
.cart-popup-text strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}
.cart-popup-text span {
  display: block;
  color: var(--mist);
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-popup-cta {
  flex-shrink: 0;
  padding: 7px 12px;
  background: rgba(57,255,20,.12);
  border: 1px solid rgba(57,255,20,.3);
  border-radius: 6px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s;
}
.cart-popup-cta:hover { background: rgba(57,255,20,.22); }

.header-right-mobile { display: none; }
.mobile-cart-link { display: none; }
.menu-toggle, .mobile-nav { display: none; }
.menu-toggle {
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  background: transparent;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  position: relative;
  display: block;
  width: 18px;
  height: 1px;
  background: var(--white);
}
.menu-icon::before, .menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

/* ── FOOTER ── */
.site-footer {
  padding: 59px 0 29px;
  border-top: 1px solid var(--line);
  background: #030705;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .7fr .7fr .92fr;
  gap: 43px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p {
  max-width: 370px;
  margin-top: 20px;
  color: #839289;
  font-size: 14px;
}
.site-footer h3 {
  margin-bottom: 18px;
  color: #ebf2ed;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.footer-links {
  display: grid;
  gap: 11px;
  color: #96a69d;
  font-size: 14px;
}
.footer-links a:hover { color: var(--white); }
.footer-legal {
  padding-top: 28px;
  color: #78887e;
  font-size: 12px;
  line-height: 1.75;
}
.footer-copyright {
  margin-top: 20px;
  color: #64746a;
  font-size: 12px;
}

/* ── PÁGINAS FULL-WIDTH (home, quienes-somos, verificacion-hlvd, etc.) ── */
.page-fullwidth,
.home-page {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}
.page-fullwidth > .entry-title,
.page-fullwidth > h1 { display: none; }

/* ── PÁGINAS LEGALES / ESTÁTICAS ── */
.page-legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 0 120px;
  color: var(--mist);
}
.page-legal h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 32px;
}
.page-legal h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  color: var(--white);
  margin: 48px 0 16px;
}
.page-legal h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 32px 0 12px;
}
.page-legal p { margin-bottom: 18px; line-height: 1.8; }
.page-legal ul { margin: 0 0 18px 20px; list-style: disc; }
.page-legal ul li { margin-bottom: 8px; color: var(--mist); }
.page-legal a { color: var(--acid-muted); text-decoration: underline; }
.page-legal a:hover { color: var(--acid); }
.page-legal .legal-date {
  display: inline-block;
  margin-bottom: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--sage);
  font-size: 13px;
}

/* ── CONTACTO ── */
.page-contact {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 0 120px;
}
.contact-form { display: grid; gap: 20px; margin-top: 40px; }
.contact-form label { display: block; color: var(--sage); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: rgba(57,255,20,.48); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-info { margin-top: 48px; display: grid; gap: 16px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255,255,255,.025);
}
.contact-info-item strong { color: var(--white); font-size: 14px; }
.contact-info-item span { display: block; color: var(--mist); font-size: 13px; margin-top: 4px; }

/* ── WooCommerce overrides básicos ── */
.woocommerce-notices-wrapper { padding: 0 0 20px; }
.woocommerce .button { background: var(--acid); color: #041008; border: none; padding: 14px 28px; border-radius: var(--radius-button); font-weight: 600; cursor: pointer; transition: background .2s; }
.woocommerce .button:hover { background: #50ff35; color: #041008; }
.woocommerce-breadcrumb { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1090px) {
  .footer-grid { grid-template-columns: 1.45fr repeat(3, 1fr); gap: 28px; }
}

@media (max-width: 760px) {
  .container { width: calc(100vw - 34px); max-width: calc(100vw - 34px); }
  .site-header, .header-inner { height: 60px; }
  .brand img { width: 33px; height: 28px; }
  .brand-name { font-size: 29px; }
  .site-nav { display: none; }
  .header-right-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .menu-toggle { display: inline-flex; }
  .mobile-nav.open {
    display: grid;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 10, 8, .98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 24px;
    z-index: 99;
  }
  .mobile-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: #c2d0c8;
    font-size: 17px;
    font-weight: 500;
  }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav a.current-menu-item,
  .mobile-nav a[aria-current="page"] { color: var(--acid); }
  /* Nav item "Variedades" en móvil: igualar espaciado con los demás links */
  .mobile-nav .nav-item-variedades {
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav .nav-item-variedades .nav-item-btn {
    padding: 16px 0;
    font-size: 17px;
    font-weight: 500;
    color: #c2d0c8;
    width: 100%;
  }
  .mobile-nav .nav-dropdown-variedades { display: none !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .page-legal { padding: 48px 0 80px; }
}

/* ── HEADER SCROLLED STATE ── */
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

/* ── WC: actualización cart count via fragment ── */
.widget_shopping_cart_content { display: none; }

/* ── WC: nonce fragment para header-cart ── */
.ac-cart-nonce { display: none; }

/* ══════════════════════════════════════════
   PÁGINA DE MADRES
══════════════════════════════════════════ */
:root {
  --cream-m: #f4f1ea;
  --ink-m: #0b100d;
  --green-deep-m: #0b2210;
  --sage-m: #5f9a72;
  --line-m: rgba(18,38,27,.12);
  --acid-m: #39ff14;
  --danger-m: #a0443c;
  --warning-m: #9b6b22;
}

.madres-page { background: var(--cream-m); }

/* ── Utilidades madres ── */
.m-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--sage-m); font-size: 10px; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase;
}
.m-eyebrow::before { width: 28px; height: 1px; content: ''; background: var(--sage-m); }
.m-title {
  margin: 14px 0 0; color: var(--ink-m);
  font-family: var(--serif); font-size: clamp(36px, 6vw, 58px);
  font-weight: 500; letter-spacing: -.05em; line-height: 1;
}
.m-title-light { color: #fff; }
.m-intro { max-width: 640px; margin-top: 14px; color: #68766d; font-size: 16px; line-height: 1.76; }
.m-lead {
  margin: 16px 0; color: var(--green-deep-m);
  font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.35;
}
.m-gradient {
  background: linear-gradient(102deg, #17432d 0%, #4d9162 45%, #39c82b 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.m-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px; border: 1px solid;
  border-radius: 4px; font-size: 14px; font-weight: 700;
  transition: transform .2s, background .2s, border-color .2s;
}
.m-btn:hover { transform: translateY(-1px); }
.m-btn-brand  { color: #041008; background: var(--acid-m); border-color: var(--acid-m); }
.m-btn-dark   { color: #fff; background: var(--green-deep-m); border-color: var(--green-deep-m); }
.m-btn-line   { color: var(--green-deep-m); background: rgba(255,255,255,.5); border-color: var(--line-m); }
.m-btn-line-dark { color: var(--green-deep-m); background: rgba(255,255,255,.6); border-color: var(--line-m); }

/* ── Hero ── */
.madres-hero { padding: 48px 0 64px; background: linear-gradient(180deg,#fbfaf6,var(--cream-m)); }
.madres-hero-grid { display: grid; gap: 28px; }
.madres-hero-copy h1 {
  margin: 14px 0 18px; font-family: var(--serif);
  font-size: clamp(44px, 9vw, 82px); font-weight: 500;
  letter-spacing: -.06em; line-height: .95; color: var(--ink-m);
}
.madres-hero-deck { max-width: 620px; color: #26342d; font-size: 17px; line-height: 1.76; }
.madres-hero-deck strong { color: var(--green-deep-m); }
.madres-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.madres-hero-media {
  overflow: hidden; border: 1px solid var(--line-m); border-radius: 14px;
  background: #dfe7dd; box-shadow: 0 24px 60px rgba(20,35,27,.12);
}
.madres-hero-media img { width: 100%; height: 380px; object-fit: cover; }
.madres-hero-proof {
  display: grid; grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--line-m);
}
.madres-hero-proof div { padding: 14px 12px; border-right: 1px solid var(--line-m); background: rgba(255,255,255,.5); }
.madres-hero-proof div:last-child { border-right: 0; }
.madres-hero-proof b { display: block; color: var(--green-deep-m); font-size: 22px; line-height: 1; }
.madres-hero-proof span { color: #68766d; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

/* ── Galería madres ── */
.madres-gallery { padding: 72px 0; background: #fbfaf6; }
.mothers-grid { display: grid; gap: 15px; margin-top: 32px; }
.mother-card {
  overflow: hidden; border: 1px solid var(--line-m);
  border-radius: 14px; background: #fff;
  box-shadow: 0 12px 32px rgba(20,35,27,.07);
}
.mc-img {
  position: relative; display: block; height: 260px;
  overflow: hidden; background: #d9e3d8;
}
.mc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mother-card:hover .mc-img img { transform: scale(1.03); }
.mc-img::after {
  position: absolute; inset: 0; content: '';
  background: linear-gradient(0deg, rgba(5,10,8,.55), transparent 55%);
}
.badges { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  padding: 5px 9px; border-radius: 99px; color: #fff;
  background: rgba(5,10,8,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.hlvd {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  padding: 6px 10px; border-radius: 99px;
  color: #07210d; background: var(--acid-m);
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.mc-body { padding: 20px; }
.mc-cat { color: var(--sage-m); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.mc-name { margin-top: 8px; color: var(--ink-m); font-family: var(--serif); font-size: 36px; font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.mc-id { margin-top: 6px; color: #7a867d; font-size: 12px; }
.mc-desc { margin-top: 10px; color: #536259; font-size: 14px; line-height: 1.66; }
.mc-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mc-spec { padding: 5px 9px; border: 1px solid var(--line-m); border-radius: 99px; color: var(--green-deep-m); background: #e8f1e8; font-size: 11px; font-weight: 700; }
.mc-vitals { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 14px; }
.mc-vital { padding: 10px 7px; border: 1px solid var(--line-m); border-radius: 8px; background: #f8f7f2; text-align: center; }
.mc-vital b { display: block; color: var(--green-deep-m); font-size: 18px; line-height: 1; }
.mc-vital span { display: block; margin-top: 3px; color: #7c887f; font-size: 10px; line-height: 1.15; }
.mc-cta { display: inline-flex; margin-top: 14px; color: var(--green-deep-m); font-size: 14px; font-weight: 800; border-bottom: 1px solid var(--sage-m); }

/* ── Timeline zigzag ── */
.timeline-section { padding: 80px 0; background: var(--green-deep-m); }
.timeline-section h2 { color: #fff; text-align: center; margin: 0 0 8px; font-family: var(--serif); font-size: clamp(38px, 10vw, 56px); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.tl-intro { max-width: 560px; margin: 0 auto 46px; color: rgba(255,255,255,.58); text-align: center; font-size: 16px; line-height: 1.7; }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 1px; content: ""; background: rgba(255,255,255,.12); }
.tl-item { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 18px; margin-bottom: 28px; align-items: start; }
.tl-empty { visibility: hidden; }
.tl-center { display: flex; justify-content: center; padding-top: 18px; }
.tl-node { width: 12px; height: 12px; border: 2px solid var(--green-deep-m); border-radius: 50%; background: var(--acid-m); box-shadow: 0 0 0 7px rgba(57,255,20,.08); flex-shrink: 0; }
.tl-content {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.tl-content.bad { border-color: rgba(213,102,91,.25); background: rgba(213,102,91,.09); }
.tl-content.good { border-color: rgba(57,255,20,.22); background: rgba(57,255,20,.075); }
.tl-tag { margin-bottom: 9px; color: var(--acid-m); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tl-content.bad .tl-tag { color: #f0a19a; }
.tl-content h3 { color: #fff; font-size: 17px; line-height: 1.22; }
.tl-content p { margin-top: 8px; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.68; }
@media (max-width: 680px) {
  .timeline::before { left: 20px; }
  .tl-item { grid-template-columns: 40px 1fr; }
  .tl-empty { display: none; }
  .tl-item:nth-child(even) { grid-template-columns: 40px 1fr; }
  .tl-item:nth-child(even) .tl-center { order: -1; }
  .tl-item:nth-child(even) .tl-empty { display: none; }
}

/* ── Protocolo ── */
.madres-protocol { padding: 72px 0; background: #fbfaf6; }
.m-protocol-grid { display: grid; gap: 34px; }
.m-alert {
  margin-top: 20px; padding: 18px;
  border: 1px solid rgba(155,107,34,.22); border-left: 3px solid var(--warning-m);
  border-radius: 8px; background: #f5ead5;
}
.m-alert h3 { color: #52340d; font-size: 17px; }
.m-alert p { margin-top: 7px; color: #5d4a2c; font-size: 14px; line-height: 1.7; }
.m-steps { display: grid; gap: 12px; }
.m-step {
  display: grid; grid-template-columns: 46px 1fr; gap: 13px;
  padding: 17px; border: 1px solid var(--line-m);
  border-radius: 12px; background: #fff;
}
.m-step-num {
  display: grid; width: 44px; height: 44px; place-items: center;
  border-radius: 50%; color: var(--green-deep-m); background: #e8f1e8; font-weight: 800;
}
.m-step-freq { color: var(--sage-m); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.m-step h3 { margin-top: 4px; color: var(--ink-m); font-size: 16px; }
.m-step p { margin-top: 5px; color: #58675e; font-size: 14px; line-height: 1.64; }

/* ── FAQ ── */
.madres-faq { padding: 72px 0; background: #fff; }
.m-faq-list { max-width: 780px; margin-top: 30px; }
.m-faq-list details { border-bottom: 1px solid var(--line-m); }
.m-faq-list summary {
  display: flex; min-height: 66px; align-items: center;
  justify-content: space-between; gap: 16px;
  color: var(--green-deep-m); cursor: pointer;
  font-family: var(--serif); font-size: 21px; line-height: 1.2; list-style: none;
}
.m-faq-list summary::-webkit-details-marker { display: none; }
.m-faq-list summary::after { content: '+'; color: var(--sage-m); font-family: var(--sans); font-size: 22px; }
.m-faq-list details[open] summary::after { content: '−'; }
.m-faq-list details p { max-width: 700px; padding-bottom: 20px; color: #536259; font-size: 15px; line-height: 1.78; }

/* ── CTA final ── */
.madres-cta { padding: 72px 0; background: linear-gradient(160deg, #e8f1e8, #fbfaf6); text-align: center; }
.madres-cta-inner { max-width: 680px; margin: 0 auto; }
.madres-cta p { margin-top: 14px; color: #26342d; font-size: 16px; line-height: 1.76; }
.madres-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ── Secciones rotación, sanidad, clima ── */
.madres-rotacion { padding: 72px 0; background: var(--cream-m); }
.madres-rotacion .m-eyebrow { color: var(--sage-m); }
.madres-rotacion .m-eyebrow::before { background: var(--sage-m); }
.m-age-grid { display: grid; gap: 14px; margin-top: 34px; }
.m-age-card { overflow: hidden; border: 1px solid var(--line-m); border-radius: 14px; background: #fff; box-shadow: 0 14px 34px rgba(20,35,27,.06); }
.m-age-card img { width: 100%; height: 245px; object-fit: cover; }
.m-age-body { padding: 20px; }
.m-age-body span { color: var(--sage-m); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.m-age-body h3 { margin-top: 8px; color: var(--ink-m); font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.04em; line-height: 1.02; }
.m-age-body p { margin-top: 10px; color: #536259; font-size: 14px; line-height: 1.68; }

.madres-sanidad { padding: 72px 0; color: #fff; background: var(--green-deep-m); }
.madres-sanidad .m-title-light { color: #fff; }
.madres-sanidad .m-eyebrow-light { color: #9fc7a9; }
.madres-sanidad .m-eyebrow-light::before { background: var(--acid-m); }
.m-care-intro { display: grid; gap: 16px; margin-bottom: 34px; }
.m-intro-light { color: rgba(255,255,255,.68); }
.m-systems-grid { display: grid; gap: 14px; }
.m-system-card { display: grid; grid-template-columns: 92px 1fr; min-height: 148px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.05); }
.m-system-card img { width: 100%; height: 100%; min-height: 148px; object-fit: cover; }
.m-system-body { padding: 18px; }
.m-system-body span { color: #9fc7a9; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.m-system-body h3 { margin-top: 8px; color: #fff; font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -.04em; line-height: 1.02; }
.m-system-body p { margin-top: 8px; color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.68; }
.m-system-green { border-color: rgba(57,255,20,.18); background: rgba(57,255,20,.06); }
.m-system-warning { border-color: rgba(155,107,34,.2); background: rgba(155,107,34,.08); }
.m-system-warning .m-system-body span { color: #d4a55a; }

.madres-clima { padding: 72px 0; background: linear-gradient(180deg, #fbfaf6, #edf4eb); }
.m-environment { display: grid; gap: 18px; padding: 22px; border: 1px solid var(--line-m); border-radius: 14px; background: linear-gradient(135deg, #fff, #eef4ec); box-shadow: 0 16px 42px rgba(20,35,27,.07); margin-bottom: 20px; }
.m-env-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.m-env-item { padding: 13px; border: 1px solid var(--line-m); border-radius: 8px; background: rgba(255,255,255,.72); }
.m-env-item b { display: block; color: var(--green-deep-m); font-size: 18px; line-height: 1; }
.m-env-item span { display: block; margin-top: 5px; color: #69776e; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.m-nutri-grid { display: grid; gap: 12px; }
.m-nutri-card { padding: 20px; border: 1px solid var(--line-m); border-radius: 14px; background: rgba(255,255,255,.78); box-shadow: 0 12px 28px rgba(20,35,27,.05); }
.m-nutri-card span { color: var(--sage-m); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.m-nutri-card h3 { margin-top: 8px; color: var(--ink-m); font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -.04em; line-height: 1.02; }
.m-nutri-card p { margin-top: 10px; color: #536259; font-size: 14px; line-height: 1.68; }

/* ── Galería madres activas ── */
.madres-gallery { padding: 72px 0; background: var(--cream-m); }
.m-gallery-header { display: grid; gap: 18px; margin-bottom: 32px; }
.m-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.m-filter { padding: 8px 13px; border: 1px solid var(--line-m); border-radius: 999px; background: #fff; color: #526158; font-size: 13px; font-weight: 700; cursor: pointer; }
.m-filter.active { color: #fff; background: var(--green-deep-m); border-color: var(--green-deep-m); }

/* ── Manifesto / comparativa ── */
.madres-manifesto { padding: 72px 0; background: #fbfaf6; }
.m-manifesto-grid { display: grid; gap: 34px; }
.m-body-copy p { color: #26342d; font-size: 15px; line-height: 1.82; }
.m-body-copy p + p { margin-top: 15px; }
.m-vs-grid { display: grid; gap: 12px; }
.m-vs-card { padding: 22px; border: 1px solid var(--line-m); border-radius: 14px; background: rgba(255,255,255,.74); }
.m-vs-bad { background: #f3e3df; border-color: rgba(160,68,60,.18); }
.m-vs-good { background: #e8f1e8; border-color: rgba(31,91,46,.18); }
.m-vs-tag { margin-bottom: 11px; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.m-vs-bad .m-vs-tag { color: #a0443c; }
.m-vs-good .m-vs-tag { color: #1f6b36; }
.m-vs-card h3 { margin-bottom: 12px; color: var(--ink-m); font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1; }
.m-vs-item { position: relative; padding-left: 18px; color: #536259; font-size: 13px; line-height: 1.55; }
.m-vs-item + .m-vs-item { margin-top: 7px; }
.m-vs-item::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.m-vs-bad .m-vs-item::before { content: "×"; color: #a0443c; }
.m-vs-good .m-vs-item::before { content: "+"; color: #2c7a3c; }

/* ── Trust final CTA ── */
.m-trust-final { display: grid; gap: 8px; margin-top: 24px; }
.m-tf-item { color: #4f5f55; font-size: 13px; font-weight: 700; }

/* ── Responsive madres ── */
@media (min-width: 640px) {
  .mothers-grid { grid-template-columns: repeat(2, 1fr); }
  .m-vs-grid, .m-env-grid, .m-nutri-grid { grid-template-columns: repeat(2, 1fr); }
  .m-age-grid { grid-template-columns: repeat(2, 1fr); }
  .m-trust-final { flex-direction: row; justify-content: center; display: flex; flex-wrap: wrap; gap: 14px; }
}
@media (min-width: 980px) {
  .madres-hero-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .madres-hero-copy h1 { font-size: clamp(62px, 6vw, 86px); }
  .mothers-grid { grid-template-columns: 1.1fr .95fr .95fr; }
  .mother-card.featured { grid-row: span 2; }
  .mother-card.featured .mc-img { height: 420px; }
  .m-protocol-grid { grid-template-columns: 1fr 1fr; }
  .m-age-grid { grid-template-columns: repeat(3, 1fr); }
  .m-care-intro { grid-template-columns: 1fr .78fr; align-items: end; }
  .m-systems-grid { grid-template-columns: repeat(2, 1fr); }
  .m-environment { grid-template-columns: .75fr 1.25fr; align-items: center; }
  .m-manifesto-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .m-gallery-header { grid-template-columns: 1fr auto; align-items: end; }
}


/* ══════════════════════════════════════════
   ONE-PAGE CHECKOUT — AlfaClon
   Estilo Shopify: resumen derecha sticky · form izquierda
   ══════════════════════════════════════════ */

body.woocommerce-checkout {
  background: var(--night);
}

/* ── Layout principal — 100vw como Shopify, sin container ── */
.wc-checkout-page {
  width: 100%;
}

/* H1 "Finalizar compra" / título de página checkout — siempre oculto */
.wc-checkout-page h1,
.wc-checkout-page > h1,
.woocommerce-checkout h1,
.woocommerce-checkout h1.entry-title,
.woocommerce-checkout .entry-title,
.wc-checkout-page .entry-title,
.woocommerce-checkout .page-title,
main.wc-checkout-page > h1,
main.wc-checkout-page > .entry-title,
main.wc-checkout-page > p > h1 {
  display: none !important;
}

/* ── Layout principal: mismo ancho que el header ── */
.opc-wrap {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100svh - 64px);
  width: min(var(--max, 1260px), calc(100% - 40px));
  margin: 0 auto;
}

@media (min-width: 900px) {
  .opc-wrap {
    grid-template-columns: 60fr 40fr;
  }
  .opc-mobile-summary { display: none !important; }
}

/* ── COLUMNA FORM ── */
.opc-form-col {
  padding: 32px 20px 80px;
  order: 2;
}

@media (min-width: 900px) {
  .opc-form-col {
    order: 1;
    padding: 40px 40px 100px 0;
  }
}

/* H1 dentro del form-col */
.opc-page-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--hero);
  margin: 0 0 36px;
}

/* ── COLUMNA RESUMEN ── */
.opc-summary {
  background: #070e09;
  border-bottom: 1px solid var(--line); /* mobile: separador abajo */
  padding: 24px 24px 28px;
  order: 1; /* mobile: primero */
  display: block; /* visible en mobile */
}

@media (min-width: 900px) {
  .opc-summary {
    border-bottom: none;
    border-left: 1px solid var(--line);
    padding: 40px 0 80px 48px;
    order: 2;
  }
}

@media (min-width: 1400px) { .opc-summary { padding: 48px 0 120px 56px; } }

.opc-summary-inner {
  position: static; /* mobile: no sticky */
}

@media (min-width: 900px) {
  .opc-summary-inner {
    position: sticky;
    top: 88px;
  }
}

/* Título resumen */
.opc-summary-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 300;
  color: var(--hero);
  margin: 0 0 26px;
  letter-spacing: -.01em;
}

/* ── Resumen mobile toggle — oculto, el resumen está arriba directamente ── */
.opc-mobile-summary { display: none !important; }

.opc-cart-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 16px 24px;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--acid);
  font-size: .875rem;
  gap: 12px;
}

.opc-cart-toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.opc-cart-toggle-total {
  color: var(--hero);
  font-size: .95rem;
}

.opc-chevron { transition: transform .2s; }

#opc-mobile-items {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
}

/* ── Items del pedido ── */
.opc-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.opc-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
}

.opc-item-img {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-small);
  overflow: visible;
  background: #111;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
}

.opc-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-small);
  display: block;
}

.opc-item-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--muted);
  color: var(--night);
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.opc-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.opc-item-name {
  font-size: .875rem;
  color: var(--hero);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opc-item-meta,
.opc-item-meta .wc-item-meta,
.opc-item-meta p,
.opc-item-meta strong,
.opc-item-meta .wc-item-meta li,
.opc-item-meta .wc-item-meta p {
  font-size: .78rem;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
  opacity: 1;
}

.opc-item-unit {
  font-size: .75rem;
  color: var(--muted);
}

.opc-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.opc-item-price {
  font-size: .9rem;
  color: var(--hero);
  font-weight: 600;
  white-space: nowrap;
}

/* Controles +/- cantidad en resumen */
.opc-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
}

.opc-qty-btn {
  background: transparent;
  border: none;
  color: var(--mist);
  width: 28px;
  height: 28px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--sans);
  transition: color .15s, background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opc-qty-btn:hover { color: var(--acid); background: rgba(57,255,20,.07); }
.opc-qty-btn:disabled { opacity: .3; cursor: not-allowed; }

.opc-qty-val {
  font-size: .82rem;
  color: var(--hero);
  min-width: 22px;
  text-align: center;
  font-weight: 600;
  border-left: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Item eliminado — animar salida */
.opc-item.is-removing {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}

/* ── Cupón ── */
.opc-coupon {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.opc-coupon-row {
  display: flex;
  gap: 8px;
}

.opc-coupon-input {
  flex: 1;
  background: #0d1a10;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  color: var(--hero);
  padding: 10px 14px;
  font-size: .875rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color .2s;
}

.opc-coupon-input:focus { border-color: var(--acid); }

.opc-coupon-apply {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--mist);
  padding: 10px 16px;
  border-radius: var(--radius-button);
  font-size: .8rem;
  font-family: var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}

.opc-coupon-apply:hover { border-color: var(--acid); color: var(--acid); }

.opc-coupon-msg {
  margin-top: 8px;
  font-size: .8rem;
  padding: 8px 12px;
  border-radius: 6px;
}

.opc-coupon-msg--ok { background: rgba(57,255,20,.1); color: var(--acid); }
.opc-coupon-msg--error { background: rgba(213,68,68,.1); color: #faa; }

/* ── Totales ── */
.opc-totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding-top: 4px;
}

.opc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .875rem;
  color: var(--mist);
}

.opc-discount-amount { color: var(--acid-muted); }

.opc-grand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hero);
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
  margin-top: 4px;
}

.opc-grand-amount { color: var(--acid); font-size: 1.15rem; }

/* ── Trust signals ── */
.opc-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.opc-trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .775rem;
  color: var(--muted);
}

.opc-trust svg { flex-shrink: 0; color: var(--acid); }

/* ══════════════════════════════════════════
   FORMULARIO
   ══════════════════════════════════════════ */

/* Bloques */
.opc-block {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.opc-block:last-of-type { border-bottom: none; margin-bottom: 0; }

.opc-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
  flex-wrap: wrap;
}

.opc-block-head .opc-block-title { margin-bottom: 0; }

.opc-block-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 300;
  color: var(--hero);
  margin: 0 0 26px;
  letter-spacing: -.01em;
}

.opc-block-title--minor {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--mist);
  font-weight: 400;
}

.opc-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--acid);
  color: #041008;
  font-size: .75rem;
  font-weight: 700;
  font-family: var(--sans);
  flex-shrink: 0;
}

.opc-optional { font-size: .75rem; color: var(--muted); font-family: var(--sans); font-weight: 400; }

.opc-login-hint { font-size: .8rem; color: var(--muted); }
.opc-login-link { color: var(--sage); }
.opc-login-link:hover { color: var(--acid); }

.opc-sub-title {
  font-size: .85rem;
  color: var(--mist);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 24px 0 16px;
}

/* Grid campos */
.opc-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

/* Campos WC */
.opc-form .form-row { margin: 0 0 14px; padding: 0; }

.opc-form .form-row-wide,
.opc-form .notes { grid-column: 1 / -1; }

.opc-form .form-row-first,
.opc-form .form-row-last { grid-column: span 1; }

.opc-form .form-row label {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.opc-form .form-row .required { color: var(--acid); }
.opc-form .form-row .optional { color: var(--muted); font-weight: 400; text-transform: none; font-size: .7rem; }

.opc-form .form-row input[type="text"],
.opc-form .form-row input[type="email"],
.opc-form .form-row input[type="tel"],
.opc-form .form-row input[type="password"],
.opc-form .form-row input[type="number"],
.opc-form .form-row textarea,
.opc-form .form-row select,
.opc-form #billing_vat_number {
  width: 100%;
  background: #0a130c;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--hero);
  padding: 12px 14px;
  font-size: .9rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.opc-form .form-row input::placeholder,
.opc-form .form-row textarea::placeholder { color: var(--muted); opacity: .7; }

.opc-form .form-row input:focus,
.opc-form .form-row textarea:focus,
.opc-form .form-row select:focus,
.opc-form #billing_vat_number:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(57,255,20,.08);
}

.opc-form .form-row.woocommerce-invalid input,
.opc-form .form-row.woocommerce-invalid select { border-color: #d44; }

.opc-form .form-row.woocommerce-validated input,
.opc-form .form-row.woocommerce-validated select { border-color: var(--acid); }

.opc-form .form-row textarea { resize: vertical; min-height: 80px; }

.opc-form .form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%2380ad96' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
  cursor: pointer;
}

/* Checkbox custom */
.opc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  color: var(--mist);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.opc-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.opc-checkmark {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: #0a130c;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}

.opc-checkbox-label input:checked + .opc-checkmark {
  background: var(--acid);
  border-color: var(--acid);
}

.opc-checkbox-label input:checked + .opc-checkmark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #041008;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Crear cuenta */
.opc-create-account { margin-top: 16px; }

.opc-account-fields {
  margin-top: 16px;
  padding: 16px;
  background: #0a130c;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
}

.opc-ship-toggle-wrap { margin-top: 20px; }

.opc-shipping-fields { margin-top: 20px; }

.opc-login-form {
  margin-top: 16px;
  padding: 20px;
  background: #0a130c;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
}

/* ── Tipo de cliente ── */
.opc-client-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.opc-client-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--mist);
  font-size: .875rem;
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  flex: 1;
  justify-content: center;
}

.opc-client-tab:hover { border-color: var(--muted); color: var(--hero); }

.opc-client-tab.is-active {
  border-color: var(--acid);
  color: var(--hero);
  background: rgba(57,255,20,.06);
}

.opc-client-tab svg { flex-shrink: 0; }

.opc-empresa-fields { margin-top: 4px; }

.opc-empresa-note {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ── Bloque pago WC ── */
.opc-block-payment #order_review { margin: 0; }

/* Mensaje "no hay métodos de pago" — visible solo en local/dev, estilo discreto */
.opc-form .woocommerce-notice--info,
.opc-block-payment .woocommerce-info {
  background: rgba(57,255,20,.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--muted);
  font-size: .875rem;
  padding: 14px 18px;
  margin-bottom: 16px;
}

/* Ocultar tabla de revisión nativa (Producto/Subtotal/Total) — usamos nuestro resumen */
.opc-block-payment .woocommerce-checkout-review-order-table,
.opc-block-payment .woocommerce-checkout-payment .shop_table { display: none !important; }

/* Privacidad / términos */
.opc-form .woocommerce-privacy-policy-text {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.opc-form .woocommerce-privacy-policy-text a { color: var(--sage); }

/* Checkbox de términos y condiciones */
.opc-form #payment .woocommerce-terms-and-conditions-checkbox-text,
.opc-form .woocommerce-terms-and-conditions-checkbox-text {
  font-size: .8rem;
  color: var(--muted);
}
.opc-form .woocommerce-terms-and-conditions-checkbox-text a { color: var(--sage); }
.opc-form #payment .terms-and-conditions,
.opc-form .terms-and-conditions {
  margin-bottom: 14px;
}
.opc-form #payment .terms-and-conditions label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .8rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}
.opc-form #payment .terms-and-conditions input[type="checkbox"] {
  accent-color: var(--acid);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Checkbox términos AlfaClon */
.opc-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.opc-terms-input {
  accent-color: var(--acid);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  margin: 2px 0 0;
}
.opc-terms-label {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.4;
  cursor: pointer;
  text-transform: none !important;
  font-weight: 400;
  letter-spacing: 0;
}
.opc-terms-label a {
  color: var(--acid);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Ocultar el bloque de privacidad automático de WC (está en el checkbox) */
.woocommerce-privacy-policy-text { display: none !important; }

.opc-form #payment {
  background: transparent;
  border: none;
  padding: 0;
}

.opc-form #payment ul.payment_methods {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 0 0 16px;
  padding: 0;
}

.opc-form #payment ul.payment_methods li {
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
  transition: background .15s;
}

.opc-form #payment ul.payment_methods li:last-child { border-bottom: none; }

.opc-form #payment ul.payment_methods li:has(input:checked) {
  background: rgba(57,255,20,.04);
}

.opc-form #payment ul.payment_methods label {
  font-size: .875rem;
  color: var(--hero);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.opc-form #payment ul.payment_methods input[type="radio"] {
  accent-color: var(--acid);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.opc-form #payment .payment_box {
  background: #0a130c;
  border-radius: 6px;
  padding: 14px 16px;
  margin-top: 12px;
  font-size: .85rem;
  color: var(--muted);
}

/* ── Botón confirmar ── */
.opc-form #place_order,
.opc-form #payment #place_order {
  display: block;
  width: 100%;
  background: var(--acid);
  color: #041008;
  border: none;
  border-radius: var(--radius-button);
  padding: 17px 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: opacity .2s, transform .1s;
  margin-top: 6px;
}

.opc-form #place_order:hover { opacity: .88; transform: translateY(-1px); }
.opc-form #place_order:active { transform: none; opacity: 1; }

.opc-form #payment .terms {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
  line-height: 1.6;
}

.opc-form #payment .terms a { color: var(--sage); }

/* ── Aviso legal ── */
.opc-legal {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ── Errores WC ── */
.opc-form .woocommerce-error,
.woocommerce-checkout .woocommerce-error {
  background: rgba(213,68,68,.1);
  border-left: 3px solid #d44;
  color: #ffaaaa;
  border-radius: var(--radius-small);
  padding: 14px 18px;
  font-size: .875rem;
  margin-bottom: 20px;
  list-style: none;
}

.opc-form .woocommerce-message,
.woocommerce-checkout .woocommerce-message {
  background: rgba(57,255,20,.08);
  border-left: 3px solid var(--acid);
  color: var(--hero);
  border-radius: var(--radius-small);
  padding: 14px 18px;
  font-size: .875rem;
  margin-bottom: 20px;
}

/* ── Header/footer simplificados en checkout ── */
body.woocommerce-checkout .site-nav { display: none; }
body.woocommerce-checkout .header-right-mobile { display: none; }
body.woocommerce-checkout .site-footer { display: none; }

/* Ocultar el aviso de cupón que WC inyecta automáticamente antes del form */
.woocommerce-checkout .woocommerce-info.woocommerce-coupon-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout #coupon_code,
form.checkout_coupon { display: none !important; }

.woocommerce-checkout .woocommerce-notices-wrapper {
  padding: 0 24px;
}

/* ── Sección cuenta (login / crear) ── */
.opc-account-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.opc-already-customer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.opc-link-btn {
  background: none;
  border: none;
  color: var(--sage);
  font-size: .85rem;
  font-family: var(--sans);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.opc-link-btn:hover { color: var(--acid); }

.opc-login-box {
  background: #0a130c;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 16px;
}

.opc-create-row { margin-top: 4px; }

#createaccount-fields {
  margin-top: 14px;
  padding: 16px;
  background: #0a130c;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
}

/* ── Empresa fields ── */
.opc-empresa-fields,
#opc-empresa-fields { margin-bottom: 6px; }

/* ── Dirección alternativa ── */
.opc-shipping-alt { margin-top: 20px; }
.opc-ship-toggle-wrap { margin-top: 18px; }

/* ── Tabs cuenta (Nuevo / Login) ── */
.opc-account-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.opc-account-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  font-family: var(--sans);
  cursor: pointer;
  flex: 1;
  justify-content: center;
  transition: border-color .18s, color .18s, background .18s;
}

.opc-account-tab:hover { border-color: var(--muted); color: var(--hero); }
.opc-account-tab.is-active {
  border-color: var(--acid);
  color: var(--hero);
  background: rgba(57,255,20,.06);
}

.opc-account-note {
  font-size: .8rem;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.opc-account-panel { margin-bottom: 4px; }

/* Contraseña con ojo */
.opc-password-wrap {
  position: relative;
}

.opc-password-wrap input {
  padding-right: 44px !important;
}

.opc-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  opacity: .5;
  transition: opacity .2s;
  display: flex;
  align-items: center;
}

.opc-eye:hover { opacity: 1; }

/* Botón login */
.opc-login-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.opc-login-btn {
  background: var(--acid);
  color: #041008;
  border: none;
  border-radius: var(--radius-button);
  padding: 11px 24px;
  font-size: .875rem;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  transition: opacity .2s;
}

.opc-login-btn:hover { opacity: .88; }
.opc-login-btn:disabled { opacity: .5; cursor: wait; }

.opc-link-small {
  font-size: .78rem;
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.opc-login-msg {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: .82rem;
}

.opc-login-msg--ok    { background: rgba(57,255,20,.1);  color: var(--acid); }
.opc-login-msg--error { background: rgba(213,68,68,.1);  color: #faa; }

/* Usuario logueado */
.opc-logged-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #0a130c;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
}

.opc-logged-note svg { color: var(--acid); flex-shrink: 0; }
.opc-logged-note strong { color: var(--hero); }

/* ── Input qty editable en resumen ── */
.opc-qty-input {
  width: 38px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  color: var(--hero);
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--sans);
  text-align: center;
  height: 28px;
  padding: 0 2px;
  -moz-appearance: textfield;
  appearance: textfield;
  outline: none;
}

.opc-qty-input::-webkit-outer-spin-button,
.opc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.opc-qty-input:focus {
  background: rgba(57,255,20,.06);
}

/* Fila inferior del item: precio + eliminar */
.opc-item-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.opc-remove-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: .72rem;
  font-family: var(--sans);
  cursor: pointer;
  padding: 0;
  opacity: .6;
  transition: opacity .2s, color .2s;
}

.opc-remove-btn:hover { opacity: 1; color: #e55; }

/* ══════════════════════════════════════════
   MI CUENTA — LOGIN + DASHBOARD
   ══════════════════════════════════════════ */

body.woocommerce-account { background: var(--night); }

/* ── Página login: centrada ── */
/* Ocultar el h1 "Mi cuenta" que WC / WP inyectan fuera de nuestro template */
.woocommerce-account:not(.logged-in) .wc-page > h1,
.woocommerce-account:not(.logged-in) .woocommerce > h1,
.woocommerce-account:not(.logged-in) .entry-title,
.woocommerce-account:not(.logged-in) #contenido > h1,
.woocommerce-account:not(.logged-in) main > h1,
.woocommerce-account:not(.logged-in) h1:not(.ac-login-heading) { display: none !important; }

.ac-login-page {
  min-height: calc(100svh - 80px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 24px 80px;
}

.ac-login-wrap {
  width: 100%;
  max-width: 440px;
}

.ac-login-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--hero);
  margin: 0 0 40px;
  line-height: 1.1;
}

.ac-solo-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--hero);
  margin: 0 0 40px;
  line-height: 1.1;
}

/* Selector de modo login / registro */
.ac-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 36px;
}

.ac-mode-btn {
  padding: 13px 0;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-button);
  color: var(--muted);
  font-size: .9rem;
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  letter-spacing: .02em;
}

.ac-mode-btn:hover {
  border-color: var(--acid);
  color: var(--hero);
}

.ac-mode-btn.is-active {
  border-color: var(--acid);
  background: rgba(57,255,20,.07);
  color: var(--acid);
}

/* Campos */
.ac-form { display: flex; flex-direction: column; gap: 18px; }

.ac-field { display: flex; flex-direction: column; gap: 6px; }

.ac-field label {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ac-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ac-req { color: var(--acid); }

.ac-lost-pass {
  font-size: .75rem;
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ac-lost-pass:hover { color: var(--acid); }

.ac-form input[type="text"],
.ac-form input[type="email"],
.ac-form input[type="password"] {
  width: 100%;
  background: #0a130c;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--hero);
  padding: 12px 14px;
  font-size: .9rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.ac-form input:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(57,255,20,.08);
}

/* Contraseña con ojo */
.ac-pass-wrap { position: relative; }
.ac-pass-wrap input { padding-right: 44px; }
.ac-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  opacity: .5;
  cursor: pointer;
  padding: 4px;
  transition: opacity .2s;
  display: flex;
  align-items: center;
}
.ac-eye:hover { opacity: 1; }

/* Recordar sesión */
.ac-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .85rem;
  color: var(--muted);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.ac-remember input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.ac-checkmark {
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: #0a130c;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}
.ac-remember input:checked + .ac-checkmark {
  background: var(--acid);
  border-color: var(--acid);
}
.ac-remember input:checked + .ac-checkmark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #041008;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px,-1px);
}

/* Botón submit */
.ac-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--acid);
  color: #041008;
  border: none;
  border-radius: var(--radius-button);
  padding: 14px 24px;
  font-size: .95rem;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  letter-spacing: .03em;
  margin-top: 4px;
  transition: opacity .2s, transform .1s;
}
.ac-submit:hover { opacity: .88; transform: translateY(-1px); }
.ac-submit:active { transform: none; }

/* Nota registro */
.ac-note { display: none; } /* ya no se usa */

/* Nota dentro del panel de registro */
.ac-register-note {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Panel oculto */
.ac-panel[hidden] { display: none; }

/* Trust mínimo login */
.ac-trust {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.ac-trust li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  color: var(--muted);
}
.ac-trust svg { color: var(--acid); flex-shrink: 0; }

/* Mensajes WC en login */
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
  border-radius: var(--radius-small);
  padding: 14px 18px;
  font-size: .875rem;
  margin-bottom: 20px;
  list-style: none;
}
.woocommerce-account .woocommerce-error {
  background: rgba(213,68,68,.1);
  border-left: 3px solid #d44;
  color: #ffaaaa;
}
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
  background: rgba(57,255,20,.08);
  border-left: 3px solid var(--acid);
  color: var(--hero);
}

/* ══ DASHBOARD MI CUENTA ══ */

.ac-page {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100svh - 80px);
}

@media (min-width: 780px) {
  .ac-page { grid-template-columns: 240px 1fr; }
}

@media (min-width: 1100px) {
  .ac-page { grid-template-columns: 270px 1fr; }
}

/* Sidebar */
.ac-sidebar {
  background: #070e09;
  border-right: 1px solid var(--line);
  padding: 48px 28px 60px;
}

/* Card usuario */
.ac-user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.ac-user-avatar { flex-shrink: 0; }

.ac-avatar-initials {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(57,255,20,.1);
  border: 1.5px solid rgba(57,255,20,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  color: var(--acid);
  letter-spacing: .04em;
  flex-shrink: 0;
}

.ac-user-info { min-width: 0; }
.ac-user-name {
  display: block;
  font-size: 1rem;
  color: var(--hero);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-user-email {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Nav sidebar */
.ac-nav-list,
.ac-nav .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Quitar bullets de WC */
.ac-nav-list li,
.ac-nav li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.ac-nav-list li::before,
.ac-nav li::before,
.ac-nav-list li::marker,
.ac-nav li::marker { display: none !important; content: '' !important; }

.ac-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-small);
  font-size: .95rem;
  color: var(--muted);
  transition: background .15s, color .15s;
  text-decoration: none;
}

.ac-nav-link:hover { background: rgba(255,255,255,.05); color: var(--hero); }

.ac-nav-link.is-active {
  background: rgba(57,255,20,.09);
  color: var(--hero);
  font-weight: 500;
}

.ac-nav-icon { flex-shrink: 0; width: 18px; height: 18px; }

/* Cerrar sesión */
.woocommerce-MyAccount-navigation-link--customer-logout .ac-nav-link {
  color: var(--muted);
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  border-radius: 0;
}
.woocommerce-MyAccount-navigation-link--customer-logout .ac-nav-link:hover {
  color: #e55;
  background: rgba(213,68,68,.07);
}

/* Contenido principal */
.ac-content {
  padding: 40px 24px 80px;
}

@media (min-width: 780px) {
  .ac-content { padding: 48px 48px 100px; }
}

/* Estilos generales del contenido WC */
.ac-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: var(--hero);
  margin: 0 0 24px;
}

.ac-content p { color: var(--mist); font-size: .9rem; line-height: 1.7; }
.ac-content a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }
.ac-content a:hover { color: var(--acid); }

/* Tabla de pedidos */
.ac-content .woocommerce-orders-table,
.ac-content table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.ac-content .shop_table th {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
}

.ac-content .shop_table td {
  padding: 14px 16px;
  color: var(--mist);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.ac-content .shop_table tr:last-child td { border-bottom: none; }
.ac-content .shop_table .order-number a { color: var(--hero); font-weight: 600; }

/* Botones dentro de mi cuenta */
.ac-content .button,
.ac-content .woocommerce-button {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  color: var(--mist);
  font-size: .8rem;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.ac-content .button:hover { border-color: var(--acid); color: var(--acid); }

/* Formularios de edición */
.ac-content .woocommerce-EditAccountForm .form-row,
.ac-content .woocommerce-address-fields .form-row {
  margin: 0 0 16px;
}
.ac-content .form-row label {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 500;
  margin-bottom: 5px;
}
.ac-content .form-row input[type="text"],
.ac-content .form-row input[type="email"],
.ac-content .form-row input[type="password"],
.ac-content .form-row input[type="tel"],
.ac-content .form-row select {
  width: 100%;
  background: #0a130c;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--hero);
  padding: 11px 14px;
  font-size: .9rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.ac-content .form-row input:focus,
.ac-content .form-row select:focus { border-color: var(--acid); }

.ac-content .woocommerce-SaveButton,
.ac-content [name="save_account_details"],
.ac-content [name="save_address"] {
  background: var(--acid) !important;
  color: #041008 !important;
  border-color: var(--acid) !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
}
.ac-content .woocommerce-SaveButton:hover { opacity: .88; }

/* H2/H3 que WC inyecta en el área de cuenta */
.ac-content h2,
.ac-content h3 {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Direcciones */
.ac-addresses-intro {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.ac-addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .ac-addresses { grid-template-columns: 1fr; }
}

.ac-address-block {
  background: #0a130c;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 24px 26px 22px;
}

.ac-address-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.ac-address-label {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ac-address-edit {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  color: var(--acid);
  text-decoration: none;
  border: 1px solid rgba(57,255,20,.35);
  border-radius: 8px;
  padding: 8px 16px;
  display: inline-block;
  align-self: flex-start;
  transition: background .2s, border-color .2s;
}
.ac-address-edit:hover {
  background: rgba(57,255,20,.08);
  border-color: var(--acid);
}

.ac-address-body {
  font-family: var(--sans);
  font-size: .875rem;
  color: var(--hero);
  font-style: normal;
  line-height: 1.65;
}

.ac-address-empty {
  color: var(--muted);
  font-style: italic;
  font-size: .85rem;
}

/* Página mi cuenta: sin container, sin h1 externo */
.wc-account-page {
  width: 100%;
}

/* Quitar el h1 "Mi cuenta" / "Pedidos" que WC inyecta fuera del template */
.wc-account-page > h1,
.wc-account-page > .entry-title,
.woocommerce-account .woocommerce > h1,
.woocommerce-account #contenido > h1,
.woocommerce-account main > h1:not(.ac-login-heading) {
  display: none !important;
}

/* Sidebar más ancho en desktop */
@media (min-width: 780px) {
  .ac-page { grid-template-columns: 260px 1fr; }
}
@media (min-width: 1100px) {
  .ac-page { grid-template-columns: 300px 1fr; }
}

/* ── Selector cuenta arriba (checkout) ── */
.opc-account-section--top {
  margin-bottom: 20px;
}
.opc-account-section--top .opc-account-tabs {
  margin-bottom: 0;
}

/* ── Barra envío gratuito ── */
.opc-free-ship-bar {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
}
.opc-free-ship-bar--ok {
  border-color: rgba(57,255,20,.3);
  background: rgba(57,255,20,.07);
}
.opc-free-ship-track {
  height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.opc-free-ship-fill {
  height: 100%;
  background: var(--acid, #39ff14);
  border-radius: 999px;
  transition: width .4s ease;
}
.opc-free-ship-msg {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.opc-free-ship-msg strong { color: #fff; }
.opc-free-ship-bar--ok .opc-free-ship-msg { color: var(--acid, #39ff14); }

/* ── Fila de envío en totales ── */
.opc-shipping-row { border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 10px; margin-bottom: 4px; }
.opc-shipping-free { color: var(--acid, #39ff14); font-weight: 600; }

/* ── Página carrito: ancho unificado a 1260px ── */
.woocommerce-cart #left-area,
.woocommerce-cart #content-area,
.woocommerce-cart .container,
.woocommerce-cart .inner-wrap {
  max-width: var(--max, 1260px) !important;
  width: min(var(--max, 1260px), calc(100% - 40px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Asegurar que [hidden] funcione aunque haya overrides de display */
[hidden] { display: none !important; }

/* Anular page-legal en checkout y carrito — max-width no debe limitarlos */
.woocommerce-checkout .page-legal,
.woocommerce-cart .page-legal {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Contacto: único canal por correo */
.contact-email-page{background:var(--white);color:var(--hero-ink)}
.contact-email-hero{padding:clamp(72px,9vw,128px) 0;background:linear-gradient(135deg,#060606 0%,#0F1A0F 50%,#060606 100%);color:var(--white)}
.contact-email-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:clamp(36px,7vw,90px);align-items:center}
.contact-email-eyebrow,.error404-code{font:500 11px/1.2 var(--sans);letter-spacing:2.4px;text-transform:uppercase;color:var(--muted);margin:0 0 20px}
.contact-email-page h1,.error404-page h1{font-family:var(--serif);font-size:clamp(44px,7vw,86px);font-weight:300;line-height:1;letter-spacing:-1.5px;margin:0 0 24px}
.contact-email-page h1 em{color:var(--acid);font-weight:300}
.contact-email-intro{max-width:680px;color:var(--mist);font-size:clamp(15px,1.5vw,18px);line-height:1.8}
.contact-email-card{padding:clamp(28px,4vw,44px);border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.05);box-shadow:var(--glow)}
.contact-email-card>span{display:block;color:var(--muted);font-size:11px;letter-spacing:1.8px;text-transform:uppercase;margin-bottom:14px}
.contact-email-card>a:not(.contact-email-button){display:block;color:var(--white);font-family:var(--serif);font-size:clamp(26px,3vw,38px);overflow-wrap:anywhere;margin-bottom:22px}
.contact-email-card p{color:var(--mist);font-size:14px;line-height:1.75;margin-bottom:26px}
.contact-email-button{display:inline-flex;padding:15px 22px;border-radius:4px;background:var(--acid);color:var(--night);font-weight:600;border:0;cursor:pointer}
.contact-form{display:flex;flex-direction:column;gap:12px;margin:8px 0 18px}
.contact-form label{display:flex;flex-direction:column;gap:6px;color:var(--mist);font-size:13px}
.contact-form input,.contact-form textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:6px;background:#07110d;color:var(--white);font:inherit}
.contact-form input:focus-visible,.contact-form textarea:focus-visible{outline:2px solid var(--acid);outline-offset:2px}
.contact-hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.contact-form-ok{color:var(--acid)!important}
.contact-form-error{color:#ffb4b4!important}
.contact-email-info{padding:clamp(64px,8vw,96px) 0;background:var(--hero)}
.contact-email-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.contact-email-info article{padding:30px;border-radius:12px;background:var(--white);box-shadow:0 4px 24px rgba(0,0,0,.07)}
.contact-email-info article>span{color:var(--muted);font-size:11px;letter-spacing:2px}
.contact-email-info h2{font-family:var(--serif);font-size:28px;font-weight:300;margin:18px 0 10px;color:var(--hero-ink)}
.contact-email-info p{color:#5a655e;font-size:14px;line-height:1.7}
.page-fullwidth-heading{padding-top:56px}.page-fullwidth-heading h1{font-family:var(--serif);font-size:clamp(38px,6vw,68px);font-weight:300}
.error404-panel{padding:clamp(90px,12vw,160px) 0;background:linear-gradient(135deg,#060606 0%,#0F1A0F 50%,#060606 100%);color:var(--white);text-align:center}
.error404-panel p:not(.error404-code){max-width:620px;margin:0 auto 32px;color:var(--mist);line-height:1.8}
.error404-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.error404-actions a{padding:14px 20px;border:1px solid var(--line);border-radius:4px}.error404-actions a:first-child{background:var(--acid);border-color:var(--acid);color:var(--night)}
@media(max-width:760px){.contact-email-grid,.contact-email-info-grid{grid-template-columns:1fr}.contact-email-hero{padding:64px 0}.contact-email-card{padding:24px}.contact-email-card>a:not(.contact-email-button){font-size:25px}.error404-actions{flex-direction:column}.error404-actions a{width:100%}}

/* ══════════════════════════════════════════════════════════
   Página "Pedido recibido" (thankyou.php) — coherente con checkout
   ══════════════════════════════════════════════════════════ */
.opc-thankyou-wrap {
  display: flex;
  justify-content: center;
  padding: 56px 20px 100px;
  width: min(var(--max, 1260px), calc(100% - 40px));
  margin: 0 auto;
}

.opc-thankyou-inner {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.opc-thankyou-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(57, 255, 20, .12);
  color: var(--acid);
  margin: 0 0 24px;
}

.opc-thankyou-icon--error {
  background: rgba(200, 60, 50, .14);
  color: #e2544a;
}

.opc-thankyou-inner .opc-page-title {
  text-align: center;
  margin: 0 0 12px;
}

.opc-thankyou-lead {
  color: var(--mist);
  font-size: 16px;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 36px;
}

.opc-thankyou-meta {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  text-align: left;
  margin: 0 0 28px;
}

.opc-thankyou-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  color: var(--mist);
  font-size: 14px;
}

.opc-thankyou-meta-row:last-child { border-bottom: none; }

.opc-thankyou-meta-row strong {
  color: var(--white);
  font-weight: 600;
  text-align: right;
}

.opc-thankyou-meta-row .opc-thankyou-total {
  color: var(--acid);
  font-size: 16px;
}

.opc-thankyou-items-title {
  text-align: left;
  margin-bottom: 16px;
}

.opc-thankyou-items {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 0 0 32px;
}

.opc-thankyou-addresses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
  margin: 0 0 40px;
}

@media (min-width: 640px) {
  .opc-thankyou-addresses { grid-template-columns: 1fr 1fr; }
}

.opc-thankyou-address {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 24px;
}

.opc-thankyou-address h3 {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--acid-muted);
  margin: 0 0 10px;
}

.opc-thankyou-address address {
  font-style: normal;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.7;
}

.opc-thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* ══════════════════════════════════════════════════════════
   Verificación de pedido (form-verify-email.php, login tras
   order-received.php) — mismo lenguaje visual que el checkout
   ══════════════════════════════════════════════════════════ */
.opc-thankyou-wrap--verify {
  padding-bottom: 0;
}

.woocommerce-verify-email,
.woocommerce-form-login {
  max-width: 380px;
  margin: 32px auto 0;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 28px 8px;
}

.woocommerce-verify-email p,
.woocommerce-form-login p {
  font-family: var(--sans);
  color: var(--mist);
  font-size: 14px;
  line-height: 1.6;
}

.woocommerce-verify-email .form-row,
.woocommerce-form-login .form-row {
  margin-bottom: 18px;
}

.woocommerce-verify-email label,
.woocommerce-form-login label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--hero);
  margin-bottom: 8px;
}

.woocommerce-verify-email .input-text,
.woocommerce-form-login .input-text,
.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  background: var(--night-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
}

.woocommerce-verify-email .input-text:focus,
.woocommerce-form-login .input-text:focus,
.woocommerce-form-login input:focus {
  outline: none;
  border-color: var(--acid);
}

.woocommerce-verify-email button[type="submit"],
.woocommerce-form-login button[type="submit"] {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--acid);
  color: #041008;
  border: none;
  border-radius: var(--radius-button);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
  margin-bottom: 20px;
}

.woocommerce-verify-email button[type="submit"]:hover,
.woocommerce-form-login button[type="submit"]:hover {
  background: #50ff35;
}

.woocommerce-verify-email a,
.woocommerce-form-login a {
  color: var(--acid-muted);
}

/* Aviso "Por favor, accede a tu cuenta..." antes del login en order-received */
.woocommerce-order-received .woocommerce-info {
  max-width: 380px;
  margin: 20px auto 0;
  background: rgba(57,255,20,.08);
  border-left: 3px solid var(--acid);
  color: var(--hero);
  border-radius: var(--radius-small);
  padding: 14px 18px;
  font-size: .875rem;
  font-family: var(--sans);
  text-align: center;
  list-style: none;
}

/* Instrucciones de la pasarela de pago (p.ej. datos bancarios BACS) en thankyou */
.opc-thankyou-gateway-extra {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin: 32px 0 32px;
  font-family: var(--sans);
  color: var(--mist);
  font-size: 14px;
  line-height: 1.7;
}

.opc-thankyou-gateway-extra h2,
.opc-thankyou-gateway-extra h3 {
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--acid-muted);
  margin: 0 0 12px;
}

.opc-thankyou-gateway-extra .wc-bacs-bank-details {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.opc-thankyou-gateway-extra .wc-bacs-bank-details li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.opc-thankyou-gateway-extra .wc-bacs-bank-details li:last-child {
  border-bottom: none;
}

.opc-thankyou-gateway-extra .wc-bacs-bank-details-account-name {
  color: var(--white);
}

/* ── Avisos de WooCommerce en ficha de producto (stock, errores de carrito) ── */
.single-product .woocommerce-error,
.single-product .woocommerce-message,
.single-product .woocommerce-info {
  background: rgba(57,255,20,.08);
  border-left: 3px solid var(--acid);
  color: var(--hero);
  border-radius: var(--radius-small);
  padding: 14px 18px;
  font-size: .875rem;
  line-height: 1.5;
  margin: 0 0 20px;
  list-style: none;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.single-product .woocommerce-error {
  background: rgba(213,68,68,.1);
  border-left-color: #d44;
  color: #ffaaaa;
}

.single-product .woocommerce-error li {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── Aviso destacado: nº de pedido como referencia de transferencia ── */
.opc-thankyou-reference {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  background: var(--acid);
  color: var(--night-soft);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 0 0 32px;
}

.opc-thankyou-reference-icon {
  flex: 0 0 auto;
  margin-top: 2px;
}

.opc-thankyou-reference-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.opc-thankyou-reference-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.opc-thankyou-reference-body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}

.opc-thankyou-reference-body strong {
  font-size: 17px;
  font-weight: 700;
}

/* ── Botones de thankyou: anular .woocommerce .button (más específico
   que .button-brand) para que ambos botones midan y pesen igual y el
   grupo quede realmente centrado ── */
.opc-thankyou-actions .button,
.woocommerce .opc-thankyou-actions .button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 27px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  color: var(--white);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  flex: 1 1 200px;
  max-width: 240px;
  text-align: center;
}

.opc-thankyou-actions .button-brand,
.woocommerce .opc-thankyou-actions .button-brand {
  color: #041008;
  background: var(--acid);
  border-color: var(--acid);
}

.cart-empty-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px 120px;
  text-align: center;
}
.cart-empty-wrap h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}
.cart-empty-wrap p {
  margin-bottom: 28px;
}
.cart-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  background: var(--acid);
  color: #041008;
  font-weight: 600;
  border-radius: var(--radius-button);
}

.ac-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 800;
  max-width: 520px;
  margin-left: auto;
  padding: 18px 20px;
  background: var(--panel-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.ac-consent-inner p {
  color: var(--white);
  font-size: 14px;
  line-height: 1.5;
}
.ac-consent-more {
  margin-top: 8px;
}
.ac-consent-more a {
  color: var(--acid-muted);
  text-decoration: underline;
}
.ac-consent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}
.ac-consent-reject,
.ac-consent-accept {
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-button);
  font-weight: 600;
}
.ac-consent-reject {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--white);
}
.ac-consent-accept {
  background: var(--acid);
  color: #041008;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Reseñas de producto (ficha _producto-dynamic) ── */
.ac-reviews {
  background: #000000;
  color: #ffffff;
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.ac-reviews .h2 {
  color: #ffffff;
  margin-bottom: 28px;
}
/* El título va a ancho completo del .wrap (como el resto de secciones de la
   página), pero el formulario/lista de reseñas se queda en una columna de
   lectura cómoda para que las líneas de texto no se estiren a 1260px. */
.ac-reviews-body {
  font-family: var(--sans);
  max-width: 780px;
}
.ac-reviews-body #reviews {
  max-width: 100%;
}
.ac-reviews-body .woocommerce-Reviews-title {
  display: none;
}
.ac-reviews-body .commentlist {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 16px;
}
.ac-reviews-body .commentlist .comment {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  list-style: none;
}
.ac-reviews-body .comment_container { display: flex; gap: 16px; align-items: flex-start; }
.ac-reviews-body .avatar {
  border-radius: 50%;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}
.ac-reviews-body .comment-text { flex: 1; min-width: 0; }
/* Estrellas de valoración ya publicada: WooCommerce usa una fuente de
   iconos propia (woocommerce-general, deshabilitada en este tema) — se
   sustituye por texto Unicode con la misma técnica de "texto oculto +
   ::before con ancho proporcional" que usa WooCommerce nativamente. */
.ac-reviews-body .star-rating {
  overflow: hidden;
  position: relative;
  height: 1.2em;
  line-height: 1.2em;
  font-size: 14px;
  width: 5.4em;
  font-family: inherit;
  margin-bottom: 6px;
}
.ac-reviews-body .star-rating::before {
  content: "\2605\2605\2605\2605\2605";
  color: rgba(255,255,255,.22);
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  letter-spacing: .16em;
}
.ac-reviews-body .star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  height: 100%;
}
.ac-reviews-body .star-rating span::before {
  content: "\2605\2605\2605\2605\2605";
  color: var(--acid);
  top: 0;
  position: absolute;
  letter-spacing: .16em;
}
.ac-reviews-body .woocommerce-review__author {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}
.ac-reviews-body .woocommerce-review__dash,
.ac-reviews-body .woocommerce-review__published-date {
  color: rgba(255,255,255,.5);
  font-size: 13px;
}
.ac-reviews-body .description p {
  color: rgba(255,255,255,.78);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 8px 0 0;
}
.ac-reviews-body .woocommerce-noreviews {
  color: rgba(255,255,255,.65);
  font-family: var(--sans);
  font-size: 15px;
  margin-bottom: 28px;
}

/* Formulario de nueva reseña */
.ac-reviews-body #review_form_wrapper {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 28px;
}
.ac-reviews-body #review_form_wrapper .comment-reply-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: #ffffff;
  display: block;
  margin-bottom: 18px;
}
.ac-reviews-body .comment-form-rating label,
.ac-reviews-body .comment-form-comment label,
.ac-reviews-body .comment-form-author label,
.ac-reviews-body .comment-form-email label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-bottom: 6px;
  font-family: var(--sans);
}
.ac-reviews-body .comment-form-rating { margin-bottom: 18px; }
.ac-reviews-body p.stars {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ac-reviews-body p.stars a {
  font-size: 0;
  width: 22px;
  height: 22px;
  display: inline-block;
  text-decoration: none;
  position: relative;
}
.ac-reviews-body p.stars a::before {
  content: "\2605";
  font-size: 20px;
  line-height: 22px;
  color: rgba(255,255,255,.28);
  position: absolute;
  inset: 0;
}
/* WooCommerce solo añade .active a la estrella clicada, no a las
   anteriores (confirmado en el DOM real). :has() tiñe también toda
   estrella que tenga una .active más adelante en la lista, para que
   la selección se vea acumulativa (1-2-3-4 en vez de solo la 4ª). */
.ac-reviews-body p.stars a:hover::before,
.ac-reviews-body p.stars a.active::before,
.ac-reviews-body p.stars a:has(~ a.active)::before {
  color: var(--acid);
}
.ac-reviews-body p.stars a:hover ~ a::before {
  color: rgba(255,255,255,.28);
}
.ac-reviews-body textarea,
.ac-reviews-body input[type="text"],
.ac-reviews-body input[type="email"] {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  color: #ffffff;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  box-sizing: border-box;
}
.ac-reviews-body textarea {
  min-height: 110px;
  resize: vertical;
}
.ac-reviews-body .form-submit {
  margin-top: 18px;
}
.ac-reviews-body .form-submit #submit {
  background: var(--acid);
  color: #041008;
  border: none;
  padding: 13px 26px;
  border-radius: var(--radius-button, 8px);
  font-weight: 700;
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
.ac-reviews-body .form-submit #submit:hover {
  background: #50ff35;
}
.ac-reviews-body .comment-notes,
.ac-reviews-body .comment-form-cookies-consent label {
  color: rgba(255,255,255,.55);
  font-size: 12.5px;
}
.ac-reviews-body p { margin: 0 0 14px; }

@media (max-width: 640px) {
  .ac-reviews { padding: 44px 0; }
}
