/* =============================
   AMELÍ — CATÁLOGO DIGITAL
   styles.css  (versión refinada)
   ============================= */

:root {
  /* Paleta old money / champán */
  --ivory:       #f4efe6;
  --ivory-soft:  #faf6ef;
  --linen:       #ece3d4;
  --espresso:    #3a2c22;
  --cocoa:       #5b4636;
  --taupe:       #8a7a69;
  --gold:        #b29463;
  --gold-deep:   #9a7d4d;
  --blush:       #c7a99c;
  --text:        #43342a;
  --muted:       #7d6c5d;
  --white:       #ffffff;
  --line:        rgba(58, 44, 34, 0.14);
  --line-soft:   rgba(58, 44, 34, 0.08);

  --shadow:       0 30px 70px rgba(58, 44, 34, 0.12);
  --soft-shadow:  0 18px 44px rgba(58, 44, 34, 0.08);

  --radius-lg: 4px;
  --radius-md: 3px;
  --radius-sm: 2px;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Montserrat", Arial, sans-serif;

  --maxw: 1240px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* =============================
   ORNAMENTO (eyebrow)
   ============================= */

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow.ornament {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow.ornament::after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* =============================
   HEADER
   ============================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 84px;
  background: rgba(244, 239, 230, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  width: min(var(--maxw), calc(100% - 48px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  flex-shrink: 0;
}

.brand-logo-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory-soft);
  border: 1px solid var(--line-soft);
}

.brand-logo-circle .brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name-image {
  height: 30px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.brand-name-image .brand-wordmark {
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* Oculta logo textual antiguo */
.brand-mark,
.brand-name {
  display: none !important;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 400;
  color: var(--cocoa);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--espresso);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ivory-soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--espresso);
}

/* =============================
   ESTRUCTURA GENERAL
   ============================= */

main {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
}

.page-section {
  display: none;
  animation: fadeUp 0.6s ease both;
}

.page-section.is-active {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================
   INICIO / HERO
   ============================= */

.hero-section {
  min-height: calc(100vh - 84px);
  padding: 88px 0 56px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

.hero-section.is-active {
  display: grid;
}

.hero-content h1 {
  max-width: 600px;
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 92px);
  line-height: 1.0;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--espresso);
}

.hero-content h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
}

.hero-text {
  max-width: 460px;
  margin-top: 30px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  color: var(--ivory-soft);
  background: var(--espresso);
}

.btn-primary:hover {
  background: var(--gold-deep);
  color: var(--white);
}

.btn-secondary {
  color: var(--espresso);
  background: transparent;
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.hero-mobile-collage {
  display: none;
}
/* Imagen hero con marco fino */
/* Imagen hero fundida hacia el texto (sin marco) */
.hero-image-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 640px;
  background: transparent;     /* sin fondo de tarjeta */
  border-radius: 0;            /* sin esquinas */
  box-shadow: none;            /* sin sombra de "pegado" */
  overflow: visible;
}

/* Quitamos el marco interior que tenía antes */
.hero-image-card::after {
  content: none;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* Difumina el borde IZQUIERDO (hacia el texto) y suaviza arriba/abajo */
  -webkit-mask-image:
    linear-gradient(to left, #000 55%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image:
    linear-gradient(to left, #000 55%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);

  -webkit-mask-composite: source-in;
  mask-composite: intersect;   /* combina ambos degradados */
}   

/* =============================
   CATEGORÍAS
   ============================= */

.category-preview {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 8px 0 96px;
}

.hero-section.is-active + .category-preview {
  display: grid;
}

.category-card {
  min-height: 250px;
  padding: 40px 36px;
  background: var(--ivory-soft);
  transition: background 0.4s ease;
}

.category-card:hover {
  background: var(--white);
}

.category-card p {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.category-card h2 {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  color: var(--espresso);
}

.category-card span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.category-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--espresso);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: gap 0.3s ease, color 0.3s ease;
}

.category-card a:hover {
  gap: 14px;
  color: var(--gold-deep);
}

.category-card.muted {
  opacity: 0.72;
}

/* =============================
   CATÁLOGO
   ============================= */

.catalog-section {
  padding: 84px 0 110px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-heading .eyebrow.ornament {
  justify-content: center;
}

.section-heading .eyebrow.ornament::before {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-heading h1 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--espresso);
}

.section-heading p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 28px;
}

.product-card {
  background: transparent;
  cursor: pointer;
}

.product-card-image {
  position: relative;
  height: 360px;
  background: var(--linen);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-card-image::after {
  content: "Ver detalle";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  background: linear-gradient(to top, rgba(58, 44, 34, 0.55), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
}

.product-card:hover .product-card-image::after,
.product-card:focus .product-card-image::after {
  opacity: 1;
  transform: translateY(0);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card:focus {
  outline: none;
}

.product-card:focus .product-card-image {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.product-card-info {
  padding: 18px 4px 4px;
  text-align: center;
}

.product-card-info p {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.product-card-info h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--espresso);
}

.card-price {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cocoa);
}

/* =============================
   PRÓXIMAMENTE
   ============================= */

.coming-section {
  min-height: calc(100vh - 180px);
  padding: 100px 0;
  place-items: center;
}

.coming-section.is-active {
  display: grid;
}

.coming-card {
  width: min(720px, 100%);
  padding: clamp(40px, 7vw, 84px);
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--ivory-soft);
  border: 1px solid var(--line-soft);
}

.coming-card .eyebrow.ornament {
  justify-content: center;
}

.coming-card .eyebrow.ornament::before {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.coming-card h1 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 86px);
  font-weight: 500;
  line-height: 1.02;
  color: var(--espresso);
}

.coming-card h2 {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.coming-card p:not(.eyebrow) {
  max-width: 520px;
  margin: 26px auto 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
}

/* =============================
   MODAL
   ============================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(36, 27, 20, 0.55);
  backdrop-filter: blur(8px);
}

.modal-overlay.is-open {
  display: flex;
}

.modal-dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: min(800px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--ivory-soft);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.32);
  animation: modalIn 0.4s ease both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(250, 246, 239, 0.9);
  color: var(--espresso);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--espresso);
  color: var(--ivory-soft);
  border-color: var(--espresso);
}

.modal-image-panel {
  min-height: 660px;
  background: var(--white);
}

.modal-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info-panel {
  padding: 72px 60px 52px;
  overflow-y: auto;
}

.modal-brand {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}

.modal-info-panel h2 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.02;
  font-weight: 500;
  color: var(--espresso);
}

.modal-price {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cocoa);
}

.modal-type {
  margin-top: 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.modal-description {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
}

.modal-block {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}

.modal-block h3 {
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cocoa);
}

.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-pill {
  min-width: 56px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 15px;
  font-weight: 300;
  color: var(--cocoa);
  transition: all 0.25s ease;
}

.size-pill:hover {
  border-color: var(--gold);
  color: var(--espresso);
}

.color-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.color-option {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-option:hover,
.color-option.is-active {
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(58, 44, 34, 0.1);
}

.color-option img {
  width: 100%;
  height: 116px;
  object-fit: cover;
}

.color-option span {
  display: block;
  padding: 10px 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  color: var(--cocoa);
}

.whatsapp-btn {
  width: 100%;
  margin-top: 40px;
}

/* Ocultar temporalmente el botón de WhatsApp 
#whatsappBtn {
  display: none !important;
}
*/
/* =============================
   FALLBACK IMÁGENES
   ============================= */

.image-fallback {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  font-family: var(--serif);
  font-size: 30px;
  font-style: italic;
  color: var(--gold-deep);
  background: var(--linen);
}

/* =============================
   FOOTER
   ============================= */

.site-footer {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 48px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.footer-mark {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--espresso);
}

.footer-tagline {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.footer-legal {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
}

/* =============================
   RESPONSIVE
   ============================= */

@media (max-width: 1050px) {
  .hero-section.is-active {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image-card {
    max-height: 520px;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-dialog {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .modal-image-panel {
    min-height: 440px;
  }

  .modal-info-panel {
    padding: 48px 38px 40px;
  }
}

@media (max-width: 780px) {
  .header-inner,
  .site-header {
    height: 70px;
  }

  .brand {
    height: 46px;
  }

  .brand-logo-circle {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .brand-name-image,
  .brand-name-image .brand-wordmark {
    height: 26px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(250, 246, 239, 0.98);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    text-align: center;
    padding: 14px 12px;
  }

  .main-nav a::after { display: none; }

  .hero-section {
    padding-top: 56px;
  }

  .hero-content h1 {
    font-size: clamp(46px, 13vw, 66px);
  }

  .hero-image-card {
    max-height: 460px;
  }

  .category-preview {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 18px;
  }

  .product-card-image {
    height: 300px;
  }

  /* Modal a pantalla completa en móvil */
  .modal-overlay {
    padding: 0;
    align-items: flex-start;
  }

  .modal-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    overflow-y: auto;
    display: block;
  }

  .modal-image-panel {
    width: 100%;
    height: 56vh;
    min-height: 360px;
    max-height: 560px;
    background: var(--white);
  }

  .modal-image-panel img {
    object-fit: cover;
  }

  .modal-info-panel {
    padding: 28px 24px 36px;
  }

  .modal-info-panel h2 {
    font-size: 38px;
  }

  .modal-price {
    font-size: 22px;
  }

  .size-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .size-pill {
    flex: 0 0 auto;
  }

  .color-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .color-option {
    flex: 0 0 110px;
  }

  .color-option img {
    height: 84px;
  }

  .modal-close {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 200;
  }

     .hero-launch-image {
    display: none;
  }

  .hero-image-card {
    aspect-ratio: auto;
    max-height: none;
    width: 100%;
  }

  .hero-mobile-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 88px;
    gap: 7px;
    width: min(100%, 320px);
    margin: 24px auto 0;
    pointer-events: none;
    user-select: none;
  }

  .hero-collage-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--linen);
  }

  .hero-collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    pointer-events: none;
    user-select: none;
  }
}

@media (max-width: 520px) {
  main,
  .header-inner,
  .site-footer {
    width: calc(100% - 28px);
  }

  .hero-section {
    min-height: auto;
    padding: 40px 0 32px;
  }

  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-card-image {
    height: 420px;
  }

  .modal-image-panel {
    height: 52vh;
    min-height: 320px;
  }

  .modal-info-panel {
    padding: 24px 20px 34px;
  }

  .modal-info-panel h2 {
    font-size: 34px;
  }
  .hero-mobile-collage {
    width: min(100%, 280px);
    grid-auto-rows: 76px;
    gap: 6px;
    margin-top: 22px;
  }
   
   
}

/* =============================
   BOTÓN Y MODAL GUÍA DE TALLAS
   ============================= */

.modal-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-block-title h3 {
  margin-bottom: 0;
}

.size-guide-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--espresso);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.size-guide-btn:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: rgba(178, 148, 99, 0.08);
}

.size-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(36, 27, 20, 0.38);
  backdrop-filter: blur(6px);
}

.size-guide-overlay.is-open {
  display: flex;
}

.size-guide-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
  padding: 30px 32px 34px;
  border-radius: 14px;
  background: var(--ivory-soft);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
  animation: sizeGuideIn 0.25s ease both;
}

@keyframes sizeGuideIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.size-guide-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--espresso);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.size-guide-dialog h2 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 12px;
}

.size-guide-dialog p {
  max-width: 590px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--cocoa);
  margin-bottom: 18px;
}

.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  font-size: 13px;
  color: var(--espresso);
}

.size-guide-table thead {
  background: #c3a37b;
  color: var(--white);
}

.size-guide-table th {
  padding: 15px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.size-guide-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.size-guide-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 780px) {
  .modal-block-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .size-guide-btn {
    width: auto;
    padding: 9px 12px;
    font-size: 9px;
  }

  .size-guide-overlay {
    padding: 14px;
    align-items: center;
  }

  .size-guide-dialog {
    padding: 26px 20px 28px;
    border-radius: 12px;
  }

  .size-guide-dialog h2 {
    font-size: 22px;
  }

  .size-guide-dialog p {
    font-size: 14px;
    line-height: 1.7;
  }

  .size-guide-table th,
  .size-guide-table td {
    padding: 13px 10px;
  }
}

/* =============================
   MENSAJE PRE-ORDER EN MODAL PRINCIPAL
   ============================= */

.preorder-note {
  margin-top: 22px;
  padding: 18px 18px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(178, 148, 99, 0.10);
  color: var(--cocoa);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
}

.preorder-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

@media (max-width: 780px) {
  .preorder-note {
    margin-top: 18px;
    padding: 15px 15px 14px;
    font-size: 12.5px;
    line-height: 1.65;
  }

  .preorder-note strong {
    font-size: 10px;
  }
}

/* =============================
   BOTÓN FLOTANTE WHATSAPP
   ============================= */

.floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 250;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.28);
  transition: all 0.25s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 18px 44px rgba(37, 211, 102, 0.38);
}

.floating-whatsapp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 780px) {
  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 520px) {
  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }
}
