/*
  Armonic Maison
  Colores y tipografía tomados del catálogo de la marca:
  fondo rosa empolvado, logotipo oliva, acento vino (terciopelo).
  El verde se usa solo para WhatsApp.
*/
:root {
  --rosa: #FFF7F7;
  --papel: #FFFCFB;
  --oliva: #574E27;
  --tinta: #2A2616;
  --vino: #7B2036;
  --linea: #E7D9D3;
  --suave: #7A7360;
  --whatsapp: #25D366;
  --whatsapp-oscuro: #128C4B;

  --titulos: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --texto: "Montserrat", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --alto-cabecera: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--alto-cabecera) + 16px);
}

body {
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--oliva); }
a:hover { color: var(--vino); }

p { max-width: 62ch; }

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

.saltar {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--tinta);
  color: #fff;
  border-radius: 4px;
}
.saltar:focus { top: 12px; color: #fff; }

/* ---------- títulos ---------- */

.titulo {
  font-family: var(--titulos);
  font-weight: 500;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.1;
  color: var(--oliva);
  margin: 0 0 1rem;
}

/* ---------- marca ---------- */

.marca { display: inline-flex; align-items: center; line-height: 1; }
.marca img { display: block; height: 44px; width: auto; }
.marca--pie img { height: 56px; }

/* ---------- cabecera ---------- */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 247, 247, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}
.cabecera__fila {
  min-height: var(--alto-cabecera);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.menu {
  display: flex;
  gap: clamp(14px, 3vw, 36px);
}
.menu a {
  color: var(--tinta);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
}
.menu a:hover { border-bottom-color: var(--oliva); color: var(--oliva); }

@media (max-width: 575.98px) {
  :root { --alto-cabecera: 104px; }
  .cabecera__fila {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding-top: 10px;
  }
  .menu { width: 100%; justify-content: space-between; }
  .menu a { font-size: 0.8rem; }
}

/* ---------- botones ---------- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--texto);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.boton--oliva { background: var(--oliva); color: #fff; }
.boton--oliva:hover { background: var(--tinta); color: #fff; }

.boton--linea { background: transparent; border-color: var(--oliva); color: var(--oliva); }
.boton--linea:hover { background: var(--oliva); color: #fff; }

.boton--whatsapp { background: var(--whatsapp); color: #0B2E18; }
.boton--whatsapp:hover { background: var(--whatsapp-oscuro); color: #fff; }
.boton--whatsapp .fa-whatsapp { font-size: 1.5rem; }
.boton--whatsapp.is-inactivo {
  background: #EDE6E2;
  color: var(--suave);
  cursor: default;
}
.boton--ancho { width: 100%; }

/* ---------- portada ---------- */

.portada {
  background: var(--rosa);
  padding: clamp(40px, 7vw, 96px) 0;
}
.portada__titulo {
  font-family: var(--titulos);
  font-weight: 400;
  font-size: clamp(3.2rem, 2rem + 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--oliva);
  margin: 0 0 1.25rem;
}
.portada__texto {
  font-size: 1.05rem;
  max-width: 40ch;
  margin-bottom: 1.75rem;
}
.portada__foto img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  border-radius: 2px;
}
.portada--sola { text-align: center; }
.portada--sola .col-lg-6 { width: 100%; }
.portada--sola .portada__texto { margin-left: auto; margin-right: auto; }

/* ---------- catálogo ---------- */

.catalogo { padding: clamp(40px, 6vw, 80px) 0; }
.catalogo__encabezado {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.catalogo__encabezado .titulo { margin-bottom: 0.5rem; }
.catalogo__conteo { margin: 0; color: var(--suave); font-size: 0.9rem; }

.filtros {
  position: sticky;
  top: var(--alto-cabecera);
  z-index: 1010;
  background: rgba(255, 251, 249, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
  padding: 12px 0;
  margin-bottom: 28px;
}
.filtros__fila {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.buscador {
  flex: 1 1 220px;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 16px;
  min-height: 44px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: #fff;
  color: var(--suave);
}
.buscador:focus-within { border-color: var(--oliva); }
.buscador input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--tinta);
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: #fff;
  color: var(--tinta);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { border-color: var(--oliva); }
.chip.is-activo { background: var(--oliva); border-color: var(--oliva); color: #fff; }
.chip--entrega { display: inline-flex; align-items: center; gap: 8px; border-color: var(--vino); color: var(--vino); }
.chip--entrega:hover { border-color: var(--vino); background: #FBEFF1; }
.chip--entrega.is-activo { background: var(--vino); border-color: var(--vino); color: #fff; }

@media (max-width: 575.98px) {
  .buscador { max-width: none; flex-basis: 100%; }
  .chips { margin: 0 -12px; padding: 2px 12px; width: calc(100% + 24px); }
}

.producto {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tinta);
  text-align: left;
  cursor: pointer;
}
.producto__foto {
  position: relative;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--rosa);
  border-radius: 2px;
}
.producto__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.producto:hover .producto__foto img { transform: scale(1.04); }

.sin-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-family: var(--titulos);
  font-style: italic;
  font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem);
  line-height: 1.1;
  color: var(--oliva);
  text-align: center;
}

.producto__sello {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--vino);
  color: #fff;
  font-family: var(--texto);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}
.producto__nombre {
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.15;
}
.producto:hover .producto__nombre { color: var(--vino); }
.producto__precio { font-size: 0.95rem; font-weight: 500; margin-top: 2px; }
.producto__colores { font-size: 0.8rem; color: var(--suave); }
.producto.is-agotado .producto__foto { opacity: 0.5; }
.producto.is-agotado .producto__precio { color: var(--vino); }

.vacio { padding: 48px 0; text-align: center; }
.vacio p { margin: 0 auto 1rem; }

/* ---------- guía de tallas ---------- */

.tallas {
  background: var(--rosa);
  padding: clamp(48px, 7vw, 96px) 0;
}
.tabla-tallas {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.tabla-tallas th,
.tabla-tallas td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--linea);
  text-align: left;
}
.tabla-tallas thead th {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--suave);
  border-bottom-color: var(--oliva);
}
.tabla-tallas tbody th {
  font-family: var(--titulos);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--oliva);
}

/* ---------- cómo comprar ---------- */

.comprar { padding: clamp(48px, 7vw, 96px) 0; }
.pasos {
  list-style: none;
  counter-reset: paso;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px 40px;
  padding: 0;
  margin: 1.5rem 0 2.25rem;
}
.pasos li { counter-increment: paso; }
.pasos li::before {
  content: counter(paso);
  display: block;
  font-family: var(--titulos);
  font-style: italic;
  font-size: 3rem;
  line-height: 1;
  color: var(--vino);
  margin-bottom: 8px;
}
.pasos h3 {
  font-family: var(--texto);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px;
}
.pasos p { margin: 0; font-size: 0.95rem; }

/* ---------- condiciones de compra ---------- */

.condiciones {
  background: var(--rosa);
  padding: clamp(48px, 7vw, 96px) 0;
}
.plegable {
  max-width: 820px;
  border-top: 1px solid var(--linea);
}
.plegable:last-of-type { border-bottom: 1px solid var(--linea); }
.plegable summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 0;
  font-family: var(--titulos);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--oliva);
  cursor: pointer;
  list-style: none;
}
.plegable summary::-webkit-details-marker { display: none; }
.plegable summary::after {
  content: "+";
  flex: none;
  font-family: var(--texto);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}
.plegable[open] summary::after { content: "\2212"; }
.plegable__cuerpo { padding: 4px 0 28px; }
.plegable__cuerpo h3 {
  font-family: var(--texto);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.4rem 0 0.6rem;
}
.plegable__cuerpo ol,
.plegable__cuerpo ul { max-width: 66ch; padding-left: 1.25rem; margin-bottom: 1rem; }
.plegable__cuerpo li { margin-bottom: 0.6rem; }
.plegable__cuerpo li::marker { color: var(--vino); font-weight: 600; }
.plegable__cuerpo p:last-child { margin-bottom: 0; }
.condiciones__imagen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
@media (min-width: 992px) {
  .condiciones__imagen { position: sticky; top: calc(var(--alto-cabecera) + 24px); }
}
@media (max-width: 991.98px) {
  .condiciones__imagen { aspect-ratio: 4 / 3; object-fit: cover; }
}
.condiciones__cierre {
  margin: 2rem 0 0;
  font-family: var(--titulos);
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--oliva);
}

/* ---------- pie ---------- */

.pie {
  background: var(--oliva);
  color: #fff;
  padding: 36px 0 104px;
}
.pie__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.marca--pie { color: #fff; }
.pie__enlaces {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
}
.pie__enlaces a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
}
.pie__enlaces a:hover { text-decoration: underline; color: #fff; }
.pie__enlaces i { font-size: 1.25rem; }

.pie__origen {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.bandera {
  display: inline-block;
  width: 30px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #FCD116 0 50%, #003893 50% 75%, #CE1126 75% 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* ---------- WhatsApp flotante ---------- */

.wa-flotante {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1030;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  font-size: 2.1rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(18, 140, 75, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.wa-flotante:hover { background: var(--whatsapp-oscuro); color: #fff; transform: scale(1.06); }

/* ---------- ficha del producto ---------- */

.ficha .modal-content {
  border: 0;
  border-radius: 4px;
  background: var(--papel);
  overflow: hidden;
}
.ficha .modal-body { padding: 0; }
.ficha__cerrar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 251, 249, 0.92);
  color: var(--tinta);
  font-size: 1.1rem;
  cursor: pointer;
}
.ficha__imagen {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: var(--rosa);
}
.ficha__imagen img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ficha__minis { display: flex; gap: 8px; padding: 10px 12px; background: var(--rosa); }
.ficha__mini {
  width: 60px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 2px;
  background: none;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
}
.ficha__mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ficha__mini.is-activo { border-color: var(--oliva); opacity: 1; }
.ficha__datos { padding: 28px 24px 24px; }
.ficha__nombre {
  font-family: var(--titulos);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.05;
  color: var(--oliva);
  margin: 0 40px 4px 0;
}
.ficha__nota { margin: 0; color: var(--suave); font-size: 0.9rem; }
.ficha__precio { font-size: 1.25rem; font-weight: 600; margin: 8px 0 20px; }
.ficha__entrega {
  display: inline-block;
  margin: -8px 0 20px;
  padding: 6px 12px;
  border-radius: 4px;
  background: #FBEFF1;
  color: var(--vino);
  font-size: 0.85rem;
  font-weight: 600;
}
.ficha__entrega[hidden] { display: none; }
.ficha__ayuda { margin: 12px 0 0; font-size: 0.82rem; color: var(--suave); }
.ficha__encargo {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--linea);
  font-size: 0.85rem;
  line-height: 1.5;
}

.opciones { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.opciones legend {
  float: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.opciones__ayuda { font-weight: 500; font-size: 0.85rem; }
.opciones__lista { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion { position: relative; margin: 0; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opcion span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.opcion:hover span { border-color: var(--oliva); }
.opcion input:checked + span { background: var(--oliva); border-color: var(--oliva); color: #fff; }
.opcion input:focus-visible + span { outline: 2px solid var(--vino); outline-offset: 3px; }

/* En el celular la ficha sube desde abajo, como una hoja. */
@media (max-width: 767.98px) {
  .ficha .modal-dialog {
    margin: 0;
    max-width: none;
    min-height: 100%;
    align-items: flex-end;
  }
  .ficha .modal-content {
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
  }
  .ficha.fade .modal-dialog { transform: translateY(40px); }
  .ficha.show .modal-dialog { transform: none; }
  .ficha__imagen { aspect-ratio: 5 / 4; }
}

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