/*
Theme Name:   Almibares 593
Theme URI:    https://almibares593.com
Description:  Tema hijo de Hello Elementor con el sistema de diseño «Feria» de Almibares 593.
Author:       Almibares 593
Template:     hello-elementor
Version:      1.0.0
Text Domain:  almibares
*/

/* ============================================================
   SISTEMA DE DISEÑO «FERIA» — Almibares 593
   Derivado del logo: contornos gruesos, sombras duras,
   lenguaje de pegatina y arcoíris estructural.
   ============================================================ */

:root {
  /* ---- Color: base ---- */
  --alm-ink:          #2C1233;  /* morado del borde del logo */
  --alm-ink-soft:     #6B4470;
  --alm-paper:        #FFFDF5;  /* crema cálido */
  --alm-white:        #FFFFFF;

  /* ---- Color: marca ---- */
  --alm-yellow:       #FCDA00;
  --alm-yellow-lt:    #FFF0B8;
  --alm-magenta:      #E0246B;
  --alm-magenta-lt:   #FFD9E6;
  --alm-red:          #E41728;
  --alm-orange:       #FD8A22;
  --alm-orange-lt:    #FFE1C4;
  --alm-green:        #3FAE49;
  --alm-green-lt:     #D8F0DC;
  --alm-blue:         #2BA9E0;

  /* ---- Color: semántico ---- */
  --alm-price:        var(--alm-magenta);
  --alm-success:      var(--alm-green);
  --alm-sale:         var(--alm-red);

  /* ---- Tipografía ---- */
  --alm-font-display: 'Baloo 2', system-ui, sans-serif;
  --alm-font-body:    'Archivo', system-ui, -apple-system, sans-serif;

  --alm-fs-hero:      clamp(2.1rem, 5vw, 3.6rem);
  --alm-fs-h1:        clamp(1.9rem, 4vw, 3rem);
  --alm-fs-h2:        clamp(1.55rem, 3vw, 2.1rem);
  --alm-fs-h3:        clamp(1.25rem, 2.2vw, 1.6rem);
  --alm-fs-body:      1.0625rem;
  --alm-fs-sm:        0.875rem;
  --alm-fs-xs:        0.75rem;

  /* ---- Lenguaje «sticker» ---- */
  --alm-border:       3px solid var(--alm-ink);
  --alm-border-thin:  2px solid var(--alm-ink);
  --alm-shadow:       4px 4px 0 var(--alm-ink);
  --alm-shadow-sm:    3px 3px 0 var(--alm-ink);
  --alm-shadow-lg:    6px 6px 0 var(--alm-ink);
  --alm-shadow-press: 1px 1px 0 var(--alm-ink);

  /* ---- Radios ---- */
  --alm-radius:       16px;
  --alm-radius-sm:    10px;
  --alm-radius-pill:  100px;

  /* ---- Espaciado ---- */
  --alm-space-xs:     0.5rem;
  --alm-space-sm:     1rem;
  --alm-space:        1.5rem;
  --alm-space-lg:     2.5rem;
  --alm-space-xl:     4rem;

  /* ---- Transiciones ---- */
  --alm-ease:         cubic-bezier(.2,.8,.2,1);
  --alm-t-fast:       .14s var(--alm-ease);
}

/* ============================================================
   BASE
   ============================================================ */
body {
  font-family: var(--alm-font-body);
  font-size: var(--alm-fs-body);
  line-height: 1.6;
  color: var(--alm-ink);
  background: var(--alm-paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5,
.alm-display {
  font-family: var(--alm-font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--alm-ink);
}

h1 { font-size: var(--alm-fs-h1); }
h2 { font-size: var(--alm-fs-h2); }
h3 { font-size: var(--alm-fs-h3); }

a { color: var(--alm-magenta); }

/* ============================================================
   COMPONENTE: banda de arcoíris (divisor estructural)
   ============================================================ */
.alm-bands {
  display: flex;
  height: 13px;
  width: 100%;
}
.alm-bands > i { flex: 1; display: block; }
.alm-bands > i:nth-child(1) { background: var(--alm-red); }
.alm-bands > i:nth-child(2) { background: var(--alm-orange); }
.alm-bands > i:nth-child(3) { background: var(--alm-yellow); }
.alm-bands > i:nth-child(4) { background: var(--alm-green); }
.alm-bands > i:nth-child(5) { background: var(--alm-blue); }
.alm-bands > i:nth-child(6) { background: var(--alm-magenta); }
.alm-bands--reverse { flex-direction: row-reverse; }
.alm-bands--slim { height: 7px; }

/* ============================================================
   COMPONENTE: botón sticker
   ============================================================ */
.alm-btn {
  display: inline-block;
  font-family: var(--alm-font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.75rem 1.65rem;
  border: var(--alm-border);
  border-radius: var(--alm-radius-pill);
  box-shadow: var(--alm-shadow);
  background: var(--alm-white);
  color: var(--alm-ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--alm-t-fast), box-shadow var(--alm-t-fast);
}
.alm-btn:hover,
.alm-btn:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: var(--alm-shadow-press);
  color: var(--alm-ink);
}
.alm-btn:active { transform: translate(4px, 4px); box-shadow: none; }

.alm-btn--primary { background: var(--alm-magenta); color: #fff; }
.alm-btn--primary:hover { color: #fff; }
.alm-btn--accent  { background: var(--alm-yellow); }
.alm-btn--ink     { background: var(--alm-ink); color: var(--alm-yellow); }
.alm-btn--ink:hover { color: var(--alm-yellow); }
.alm-btn--sm { font-size: 0.875rem; padding: 0.5rem 1.1rem; box-shadow: var(--alm-shadow-sm); }
.alm-btn--block { display: block; width: 100%; text-align: center; }

/* ============================================================
   COMPONENTE: sticker / badge
   ============================================================ */
.alm-sticker {
  display: inline-block;
  font-family: var(--alm-font-display);
  font-weight: 800;
  font-size: 0.8125rem;
  padding: 0.3rem 0.85rem;
  background: var(--alm-yellow);
  border: var(--alm-border);
  border-radius: var(--alm-radius-pill);
  box-shadow: var(--alm-shadow-sm);
  transform: rotate(-2.2deg);
}
.alm-sticker--magenta { background: var(--alm-magenta); color: #fff; }
.alm-sticker--ink     { background: var(--alm-ink); color: var(--alm-yellow); }
.alm-sticker--flat    { transform: none; }

/* ============================================================
   COMPONENTE: tarjeta
   ============================================================ */
.alm-card {
  background: var(--alm-white);
  border: var(--alm-border);
  border-radius: var(--alm-radius);
  box-shadow: var(--alm-shadow-lg);
  overflow: hidden;
  transition: transform var(--alm-t-fast), box-shadow var(--alm-t-fast);
}
.alm-card:hover {
  transform: translate(3px, 3px);
  box-shadow: var(--alm-shadow-sm);
}
.alm-card__media {
  position: relative;
  border-bottom: var(--alm-border);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--alm-yellow-lt);
}
.alm-card__body { padding: 1rem 1rem 1.15rem; }
.alm-card__title {
  font-family: var(--alm-font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.2rem;
}
.alm-card__sub {
  font-size: var(--alm-fs-sm);
  color: var(--alm-ink-soft);
  margin: 0 0 0.75rem;
}
.alm-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 3px dashed rgba(44, 18, 51, .2);
  padding-top: 0.7rem;
}

/* Dato de negocio: rendimiento, entrega, garantía */
.alm-fact {
  font-size: var(--alm-fs-xs);
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
  color: var(--alm-ink-soft);
}
.alm-fact b {
  display: block;
  font-family: var(--alm-font-display);
  font-size: 0.875rem;
  color: var(--alm-ink);
}

/* ============================================================
   COMPONENTE: precio
   ============================================================ */
.alm-price {
  font-family: var(--alm-font-display);
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--alm-price);
}
.alm-price small {
  font-family: var(--alm-font-body);
  font-size: var(--alm-fs-xs);
  font-weight: 500;
  color: var(--alm-ink-soft);
}
.alm-price del { color: var(--alm-ink-soft); font-size: 0.9rem; font-weight: 500; }

/* ============================================================
   COMPONENTE: barra de confianza
   ============================================================ */
.alm-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--alm-ink);
  border-top: var(--alm-border);
  border-bottom: var(--alm-border);
}
.alm-trust > div { padding: 1.1rem 1rem; text-align: center; color: #fff; }
.alm-trust b {
  display: block;
  font-family: var(--alm-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--alm-yellow);
}
.alm-trust small { font-size: var(--alm-fs-xs); opacity: .82; }
@media (max-width: 720px) {
  .alm-trust { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   COMPONENTE: barra de aviso superior
   ============================================================ */
.alm-topbar {
  background: var(--alm-ink);
  color: #fff;
  font-size: var(--alm-fs-sm);
  font-weight: 600;
  text-align: center;
  padding: 0.6rem 1.25rem;
}
.alm-topbar b { color: var(--alm-yellow); }

/* ============================================================
   FONDO: textura de puntos (hero y secciones destacadas)
   ============================================================ */
.alm-dots {
  position: relative;
}
.alm-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(circle, rgba(44,18,51,.14) 1.6px, transparent 1.6px);
  background-size: 19px 19px;
}
.alm-dots > * { position: relative; z-index: 1; }

/* ============================================================
   WOOCOMMERCE — ajustes al sistema
   ============================================================ */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--alm-font-display);
  font-weight: 800;
  color: var(--alm-price);
}

.woocommerce span.onsale {
  font-family: var(--alm-font-display);
  font-weight: 800;
  background: var(--alm-yellow);
  color: var(--alm-ink);
  border: var(--alm-border-thin);
  box-shadow: var(--alm-shadow-sm);
  border-radius: var(--alm-radius-pill);
  padding: .25rem .8rem;
  min-height: auto;
  line-height: 1.4;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  font-family: var(--alm-font-display);
  font-weight: 800;
  background: var(--alm-magenta);
  color: #fff;
  border: var(--alm-border);
  border-radius: var(--alm-radius-pill);
  box-shadow: var(--alm-shadow);
  padding: .7rem 1.5rem;
  transition: transform var(--alm-t-fast), box-shadow var(--alm-t-fast);
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--alm-magenta);
  color: #fff;
  transform: translate(2px, 2px);
  box-shadow: var(--alm-shadow-press);
}

.woocommerce ul.products li.product {
  background: var(--alm-white);
  border: var(--alm-border);
  border-radius: var(--alm-radius);
  box-shadow: var(--alm-shadow-lg);
  overflow: hidden;
  transition: transform var(--alm-t-fast), box-shadow var(--alm-t-fast);
}
.woocommerce ul.products li.product:hover {
  transform: translate(3px, 3px);
  box-shadow: var(--alm-shadow-sm);
}
.woocommerce ul.products li.product a img { margin-bottom: 0; border-bottom: var(--alm-border); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--alm-font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  padding: .85rem .9rem .2rem;
}
.woocommerce ul.products li.product .price { padding: 0 .9rem; display: block; }
.woocommerce ul.products li.product .button { margin: .85rem .9rem 1rem; }

/* Mensajes de WooCommerce con lenguaje sticker */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border: var(--alm-border);
  border-radius: var(--alm-radius-sm);
  box-shadow: var(--alm-shadow-sm);
  border-top-width: 3px;
  background: var(--alm-white);
  font-weight: 500;
}
.woocommerce-message { border-color: var(--alm-green); box-shadow: 3px 3px 0 var(--alm-green); }
.woocommerce-info    { border-color: var(--alm-blue);  box-shadow: 3px 3px 0 var(--alm-blue); }
.woocommerce-error   { border-color: var(--alm-red);   box-shadow: 3px 3px 0 var(--alm-red); }

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--alm-blue);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
