/*
 * styles.css — Hoja de estilos de Milinov Jewelry.
 *
 * Las fuentes (Montserrat + Playfair Display) se cargan desde el <head> de
 * cada página con <link rel="preconnect"> — NO usar @import aquí: bloquea
 * el renderizado.
 *
 * Estructura del archivo:
 *   1. Variables y base
 *   2. Header / navegación / componentes de tienda
 *   3. Responsive general (980px y 640px)
 *   4. Home de tienda (.home-page → tienda.html)
 *   5. Hub de enlaces (.links-home → index.html)
 *   6. Panel admin (.admin-page → admin.html)
 *   7. Accesibilidad y utilidades
 */

:root {
  --color-bg: #FAF7F2;
  --color-white: #FFFFFF;
  --color-ivory: #F7F1E8;
  --color-blush: #F4E4DF;
  --color-gold: #B99745;
  /* Dorado oscuro para texto pequeño/precios: #8A6A28 alcanza contraste AA (~4.6:1) sobre blanco. */
  --color-gold-dark: #8A6A28;
  --color-text: #302B27;
  --color-muted: #7B746E;
  --color-border: #E8DDD0;
  --color-whatsapp: #25D366;
  --shadow-soft: 0 18px 45px rgba(48, 43, 39, .08);
  /* Radios unificados a un acabado más premium/menos "burbuja" (eran 30/22/16). */
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* <picture> es solo un contenedor de fuentes: que no afecte el layout del <img> */
picture {
  display: contents;
}

/* El <source> es metadato para elegir el WebP (el navegador lo lee del DOM aunque
   esté oculto). Con `picture { display: contents }`, si NO lo ocultamos, el <source>
   se convierte en una celda/ítem fantasma dentro de grids/flex y descuadra el layout. */
picture > source {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

/* Franja superior: estilo premium claro, IGUAL en todas las páginas. */
.top-bar {
  background: linear-gradient(90deg, #f3ded4, #fff7f0, #f3ded4);
  color: #5f554f;
  font-size: 15px;
  letter-spacing: .02em;
}

.top-bar .container {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  gap: 24px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .02em;
}

.logo span {
  color: var(--color-gold);
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: .25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.search-box {
  min-width: 210px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
}

.icon-btn {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: .25s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -5px;
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.mobile-header {
  display: none;
}

.hero {
  padding: 44px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 34px;
  align-items: center;
  background: linear-gradient(135deg, var(--color-ivory), var(--color-blush));
  border-radius: 42px;
  padding: 48px;
  overflow: hidden;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 700;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 74px);
  line-height: .95;
  margin: 16px 0 18px;
}

.hero p {
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.8;
  max-width: 520px;
}

.hero-actions, .section-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: .25s ease;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
  box-shadow: 0 12px 26px rgba(185,151,69,.25);
}

.btn-primary:hover {
  background: var(--color-gold-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--color-gold);
  background: transparent;
  color: var(--color-gold-dark);
}

.btn-outline:hover {
  background: var(--color-white);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
}

.hero-media {
  position: relative;
  min-height: 530px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.section {
  padding: 66px 0;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--color-muted);
  margin: 0;
  line-height: 1.7;
}

.categories-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}

.category-pill {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px 999px 24px 24px;
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition: .25s ease;
}

.category-pill span {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--color-blush);
  color: var(--color-gold-dark);
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 28px;
}

.category-pill:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: .25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-image {
  height: 280px;
  position: relative;
  overflow: hidden;
  background: var(--color-ivory);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-info {
  padding: 20px;
}

.product-info span {
  font-size: 12px;
  color: var(--color-gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.product-info h3 {
  font-size: 22px;
  margin: 10px 0 8px;
}

.product-info p {
  color: var(--color-muted);
  line-height: 1.6;
  font-size: 14px;
  min-height: 45px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.product-footer strong {
  font-size: 18px;
}

.mini-cart-btn {
  border: 0;
  background: var(--color-text);
  color: var(--color-white);
  border-radius: 999px;
  padding: 10px 13px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.collection-card {
  min-height: 260px;
  border-radius: var(--radius-lg);
  padding: 28px;
  background: linear-gradient(145deg, var(--color-white), var(--color-blush));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: end;
  transition: .25s ease;
}

.collection-card:hover {
  transform: translateY(-6px);
}

.collection-card span {
  color: var(--color-gold-dark);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 12px;
}

.collection-card h3 {
  font-size: 34px;
  margin: 10px 0;
}

.collection-card p {
  color: var(--color-muted);
  line-height: 1.7;
}

.gift-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  background: var(--color-white);
  border-radius: 42px;
  padding: 34px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.gift-section img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 32px;
}

.gift-copy h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.gift-copy p {
  color: var(--color-muted);
  line-height: 1.8;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.benefit {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.benefit strong {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  display: block;
  margin-bottom: 8px;
}

.benefit p {
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--color-text), #574a3d);
  color: var(--color-white);
  border-radius: 42px;
  padding: 64px 24px;
}

.cta h2 {
  font-size: clamp(32px, 4vw, 54px);
  margin-bottom: 12px;
}

.cta p {
  color: rgba(255,255,255,.76);
  max-width: 680px;
  margin: 0 auto 24px;
  line-height: 1.8;
}

.footer {
  margin-top: 70px;
  background: var(--color-text);
  color: var(--color-white);
  padding: 60px 0 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 36px;
}

.footer p, .footer a {
  color: rgba(255,255,255,.7);
  line-height: 1.8;
  display: block;
  margin: 8px 0;
}

.footer h3, .footer h4 {
  color: var(--color-white);
}

.page-hero {
  padding: 58px 0 36px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 720px;
  margin: auto;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) repeat(5, minmax(130px, 1fr));
  gap: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 26px;
}

.catalog-toolbar input,
.catalog-toolbar select,
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 14px 16px;
  outline: none;
  background: var(--color-bg);
  width: 100%;
}

.contact-form textarea {
  border-radius: 22px;
  min-height: 150px;
  resize: vertical;
}

.catalog-meta {
  color: var(--color-muted);
  font-weight: 600;
}

.catalog-summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.catalog-clear {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.catalog-clear svg {
  width: 16px;
  height: 16px;
}

.no-results {
  grid-column: 1 / -1;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 34px;
  text-align: center;
  color: var(--color-muted);
}

.product-detail {
  display: grid;
  grid-template-columns: .95fr 1fr;
  gap: 42px;
  align-items: start;
  padding: 28px 0 50px;
}

.main-product-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.main-product-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.thumbs button {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  width: 96px;
  height: 96px;
  cursor: pointer;
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 38px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.product-detail-info h1 {
  font-size: clamp(38px, 4vw, 60px);
  margin: 12px 0;
}

.product-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-gold-dark);
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
  color: var(--color-muted);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px;
  background: var(--color-bg);
}

.qty-control button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--color-white);
}

.qty-control.large {
  padding: 8px;
}

.qty-control.large button {
  width: 38px;
  height: 38px;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.about-card,
.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.about-card h2,
.contact-card h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.about-card p,
.contact-card p {
  color: var(--color-muted);
  line-height: 1.8;
}

.about-image,
.contact-image {
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(48, 43, 39, .36);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100dvh;
  background: var(--color-white);
  z-index: 90;
  transform: translateX(100%);
  transition: .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,.12);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-head,
.cart-footer {
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-footer {
  border-top: 1px solid var(--color-border);
  border-bottom: 0;
  display: grid;
  grid-template-columns: 1fr;
  justify-content: stretch;
  align-items: stretch;
  gap: 14px;
}

.cart-footer-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}

.cart-items {
  padding: 18px;
  overflow: auto;
  flex: 1;
  display: grid;
  align-content: start;
  gap: 14px;
}

.cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: 10px;
}

.cart-item img {
  height: 100px;
  width: 92px;
  object-fit: cover;
  border-radius: 16px;
}

.cart-item h4 {
  margin: 4px 0;
}

.cart-item p {
  color: var(--color-muted);
  margin: 0 0 8px;
  font-size: 13px;
}

/* Fila inferior de cada línea: stepper a la izquierda, subtotal en vivo a la derecha. */
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-item-price {
  text-align: right;
  line-height: 1.2;
}

.cart-item-price strong {
  display: block;
  font-size: 15px;
}

.cart-item-price small {
  color: var(--color-muted);
  font-size: 12px;
}

.remove-btn,
.close-btn {
  border: 0;
  background: var(--color-bg);
  border-radius: 999px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  font-size: 20px;
}

.empty-cart {
  text-align: center;
  padding: 30px 12px;
  color: var(--color-muted);
}

.mobile-menu {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--color-text);
  color: var(--color-white);
  padding: 13px 18px;
  border-radius: 999px;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .desktop-header {
    display: none;
  }

  .mobile-header {
    display: block;
  }

  .mobile-header .header-inner {
    display: flex;
    justify-content: space-between;
    min-height: 70px;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(340px, 88%);
    background: var(--color-white);
    z-index: 95;
    transform: translateX(-100%);
    transition: .3s ease;
    padding: 22px;
    box-shadow: 20px 0 60px rgba(0,0,0,.12);
  }

  .mobile-menu.is-open {
    transform: translateX(0);
  }

  .mobile-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
  }

  .mobile-menu nav {
    display: grid;
    gap: 14px;
    font-weight: 700;
  }

  .mobile-menu nav a {
    padding: 14px;
    border-radius: 16px;
    background: var(--color-bg);
  }

  .hero {
    padding-top: 28px;
  }

  .hero-grid,
  .gift-section,
  .product-detail,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 26px;
    border-radius: 30px;
  }

  .hero-media {
    min-height: 430px;
    order: -1;
  }

  .categories-row {
    display: flex;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

  .category-pill {
    min-width: 126px;
    scroll-snap-align: start;
  }

  .products-grid,
  .collections-grid,
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer {
    padding-bottom: 60px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }

  .top-bar span:last-child {
    display: none;
  }

  .logo {
    font-size: 23px;
  }

  .hero-grid {
    padding: 20px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-media {
    min-height: 360px;
    border-radius: 24px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-image {
    height: 210px;
  }

  .product-info {
    padding: 14px;
  }

  .product-info h3 {
    font-size: 18px;
  }

  .product-info p {
    display: none;
  }

  .product-footer {
    display: grid;
  }

  .mini-cart-btn {
    width: 100%;
  }

  .collections-grid,
  .benefits,
  .footer-grid,
  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .gift-section img,
  .about-image,
  .contact-image,
  .main-product-image img {
    height: 380px;
  }

  .section {
    padding: 46px 0;
  }

  .section-title {
    display: block;
  }

  .cart-drawer {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 82px 1fr auto;
  }
}

/* Milinov home mockup */
.home-page {
  background:
    radial-gradient(circle at 15% 18%, rgba(232, 201, 183, .34), transparent 30%),
    linear-gradient(180deg, #fffdf9 0%, #fbf7f1 52%, #fffdf9 100%);
}

.home-page .container {
  width: min(1080px, calc(100% - 32px));
}

.home-page .top-bar span,
.home-page .top-bar i,
.home-page .section-title h2 i,
.hero-kicker i,
.gift-panel h2 i {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #a9825d;
  stroke-width: 1.65;
}

.home-page .header {
  position: static;
  background: rgba(255, 254, 250, .94);
  border-bottom: 1px solid #efe2d3;
  backdrop-filter: blur(12px);
}

.milinov-header {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 216px;
  line-height: 0;
}

.brand-logo-image {
  display: block;
  width: 100%;
  height: auto;
}

.brand-logo.small {
  width: 138px;
}

.footer-brand-logo {
  display: block;
  width: min(190px, 100%);
  margin-bottom: 18px;
  line-height: 0;
}

.footer-brand-logo img,
.admin-brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.admin-brand-logo {
  display: block;
  width: 176px;
  line-height: 0;
}

.clean-icon {
  width: 58px;
  height: 58px;
  border: 0;
  background: transparent;
  color: #282522;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.clean-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.7;
}

.store-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.menu-toggle {
  display: none;
}

.store-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #4d443e;
  font-size: 14px;
  font-weight: 700;
}

.store-nav a {
  position: relative;
  white-space: nowrap;
}

.store-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: #bd9632;
  opacity: 0;
  transform: scaleX(.6);
  transition: .2s ease;
}

.store-nav a:hover::after,
.store-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  justify-content: flex-end;
  gap: 32px;
}

.home-page .cart-count {
  top: 2px;
  right: 4px;
}

.milinov-hero {
  min-height: 560px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.milinov-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, .99) 0%, rgba(255, 250, 243, .96) 36%, rgba(255, 250, 243, .76) 50%, rgba(255, 250, 243, .16) 72%),
    linear-gradient(180deg, rgba(253, 243, 232, .22), rgba(253, 243, 232, .36));
}

.milinov-hero img,
.milinov-hero .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: saturate(.96) brightness(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 54px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  /* Rosa más oscuro para el texto (contraste AA); la línea decorativa mantiene el rosa claro */
  color: #b05f6a;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 48px;
  height: 2px;
  background: #d7969b;
}

.milinov-hero h1 {
  max-width: 560px;
  margin: 24px 0 18px;
  font-size: clamp(54px, 8vw, 84px);
  line-height: .98;
  font-weight: 500;
  color: #61554e;
}

.milinov-hero p {
  max-width: 420px;
  color: #5d5650;
  font-size: 25px;
  line-height: 1.35;
  margin: 0 0 34px;
}

.soft-btn {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  border-radius: 8px;
  /* Rosa más oscuro: contraste AA con texto blanco (~4.1:1) */
  background: #b85f6e;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  box-shadow: 0 18px 32px rgba(150, 80, 92, .22);
}

.material-sections {
  padding: 44px 0 34px;
  border-bottom: 1px solid #e8cfad;
  background: rgba(255, 255, 255, .58);
}

.material-title {
  align-items: center;
  margin-bottom: 18px;
}

.material-title h2 {
  margin: 6px 0 0;
  color: #4c433e;
  font-size: clamp(30px, 4vw, 44px);
}

.material-group {
  border: 1px solid #ead5bd;
  border-radius: 14px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,248,241,.84));
  margin-top: 18px;
}

.material-group.warm {
  background: linear-gradient(135deg, rgba(255,250,243,.94), rgba(246,226,207,.72));
}

.material-group-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.material-group-head span {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 40px);
  color: #51453e;
}

.material-group-head p {
  max-width: 460px;
  margin: 0;
  color: #6c5f57;
  line-height: 1.5;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.material-grid a {
  min-height: 188px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  color: #fff;
  box-shadow: 0 14px 28px rgba(82,64,47,.1);
}

.material-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .25s ease;
}

.material-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 32%, rgba(44,34,28,.68));
}

.material-grid a:hover img {
  transform: scale(1.05);
}

.material-grid span {
  padding: 14px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.featured-stories {
  padding: 30px 0 26px;
}

.featured-stories .section-title {
  margin-bottom: 22px;
  align-items: center;
}

.featured-stories .section-title h2 {
  margin: 0;
  font-size: 30px;
  color: #4c433e;
}

.pill-link {
  min-width: 144px;
  text-align: center;
  border: 1px solid #d7bca2;
  border-radius: 999px;
  padding: 12px 28px;
  color: #5e5751;
  background: rgba(255,255,255,.5);
}

.home-page .products-grid {
  gap: 18px;
}

.home-page .product-card {
  border-radius: 9px;
  border-color: #ead5bd;
  box-shadow: none;
  background: rgba(255, 252, 247, .8);
}

.home-page .product-card:hover {
  transform: translateY(-3px);
}

.home-page .product-image {
  display: block;
  height: 250px;
  background: #f4e7da;
}

.home-page .product-info {
  padding: 15px 10px 18px;
  text-align: center;
}

.home-page .product-info span,
.home-page .product-info p,
.home-page .mini-cart-btn {
  display: none;
}

.home-page .product-info h3 {
  margin: 0 0 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 400;
}

.home-page .product-footer {
  display: block;
}

.home-page .product-footer strong {
  font-size: 18px;
  font-weight: 400;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.slider-dots button {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background: #ead9c5;
  padding: 0;
  cursor: pointer;
  transition: .2s ease;
}

.slider-dots button.is-active {
  background: #c8993d;
  transform: scale(1.08);
}

.home-page .product-card.is-slider-hidden {
  display: none;
}

.purchase-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #ead5bd;
  border-bottom: 1px solid #ead5bd;
}

.purchase-step {
  position: relative;
  min-height: 230px;
  padding: 34px 30px;
}

.purchase-step + .purchase-step {
  border-left: 1px solid #ead5bd;
}

.purchase-step > span {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #b99745;
  font-size: 13px;
  font-weight: 700;
}

.purchase-step > svg,
.purchase-step > img {
  width: 30px;
  height: 30px;
  color: #9a7657;
  margin-bottom: 22px;
}

.purchase-step h3 {
  margin: 0 0 9px;
  font-size: 23px;
}

.purchase-step p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.65;
}

@media (max-width: 720px) {
  .purchase-steps { grid-template-columns: 1fr; }
  .purchase-step { min-height: 0; padding: 28px 22px; }
  .purchase-step + .purchase-step { border-left: 0; border-top: 1px solid #ead5bd; }
}

.gift-panel {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 42px;
  padding: 28px 44px 28px 0;
  border: 1px solid #ead5bd;
  border-radius: 9px;
  background: linear-gradient(90deg, #fff9f2, #fff0e8);
  overflow: hidden;
}

.gift-panel img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gift-panel h2 {
  margin: 0 0 12px;
  color: #5b504b;
  font-size: 30px;
  font-weight: 500;
}

.gift-panel p {
  margin: 0 0 28px;
  max-width: 480px;
  color: #625851;
  font-size: 17px;
  line-height: 1.5;
}

.gift-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gift-features span {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #6a5a4f;
  text-align: center;
  font-size: 13px;
}

.gift-features svg {
  width: 34px;
  height: 34px;
  color: #9a7657;
  stroke-width: 1.4;
}

.whatsapp-strip {
  margin-top: 2px;
  margin-bottom: 26px;
  min-height: 90px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 34px;
  border: 1px solid #e7d2ba;
  border-radius: 9px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 32px rgba(106, 80, 58, .1);
}

.whatsapp-strip p {
  margin: 0;
  color: #5d554f;
  font-size: 17px;
}

.whatsapp-strip strong {
  display: block;
  margin-top: 4px;
}

.whatsapp-action {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 7px;
  background: rgba(37, 211, 102, .16);
  transition: transform .2s ease, background-color .2s ease;
}

.whatsapp-action img {
  width: 42px;
  height: 42px;
  display: block;
}

.whatsapp-action:hover {
  background: rgba(37, 211, 102, .23);
  transform: translateY(-2px);
}

.whatsapp-strip > a:not(.whatsapp-action) {
  color: #987151;
}

.trust-row {
  padding: 4px 0 26px;
}

.trust-row .container {
  display: flex;
  justify-content: center;
  gap: 74px;
  color: #7a6d65;
  font-size: 16px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.trust-row svg {
  color: #9a7657;
  stroke-width: 1.45;
}

@media (max-width: 980px) {
  .milinov-header {
    min-height: 112px;
  }

  .brand-logo {
    width: 158px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .store-nav {
    display: none;
  }

  .material-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-page .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .gift-panel {
    grid-template-columns: 1fr;
    padding: 0 24px 28px;
  }

  .gift-panel img {
    height: 300px;
    margin: 0 -24px;
    width: calc(100% + 48px);
  }

  .trust-row .container {
    gap: 24px;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .milinov-header {
    min-height: 88px;
  }

  .brand-logo {
    width: 118px;
  }

  .brand-logo.small {
    width: 112px;
  }

  /* Mantiene el área táctil en 44px (mínimo WCAG 2.5.5) aunque el ícono se vea más pequeño. */
  .clean-icon {
    width: 44px;
    height: 44px;
  }

  .clean-icon svg {
    width: 24px;
    height: 24px;
  }

  .header-tools {
    gap: 8px;
  }

  .milinov-hero {
    min-height: 520px;
  }

  .milinov-hero::before {
    background: linear-gradient(90deg, rgba(255, 253, 248, .98), rgba(255, 250, 243, .62));
  }

  .milinov-hero img,
  .milinov-hero .hero-video {
    object-position: 50% 56%;
  }

  .hero-content {
    padding: 42px 0;
  }

  .hero-kicker {
    font-size: 13px;
  }

  .hero-kicker::before {
    width: 28px;
  }

  .milinov-hero h1 {
    max-width: 330px;
    font-size: 46px;
  }

  .milinov-hero p {
    max-width: 260px;
    font-size: 18px;
  }

  .soft-btn {
    min-height: 52px;
    padding: 0 22px;
    font-size: 15px;
  }

  .material-sections {
    padding: 28px 0;
  }

  .material-title {
    display: flex;
  }

  .material-group {
    padding: 14px;
  }

  .material-group-head {
    display: block;
  }

  .material-group-head p {
    margin-top: 6px;
    font-size: 13px;
  }

  .material-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .material-grid a {
    min-height: 126px;
  }

  .featured-stories .section-title {
    display: flex;
  }

  .featured-stories .section-title h2 {
    font-size: 22px;
  }

  .pill-link {
    min-width: auto;
    padding: 9px 16px;
  }

  .home-page .product-image {
    height: 178px;
  }

  .home-page .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-page .product-info h3,
  .home-page .product-footer strong {
    font-size: 14px;
  }

  .gift-features {
    grid-template-columns: 1fr;
  }

  .whatsapp-strip {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
  }

  .whatsapp-strip p {
    font-size: 14px;
  }
}

/* Link hub home */
.links-home {
  min-height: 100dvh;
  color: #312a25;
  background:
    linear-gradient(135deg, rgba(255, 252, 247, .88), rgba(244, 225, 212, .72)),
    url("../assets/banners/hero-collar.jpg") center / cover fixed;
}

.links-home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.72), transparent 22%),
    linear-gradient(90deg, rgba(80, 65, 55, .16), rgba(255,255,255,.1), rgba(73, 61, 54, .22));
}

.linktree-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 46px 18px;
  position: relative;
  z-index: 1;
}

.linktree-card {
  width: min(100%, 620px);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 241, 229, .92), rgba(250, 238, 212, .88)),
    rgba(255,255,255,.5);
  box-shadow: 0 28px 80px rgba(64, 48, 38, .22);
  overflow: hidden;
  position: relative;
}

.linktree-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(70, 50, 37, .18));
  pointer-events: none;
}

.linktree-topbar {
  display: flex;
  justify-content: space-between;
  padding: 26px 28px 0;
  position: relative;
  z-index: 2;
}

.linktree-icon {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #332d28;
  background: rgba(255,255,255,.76);
  box-shadow: 0 10px 24px rgba(98, 70, 50, .08);
  cursor: pointer;
  position: relative;
}

.linktree-profile {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 8px 34px 24px;
  position: relative;
  z-index: 2;
}

.linktree-logo {
  width: 205px;
  margin-bottom: 18px;
}

.profile-image-wrap {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  padding: 4px;
  background: linear-gradient(135deg, #fff, #d0a55a);
  box-shadow: 0 18px 34px rgba(115, 82, 54, .18);
}

.profile-image-wrap img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: 50% 43%;
}

.linktree-profile h1 {
  margin: 18px 0 8px;
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 6vw, 44px);
  color: #302925;
}

.linktree-profile p {
  max-width: 440px;
  margin: 20px 0 0;
  color: #4d423b;
  font-size: 16px;
  line-height: 1.55;
}

.linktree-links {
  display: grid;
  gap: 13px;
  padding: 10px 32px 26px;
  position: relative;
  z-index: 2;
}

.feature-link {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border: 1px solid rgba(207, 159, 94, .45);
  border-radius: 999px;
  color: #3a312c;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 0 rgba(206, 154, 78, .2);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.feature-link:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 12px 26px rgba(122, 84, 53, .16);
}

.feature-link strong,
.feature-link small {
  display: block;
}

.feature-link strong {
  font-size: 16px;
  font-weight: 700;
}

.feature-link small {
  margin-top: 3px;
  color: #81746c;
  font-size: 13px;
}

.shop-link {
  border-color: rgba(175, 128, 50, .7);
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255, 247, 236, .95));
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.brand-icon.gold {
  color: #fff;
  background: #b58a34;
}

.brand-icon.web {
  color: #fff;
  background: #54483f;
}

.brand-icon.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0 5%, #fd5949 42%, #d6249f 60%, #285AEB 92%);
}

.brand-icon.tiktok {
  background: #111;
}

.linktree-shop-sections {
  display: grid;
  gap: 18px;
  padding: 0 32px 32px;
  position: relative;
  z-index: 2;
}

.linktree-section-head {
  text-align: left;
}

.linktree-section-head h2 {
  margin: 4px 0 0;
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: #302925;
}

.linktree-material {
  display: grid;
  gap: 10px;
}

.linktree-material h3 {
  margin: 0;
  color: #7c6046;
  font-size: 15px;
}

.linktree-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.linktree-section-grid a {
  min-height: 112px;
  display: grid;
  align-content: end;
  overflow: hidden;
  border-radius: 18px;
  position: relative;
  isolation: isolate;
  color: #fff;
  box-shadow: 0 14px 30px rgba(66, 47, 35, .14);
}

.linktree-section-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .25s ease;
}

.linktree-section-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0,0,0,.58));
  z-index: -1;
}

.linktree-section-grid a:hover img {
  transform: scale(1.06);
}

.linktree-section-grid span {
  padding: 13px;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,.38);
}

.linktree-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 32px 30px;
  position: relative;
  z-index: 2;
}

.linktree-showcase a {
  min-height: 142px;
  display: grid;
  align-content: end;
  overflow: hidden;
  border-radius: 18px;
  position: relative;
  isolation: isolate;
  color: #fff;
  box-shadow: 0 14px 30px rgba(66, 47, 35, .14);
}

.linktree-showcase img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.linktree-showcase a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.52));
  z-index: -1;
}

.linktree-showcase span {
  padding: 14px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,.36);
}

.linktree-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 28px 34px;
  color: #6c5b51;
  position: relative;
  z-index: 2;
}

.linktree-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .footer {
    padding-bottom: 60px;
  }
}

@media (max-width: 640px) {
  .linktree-shell {
    padding: 0;
    place-items: stretch;
  }

  .linktree-card {
    min-height: 100dvh;
    width: 100%;
    border: 0;
    border-radius: 0;
  }

  .linktree-topbar {
    padding: 18px 18px 0;
  }

  .linktree-profile {
    padding: 4px 22px 20px;
  }

  .profile-image-wrap {
    width: 96px;
    height: 96px;
  }

  .linktree-links {
    padding: 8px 18px 24px;
  }

  .feature-link {
    min-height: 68px;
    border-radius: 26px;
    box-shadow: 0 6px 0 rgba(206, 154, 78, .18);
  }

  .linktree-showcase {
    grid-template-columns: 1fr;
    padding: 0 18px 28px;
  }

  .linktree-showcase a {
    min-height: 118px;
  }
}

/* Admin */
.admin-page {
  min-height: 100dvh;
  background: #f7f5f2;
  color: var(--color-text);
}

.admin-page [hidden] {
  display: none !important;
}

.admin-access {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background:
    linear-gradient(90deg, rgba(25, 23, 22, .78), rgba(25, 23, 22, .34)),
    url("../assets/banners/hero-collar.jpg") center / cover;
}

.admin-login-card {
  width: min(100%, 430px);
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(20, 18, 17, .28);
}

.admin-login-card .admin-brand-logo {
  justify-self: start;
}

.admin-login-card h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
}

.admin-login-card > p,
.admin-auth-status {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.55;
}

.admin-login-form {
  display: grid;
  gap: 14px;
}

.admin-login-form label {
  display: grid;
  gap: 7px;
  color: #4a433f;
  font-size: 13px;
  font-weight: 700;
}

.admin-login-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8d1ca;
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
  outline: none;
}

.admin-login-form input:focus {
  border-color: var(--color-gold-dark);
  box-shadow: 0 0 0 3px rgba(185, 151, 69, .16);
}

.admin-auth-status {
  min-height: 22px;
  color: #9b342d;
  font-size: 13px;
}

.admin-back-link {
  justify-self: start;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-setup-card .btn {
  justify-self: start;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.admin-hero,
.admin-card {
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.admin-hero h1 {
  margin: 8px 0;
  font-size: clamp(34px, 4vw, 48px);
}

.admin-hero p,
.admin-list-head p {
  margin: 0;
  color: var(--color-muted);
}

.admin-card {
  min-width: 0;
  border-radius: 8px;
  padding: 22px;
}

.admin-form {
  display: grid;
  gap: 13px;
  width: min(820px, 100%);
  margin: 0 auto;
}

.admin-form h2,
.admin-list h2 {
  margin: 0;
  font-size: 30px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  padding: 12px 14px;
  outline: none;
}

.admin-form textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-image-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fffaf5;
}

.admin-image-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--color-ivory);
}

.admin-image-preview small {
  color: var(--color-muted);
  line-height: 1.4;
}

.admin-form-row,
.admin-actions,
.admin-list-head {
  display: flex;
  gap: 12px;
}

.admin-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.admin-form-heading p {
  max-width: 560px;
  margin: 7px 0 0;
  color: var(--color-muted);
  line-height: 1.5;
}

.admin-user-box {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-items: end;
  gap: 8px;
}

.admin-user-box small {
  grid-column: 1 / -1;
  max-width: 220px;
  color: var(--color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-quiet {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
}

.admin-actions.compact {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-form-row > * {
  flex: 1;
}

.admin-list-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.admin-list-head h2 {
  margin-top: 4px;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-stat {
  display: grid;
  min-width: 0;
  min-height: 132px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.admin-stat span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-stat strong {
  margin: 8px 0 4px;
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1;
}

.admin-stat small {
  color: var(--color-muted);
}

.admin-stat.is-active,
.admin-stat:hover {
  border-color: var(--color-gold);
}

.admin-stat.is-active {
  box-shadow: inset 0 3px 0 var(--color-gold), var(--shadow-soft);
}

.admin-view-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
}

.admin-view-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 0 18px;
  color: var(--color-muted);
  font-weight: 700;
  cursor: pointer;
}

.admin-view-tabs button.is-active {
  background: var(--color-text);
  color: #fff;
}

.admin-workspace {
  min-width: 0;
}

.admin-list-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-tools {
  position: relative;
}

.admin-tools summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
}

.admin-tools summary::-webkit-details-marker {
  display: none;
}

.admin-tools-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: 230px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(48, 43, 39, .16);
}

.admin-tools-menu button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 11px 12px;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

.admin-tools-menu button:hover {
  background: var(--color-ivory);
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) minmax(150px, .7fr) minmax(150px, .7fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fffaf5;
}

.admin-filters label {
  display: grid;
  gap: 6px;
}

.admin-filters label > span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-filters input,
.admin-filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  padding: 9px 11px;
  outline: none;
}

.admin-filters input:focus,
.admin-filters select:focus {
  border-color: var(--color-gold);
}

.admin-clear-filters {
  min-height: 42px;
  white-space: nowrap;
}

.admin-table-wrap {
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--color-border);
  padding: 14px 10px;
  text-align: left;
}

.admin-table th {
  color: var(--color-gold-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.admin-table small {
  display: block;
  color: var(--color-muted);
  margin-top: 4px;
}

.admin-product-cell {
  display: grid;
  grid-template-columns: 46px minmax(150px, 1fr);
  align-items: center;
  gap: 10px;
}

.admin-product-cell > img {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--color-ivory);
}

.admin-table button {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
}

.admin-empty {
  height: 180px;
  color: var(--color-muted);
  text-align: center !important;
}

.admin-empty strong,
.admin-empty span {
  display: block;
}

.admin-empty strong {
  margin-bottom: 6px;
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 22px;
}

.stock-pill {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  border-radius: 999px;
  background: #edf7ee;
  color: #1f7a35;
  font-weight: 700;
}

.stock-pill.is-low {
  background: #fff1e8;
  color: #ad532a;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f4efe7;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.status-pill.active {
  background: #edf7ee;
  color: #1f7a35;
}

.status-pill.sold_out {
  background: #fff1e8;
  color: #ad532a;
}

@media (max-width: 900px) {
  .admin-hero {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    justify-items: start;
  }

  .admin-user-box {
    justify-items: start;
  }

  .admin-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-filters {
    grid-template-columns: 1fr 1fr;
  }

  .admin-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .admin-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .admin-login-card {
    padding: 26px 20px;
  }

  .admin-login-card h1 {
    font-size: 32px;
  }

  .admin-hero,
  .admin-card {
    padding: 18px;
  }

  .admin-hero h1 {
    font-size: 36px;
  }

  .admin-form-row,
  .admin-list-head,
  .admin-form-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions.compact {
    justify-content: flex-start;
  }

  .admin-overview {
    gap: 8px;
  }

  .admin-stat {
    min-height: 116px;
    padding: 14px;
  }

  .admin-stat strong {
    font-size: 30px;
  }

  .admin-stat small {
    font-size: 11px;
  }

  .admin-view-tabs {
    width: 100%;
  }

  .admin-view-tabs button {
    flex: 1;
    padding: 0 10px;
  }

  .admin-list-actions {
    align-items: stretch;
  }

  .admin-list-actions .btn {
    flex: 1;
  }

  .admin-tools summary {
    justify-content: center;
  }

  .admin-filters {
    grid-template-columns: 1fr;
  }

  .admin-search {
    grid-column: auto;
  }
}

/* Admin Fase 2: galería múltiple, drag&drop, edición en línea, CSV */
.admin-check {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
}

.admin-check input {
  width: auto !important;
}

#dropzone.is-drag {
  border-color: var(--color-gold);
  background: var(--color-blush);
}

.dropzone-hint {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  text-align: center;
}

.admin-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.admin-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.admin-thumb.is-cover {
  border-color: var(--color-gold);
  outline: 2px solid var(--color-gold);
}

.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-thumb .cover-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(185, 151, 69, .92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 2px;
}

.admin-thumb button {
  position: absolute;
  border: 0;
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.admin-thumb .thumb-del {
  top: 4px;
  right: 4px;
  background: rgba(48, 43, 39, .82);
  color: #fff;
}

.admin-thumb [data-makecover] {
  top: 4px;
  left: 4px;
  background: rgba(255, 255, 255, .9);
  color: var(--color-gold-dark);
}

.admin-hint {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 13px;
}

.cell-edit {
  width: 84px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 7px 9px;
  background: #fff;
  outline: none;
}

.cell-edit:focus {
  border-color: var(--color-gold);
}

.admin-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

body .mobile-menu.is-open {
  transform: translateX(0);
}

/* ============================================================
   7. Accesibilidad y utilidades
   ============================================================ */

/* Enlace "Saltar al contenido": invisible hasta recibir foco con teclado */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--color-text);
  color: var(--color-white);
  padding: 12px 18px;
  border-radius: 0 0 14px 14px;
  font-weight: 700;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Texto solo para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Indicador de foco visible para navegación con teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-gold-dark);
  outline-offset: 2px;
}

/* Productos agotados */
.product-card.is-sold-out .product-image img {
  filter: grayscale(.55);
  opacity: .8;
}

.sold-out-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(48, 43, 39, .85);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.mini-cart-btn:disabled,
.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.sold-out-note {
  background: var(--color-blush);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--color-gold-dark);
  font-weight: 600;
  line-height: 1.5;
}

/* Animación de aparición al hacer scroll (la activa js/app.js → initAnimations) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respeta la preferencia del sistema de reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   8. Componentes Fase 1 (promo, WhatsApp flotante, garantías, FAQ, carrito)
   ============================================================ */

/* Banner de promoción en la franja superior (se activa desde config.js) */
.top-bar.is-promo {
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold));
  color: #fff;
}

.top-bar.is-promo .container {
  justify-content: center;
}

.promo-msg {
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
}

/* Botón flotante de WhatsApp (todas las páginas de la tienda) */
.wa-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  padding: 7px;
  background: rgba(37, 211, 102, .16);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .22);
  transition: transform .2s ease, opacity .2s ease;
}

.wa-fab:hover {
  transform: translateY(-2px) scale(1.05);
}

.wa-fab img {
  width: 42px;
  height: 42px;
  display: block;
}

.wa-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

@media (max-width: 640px) {
  .wa-fab {
    width: 52px;
    height: 52px;
    right: 14px;
    bottom: 14px;
  }

  .wa-fab img {
    width: 38px;
    height: 38px;
  }
}

/* Garantías/señales de confianza en la ficha de producto */
.product-guarantees {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 12px;
}

.product-guarantees li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
}

.product-guarantees svg {
  color: var(--color-gold-dark);
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
  flex-shrink: 0;
}

/* Campos opcionales de cliente en el carrito (nombre, distrito) */
.cart-customer {
  display: grid;
  gap: 8px;
}

.cart-customer input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--color-bg);
  outline: none;
}

/* FAQ — acordeón nativo con <details> */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-list details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  font-family: "Playfair Display", serif;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--color-gold-dark);
  font-size: 24px;
  line-height: 1;
  transition: transform .2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ============================================================
   9. Componentes Fase 2 (badges, descuento, galería, testimonios, buy-bar)
   ============================================================ */

/* Badges sobre la imagen del producto */
.badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--color-text);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

.badge-sale { background: #c0392b; }
.badge-new { background: var(--color-gold-dark); }
.badge-best { background: #8a6d3b; }
.badge-low { background: #b06a2c; }

.detail-badges {
  position: static;
  margin-bottom: 10px;
}

/* Precio con descuento (tachado + % OFF) */
.price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-old {
  color: var(--color-muted);
  text-decoration: line-through;
  font-size: .82em;
  font-weight: 500;
}

.price-off {
  font-size: 12px;
  font-weight: 700;
  color: #c0392b;
  background: #fdecea;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Segunda foto al pasar el mouse sobre la tarjeta */
.product-card .product-image .hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s ease;
}

.product-card:hover .product-image .hover-img {
  opacity: 1;
}

/* Miniatura activa en la galería de producto */
.thumbs button.is-active {
  border-color: var(--color-gold);
  outline: 2px solid var(--color-gold);
}

/* Cuidados y garantía en la ficha */
.product-care {
  display: grid;
  gap: 8px;
  margin: 4px 0 18px;
  padding: 14px 16px;
  background: var(--color-ivory);
  border-radius: var(--radius-sm);
}

.product-care p {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--color-muted);
  line-height: 1.5;
  font-size: 14px;
}

.product-care svg {
  color: var(--color-gold-dark);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Testimonios */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.testimonial .stars {
  color: var(--color-gold);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.testimonial p {
  color: var(--color-text);
  line-height: 1.6;
  font-style: italic;
  margin: 0 0 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
}

.testimonial-author .avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--color-blush);
  color: var(--color-gold-dark);
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
}

/* Barra de compra fija (solo móvil) */
.buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(48, 43, 39, .1);
}

.buy-bar-actions {
  display: flex;
  gap: 8px;
}

.buy-bar .btn {
  padding: 12px 16px;
}

.buy-bar-price .price-now {
  font-size: 18px;
}

.buy-bar.is-hidden {
  transform: translateY(110%);
}

/* Confirmación de pedido en el carrito */
.cart-confirm {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-sm);
  background: var(--color-ivory);
}

.cart-confirm strong {
  font-family: "Playfair Display", serif;
  font-size: 18px;
}

.cart-confirm p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}

.cart-confirm .btn {
  width: 100%;
}

/* Botones de pago con color de marca (Yape morado, Plin turquesa) */
.btn-yape { background: #742384; color: #fff; }
.btn-yape:hover { background: #5d1c6a; }
.btn-plin { background: #00b3b8; color: #fff; }
.btn-plin:hover { background: #009599; }

/* Panel de pago con billetera (Yape/Plin) dentro del carrito */
.wallet-panel {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 18px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #faf7ff, #fbfaff);
}

.wallet-panel.wallet-yape { border-color: #b39ddb; background: linear-gradient(180deg, #f3effb, #fbfaff); }
.wallet-panel.wallet-plin { border-color: #88dcde; background: linear-gradient(180deg, #e9fafb, #fbffff); }

.wallet-badge {
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.wallet-yape .wallet-badge { background: #742384; }
.wallet-plin .wallet-badge { background: #00b3b8; }

.wallet-panel strong {
  font-family: "Playfair Display", serif;
  font-size: 22px;
}

.wallet-num {
  margin: 0;
  color: var(--color-text);
  line-height: 1.5;
}

.wallet-num b {
  font-size: 20px;
  letter-spacing: .04em;
}

.wallet-qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--color-border);
}

.wallet-help {
  margin: 0;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
}

.wallet-panel .btn {
  width: 100%;
}

@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .buy-bar {
    display: flex;
    transition: transform .25s ease;
    /* Respeta el área segura del notch en iPhone */
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  /* Reserva espacio para que la barra fija no tape el final de la ficha */
  body.has-buy-bar {
    padding-bottom: 80px;
  }

  body.has-buy-bar .wa-fab {
    bottom: 92px;
  }
}

/* Objetivos táctiles cómodos en móvil (>=40-44px) para controles clave */
@media (max-width: 640px) {
  .qty-control.large button {
    width: 44px;
    height: 44px;
  }

  .qty-control button {
    width: 40px;
    height: 40px;
  }

  /* Agranda el área de toque de los puntos del slider sin agrandar el punto visible */
  .slider-dots button {
    width: 34px;
    height: 34px;
    padding: 11px;
    box-sizing: border-box;
    background-clip: content-box;
  }
}

/* ============================================================
   10. Páginas legales, Libro de Reclamaciones y aviso de cookies
   ============================================================ */

.legal-doc {
  max-width: 820px;
  margin: 0 auto;
  color: var(--color-text);
}

.legal-doc h2 {
  font-size: 21px;
  margin: 26px 0 8px;
}

.legal-doc p {
  color: var(--color-muted);
  line-height: 1.75;
  margin: 0 0 10px;
}

.legal-doc a {
  color: var(--color-gold-dark);
  text-decoration: underline;
}

.legal-meta {
  font-size: 13px;
  background: var(--color-ivory);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.note-card {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  background: #fffaf2;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 22px;
  line-height: 1.7;
  font-size: 14px;
}

/* Formulario del Libro de Reclamaciones */
.reclamo-form {
  display: grid;
  gap: 14px;
}

.reclamo-form h2 {
  margin: 18px 0 2px;
}

.reclamo-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.reclamo-form input,
.reclamo-form select,
.reclamo-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  background: var(--color-white);
  outline: none;
  font-weight: 400;
}

.reclamo-form textarea {
  resize: vertical;
}

.reclamo-form input:focus,
.reclamo-form select:focus,
.reclamo-form textarea:focus {
  border-color: var(--color-gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.reclamo-tipo {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.reclamo-tipo legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
  padding: 0 6px;
}

.reclamo-form label.inline {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
}

.reclamo-form label.inline input {
  width: auto;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Aviso de cookies (solo si hay analítica configurada) */
.cookie-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 45px rgba(48, 43, 39, .18);
  padding: 14px 18px;
}

.cookie-bar p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  flex: 1 1 280px;
  line-height: 1.5;
}

.cookie-bar a {
  color: var(--color-gold-dark);
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions .btn {
  padding: 10px 18px;
}

/* ============================================================
   11. Género (inicio) y página de sección (material)
   ============================================================ */

/* Inicio: dos tarjetas grandes Mujer / Hombre */
.gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gender-card {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  align-items: end;
  isolation: isolate;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.gender-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .3s ease;
}

.gender-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 38%, rgba(44, 34, 28, .72));
}

.gender-card:hover img {
  transform: scale(1.05);
}

.gender-card-label {
  display: grid;
  gap: 2px;
  padding: 22px;
}

.gender-card-label strong {
  font-family: "Playfair Display", serif;
  font-size: 30px;
}

.gender-card-label small {
  opacity: .9;
  font-size: 14px;
}

/* Página de sección: 3 tarjetas de material */
.seccion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.seccion-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.seccion-card-media {
  position: relative;
  display: block;
  height: 220px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.seccion-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .3s ease;
}

.seccion-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 45%, rgba(44, 34, 28, .66));
}

.seccion-card-media:hover img {
  transform: scale(1.05);
}

.seccion-card-name {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

.seccion-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}

.seccion-cats a {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  transition: .2s ease;
}

.seccion-cats a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}

.seccion-cats a.seccion-all {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

@media (max-width: 860px) {
  .seccion-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gender-grid {
    grid-template-columns: 1fr;
  }

  .gender-card {
    min-height: 240px;
  }
}
