/* =========================================================
   PERFUMERÍA GASA — Hoja de estilos (versión mejorada)
   - Variables sin cambios
   - Tipografía más grande y legible
   - Diseño editorial: marcos en arco, líneas finas, contraste
   - Un solo archivo, sin bloques duplicados
   ========================================================= */

/* ---------- 1. VARIABLES (sin cambios) ---------- */

:root {
  --color-bg: #faf8f4;
  --color-white: #ffffff;
  --color-cream: #f0e9dd;
  --color-cream-dark: #e6dccb;

  --color-black: #201d19;
  --color-dark: #302a23;
  --color-gray: #77716a;
  --color-light-gray: #e9e5de;

  --color-gold: #b79a69;
  --color-gold-dark: #917548;

  --font-main: "DM Sans", sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;

  --container: 1240px;
  --header-height: 86px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-soft: 0 10px 35px rgba(32, 29, 25, 0.07);
  --shadow-hover: 0 18px 45px rgba(32, 29, 25, 0.13);

  --transition: 0.25s ease;
}

/* ---------- 2. REINICIO ---------- */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-black);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:disabled { cursor: not-allowed; opacity: 0.55; }

button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-gold-dark);
  outline-offset: 3px;
}

::selection { background: var(--color-gold); color: var(--color-white); }

.hidden { display: none !important; }

/* ---------- 3. AVISO SUPERIOR ---------- */

.announcement {
  min-height: 42px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--color-black);
  color: #f6f0e6;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-align: center;
}

.announcement span { color: var(--color-gold); }

/* ---------- 4. ENCABEZADO ---------- */

.site-header {
  width: 100%;
  min-height: 92px;
  padding: 0 max(5%, calc((100% - 1360px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(250, 248, 244, 0.95);
  border-bottom: 1px solid rgba(32, 29, 25, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--color-black);
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 5px rgba(183, 154, 105, 0.5);
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1;
}

.brand-copy { display: flex; flex-direction: column; gap: 4px; }

.brand-copy strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--color-gray);
  font-size: 11px;
  letter-spacing: 2.8px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: #514b44;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--color-gold-dark);
  transform: translateX(-50%);
  transition: width var(--transition);
}

.main-nav a:hover { color: var(--color-gold-dark); }
.main-nav a:hover::after { width: 100%; }

.cart-button {
  min-height: 50px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-white);
  background: var(--color-black);
  border: 1px solid var(--color-black);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.cart-button:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  transform: translateY(-2px);
}

.cart-button b {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 50px;
  background: var(--color-gold);
  color: var(--color-black);
  font-size: 13px;
}

/* ---------- 5. BOTONES ---------- */

.button {
  min-height: 54px;
  padding: 14px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
  transition: transform var(--transition), background var(--transition),
    color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.button:hover { transform: translateY(-2px); }

.button-dark { background: var(--color-black); color: var(--color-white); box-shadow: 0 6px 18px rgba(32, 29, 25, 0.14); }
.button-dark:hover { background: var(--color-gold-dark); box-shadow: 0 12px 26px rgba(145, 117, 72, 0.3); }

.button-light { background: var(--color-white); color: var(--color-black); }
.button-light:hover { background: var(--color-cream); }

.button-outline { color: var(--color-black); background: transparent; border-color: #cfc4b3; }
.button-outline:hover { border-color: var(--color-black); background: var(--color-white); }

.button-full { width: 100%; }
.button span { font-size: 19px; line-height: 1; }

/* ---------- 6. PORTADA ---------- */

.hero {
  width: 100%;
  min-height: 640px;
  padding: 80px max(7%, calc((100% - 1320px) / 2));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse at 82% 40%, rgba(221, 205, 177, 0.5), transparent 42%),
    linear-gradient(115deg, #faf8f4 45%, #f0e9dd 100%);
}

.hero-content { width: 100%; max-width: 620px; position: relative; z-index: 2; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--color-gold-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
}

.eyebrow-line { width: 40px; height: 1px; display: inline-block; background: var(--color-gold-dark); }

.hero h1, .section-heading h2, .credit-banner-copy h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -1.5px;
}

.hero h1 { font-size: clamp(48px, 5.6vw, 82px); line-height: 1.05; }

.hero h1 em, .section-heading h2 em, .credit-banner-copy h2 em {
  color: var(--color-gold-dark);
  font-weight: 400;
  font-style: italic;
}

.hero-description {
  max-width: 500px;
  margin-top: 28px;
  color: #5f5850;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions { margin-top: 38px; display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }

.text-link {
  padding: 8px 0;
  color: var(--color-black);
  border-bottom: 2px solid var(--color-gold);
  font-size: 15px;
  font-weight: 600;
  transition: color var(--transition), border-color var(--transition);
}

.text-link:hover { color: var(--color-gold-dark); border-color: var(--color-gold-dark); }

.hero-notes {
  margin-top: 40px;
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  color: #5f5850;
  font-size: 15px;
  border-top: 1px solid rgba(32, 29, 25, 0.1);
}

.hero-notes span { display: inline-flex; align-items: center; gap: 10px; }
.hero-notes i { color: var(--color-gold-dark); font-style: normal; font-size: 17px; font-weight: 700; }

.hero-art { min-height: 480px; position: relative; display: flex; align-items: center; justify-content: center; }

.hero-orb {
  width: min(92%, 460px);
  aspect-ratio: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(145, 117, 72, 0.35);
  border-radius: 50%;
}

.hero-orb::before, .hero-orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(145, 117, 72, 0.2);
}
.hero-orb::before { inset: 22px; }
.hero-orb::after { inset: 44px; }

.hero-image {
  width: min(78%, 380px);
  aspect-ratio: 4 / 5;
  position: relative;
  z-index: 1;
  border-radius: 999px 999px 14px 14px;
  border: 6px solid var(--color-white);
  background:
    linear-gradient(180deg, rgba(32, 29, 25, 0.03), rgba(32, 29, 25, 0.18)),
    url("https://medias.jeanpaulgaultier.com/cdn-cgi/image/width=390,quality=90,format=avif/medias/sys_master/images/h7e/h53/10734002143262/push-pdp-le-beau-lp-jean-paul-gaultier/push-pdp-le-beau-lp-jean-paul-gaultier.jpg")
    center 50% / cover no-repeat;
  box-shadow: 0 30px 70px rgba(32, 29, 25, 0.2);
}

.hero-stamp {
  width: 116px;
  height: 116px;
  position: absolute;
  right: 0;
  top: 38px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(145, 117, 72, 0.55);
  border-radius: 50%;
  background: rgba(250, 248, 244, 0.95);
  box-shadow: 0 10px 28px rgba(43, 34, 24, 0.08);
  text-align: center;
}

.hero-stamp span { font-family: var(--font-heading); font-size: 30px; }
.hero-stamp small { color: var(--color-gold-dark); font-size: 10px; line-height: 1.5; letter-spacing: 1.2px; }

.hero-caption { position: absolute; left: 0; bottom: 4px; color: #73695c; font-size: 13px; }
.hero-caption span { margin-right: 8px; color: var(--color-gold-dark); font-weight: 700; }

/* ---------- 7. FRANJA DE BENEFICIOS ---------- */

.trust-strip {
  padding: 34px max(7%, calc((100% - 1320px) / 2));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  background: var(--color-white);
  border-top: 1px solid var(--color-light-gray);
  border-bottom: 1px solid var(--color-light-gray);
}

.trust-strip > div { display: flex; align-items: center; justify-content: center; gap: 16px; }

.trust-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--color-gold-dark);
  background: #f8f4ed;
  border: 1px solid #ece3d4;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 26px;
}

.trust-strip > div > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.trust-strip strong { font-size: 16px; font-weight: 700; }
.trust-strip small { color: var(--color-gray); font-size: 14px; }

/* ---------- 8. CONTENEDORES Y ENCABEZADOS ---------- */

.section-wrap { width: min(90%, 1320px); margin-inline: auto; }

.catalog-section { padding-top: 100px; padding-bottom: 105px; }

.section-heading {
  margin-bottom: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
}

.section-heading .eyebrow { margin-bottom: 14px; }

.section-heading h2, .credit-banner-copy h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -1.2px;
}

.section-intro { max-width: 380px; color: var(--color-gray); font-size: 16px; line-height: 1.85; }

.centered { flex-direction: column; align-items: center; text-align: center; }
.centered .eyebrow { justify-content: center; }
.centered .section-intro { max-width: 520px; }

/* ---------- 9. BUSCADOR Y ORDEN ---------- */

.catalog-tools { margin-bottom: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.search-box {
  width: min(100%, 460px);
  min-height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--color-white);
  border: 1px solid #e0d8cb;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(33, 30, 26, 0.03);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within { border-color: var(--color-gold); box-shadow: 0 0 0 4px rgba(183, 154, 105, 0.15); }
.search-box > span { color: var(--color-gold-dark); font-size: 28px; line-height: 1; }

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--color-black);
  background: transparent;
  font-size: 16px;
}

.search-box input::placeholder { color: #a39b91; }

.sort-box { display: flex; align-items: center; gap: 12px; color: var(--color-gray); font-size: 15px; }

.sort-box select {
  min-height: 52px;
  max-width: 260px;
  padding: 12px 36px 12px 18px;
  color: var(--color-black);
  background-color: var(--color-white);
  border: 1px solid #e0d8cb;
  border-radius: 50px;
  font-size: 15px;
  outline: none;
  cursor: pointer;
}

.sort-box select:focus { border-color: var(--color-gold); }

/* ---------- 10. CATEGORÍAS ---------- */

.category-list {
  margin-bottom: 30px;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  min-height: 46px;
  padding: 10px 22px;
  color: #5f574d;
  background: var(--color-white);
  border: 1px solid #e2d9ca;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.category-chip:hover { background: #f5efe5; border-color: var(--color-gold); transform: translateY(-1px); }
.category-chip.active { background: var(--color-black); border-color: var(--color-black); color: var(--color-white); }

/* ---------- 11. RESULTADOS ---------- */

.results-line {
  min-height: 36px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--color-gray);
  font-size: 15px;
  border-bottom: 1px solid var(--color-light-gray);
}

.demo-label { color: #92764a; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-align: right; }

/* ---------- 12. PRODUCTOS ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 34px 24px;
}

.product-card {
  min-width: 0;
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid #ece6db;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(33, 30, 26, 0.03);
  animation: productAppear 0.4s ease both;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.product-card:hover {
  z-index: 2;
  transform: translateY(-6px);
  border-color: #dcc9a8;
  box-shadow: 0 20px 42px rgba(33, 30, 26, 0.11);
}

.product-image-wrap, .product-card-image {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  position: relative;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  background: white;
}

button.product-card-image { padding: 0; border: 0; color: inherit; text-align: inherit; cursor: pointer; }

.product-image, .product-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 18px;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image,
.product-card:hover .product-card-image img { transform: scale(1.06); }

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #fffdf9 0%, #f5eee3 64%, #eee4d5 100%);
  color: var(--color-gold-dark);
  font-family: var(--font-heading);
  font-size: 54px;
}

.product-badge, .product-stock {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  max-width: calc(100% - 28px);
  padding: 7px 12px;
  color: #43372a;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(220, 210, 195, 0.8);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.product-badge.badge-gold { color: #fff; background: var(--color-gold-dark); border-color: var(--color-gold-dark); }

.product-quick-view, .product-view-button {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  width: calc(100% - 24px);
  min-height: 46px;
  padding: 10px;
  color: var(--color-black);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(226, 218, 206, 0.9);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(33, 30, 26, 0.09);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.product-card:hover .product-quick-view,
.product-card:hover .product-view-button,
.product-quick-view:focus-visible,
.product-view-button:focus-visible { opacity: 1; transform: translateY(0); }

.product-quick-view:hover, .product-view-button:hover { color: #fff; background: var(--color-black); }

.product-info, .product-card-content {
  min-width: 0;
  padding: 20px 20px 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
}

.product-category, .product-card-category {
  margin-bottom: 7px;
  color: #9a7c4c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 1.5;
  text-transform: uppercase;
}

.product-name, .product-card-title {
  margin-bottom: 9px;
  color: #26221d;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.product-description { margin-bottom: 14px; color: var(--color-gray); font-size: 14px; line-height: 1.7; }

.product-price-row {
  margin-top: auto;
  margin-bottom: 16px;
  padding-top: 14px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #f0eae0;
}

.product-price, .product-card-price { color: var(--color-black); font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.product-old-price { color: #9a9389; font-size: 14px; text-decoration: line-through; }
.product-credit-label { margin-top: 5px; color: #8d744e; font-size: 13px; line-height: 1.5; }

.product-card-actions {
  margin-top: auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  gap: 10px;
}

.product-card-actions .button { min-width: 0; min-height: 50px; padding: 10px 12px; font-size: 14px; }

.product-details-button {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--color-black);
  background: #fff;
  border: 1px solid #ddd2c0;
  border-radius: 50%;
  font-size: 20px;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.product-details-button:hover { color: #fff; background: var(--color-black); border-color: var(--color-black); }

.product-card-content .product-view-button {
  position: static;
  width: 100%;
  margin-top: 12px;
  opacity: 1;
  transform: none;
  box-shadow: none;
}

/* ---------- 13. ESTADOS VACÍOS Y ERRORES ---------- */

.empty-state {
  padding: 80px 24px;
  text-align: center;
  background: var(--color-white);
  border: 1px solid #eee8df;
  border-radius: 22px;
}

.empty-state > span { color: var(--color-gold-dark); font-size: 56px; }
.empty-state h3 { margin: 12px 0; font-family: var(--font-heading); font-size: 32px; font-weight: 400; }
.empty-state p { max-width: 440px; margin: 0 auto 26px; color: var(--color-gray); font-size: 16px; line-height: 1.8; }

.catalog-error {
  margin-top: 20px;
  padding: 18px 20px;
  color: #7d392e;
  background: #f8eae6;
  border: 1px solid #e9c9c0;
  border-radius: 14px;
  font-size: 15px;
}

/* ---------- 14. BANNER DE CRÉDITO ---------- */

.credit-banner {
  min-height: 460px;
  padding: 80px max(8%, calc((100% - 1200px) / 2));
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 60px;
  color: var(--color-white);
  background:
    radial-gradient(circle at 15% 45%, rgba(183, 154, 105, 0.22), transparent 34%),
    linear-gradient(120deg, #211e1a, #393126);
}

.credit-banner:not(:has(.credit-banner-art)) { grid-template-columns: 1fr; }

.credit-banner-art { min-height: 300px; display: grid; place-items: center; }

.credit-circle {
  width: min(100%, 290px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 154, 105, 0.65);
  border-radius: 50%;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 150px;
}

.credit-circle::before, .credit-circle::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(183, 154, 105, 0.3);
  border-radius: 50%;
}
.credit-circle::before { inset: 14px; }
.credit-circle::after { inset: 30px; }
.credit-circle span { position: absolute; right: 30px; top: 26px; font-family: var(--font-main); font-size: 32px; }

.credit-banner-copy { position: relative; z-index: 1; }
.credit-banner-copy .eyebrow { color: #d6bc91; }
.credit-banner-copy h2 { color: #fff; }
.credit-banner-copy h2 em { color: #d6bc91; }

.credit-banner-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin-top: 22px;
  margin-bottom: 30px;
  color: #d9d0c2;
  font-size: 18px;
  line-height: 1.85;
}

.credit-banner .button-light:hover { background: #e9dcc7; }

.credit-banner-side { position: absolute; right: 28px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: rgba(214, 188, 145, 0.45); }
.credit-banner-side span { font-family: var(--font-heading); font-size: 30px; }
.credit-banner-side small { font-size: 10px; letter-spacing: 1.5px; line-height: 1.6; text-align: right; }

/* ---------- 15. PASOS ---------- */

.steps-section { padding-top: 105px; padding-bottom: 105px; }

.steps-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.step-card {
  min-height: 270px;
  padding: 36px 32px;
  position: relative;
  background: var(--color-white);
  border: 1px solid #eee8df;
  border-top: 3px solid var(--color-gold);
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(33, 30, 26, 0.03);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-top-color: var(--color-gold-dark); }

.step-number { position: absolute; top: 26px; right: 28px; color: #d3c6b0; font-family: var(--font-heading); font-size: 34px; font-weight: 500; line-height: 1; }

.step-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 26px;
  display: grid;
  place-items: center;
  color: var(--color-gold-dark);
  background: #f8f3eb;
  border: 1px solid #eee4d4;
  border-radius: 50%;
  font-size: 28px;
}

.step-card h3 { margin-bottom: 10px; font-family: var(--font-heading); font-size: 26px; font-weight: 500; }
.step-card p { max-width: 340px; color: var(--color-gray); font-size: 16px; line-height: 1.8; }

.fine-print { max-width: 820px; margin: 34px auto 0; color: #8b847b; font-size: 14px; line-height: 1.8; text-align: center; }

/* ---------- 16. PIE DE PÁGINA ---------- */

.site-footer { padding: 44px max(7%, calc((100% - 1320px) / 2)) 0; background: #201d19; color: #f5f0e7; }

.footer-top {
  min-height: 110px;
  padding-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.brand-footer .brand-mark { background: transparent; color: var(--color-gold); box-shadow: 0 0 0 4px #201d19, 0 0 0 5px rgba(183, 154, 105, 0.5); }
.brand-footer .brand-copy strong { color: #fff; }
.brand-footer .brand-copy small { color: #c2b6a4; }

.footer-top > p { color: #d0c7ba; font-family: var(--font-heading); font-size: 21px; font-style: italic; }

.footer-link {
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #e0c79f;
  border-bottom: 1px solid #766348;
  font-size: 15px;
  font-weight: 600;
  transition: color var(--transition);
}
.footer-link:hover { color: #fff; }
.footer-link span { font-size: 18px; }

.footer-bottom { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #b3a99a; font-size: 13px; }

/* ---------- 17. MODALES ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 21, 17, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  overflow-y: auto;
}

#paymentModal, #creditModal { z-index: 150; }
#creditModal { align-items: flex-start; }

.product-modal {
  width: min(100%, 960px);
  max-height: calc(100vh - 48px);
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  background: #fcfaf6;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 26px;
  overflow: auto;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
  animation: modalAppear 0.25s ease;
}

.modal-close {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid #e4dacb;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(33, 30, 26, 0.07);
  font-size: 28px;
  line-height: 1;
  transition: color var(--transition), background var(--transition);
}
.modal-close:hover { color: #fff; background: var(--color-black); }

.product-modal > .modal-close { position: absolute; top: 16px; right: 16px; z-index: 5; }

.modal-product-image { min-height: 460px; background: radial-gradient(circle at 50% 45%, #fff 35%, #f6f0e6 100%); overflow: hidden; }
.modal-product-image img { width: 100%; height: 100%; min-height: 460px; object-fit: contain; padding: 22px; }
.modal-product-image .product-image-placeholder { min-height: 460px; font-size: 90px; }

.modal-product-content { padding: 52px 42px; display: flex; flex-direction: column; align-items: stretch; }
.modal-product-content .eyebrow { margin-bottom: 14px; }

.modal-product-content h2 {
  padding-right: 30px;
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.modal-description { margin-top: 18px; color: var(--color-gray); font-size: 16px; line-height: 1.85; }

.modal-price-row {
  margin-top: 26px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e9e0d3;
  border-bottom: 1px solid #e9e0d3;
}
.modal-price-row span { color: var(--color-gray); font-size: 15px; }
.modal-price-row strong { color: var(--color-black); font-size: 28px; }

/* ---------- 18. CALCULADORA DE CRÉDITO ---------- */

.credit-calculator { margin: 24px 0; padding: 24px; background: #f4eee4; border: 1px solid #e8dcc9; border-radius: 18px; }
.credit-calculator h3 { margin-bottom: 18px; font-family: var(--font-heading); font-size: 23px; font-weight: 500; }

.calculator-field { margin-bottom: 16px; }
.calculator-field label { display: block; margin-bottom: 8px; color: #5f564b; font-size: 14px; font-weight: 600; }

.calculator-field select, .calculator-field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid #dfd3c0;
  border-radius: 12px;
  font-size: 16px;
}

.calculator-field select:focus, .calculator-field input:focus { outline: none; border-color: var(--color-gold-dark); box-shadow: 0 0 0 3px rgba(183, 154, 105, 0.18); }

.calculator-summary { padding-top: 16px; border-top: 1px solid #d8c9b4; }

.calculator-line { margin-bottom: 11px; display: flex; justify-content: space-between; align-items: baseline; gap: 14px; color: #5f564b; font-size: 15px; }
.calculator-line strong { color: var(--color-black); font-size: 16px; text-align: right; }

.calculator-line.total { margin-top: 15px; padding-top: 15px; border-top: 1px solid #d8c9b4; color: var(--color-black); font-size: 16px; font-weight: 700; }
.calculator-line.total strong { color: var(--color-gold-dark); font-size: 26px; }

.calculator-help { margin-top: 14px; color: #81776a; font-size: 13px; line-height: 1.7; }
.modal-note { margin: 0 0 20px; color: #81776a; font-size: 13px; line-height: 1.8; }

/* ---------- 19. PANEL DE SELECCIÓN (CARRITO) ---------- */

.cart-drawer { position: fixed; inset: 0; z-index: 120; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(22, 19, 16, 0.65); animation: fadeIn 0.2s ease; }

.drawer-panel {
  width: min(100%, 500px);
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  box-shadow: -15px 0 60px rgba(0, 0, 0, 0.18);
  animation: drawerIn 0.28s ease;
}

.drawer-header { padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--color-bg); border-bottom: 1px solid #e8e0d4; }
.drawer-header .eyebrow { margin-bottom: 5px; font-size: 12px; }
.drawer-header h2 { font-family: var(--font-heading); font-size: 34px; font-weight: 400; }

.cart-items { flex: 1; padding: 24px 28px; overflow-y: auto; }

.cart-empty { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--color-gray); text-align: center; }
.cart-empty span { margin-bottom: 14px; color: var(--color-gold-dark); font-size: 46px; }
.cart-empty h3 { margin-bottom: 8px; color: var(--color-black); font-family: var(--font-heading); font-size: 27px; font-weight: 400; }
.cart-empty p { max-width: 300px; font-size: 15px; line-height: 1.8; }

.cart-item {
  margin-bottom: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e8e0d4;
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cart-item:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }

.cart-item-image { width: 96px; aspect-ratio: 4 / 5; display: block; overflow: hidden; border-radius: 12px; background: #f1e9dd; }
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.cart-item-image span { width: 100%; height: 100%; display: grid; place-items: center; color: #a48654; font-family: var(--font-heading); font-size: 22px; background: radial-gradient(circle at 50% 40%, #fffdf9, #f1e9dd); }

.cart-item-info { min-width: 0; }

.cart-item-info h3 {
  margin-bottom: 5px;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-info > p { margin-bottom: 12px; color: var(--color-black); font-size: 18px; font-weight: 700; }

.cart-item-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.cart-item-controls button[data-quantity] {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--color-black);
  background: #fff;
  border: 1px solid #ddd4c7;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cart-item-controls button[data-quantity]:hover { color: #fff; background: var(--color-black); border-color: var(--color-black); }

.cart-item-controls > span { min-width: 26px; text-align: center; font-size: 17px; font-weight: 700; }

.cart-item-controls button[data-remove] {
  margin-left: auto;
  padding: 8px 2px;
  color: #a0685a;
  background: none;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-item-controls button[data-remove]:hover { color: #7d392e; }

.cart-remove {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #8c6256;
  background: transparent;
  border: 1px solid #e5d6d0;
  border-radius: 50%;
  font-size: 20px;
  transition: color var(--transition), background var(--transition);
}
.cart-remove:hover { color: #fff; background: #8c6256; }

.cart-total { margin-top: 8px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid #e8e0d4; border-radius: 16px; }
.cart-total span { color: var(--color-gray); font-size: 15px; }
.cart-total strong { color: var(--color-gold-dark); font-size: 28px; }

.cart-items .empty-state { padding: 60px 22px; border: 1px dashed #ddd2bf; border-radius: 18px; }
.cart-items .empty-state h3 { font-size: 27px; }
.cart-items .empty-state p { margin-bottom: 0; }

.drawer-footer { padding: 24px 28px 30px; background: var(--color-white); border-top: 1px solid #e8e0d4; }
.drawer-footer > p { margin-bottom: 18px; color: var(--color-gray); font-size: 14px; line-height: 1.8; }
.drawer-footer .button { min-height: 58px; font-size: 16px; }

/* ---------- 20. NOTIFICACIONES ---------- */

.toast {
  max-width: calc(100% - 32px);
  width: max-content;
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  padding: 16px 26px;
  color: #fff;
  background: var(--color-black);
  border: 1px solid rgba(183, 154, 105, 0.6);
  border-radius: 50px;
  font-size: 15px;
  text-align: center;
  box-shadow: var(--shadow-hover);
  transform: translateX(-50%);
  animation: toastIn 0.25s ease;
}

/* ---------- 21. PAGO Y SOLICITUD DE CRÉDITO ---------- */

#creditModal .credit-request-modal,
#paymentModal .payment-modal { display: block; grid-template-columns: none; margin: auto; overflow-y: auto; }

#creditModal .credit-request-modal { width: min(100%, 700px); max-width: 700px; }
#paymentModal .payment-modal { width: min(100%, 520px); max-width: 520px; }

#creditModal .credit-request-modal .modal-product-content,
#paymentModal .payment-modal .modal-product-content { display: block; padding: 44px 40px 38px; }

#paymentModal .payment-modal p:not(.eyebrow) { margin: 12px 0 10px; color: var(--color-gray); font-size: 16px; }
#paymentModal .payment-modal .button { margin-top: 14px; }

#creditModal .credit-request-modal h2 { margin-bottom: 4px; padding-right: 46px; }
#creditModal .credit-intro { margin: 10px 0 0; color: var(--color-gray); font-size: 15px; line-height: 1.8; }

#creditModal #creditRequestForm { display: block; width: 100%; margin: 26px 0 0; padding: 0; }

#creditModal .credit-section { margin: 0 0 24px; padding: 26px; background: #fff; border: 1px solid #ece4d8; border-radius: 18px; }

#creditModal .credit-section-title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  color: #29231d;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
}

#creditModal .credit-section-number {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #f4ecdf;
  border: 1px solid #e7d7bd;
  border-radius: 50%;
  color: var(--color-gold-dark);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
}

#creditModal .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
#creditModal .form-field { min-width: 0; margin-bottom: 0; }

#creditModal label { display: block; margin-bottom: 9px; color: #383129; font-size: 15px; font-weight: 700; line-height: 1.5; }
#creditModal .required { color: #a34c3d; }

#creditModal input:not([type="checkbox"]):not([type="file"]),
#creditModal textarea,
#creditModal select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 13px 16px;
  color: #29231d;
  background: #fff;
  border: 1px solid #ddd3c3;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#creditModal textarea { min-height: 140px; resize: vertical; }
#creditModal input::placeholder, #creditModal textarea::placeholder { color: #aaa196; opacity: 1; }

#creditModal input:not([type="checkbox"]):not([type="file"]):focus,
#creditModal textarea:focus,
#creditModal select:focus { outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 4px rgba(183, 154, 105, 0.15); }

/* Cajas de subida */
#creditModal .upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
#creditModal .upload-field { position: relative; margin-bottom: 18px; }
#creditModal .upload-grid .upload-field { margin-bottom: 0; }
#creditModal .upload-field:last-child { margin-bottom: 0; }

#creditModal .upload-box {
  position: relative;
  min-height: 160px;
  margin-bottom: 0;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
  text-align: center;
  background: #fffdf9;
  border: 2px dashed #cdbb9d;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#creditModal .upload-box:hover { background: #f8f2e8; border-color: var(--color-gold-dark); }
#creditModal .upload-box:focus-within { outline: 2px solid var(--color-gold-dark); outline-offset: 3px; }

#creditModal .upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}
#creditModal .upload-box input[type="file"]::file-selector-button { display: none; }

#creditModal .upload-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--color-gold-dark); background: #f4ecdf; border-radius: 50%; font-size: 25px; font-weight: 700; transition: transform 0.2s ease; }
#creditModal .upload-box:hover .upload-icon { transform: translateY(-3px); }

#creditModal .upload-title { margin: 0; color: #29231d; font-size: 16px; font-weight: 700; }
#creditModal .upload-description { max-width: 320px; margin: 0; color: #82796e; font-size: 13px; line-height: 1.7; }

#creditModal .upload-file-name {
  display: inline-block;
  max-width: 100%;
  margin-top: 5px;
  padding: 5px 13px;
  color: #82796e;
  background: #f4ecdf;
  border-radius: 20px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

#creditModal .upload-box.has-file { background: #f3f7ee; border-style: solid; border-color: #8aa66a; }
#creditModal .upload-box.has-file .upload-icon { color: #fff; background: #6c8a4a; font-size: 0; }
#creditModal .upload-box.has-file .upload-icon::before { content: "✓"; font-size: 25px; }
#creditModal .upload-box.has-file .upload-file-name { color: #4b6630; background: #e3edd8; }

/* Resumen */
#creditModal #creditOrderSummary { margin: 0 0 22px; padding: 20px; color: #5f564b; background: #f4eee4; border: 1px solid #e8dcc9; border-radius: 16px; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
#creditModal #creditOrderSummary:empty { display: none; }
#creditModal #creditOrderSummary h3 { margin-bottom: 10px; color: #29231d; font-family: var(--font-heading); font-size: 22px; font-weight: 500; }
#creditModal #creditOrderSummary ul { list-style: none; }
#creditModal #creditOrderSummary li { padding: 10px 0; border-bottom: 1px dashed #dccfb9; font-size: 15px; }
#creditModal #creditOrderSummary li:last-child { border-bottom: 0; }
#creditModal #creditOrderSummary p { margin-top: 12px; padding-top: 12px; border-top: 1px solid #dccfb9; text-align: right; font-size: 17px; }

/* Consentimiento */
#creditModal .credit-consent { display: flex; align-items: flex-start; gap: 13px; margin: 22px 0; padding: 18px; background: #f7f3ec; border: 1px solid #ece2d3; border-radius: 14px; cursor: pointer; }
#creditModal .credit-consent span { color: #62594e; font-size: 14px; line-height: 1.75; }
#creditModal input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--color-gold-dark); cursor: pointer; }

#creditModal #creditFormMessage { margin: 14px 0; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.7; text-align: center; overflow-wrap: anywhere; }
#creditModal #creditFormMessage:empty { display: none; }

#creditModal #submitCreditBtn { min-height: 60px; font-size: 16px; }
#creditModal #submitCreditBtn:disabled { opacity: 0.6; cursor: wait; }

#creditModal .credit-privacy-note { margin-top: 16px; color: #82796e; font-size: 13px; line-height: 1.8; text-align: center; }

/* ---------- 22. ANIMACIONES ---------- */

@keyframes productAppear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalAppear { from { opacity: 0; transform: translateY(14px) scale(0.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes drawerIn { from { opacity: 0.6; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- 23. TABLET ---------- */

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; }
  .site-header { gap: 16px; }
  .main-nav { gap: 20px; }
  .main-nav a { font-size: 14px; }
  .hero { padding-inline: 6%; gap: 30px; min-height: 560px; }
  .hero-art { min-height: 400px; }
  .credit-banner { padding-inline: 6%; gap: 36px; }
  .credit-circle { font-size: 120px; }
}

/* ---------- 24. MÓVIL ---------- */

@media (max-width: 760px) {
  body { font-size: 17px; }

  .announcement { min-height: 40px; font-size: 11px; letter-spacing: 1.2px; line-height: 1.5; }

  .site-header { min-height: 80px; padding: 12px 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
  .brand { gap: 11px; }
  .brand-mark { width: 48px; height: 48px; font-size: 28px; }
  .brand-copy strong { font-size: 14px; letter-spacing: 1.2px; }
  .brand-copy small { font-size: 10px; letter-spacing: 1.8px; }

  .main-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; padding: 6px 0 2px; justify-content: flex-start; gap: 26px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex-shrink: 0; padding: 10px 0; font-size: 16px; }

  .cart-button { min-height: 48px; padding: 8px 14px; gap: 9px; font-size: 14px; }

  .button { min-height: 56px; font-size: 16px; }

  .hero { min-height: auto; padding: 46px 22px 36px; grid-template-columns: 1fr; gap: 20px; }
  .hero-content { max-width: 100%; }
  .eyebrow { font-size: 12px; letter-spacing: 2.2px; }
  .hero h1 { font-size: clamp(46px, 12vw, 64px); letter-spacing: -1.2px; }
  .hero-description { max-width: 100%; margin-top: 22px; font-size: 17px; }
  .hero-actions { margin-top: 28px; }
  .hero-notes { margin-top: 28px; font-size: 15px; }
  .hero-art { min-height: 360px; }
  .hero-image { width: min(72%, 300px); }
  .hero-orb { width: min(86%, 330px); }
  .hero-stamp { width: 88px; height: 88px; top: 16px; right: 4%; }
  .hero-stamp span { font-size: 24px; }
  .hero-stamp small { font-size: 8px; }

  .trust-strip { padding: 26px 22px; grid-template-columns: 1fr; gap: 20px; }
  .trust-strip > div { justify-content: flex-start; }

  .section-wrap { width: calc(100% - 36px); }
  .catalog-section { padding-top: 60px; padding-bottom: 64px; }
  .section-heading { margin-bottom: 30px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-heading h2, .credit-banner-copy h2 { font-size: clamp(36px, 9vw, 46px); }
  .section-intro { max-width: 100%; font-size: 16px; }
  .centered { align-items: center; }

  .catalog-tools { align-items: stretch; flex-direction: column; gap: 14px; }
  .search-box { width: 100%; min-height: 58px; }
  .search-box input { font-size: 17px; }
  .sort-box { justify-content: space-between; }
  .sort-box select { flex: 1; max-width: 72%; min-height: 52px; font-size: 16px; }

  .category-list { justify-content: center; gap: 9px; width: 100%; padding: 6px 0; }
  .category-chip { flex: 0 0 auto; max-width: 100%; min-height: 46px; padding: 10px 18px; font-size: 15px; white-space: normal; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .product-card { border-radius: 16px; padding-bottom: 14px; }
  .product-image, .product-card-image img { padding: 8px; }
  .product-badge, .product-stock { top: 8px; left: 8px; padding: 5px 9px; font-size: 10px; }

  .product-quick-view, .product-view-button { left: 7px; right: 7px; bottom: 7px; width: calc(100% - 14px); min-height: 40px; font-size: 13px; opacity: 1; transform: none; }

  .product-info, .product-card-content { padding: 14px 12px 0; }
  .product-category, .product-card-category { font-size: 11px; letter-spacing: 0.8px; }
  .product-name, .product-card-title { font-size: 18px; }
  .product-description { font-size: 13px; line-height: 1.6; }
  .product-price, .product-card-price { font-size: 19px; }
  .product-old-price { font-size: 13px; }

  .product-card-actions { padding-inline: 12px; grid-template-columns: minmax(0, 1fr) 46px; gap: 7px; }
  .product-card-actions .button { min-height: 48px; padding-inline: 6px; font-size: 13px; }
  .product-details-button { width: 46px; height: 48px; border-radius: 24px; }

  .results-line { font-size: 14px; }
  .demo-label { font-size: 11px; }
  .empty-state h3 { font-size: 28px; }
  .empty-state p, .catalog-error { font-size: 15px; }

  .credit-banner { padding: 56px 24px; grid-template-columns: 1fr; gap: 24px; }
  .credit-banner-art { min-height: 210px; }
  .credit-circle { width: 200px; font-size: 100px; }
  .credit-circle span { right: 22px; top: 18px; font-size: 24px; }
  .credit-banner-copy > p:not(.eyebrow) { font-size: 17px; }

  .steps-section { padding-top: 66px; padding-bottom: 66px; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .step-card { min-height: 0; padding: 30px 24px; }
  .step-card h3 { font-size: 26px; }
  .step-card p { max-width: 100%; font-size: 16px; }
  .fine-print { font-size: 13px; }

  .site-footer { padding: 34px 22px 0; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 18px; padding-bottom: 26px; }
  .footer-top > p { font-size: 19px; }
  .footer-bottom { padding: 20px 0; align-items: flex-start; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.7; }

  .modal-backdrop { padding: 10px; }
  .product-modal { width: 100%; max-height: calc(100dvh - 20px); grid-template-columns: 1fr; border-radius: 20px; }
  .modal-product-image { min-height: 0; height: 260px; }
  .modal-product-image img, .modal-product-image .product-image-placeholder { min-height: 0; height: 100%; }
  .modal-product-image img { padding: 12px; }
  .modal-product-content { padding: 28px 22px; }
  .modal-product-content h2 { font-size: 30px; }
  .modal-description { font-size: 16px; }
  .modal-price-row strong { font-size: 26px; }
  .credit-calculator { padding: 20px 18px; }
  .calculator-field select, .calculator-field input { min-height: 54px; }
  .modal-product-content .button { min-height: 58px; font-size: 16px; }

  .drawer-panel { width: 100%; }
  .drawer-header { padding: 22px 20px; }
  .drawer-header h2 { font-size: 32px; }
  .cart-items { padding: 18px 20px; }
  .cart-item { grid-template-columns: 82px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .cart-item-image { width: 82px; }
  .cart-item-info h3 { font-size: 17px; }
  .cart-item-controls button[data-quantity] { width: 44px; height: 44px; }
  .cart-item-controls button[data-remove] { padding: 12px 2px; }
  .drawer-footer { padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); }

  .toast { bottom: 18px; padding: 15px 22px; font-size: 15px; line-height: 1.6; border-radius: 22px; }

  #paymentModal, #creditModal { padding: 10px; align-items: flex-start; }
  #creditModal .credit-request-modal .modal-product-content,
  #paymentModal .payment-modal .modal-product-content { padding: 30px 18px 26px; }
  #creditModal .credit-section { padding: 20px 16px; margin-bottom: 18px; }
  #creditModal .credit-section-title { font-size: 22px; }
  #creditModal .form-grid { grid-template-columns: 1fr; }
  #creditModal .form-field + .form-field { margin-top: 18px; }
  #creditModal .upload-grid { grid-template-columns: 1fr; gap: 18px; }
  #creditModal .upload-box { min-height: 140px; }
}

/* ---------- 25. MÓVIL PEQUEÑO ---------- */

@media (max-width: 380px) {
  .site-header { padding-inline: 12px; }
  .brand-copy strong { font-size: 12px; }
  .cart-button { padding: 8px 11px; font-size: 13px; }
  .hero { padding-inline: 17px; }
  .hero h1 { font-size: 44px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-wrap { width: calc(100% - 26px); }
  .product-grid { gap: 20px 9px; }
  .product-name, .product-card-title { font-size: 16px; }
  .product-description { font-size: 12px; }
  .product-price, .product-card-price { font-size: 17px; }
  .product-card-actions { grid-template-columns: minmax(0, 1fr) 42px; gap: 5px; padding-inline: 9px; }
  .product-card-actions .button { font-size: 12px; }
  .product-details-button { width: 42px; }
  .product-info, .product-card-content { padding-inline: 9px; }
}

/* ---------- 26. MENOS MOVIMIENTO ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Logo */
.brand-logo {
  height: 76px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
}

@media (max-width: 760px) {
  .brand-logo {
    height: 58px;
    max-width: 170px;
  }
}

#creditModal .work-notice {
  margin: 0 0 20px;
  padding: 14px 16px;
  color: #2f4a43;
  background: #e4f1ee;
  border: 1px solid #c3e0d8;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

#creditModal .work-field { margin-bottom: 18px; }

.detail-table td { white-space: pre-line; }

#paymentModal .button-link {
  min-height: 48px;
  margin-top: 14px;
  color: var(--color-gold-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#paymentModal .button-link:hover {
  color: var(--color-black);
  transform: none;
}

/* Opciones de crédito dentro del detalle del producto */
.credit-calculator .credit-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.credit-calculator .credit-detail-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid #e9e2d9;
  border-radius: 12px;
  background: #faf8f5;
}

.credit-calculator .credit-detail-item span {
  color: #71675d;
  font-size: 12px;
  line-height: 1.4;
}

.credit-calculator .credit-detail-item strong {
  color: #29231f;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.credit-calculator .credit-extra-details {
  margin-top: 12px;
  color: #71675d;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
}

@media (max-width: 520px) {
  .credit-calculator .credit-details-grid {
    grid-template-columns: 1fr;
  }

  .credit-calculator .credit-detail-item {
    padding: 12px 14px;
  }
}


.success-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 18, 16, 0.65);
}

.success-modal.hidden {
  display: none;
}

.success-modal-card {
  width: 100%;
  max-width: 420px;
  padding: 30px 24px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.success-modal-icon {
  display: flex;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e7f7ed;
  color: #18864b;
  font-size: 32px;
  font-weight: 700;
}

.success-modal-card h2 {
  margin: 0 0 12px;
  color: #25211e;
  font-size: 24px;
}

.success-modal-card p {
  margin: 0 0 22px;
  color: #6d655d;
  font-size: 15px;
  line-height: 1.6;
}

.success-modal-card button {
  width: 100%;
  margin-top: 10px;
}

#creditSuccessWhatsApp {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

#creditModal .phone2-field { margin-top: 18px; }

#creditModal label small {
  color: #82796e;
  font-size: 13px;
  font-weight: 500;
}

/* Sucursales en el pie de página */
.footer-sucursales {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-sucursales h4 {
  margin-bottom: 18px;
  color: #e0c79f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.footer-sucursales-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.footer-sucursal {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  color: #f5f0e7;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.footer-sucursal:hover {
  background: rgba(224, 199, 159, 0.08);
  border-color: #766348;
  transform: translateY(-2px);
}

.footer-sucursal-icono { flex-shrink: 0; font-size: 22px; }

.footer-sucursal-texto { flex: 1; min-width: 0; }

.footer-sucursal-texto strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 500;
}

.footer-sucursal-texto small {
  display: block;
  color: #b3a99a;
  font-size: 14px;
  line-height: 1.6;
}

.footer-sucursal-flecha {
  flex-shrink: 0;
  color: #e0c79f;
  font-size: 18px;
}

@media (max-width: 760px) {
  .footer-sucursales { padding: 24px 0; }
  .footer-sucursales-grid { grid-template-columns: 1fr; }
}


/* Estrella de producto más vendido */
.product-card {
  position: relative;
}

.best-seller-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;

  background: #201d19;
  color: #e5bd72;

  font-size: 21px;
  line-height: 1;

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* ---------- COMPRA AL CONTADO ---------- */
#cashModal { z-index: 150; align-items: flex-start; }

#cashModal .cash-request-modal {
  display: block; grid-template-columns: none; margin: auto;
  width: min(100%, 600px); max-width: 600px; overflow-y: auto;
}

#cashModal .modal-product-content { display: block; padding: 44px 40px 38px; }
#cashModal h2 { margin-bottom: 4px; padding-right: 46px; }
#cashModal .cash-intro { margin: 10px 0 0; color: var(--color-gray); font-size: 15px; line-height: 1.8; }
#cashModal #cashRequestForm { display: block; width: 100%; margin: 26px 0 0; padding: 0; }

#cashModal .credit-section { margin: 0 0 24px; padding: 26px; background: #fff; border: 1px solid #ece4d8; border-radius: 18px; }
#cashModal .credit-section-title { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; color: #29231d; font-family: var(--font-heading); font-size: 24px; font-weight: 500; }
#cashModal .credit-section-number { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; background: #f4ecdf; border: 1px solid #e7d7bd; border-radius: 50%; color: var(--color-gold-dark); font-family: var(--font-main); font-size: 15px; font-weight: 700; }

#cashModal .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
#cashModal .form-field { min-width: 0; }
#cashModal label { display: block; margin-bottom: 9px; color: #383129; font-size: 15px; font-weight: 700; line-height: 1.5; }
#cashModal label small { color: #82796e; font-size: 13px; font-weight: 500; }
#cashModal .required { color: #a34c3d; }

#cashModal input, #cashModal select {
  display: block; width: 100%; min-width: 0; min-height: 54px; padding: 13px 16px;
  color: #29231d; background: #fff; border: 1px solid #ddd3c3; border-radius: 12px;
  font-size: 16px; line-height: 1.5; transition: border-color .2s ease, box-shadow .2s ease;
}
#cashModal input::placeholder { color: #aaa196; opacity: 1; }
#cashModal input:focus, #cashModal select:focus { outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 4px rgba(183,154,105,.15); }

#cashModal #cashOrderSummary { margin: 0 0 22px; padding: 20px; color: #5f564b; background: #f4eee4; border: 1px solid #e8dcc9; border-radius: 16px; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
#cashModal #cashOrderSummary:empty { display: none; }
#cashModal #cashOrderSummary h3 { margin-bottom: 10px; color: #29231d; font-family: var(--font-heading); font-size: 22px; font-weight: 500; }
#cashModal #cashOrderSummary ul { list-style: none; }
#cashModal #cashOrderSummary li { padding: 10px 0; border-bottom: 1px dashed #dccfb9; font-size: 15px; }
#cashModal #cashOrderSummary li:last-child { border-bottom: 0; }
#cashModal #cashOrderSummary p { margin-top: 12px; padding-top: 12px; border-top: 1px solid #dccfb9; text-align: right; font-size: 17px; }

#cashModal #cashFormMessage { margin: 14px 0; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.7; text-align: center; color: #7d392e; background: #f8eae6; }
#cashModal #cashFormMessage:empty { display: none; }

#cashModal #submitCashBtn { min-height: 60px; font-size: 16px; }
#cashModal #submitCashBtn:disabled { opacity: .6; cursor: wait; }

#cashSuccessModal { z-index: 10001; }
#cashSuccessWhatsApp { background: #25d366; border-color: #25d366; color: #fff; }

@media (max-width: 760px) {
  #cashModal { padding: 10px; }
  #cashModal .modal-product-content { padding: 30px 18px 26px; }
  #cashModal .credit-section { padding: 20px 16px; }
  #cashModal .credit-section-title { font-size: 22px; }
  #cashModal .form-grid { grid-template-columns: 1fr; }
  #cashModal .form-field + .form-field { margin-top: 18px; }
}