/* ==========================================================================
   Miss Cuquerías — estilos del tema (maqueta v1)
   Se encola desde inc/enqueue.php.
   ========================================================================== */

/* Clases que genera WordPress */
.alignleft{float:left;margin:0 var(--s-5,1.5rem) var(--s-4,1rem) 0}.alignright{float:right;margin:0 0 var(--s-4,1rem) var(--s-5,1.5rem)}.aligncenter{display:block;margin-inline:auto}
.wp-caption,.wp-caption-text,.gallery-caption,.sticky,.bypostauthor{max-width:100%}

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --rosa: #E85C75;          /* rosa de marca: logo, detalles, fondos de acento */
  --rosa-intenso: #CF3D59;  /* rosa de banda con texto blanco (contraste 4,7:1) */
  --rosa-hilo: #B5324F;     /* rosa oscuro: botones y enlaces (contraste AA) */
  --rubor: #FCEEF0;         /* fondo suave para bandas */
  --papel: #FBFAF6;         /* crema de marca, solo en el pie */
  --hilo-azul: #1F3C8C;     /* hilo de bordado (estampado Claudia) */
  --tinta: #171C19;         /* texto */
  --tinta-suave: #5B5658;   /* texto secundario */
  --linea: #EADCDF;         /* bordes y separadores */
  --blanco: #FFFFFF;

  /* Tipografía */
  --f-titulo: "Young Serif", Georgia, serif;
  --f-texto: "Nunito", system-ui, sans-serif;
  --f-bordado: "Schoolbell", "Comic Sans MS", cursive; /* solo para bordados */

  --t-xs: .8125rem;   /* 13 */
  --t-s: .9375rem;    /* 15 */
  --t-m: 1.0625rem;   /* 17 cuerpo */
  --t-l: 1.3125rem;   /* 21 */
  --t-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --t-xxl: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);

  /* Espacio */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6.5rem;

  --ancho: 1240px;
  --gutter: 16px;
  --radio: 14px;
  --radio-s: 8px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--tinta);
  font: 400 var(--t-m)/1.6 var(--f-texto);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rosa-hilo); text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--f-titulo); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--hilo-azul); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { /* misma clase que usa WordPress */
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; z-index: 100; top: 8px; left: 8px;
  background: var(--blanco); padding: var(--s-2) var(--s-4); border-radius: var(--radio-s);
}
.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--gutter); }
.icono { width: 24px; height: 24px; flex: none; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  border: 2px solid var(--rosa-hilo); border-radius: 999px;
  background: var(--rosa-hilo); color: var(--blanco);
  font-weight: 800; font-size: var(--t-s); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.boton:hover { background: #962841; border-color: #962841; }
.boton--linea { background: transparent; color: var(--rosa-hilo); }
.boton--linea:hover { background: var(--rosa-hilo); color: var(--blanco); }
.boton[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Barra de avisos ---------- */
.aviso {
  display: grid; justify-items: center;
  background: var(--rosa); color: var(--blanco);
  font-size: var(--t-xs); font-weight: 700; text-align: center;
  padding: var(--s-2) var(--gutter);
}
/* Móvil: los tres avisos se turnan en la misma línea */
.aviso li { grid-area: 1 / 1; opacity: 0; animation: aviso 12s infinite; }
.aviso li:nth-child(2) { animation-delay: 4s; }
.aviso li:nth-child(3) { animation-delay: 8s; }
@keyframes aviso { 0%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@media (min-width: 900px) {
  .aviso { display: flex; justify-content: center; gap: var(--s-7); }
  .aviso li { opacity: 1; animation: none; }
}
@media (prefers-reduced-motion: reduce) { .aviso li:first-child { opacity: 1; } }

/* ---------- Cabecera (header.php) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}
.site-header__fila {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 64px; gap: var(--s-4);
}
.site-branding img { height: 30px; width: auto; }
.site-header__acciones { display: flex; justify-content: flex-end; gap: var(--s-1); }
.icono-boton {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: none; color: var(--tinta); cursor: pointer; text-decoration: none;
}
.icono-boton:hover { background: var(--rubor); }
.carrito-contador {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--rosa); color: var(--blanco);
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.menu-toggle { justify-self: start; }
.site-header .site-branding { justify-self: center; }
.solo-escritorio { display: none; }

/* Navegación de escritorio */
.main-navigation { display: none; }
@media (min-width: 1024px) {
  .menu-toggle, .site-header .icono-boton--buscar-movil { display: none; }
  .solo-escritorio { display: inline-grid; }
  .site-header__fila { grid-template-columns: auto 1fr auto; min-height: 76px; }
  .site-header .site-branding { justify-self: start; }
  .site-branding img { height: 36px; }
  .main-navigation { display: block; justify-self: center; }
  .main-navigation > .menu { display: flex; gap: var(--s-1); }
  .main-navigation .menu-item { position: relative; }
  .main-navigation .menu-item > a {
    position: relative; display: block; padding: var(--s-3);
    color: var(--tinta); font-weight: 700; font-size: var(--t-s); text-decoration: none;
  }
  /* Subrayado fino rosa: aparece al pasar el ratón, con el foco o en la página actual */
  .main-navigation .menu-item > a::after {
    content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 6px; height: 2px;
    background: var(--rosa-hilo); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
  }
  .main-navigation .menu-item:hover > a::after,
  .main-navigation .menu-item:focus-within > a::after,
  .main-navigation .current-menu-item > a::after,
  .main-navigation .current-menu-ancestor > a::after { transform: scaleX(1); }
  .main-navigation .sub-menu {
    position: absolute; top: 100%; left: var(--s-2); min-width: 210px;
    padding: var(--s-2) 0; background: var(--blanco);
    border: 1px solid var(--linea); border-radius: 4px;
    box-shadow: 0 8px 20px rgba(23, 28, 25, .08);
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity .15s, transform .15s, visibility .15s;
  }
  .main-navigation .menu-item:hover > .sub-menu,
  .main-navigation .menu-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
  .main-navigation .sub-menu a {
    display: block; padding: var(--s-2) var(--s-4);
    color: var(--tinta); text-decoration: none; font-size: var(--t-s);
  }
  .main-navigation .sub-menu a::after { display: none; }
  .main-navigation .sub-menu a:hover, .main-navigation .sub-menu a:focus-visible { color: var(--rosa-hilo); text-decoration: underline; text-underline-offset: 4px; }
  .main-navigation .menu-item--novedades > a { color: var(--rosa-hilo); }
}

/* Buscador desplegable */
.buscador {
  border-top: 1px solid var(--linea); padding-block: var(--s-3);
}
.buscador[hidden] { display: none; }
.buscador form { display: flex; gap: var(--s-2); }
.buscador input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--s-4);
  border: 1.5px solid var(--linea); border-radius: 999px; background: var(--blanco);
}
.buscador input:focus { border-color: var(--rosa-hilo); outline: none; }

/* Menú móvil (panel lateral) */
.menu-movil {
  position: fixed; inset: 0; z-index: 60; display: flex;
  visibility: hidden; pointer-events: none;
}
.menu-movil.is-open { visibility: visible; pointer-events: auto; }
.menu-movil__fondo { flex: 1; background: rgba(23, 28, 25, .4); opacity: 0; transition: opacity .2s; }
.menu-movil__panel {
  order: -1; width: min(86vw, 380px); height: 100%; overflow-y: auto;
  background: var(--blanco); padding: var(--s-4) var(--gutter) var(--s-7);
  transform: translateX(-100%); transition: transform .25s ease;
}
.menu-movil.is-open .menu-movil__fondo { opacity: 1; }
.menu-movil.is-open .menu-movil__panel { transform: none; }
.menu-movil__cabecera { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-4); }
.menu-movil__cabecera img { height: 28px; width: auto; }
.menu-movil details { border-bottom: 1px solid var(--linea); }
.menu-movil summary, .menu-movil .menu-movil__enlace {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 56px; font-weight: 800; color: var(--tinta); text-decoration: none; cursor: pointer; list-style: none;
}
.menu-movil summary::-webkit-details-marker { display: none; }
.menu-movil summary .icono { transition: transform .2s; }
.menu-movil details[open] summary .icono { transform: rotate(180deg); }
.menu-movil .menu-movil__enlace { border-bottom: 1px solid var(--linea); }
.menu-movil .sub-menu { padding-bottom: var(--s-3); }
.menu-movil .sub-menu a { display: block; padding: var(--s-2) 0 var(--s-2) var(--s-4); color: var(--tinta-suave); text-decoration: none; }

/* ---------- Secciones ---------- */
.seccion { padding-block: var(--s-8); }
.seccion--rubor { background: var(--rubor); }
.seccion__cabecera { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-6); }
.seccion__cabecera h2 { font-size: var(--t-xl); max-width: 22ch; }
.seccion__cabecera p { color: var(--tinta-suave); max-width: 46ch; }
.enlace-ver { margin-left: auto; font-weight: 800; font-size: var(--t-s); white-space: nowrap; }

/* ---------- Portada: hero con imagen de fondo ---------- */
/* Móvil: la foto ocupa la franja superior y se funde con el crema; el texto va debajo.
   Escritorio: la foto ocupa todo el bloque y el texto va encima, a la izquierda. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--papel); }
.hero__fondo {
  position: absolute; top: 0; left: 0; z-index: -2;
  width: 100%; height: 260px; object-fit: cover; object-position: 50% 55%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(251,250,246,0) 140px, var(--papel) 250px);
}
.hero__contenido { padding-block: 200px var(--s-6); }
.hero__lema { font-weight: 800; font-size: var(--t-s); color: var(--rosa-hilo); }
.hero__texto h1 { margin-top: var(--s-2); font-size: clamp(1.875rem, 1.3rem + 3vw, 3.5rem); max-width: 14ch; }
.hero__texto h1 + p { margin-top: var(--s-3); font-size: var(--t-m); line-height: 1.5; color: var(--tinta-suave); max-width: 34ch; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.hero .boton--linea:not(:hover) { background: rgba(255,255,255,.7); }
@media (min-width: 600px) and (max-width: 899px) {
  .hero__fondo { height: 380px; }
  .hero::after { background: linear-gradient(to bottom, rgba(251,250,246,0) 230px, var(--papel) 370px); }
  .hero__contenido { padding-top: 320px; }
}
@media (min-width: 900px) {
  .hero { display: flex; align-items: center; min-height: min(80vh, 760px); }
  .hero__fondo { height: 100%; object-position: 70% 50%; }
  .hero::after { background: linear-gradient(to right, rgba(251,250,246,.97) 0%, rgba(251,250,246,.9) 34%, rgba(251,250,246,0) 62%); }
  .hero__contenido { width: 100%; padding-block: var(--s-8); }
  .hero__texto { max-width: 520px; }
  .hero__lema { font-size: var(--t-m); }
  .hero__texto h1 { margin-top: var(--s-3); }
  .hero__texto h1 + p { margin-top: var(--s-5); font-size: var(--t-l); }
  .hero__acciones { margin-top: var(--s-6); }
}
.probador__texto > p + p { margin-top: var(--s-3); }
.taller__texto > p + p { margin-top: var(--s-3); }

/* ---------- Portada: categorías ---------- */
.categorias {
  display: grid; grid-auto-flow: column; grid-auto-columns: 42%;
  gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: var(--s-2);
  scrollbar-width: none; scroll-padding-inline: var(--gutter);
}
.categorias::-webkit-scrollbar { display: none; }
.categoria { scroll-snap-align: start; }
.categoria a { display: block; color: var(--tinta); text-decoration: none; }
.categoria img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radio); transition: transform .3s; }
.categoria__img { overflow: hidden; border-radius: var(--radio); }
.categoria a:hover img { transform: scale(1.03); }
.categoria h3 { margin-top: var(--s-3); font-size: var(--t-l); }
.categoria p { font-size: var(--t-xs); color: var(--tinta-suave); }
@media (min-width: 720px) { .categorias { grid-auto-columns: 28%; } }
@media (min-width: 1024px) {
  .categorias { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 0; padding: 0; }
}


/* ---------- Rejilla de productos (WooCommerce: ul.products) ---------- */
ul.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-4); }
@media (min-width: 900px) { ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); gap: var(--s-7) var(--s-5); } }
ul.products li.product { position: relative; }
.woocommerce-loop-product__link { display: block; color: var(--tinta); text-decoration: none; }
.woocommerce-loop-product__link .producto-img { overflow: hidden; border-radius: var(--radio); background: #F3EFEF; }
.woocommerce-loop-product__link img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .3s; }
.woocommerce-loop-product__link:hover img { transform: scale(1.03); }
.woocommerce-loop-product__title { margin-top: var(--s-3); font-family: var(--f-texto); font-size: var(--t-m); font-weight: 700; line-height: 1.3; }
ul.products .price { display: block; margin-top: var(--s-1); color: var(--tinta-suave); font-size: var(--t-s); }
.etiqueta-producto {
  position: absolute; top: var(--s-3); left: var(--s-3); z-index: 1;
  padding: 2px var(--s-3); border-radius: 999px; background: var(--blanco);
  font-size: var(--t-xs); font-weight: 800; color: var(--rosa-hilo);
}

/* ---------- Probador de bordado (componente reutilizable) ---------- */
.probador { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .probador { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.probador__texto h2 { font-size: var(--t-xl); }
.probador__texto > p { margin-top: var(--s-4); color: var(--tinta-suave); max-width: 44ch; }


.campo { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.campo label, .campo legend { font-weight: 800; font-size: var(--t-s); padding: 0; }
.campo input[type="text"], .campo input[type="email"] {
  width: 100%; min-height: 52px; padding: 0 var(--s-4);
  border: 1.5px solid var(--linea); border-radius: var(--radio-s); background: var(--blanco);
}
.campo input:focus { outline: none; border-color: var(--rosa-hilo); box-shadow: 0 0 0 3px rgba(181, 50, 79, .15); }
.campo__ayuda { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--tinta-suave); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

/* Píldoras de selección (tamaño, tela, tipo de bordado) */
.pildoras { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pildora input { position: absolute; opacity: 0; pointer-events: none; }
.pildora > span {
  display: flex; flex-direction: column; justify-content: center; min-height: 48px;
  padding: var(--s-2) var(--s-4); border: 1.5px solid var(--linea); border-radius: var(--radio-s);
  background: var(--blanco); cursor: pointer; font-weight: 700; font-size: var(--t-s); line-height: 1.3;
}
.pildora small { font-weight: 400; color: var(--tinta-suave); font-size: var(--t-xs); }
.pildora input:checked + span { border-color: var(--rosa-hilo); box-shadow: inset 0 0 0 1px var(--rosa-hilo); background: var(--rubor); }
.pildora input:focus-visible + span { outline: 2px solid var(--hilo-azul); outline-offset: 2px; }

/* ---------- Taller y valores ---------- */
.taller { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .taller { grid-template-columns: 5fr 6fr; gap: var(--s-8); align-items: center; } }
.taller img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radio); }
.taller h2 { font-size: var(--t-xl); }
.taller__texto > p { margin-top: var(--s-4); color: var(--tinta-suave); max-width: 52ch; }
/* Banda de valores: rosa intenso, iconos y texto en blanco */
.valores-banda { background: var(--rosa-intenso); color: var(--blanco); padding-block: var(--s-7); }
.valores { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-4); margin: 0; }
@media (min-width: 900px) { .valores-banda { padding-block: var(--s-8); } .valores { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); } }
.valor { display: grid; justify-items: center; text-align: center; }
.valor__icono { width: 72px; height: 72px; }
@media (min-width: 900px) { .valor__icono { width: 88px; height: 88px; } }
.valores dt { margin-top: var(--s-4); font-family: var(--f-titulo); font-size: var(--t-l); line-height: 1.15; color: var(--blanco); }
.valores dd { margin: var(--s-2) 0 0; max-width: 26ch; font-size: var(--t-s); color: var(--blanco); }

/* ---------- Preguntas frecuentes (acordeón animado) ---------- */
.faq__grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .faq__grid { grid-template-columns: 4fr 7fr; gap: var(--s-8); align-items: start; } .faq__intro { position: sticky; top: 110px; } }
.faq__intro h2 { font-size: var(--t-xl); }
.faq__intro p { margin-top: var(--s-4); color: var(--tinta-suave); max-width: 38ch; }
.faq__lista { display: grid; gap: var(--s-3); }

.faq__item {
  background: var(--blanco); border: 1.5px solid transparent; border-radius: var(--radio);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq__item:hover { box-shadow: 0 8px 24px rgba(120, 40, 60, .08); }
.faq__item[open]:not(.is-cerrando) { border-color: var(--rosa); box-shadow: 0 12px 30px rgba(120, 40, 60, .1); }

.faq__pregunta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 64px; padding: var(--s-4) var(--s-5);
  font-weight: 800; cursor: pointer; list-style: none; border-radius: var(--radio);
}
.faq__pregunta::-webkit-details-marker { display: none; }
.faq__pregunta:focus-visible { outline-offset: -2px; }

/* Icono +/− de los acordeones: la barra vertical gira y desaparece al abrir */
.icono-mas {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--rubor); transition: background-color .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.icono-mas::before, .icono-mas::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 2px; background: var(--rosa-hilo); transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.icono-mas::after { transform: rotate(90deg); }
details[open]:not(.is-cerrando) > summary .icono-mas { background: var(--rosa); transform: rotate(180deg); }
details[open]:not(.is-cerrando) > summary .icono-mas::before { background: var(--blanco); }
details[open]:not(.is-cerrando) > summary .icono-mas::after { transform: rotate(0deg); opacity: 0; }

.faq__respuesta { overflow: hidden; }
.faq__texto { padding: 0 var(--s-5) var(--s-5); color: var(--tinta-suave); max-width: 62ch; }
.faq__texto p + p { margin-top: var(--s-3); }

/* ---------- Pie (footer.php) ---------- */
.site-footer { background: var(--papel); border-top: 1px solid var(--linea); padding-top: var(--s-8); font-size: var(--t-s); }
.boletin { display: grid; gap: var(--s-4); padding-bottom: var(--s-7); border-bottom: 1px solid var(--linea); }
@media (min-width: 900px) { .boletin { grid-template-columns: 1fr 1fr; align-items: end; } }
.boletin h2 { font-size: var(--t-xl); }
.boletin p { color: var(--tinta-suave); margin-top: var(--s-2); }
.boletin form { display: flex; gap: var(--s-2); }
.boletin input { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--s-4); border: 1.5px solid var(--linea); border-radius: 999px; background: var(--blanco); }
.boletin input:focus { outline: none; border-color: var(--rosa-hilo); box-shadow: 0 0 0 3px rgba(181, 50, 79, .15); }
.boletin small { grid-column: 1 / -1; color: var(--tinta-suave); font-size: var(--t-xs); }
.pie__columnas { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); padding-block: var(--s-7); }
@media (min-width: 900px) { .pie__columnas { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.pie__marca img { height: 32px; width: auto; }
.pie__marca p { margin-top: var(--s-3); color: var(--tinta-suave); max-width: 30ch; }
.pie__columnas h2 { font-family: var(--f-texto); font-size: var(--t-s); font-weight: 800; margin-bottom: var(--s-3); }
.pie__columnas li + li { margin-top: var(--s-2); }
.pie__columnas a { color: var(--tinta); text-decoration: none; }
.pie__columnas a:hover { color: var(--rosa-hilo); text-decoration: underline; }
.pie__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-5); border-top: 1px solid var(--linea); color: var(--tinta-suave); font-size: var(--t-xs); }
.pie__legal ul { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.pie__legal a { color: inherit; }

/* ==========================================================================
   Categoría de producto (woocommerce/archive-product.php)
   ========================================================================== */
.cabecera-archivo { background: var(--rubor); padding-bottom: var(--s-6); margin-bottom: var(--s-6); }
.cabecera-archivo .page-title { font-size: var(--t-xxl); }
.subcategorias { display: flex; gap: var(--s-2); margin-top: var(--s-5); overflow-x: auto; scrollbar-width: none; }
.subcategorias::-webkit-scrollbar { display: none; }
.subcategorias a {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4);
  border: 1.5px solid var(--linea); border-radius: 999px; background: var(--blanco);
  color: var(--tinta); font-weight: 700; font-size: var(--t-s); text-decoration: none; white-space: nowrap;
  transition: border-color .2s, background-color .2s, color .2s;
}
.subcategorias a span { font-weight: 400; color: var(--tinta-suave); font-size: var(--t-xs); }
.subcategorias a:hover { border-color: var(--rosa); }
.subcategorias a[aria-current="page"] { background: var(--rosa-hilo); border-color: var(--rosa-hilo); color: var(--blanco); }
.subcategorias a[aria-current="page"] span { color: inherit; opacity: .85; }

.barra-tienda { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-6); }
.woocommerce-result-count { font-size: var(--t-s); color: var(--tinta-suave); }
.woocommerce-ordering select {
  min-height: 44px; padding: 0 var(--s-7) 0 var(--s-4);
  border: 1.5px solid var(--linea); border-radius: 999px; background: var(--blanco);
  font-weight: 700; font-size: var(--t-s); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23B5324F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.woocommerce-ordering select:focus-visible { outline: 2px solid var(--hilo-azul); outline-offset: 2px; }
.archive ul.products { padding-bottom: var(--s-8); }

/* Segunda foto del producto al pasar el ratón (solo dispositivos con ratón) */
.producto-img { position: relative; }
.woocommerce-loop-product__link .producto-img__alterna { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .4s ease, transform .3s; }
@media (hover: hover) {
  .woocommerce-loop-product__link:hover .producto-img__alterna { opacity: 1; }
}

/* ==========================================================================
   Ficha de producto (woocommerce/single-product.php)
   ========================================================================== */
.woocommerce-breadcrumb { padding-block: var(--s-4); font-size: var(--t-xs); color: var(--tinta-suave); }
.woocommerce-breadcrumb a { color: inherit; }

.product-layout { display: grid; gap: var(--s-6); padding-bottom: var(--s-8); }
@media (min-width: 900px) {
  .product-layout { grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: start; }
  .product-layout .woocommerce-product-gallery { position: sticky; top: 100px; }
}

/* Galería */
.woocommerce-product-gallery { margin-inline: calc(var(--gutter) * -1); }
.galeria__principal {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.galeria__principal::-webkit-scrollbar { display: none; }
.woocommerce-product-gallery__image { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.galeria__miniaturas { display: flex; justify-content: center; gap: var(--s-2); padding-top: var(--s-3); }
.galeria__miniaturas button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--linea); cursor: pointer;
}
.galeria__miniaturas button[aria-current="true"] { background: var(--rosa-hilo); }
.galeria__miniaturas img { display: none; }
@media (min-width: 900px) {
  .woocommerce-product-gallery { margin: 0; display: grid; grid-template-columns: 88px 1fr; gap: var(--s-4); }
  .galeria__principal { order: 2; border-radius: var(--radio); }
  .galeria__miniaturas { order: 1; flex-direction: column; justify-content: start; padding: 0; }
  .galeria__miniaturas button { width: 88px; height: 110px; border-radius: var(--radio-s); overflow: hidden; opacity: .6; outline: 2px solid transparent; outline-offset: 2px; }
  .galeria__miniaturas button[aria-current="true"] { opacity: 1; outline-color: var(--rosa-hilo); background: none; }
  .galeria__miniaturas img { display: block; width: 100%; height: 100%; object-fit: cover; }
}

/* Resumen */
.summary .product_title { font-size: var(--t-xxl); }
.summary > .price { display: block; margin-top: var(--s-4); font-size: var(--t-l); font-weight: 800; }
.woocommerce-product-details__short-description { margin-top: var(--s-6); color: var(--tinta-suave); max-width: 52ch; font-size: var(--t-s); }
.woocommerce-product-details__short-description ul { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.woocommerce-product-details__short-description strong { color: var(--tinta); }
.opcion { margin-top: var(--s-6); }
.opcion__titulo { display: flex; justify-content: space-between; gap: var(--s-3); font-weight: 800; font-size: var(--t-s); margin-bottom: var(--s-3); }
.opcion__titulo span { font-weight: 400; color: var(--tinta-suave); }


.pildoras--tamano .pildora { flex: 1; }

.totales { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--linea); font-size: var(--t-s); }
.totales div { display: flex; justify-content: space-between; padding-block: 2px; color: var(--tinta-suave); }
.totales .totales__general { color: var(--tinta); font-weight: 800; font-size: var(--t-m); }
.totales [data-total-general] { transform-origin: right center; }

form.cart .acciones-compra { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.quantity { display: flex; align-items: center; border: 1.5px solid var(--linea); border-radius: 999px; }
.quantity button { width: 44px; height: 48px; border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--tinta); }
.quantity input { width: 32px; border: 0; text-align: center; font-weight: 800; background: none; -moz-appearance: textfield; }
.quantity input::-webkit-inner-spin-button { -webkit-appearance: none; }
.single_add_to_cart_button { flex: 1; }

.garantias { display: grid; gap: var(--s-2); margin-top: var(--s-5); font-size: var(--t-s); }
.garantias li { display: flex; gap: var(--s-3); align-items: center; }
.garantias .icono { color: var(--rosa); width: 22px; height: 22px; }

/* Pestañas como acordeón (woocommerce-tabs) */
.woocommerce-tabs { margin-top: var(--s-6); border-top: 1px solid var(--linea); }
.woocommerce-tabs details { border-bottom: 1px solid var(--linea); }
.woocommerce-tabs summary {
  display: flex; justify-content: space-between; align-items: center; min-height: 60px;
  font-weight: 800; cursor: pointer; list-style: none;
}
.woocommerce-tabs summary::-webkit-details-marker { display: none; }
.woocommerce-tabs summary { transition: color .25s ease; }
.woocommerce-tabs details[open]:not(.is-cerrando) > summary { color: var(--rosa-hilo); }
.woocommerce-tabs .acordeon__panel { overflow: hidden; }
.woocommerce-Tabs-panel { padding-bottom: var(--s-5); color: var(--tinta-suave); font-size: var(--t-s); }
.woocommerce-Tabs-panel p + p, .woocommerce-Tabs-panel p + ul, .woocommerce-Tabs-panel ul + p { margin-top: var(--s-3); }
.woocommerce-Tabs-panel ul { list-style: disc; padding-left: 1.2em; }
.woocommerce-Tabs-panel h3 { font-family: var(--f-texto); font-size: var(--t-s); font-weight: 800; color: var(--tinta); margin: var(--s-5) 0 var(--s-2); }
.woocommerce-Tabs-panel h3:first-child { margin-top: 0; }
.woocommerce-Tabs-panel table { width: 100%; border-collapse: collapse; }
.woocommerce-Tabs-panel th, .woocommerce-Tabs-panel td { text-align: left; padding: var(--s-2) 0; border-bottom: 1px solid var(--linea); }

/* Barra fija de compra en móvil */
.barra-compra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: var(--blanco); border-top: 1px solid var(--linea);
  box-shadow: 0 -8px 24px rgba(120, 40, 60, .08);
  transform: translateY(110%); transition: transform .25s;
}
.barra-compra.is-visible { transform: none; }
.barra-compra strong { display: block; font-size: var(--t-m); }
.barra-compra small { color: var(--tinta-suave); font-size: var(--t-xs); }
@media (min-width: 900px) { .barra-compra { display: none; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Personalización (portada) ---------- */
.personalizacion__img { margin: 0; }
.personalizacion__img img { width: 100%; max-width: 460px; margin-inline: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radio); }
.probador__texto > p + p { margin-top: var(--s-3); }
.campo label span { font-weight: 400; color: var(--tinta-suave); }

/* ==========================================================================
   Contacto (page-contacto.php)
   ========================================================================== */
.contacto__intro { margin-top: var(--s-4); max-width: 60ch; color: var(--tinta-suave); }
.contacto__grid { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .contacto__grid { grid-template-columns: 7fr 4fr; gap: var(--s-8); align-items: start; } }
.contacto__form h2 { font-size: var(--t-xl); }
.contacto__form form { max-width: 620px; }
.contacto__form .campo input[type="tel"],
.contacto__form .campo textarea {
  width: 100%; padding: 0 var(--s-4);
  border: 1.5px solid var(--linea); border-radius: var(--radio-s); background: var(--blanco);
}
.contacto__form .campo input[type="tel"] { min-height: 52px; }
.contacto__form .campo textarea { padding-block: var(--s-3); resize: vertical; min-height: 150px; }
.contacto__form .campo textarea:focus,
.contacto__form .campo input[type="tel"]:focus { outline: none; border-color: var(--rosa-hilo); box-shadow: 0 0 0 3px rgba(181, 50, 79, .15); }
.contacto__acepto { display: flex; align-items: center; gap: var(--s-3); margin-block: var(--s-5); font-size: var(--t-s); }
.contacto__acepto input { width: 20px; height: 20px; accent-color: var(--rosa-hilo); flex: none; }
.contacto__datos { background: var(--rubor); border-radius: var(--radio); padding: var(--s-6); }
@media (min-width: 900px) { .contacto__datos { position: sticky; top: 100px; } }
.contacto__datos dl { display: grid; gap: var(--s-5); }
.contacto__datos dt { font-size: var(--t-s); color: var(--tinta-suave); }
.contacto__datos dd { margin: var(--s-1) 0 0; font-family: var(--f-titulo); font-size: var(--t-l); overflow-wrap: anywhere; }
.contacto__datos dd a { color: var(--tinta); text-decoration-color: var(--rosa); text-underline-offset: 4px; }
.contacto__datos dd a:hover { color: var(--rosa-hilo); }
.contacto__lema { margin-block: var(--s-6) var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--linea); color: var(--tinta-suave); }
.contacto__cabecera { display: grid; gap: var(--s-5); align-items: center; padding-top: var(--s-4); }
.contacto__foto { margin: 0; }
.contacto__foto img { width: 100%; max-width: 420px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radio); }
@media (min-width: 900px) {
  .contacto__cabecera { grid-template-columns: 7fr 4fr; gap: var(--s-8); }
  .contacto__foto img { max-width: none; }
}
.contacto__datos-foto { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radio-s); margin-bottom: var(--s-5); }
.contacto__aviso { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--radio-s); font-weight: 700; }
.contacto__aviso--ok { background: #E9F5EC; color: #1E5B32; }
.contacto__aviso--error { background: var(--rubor); color: #8C1F38; }

/* ---------- Ficha: ajustes para el marcado real de WooCommerce ---------- */
.summary .woocommerce-variation-add-to-cart,
.summary form.cart:not(.variations_form) { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.summary .single_variation_wrap .woocommerce-variation-price,
.summary .single_variation_wrap .woocommerce-variation-description { display: none; }
.summary .woocommerce-variation-availability { margin-top: var(--s-3); font-size: var(--t-s); color: var(--tinta-suave); }
.summary .stock.out-of-stock { color: #8C1F38; font-weight: 700; }
.summary .reset_variations { display: none !important; }
.single_add_to_cart_button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border: 2px solid var(--rosa-hilo); border-radius: 999px;
  background: var(--rosa-hilo); color: var(--blanco); font-weight: 800; font-size: var(--t-s); cursor: pointer;
}
.single_add_to_cart_button:hover { background: #962841; border-color: #962841; }
.single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }
.pildora input:disabled + span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.pildora small .woocommerce-Price-amount { font-weight: 400; }
.woocommerce-product-gallery.images { float: none; width: auto; }
.woocommerce-breadcrumb { padding-block: var(--s-4); }
@media (min-width: 900px) { .woocommerce-product-gallery.galeria--una { display: block; } }
/* Una sola foto: sin columna de miniaturas */
@media (min-width: 900px) { .woocommerce-product-gallery:not(:has(.galeria__miniaturas)) { display: block; } }

/* ---------- Avisos de WooCommerce (añadido al carrito, errores, información) ---------- */
.woocommerce-notices-wrapper:not(:empty) { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
  margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4); list-style: none;
  background: var(--rubor); border-left: 4px solid var(--rosa); border-radius: var(--radio-s);
  font-size: var(--t-s); line-height: 1.5;
}
.woocommerce-error { border-left-color: var(--rosa-hilo); }
.woocommerce-error li { flex: 1 1 100%; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-message .wc-forward {
  order: 2; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 var(--s-4);
  border: 2px solid var(--rosa-hilo); border-radius: 999px; background: var(--rosa-hilo); color: var(--blanco);
  font-weight: 800; font-size: var(--t-s); text-decoration: none; white-space: nowrap;
}
.woocommerce-message .button:hover, .woocommerce-info .button:hover { background: #962841; border-color: #962841; }

/* Existencias en la ficha */
.summary .stock { margin-top: var(--s-2); font-size: var(--t-s); color: var(--tinta-suave); }
.summary .stock.in-stock { color: var(--tinta-suave); }
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery > .etiqueta-producto { top: var(--s-3); left: calc(var(--gutter) + var(--s-3)); }
@media (min-width: 900px) { .woocommerce-product-gallery > .etiqueta-producto { left: calc(88px + var(--s-4) + var(--s-3)); } .woocommerce-product-gallery.galeria--una > .etiqueta-producto, .woocommerce-product-gallery:not(:has(.galeria__miniaturas)) > .etiqueta-producto { left: var(--s-3); } }
/* Red de seguridad: la etiqueta por defecto de WooCommerce nunca debe ocupar una celda de la rejilla */
.product-layout > .onsale { display: none; }

/* Precio rebajado: el antiguo tachado y en gris, el nuevo destacado y sin subrayar */
.price del { color: var(--tinta-suave); font-weight: 400; opacity: .8; margin-right: var(--s-1); }
.price ins { text-decoration: none; font-weight: 800; color: var(--rosa-hilo); }

/* ==========================================================================
   Páginas de texto y de WooCommerce (carrito, finalizar compra, Mi cuenta)
   No hay maqueta propia: solo se aplican tipografía, colores, botones y campos de la marca.
   ========================================================================== */

/* Páginas genéricas (aviso legal, política de privacidad, carrito…) */
.entry-header { padding-block: var(--s-6) var(--s-5); }
.entry-title { font-size: var(--t-xxl); }
.entry-content { padding-bottom: var(--s-8); }
.entry-content > :where(p, ul, ol, h2, h3, h4) { max-width: 70ch; }
.entry-content :where(p, ul, ol) + :where(p, ul, ol, h2, h3) { margin-top: var(--s-4); }
.entry-content h2 { font-size: var(--t-xl); margin-top: var(--s-6); }
.entry-content h3 { font-size: var(--t-l); margin-top: var(--s-5); }
.entry-content :where(ul, ol) { padding-left: 1.3em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content .wp-block-woocommerce-cart,
.entry-content .wp-block-woocommerce-checkout { max-width: none; }

/* --- Bloques de WooCommerce: carrito y finalizar compra --- */
.wc-block-components-button:not(.is-link) {
  min-height: 48px; border: 2px solid var(--rosa-hilo); border-radius: 999px;
  background: var(--rosa-hilo); color: var(--blanco);
  font-family: var(--f-texto); font-weight: 800; font-size: var(--t-s);
}
.wc-block-components-button:not(.is-link):hover:not(:disabled) { background: #962841; border-color: #962841; color: var(--blanco); }
.wc-block-components-button:not(.is-link):focus-visible { outline: 2px solid var(--hilo-azul); outline-offset: 3px; }
.wc-block-components-button .wc-block-components-button__text { color: inherit; }

.wc-block-cart-items th, .wc-block-cart__totals-title, .wc-block-components-totals-wrapper .wc-block-components-title,
.wc-block-components-order-summary__button-text {
  text-transform: none; letter-spacing: 0; font-weight: 800; color: var(--tinta-suave); font-size: var(--t-s);
}
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { border-radius: var(--radio-s); }
.wc-block-components-product-name { color: var(--tinta); font-weight: 700; text-decoration: none; }
.wc-block-components-product-name:hover { color: var(--rosa-hilo); text-decoration: underline; }
.wc-block-components-product-price, .wc-block-components-totals-item__value { font-weight: 800; }
.wc-block-components-sale-badge { border-color: var(--rosa); color: var(--rosa-hilo); border-radius: 999px; }
.wc-block-components-quantity-selector { border-radius: 999px; border-color: var(--linea); }
.wc-block-components-quantity-selector::after { border-radius: 999px; border-color: var(--linea); }

.wc-block-components-text-input input, .wc-block-components-textarea, .wc-block-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .components-combobox-control input, .wc-block-components-address-form select {
  border: 1.5px solid var(--linea); border-radius: var(--radio-s); background: var(--blanco); font-family: var(--f-texto);
}
.wc-block-components-text-input input:focus, .wc-block-components-textarea:focus {
  border-color: var(--rosa-hilo); box-shadow: 0 0 0 3px rgba(181, 50, 79, .15); outline: none;
}
.wc-block-components-radio-control__input:checked, .wc-block-components-checkbox__input:checked { accent-color: var(--rosa-hilo); }
.wc-block-components-radio-control__option-checked, .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
  box-shadow: inset 0 0 0 1.5px var(--rosa-hilo);
}
.wc-block-components-notice-banner { border-radius: var(--radio-s); font-family: var(--f-texto); }
.wc-block-components-notice-banner.is-info, .wc-block-components-notice-banner.is-success { background: var(--rubor); border-color: var(--rosa); color: var(--tinta); }
.wc-block-components-notice-banner.is-error { border-color: var(--rosa-hilo); }
.wc-block-components-totals-coupon-link, .wc-block-components-checkbox a, .wc-block-components-panel__button { color: var(--rosa-hilo); }

/* --- Carrito y Mi cuenta clásicos (si alguna página usa los shortcodes): con el CSS de WooCommerce activo --- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s-5);
  border: 2px solid var(--rosa-hilo); border-radius: 999px; background: var(--rosa-hilo); color: var(--blanco);
  font-family: var(--f-texto); font-weight: 800; font-size: var(--t-s); text-decoration: none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: #962841; border-color: #962841; color: var(--blanco); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  min-height: 48px; padding: 0 var(--s-4); border: 1.5px solid var(--linea); border-radius: var(--radio-s); font-family: var(--f-texto);
}
.woocommerce form .form-row textarea { padding-block: var(--s-3); }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus {
  border-color: var(--rosa-hilo); box-shadow: 0 0 0 3px rgba(181, 50, 79, .15); outline: none;
}
body .woocommerce-message, body .woocommerce-info, body .woocommerce-error { background: var(--rubor); color: var(--tinta); border-top: 0; }
body .woocommerce-message::before, body .woocommerce-info::before, body .woocommerce-error::before { display: none; }

.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.woocommerce-MyAccount-navigation a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4);
  border: 1.5px solid var(--linea); border-radius: 999px; color: var(--tinta); font-weight: 700; font-size: var(--t-s); text-decoration: none;
}
.woocommerce-MyAccount-navigation .is-active a { background: var(--rosa-hilo); border-color: var(--rosa-hilo); color: var(--blanco); }
@media (min-width: 900px) {
  .woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: var(--s-7); align-items: start; }
  .woocommerce-MyAccount-navigation ul { flex-direction: column; flex-wrap: nowrap; margin-bottom: 0; }
}

/* Mi cuenta: menú a la izquierda y contenido a la derecha, sin los puntos de la lista ni los flotados de WooCommerce */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin-top: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .woocommerce-account .woocommerce-MyAccount-navigation { grid-column: 1; }
  .woocommerce-account .woocommerce-MyAccount-content { grid-column: 2; min-width: 0; }
}

/* Finalizar compra: los campos de los bloques llevan un selector muy específico; se refuerza para que mande el borde de la marca */
.wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type],
.wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-textarea,
.wp-block-woocommerce-checkout .wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__select,
.wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-combobox .components-combobox-control input[type] {
  border: 1.5px solid var(--linea); border-radius: var(--radio-s);
}
.wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type]:focus,
.wp-block-woocommerce-checkout .wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-combobox .components-combobox-control input[type]:focus {
  border-color: var(--rosa-hilo); box-shadow: 0 0 0 3px rgba(181, 50, 79, .15); outline: none;
}
.wc-block-components-order-summary-item__quantity { background: var(--rosa-hilo); color: var(--blanco); border-color: var(--blanco); }

/* ==========================================================================
   Bordado: campos de Advanced Product Fields (clases wapf-*) con el estilo de .campo
   ========================================================================== */
.wapf-wrapper { margin-top: var(--s-6); }
.wapf-field-container { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.wapf-field-container:first-child { margin-top: 0; }
.wapf-field-label label, .wapf-field-label { font-weight: 800; font-size: var(--t-s); }
.wapf-field-label .wapf-pricing-hint, .wapf-field-label .wapf-price, .wapf-field-label small { font-weight: 400; color: var(--tinta-suave); }
.wapf-field-label .wapf-required { color: var(--rosa-hilo); }
.wapf-field-input input[type="text"], .wapf-field-input input[type="number"], .wapf-field-input input[type="email"],
.wapf-field-input textarea, .wapf-field-input select, .wapf-input {
  width: 100%; min-height: 52px; padding: 0 var(--s-4);
  border: 1.5px solid var(--linea); border-radius: var(--radio-s); background: var(--blanco);
  font-family: var(--f-texto); font-size: var(--t-m); color: var(--tinta);
}
.wapf-field-input textarea { padding-block: var(--s-3); min-height: 110px; }
.wapf-field-input input:focus, .wapf-field-input textarea:focus, .wapf-field-input select:focus, .wapf-input:focus {
  outline: none; border-color: var(--rosa-hilo); box-shadow: 0 0 0 3px rgba(181, 50, 79, .15);
}
.wapf-field-description, .wapf-description { font-size: var(--t-xs); color: var(--tinta-suave); }
.wapf-field-input .wapf-checkable label, .wapf-checkable label { font-weight: 400; }
.wapf-field-input input[type="checkbox"], .wapf-field-input input[type="radio"] { accent-color: var(--rosa-hilo); }

/* Totales del producto (como .totales de la maqueta) */
.wapf-product-totals { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--linea); font-size: var(--t-s); color: var(--tinta-suave); }
.wapf-product-totals div { display: flex; justify-content: space-between; padding-block: 2px; }
.wapf-product-totals .wapf-total-final, .wapf-product-totals .wapf-grand-total { color: var(--tinta); font-weight: 800; font-size: var(--t-m); }

/* Totales del bordado: una línea por total (etiqueta a la izquierda, importe a la derecha) */
.wapf-product-totals, .wapf-product-totals div:has(> div) { display: grid; grid-template-columns: 1fr; gap: 2px; }
.wapf-product-totals div:not(:has(> div)) { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }

/* El acordeón compensa el scroll a mano (assets/js/main.js): el navegador no debe hacerlo también */
[data-acordeon], [data-acordeon] * { overflow-anchor: none; }

/* ---------- 404 ---------- */
.error-404 .contacto__cabecera { padding-top: var(--s-6); }
.buscador-404 { display: flex; gap: var(--s-2); margin-top: var(--s-5); max-width: 460px; }
.buscador-404 input[type="search"] {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--s-4);
  border: 1.5px solid var(--linea); border-radius: 999px; background: var(--blanco);
}
.buscador-404 input[type="search"]:focus { border-color: var(--rosa-hilo); outline: none; box-shadow: 0 0 0 3px rgba(181, 50, 79, .15); }
.error-404 .hero__acciones { margin-top: var(--s-5); }
.subcategorias--ajustadas { flex-wrap: wrap; overflow: visible; }
.seccion h2 + .subcategorias { margin-top: var(--s-4); }

/* ---------- Pie: redes sociales ---------- */
.site-footer .redes { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.site-footer .redes li + li { margin-top: 0; }
.site-footer .redes a {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1.5px solid var(--linea); border-radius: 50%; background: var(--blanco); color: var(--tinta);
  transition: color .2s, border-color .2s;
}
.site-footer .redes a:hover { color: var(--rosa-hilo); border-color: var(--rosa); text-decoration: none; }
.pie__telefono { margin-top: var(--s-4); }
