:root {
  --color-bg: #f5f1eb;
  --color-surface: #ece5dc;
  --color-panel: #fcfaf7;
  --color-border: #e2d9cf;
  --color-text: #E6BE8A;
  --color-text-muted: #7b6f68;
  --color-white: #ffffff;

  --color-accent: #b9877c;
  --color-accent-hover: #a5746a;
  --color-accent-tint: #f1e2dd;
  --color-accent-rgb: 185, 135, 124;

  --color-header-bg: #f7f3ee;
  --color-dark: #2b2522;
  --color-dark-soft: #4a403b;
  --color-sale: #c0465e;
  --color-required: #c0392b;
  --color-disabled-bg: #efe9e2;
  --color-shadow: rgba(60, 40, 30, 0.1);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --header-height: 76px;
}

@font-face {
  font-family: Didot;
  src: url(TipoGrafia/GFS_Didot/GFSDidot-Regular.ttf);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-border);
}

.header__inner {
  position: relative; /* ← agrega esta línea */
  height: var(--header-height);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 32px;
  transition: height 0.3s ease;
}

.header.scrolled .header__inner {
  height: 56px;
}

/* ---------- Logo ---------- */

.header__logo {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.header__logo:hover {
  color: var(--color-accent);
}

/* ---------- Navegación escritorio ---------- */

.nav-menu {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  padding: 6px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

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

/* ---------- Acciones ---------- */

.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.icon-button:hover {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-ghost {
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-accent-tint);
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

.btn-primary {
  color: #ffffff;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 110, 86, 0.25);
}

.btn-ghost:active,
.btn-primary:active {
  transform: translateY(0);
}

/* ---------- Dropdown escritorio ---------- */

.nav-item-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  padding: 10px 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

.nav-item-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  padding: 9px 20px;
  font-size: 13.5px;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-link:hover {
  background: var(--color-accent-tint);
  color: var(--color-accent-hover);
}

/* ---------- HAMBURGUESA ---------- */

.hamburger {
  display: none; /* oculto en escritorio */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hamburger:hover {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animación a X cuando está abierto */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}




/* ---------- MINI BOLSA DE COMPRA ---------- */

.header-actions {
    position: relative;
}

.cart-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 300;
}

/* Cuando está abierto */
.cart-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* TÍTULO */
.cart-dropdown h3 {
    margin: 0 0 22px;
    text-align: center;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--color-text);
}

/* TOTAL */
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px 0;
    margin-bottom: 18px;

    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);

    font-size: 14px;
    color: var(--color-text);
}

.cart-total span:last-child {
    font-weight: 600;
}



/* ---------- MENÚ MÓVIL ---------- */

.mobile-menu {
  display: none;
  position: sticky;
  top: var(--header-height);
  z-index: 99;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-menu.open {
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-nav {
  padding: 12px 20px 24px;
  display: flex;
  flex-direction: column;
}

.mobile-link {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.mobile-link:hover {
  color: var(--color-accent);
}

.mobile-item {
  border-bottom: 1px solid var(--color-border);
}

.mobile-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.mobile-toggle:hover {
  color: var(--color-accent);
}

.mobile-toggle .chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.mobile-toggle.open .chevron {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--color-surface);
}

.mobile-submenu.open {
  max-height: 500px; /* suficiente para todas las opciones */
}

.mobile-sublink {
  display: block;
  padding: 11px 16px;
  font-size: 14.5px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-sublink:hover {
  background: var(--color-accent-tint);
  color: var(--color-accent-hover);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 800px) {
  .header__inner {
    padding: 0 12px;          /* menos padding lateral */
    gap: 8px;                 /* menos espacio entre elementos */
    justify-content: space-between;
  }

  .header__logo {
    font-size: 15px;          /* logo más pequeño */
    max-width: 110px;         /* evita que ocupe demasiado */
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .header-actions {
    gap: 4px;                 /* iconos y botones más juntos */
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .icon-button svg {
    width: 18px;
    height: 18px;
  }

  .btn {
    padding: 7px 10px;
    font-size: 12px;
  }

  .btn-ghost {
    padding: 7px 8px;
  }
}

@media (max-width: 480px) {
  .header__inner {
    padding: 0 10px;
    gap: 6px;
  }

  .header__logo {
    font-size: 14px;
    max-width: 95px;
  }

  .header-actions {
    gap: 3px;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .btn {
    padding: 6px 8px;
    font-size: 11.5px;
  }

  /* Ocultar "Iniciar sesión" en pantallas muy pequeñas (ya lo tenías) */
  .btn-ghost {
    display: none;
  }

  /* Si aún se desborda, puedes ocultar también el botón de favoritos */
  /* #wishlistButton { display: none; } */
}

/* Extra para pantallas realmente estrechas (opcional) */
@media (max-width: 360px) {
  .header__logo {
    font-size: 13px;
    max-width: 80px;
  }

  .btn-primary {
    padding: 6px 7px;
    font-size: 11px;
  }
}


/* ---------- Hero / Imagen de bienvenida ---------- */
.Content_Start_inicio {
    width: 100%;
    height: 75vh;
    overflow: hidden;
    line-height: 0;
    position: relative;
}

.Content_Start_inicio img {
    width: 100%;
    height: 75vh;
    object-fit: cover;
    object-position: center top;
    display: block;
}


/* CONTENEDOR DEL TÍTULO */
.titulo-inicio {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    line-height: normal;
}


/* TÍTULO PRINCIPAL */
.titulo-inicio h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 90px;
    font-weight: 400;
    letter-spacing: 8px;
    line-height: 1;
}


/* ========================================
  TÍTULO HERO RESPONSIVE
======================================== */
.titulo-inicio h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 9vw, 5.6rem);   /* se adapta solo */
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
}

.subtitulo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  margin-top: clamp(0.8rem, 2.5vw, 1.6rem);
}

.subtitulo span {
  width: clamp(40px, 12vw, 150px);
  height: 2px;
  background-color: white;
  display: block;
}

.subtitulo h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 3.8vw, 2.4rem);   /* se adapta solo */
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1;
}

/* Ajuste extra en pantallas muy pequeñas */
@media (max-width: 400px) {
  .titulo-inicio h1 {
    letter-spacing: 0.08em;
  }

  .subtitulo h2 {
    letter-spacing: 0.12em;
  }
}


/* ---------- Panel del carrito ---------- */

.cart-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 32px;
  width: min(320px, calc(100vw - 24px));
  padding: 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  z-index: 200;

  /* Oculto por defecto */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.cart-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.cart-panel__title {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.cart-panel__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cart-panel__label {
  color: var(--color-text-muted);
}

.cart-panel__amount {
  color: var(--color-text);
}

.cart-panel .cart-panel__checkout {
  width: 100%;
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

@media (max-width: 800px) {
  .cart-panel { right: 12px; }
}

@media (max-width: 480px) {
  .cart-panel { right: 10px; }
}



/* ========================================
   SECCIÓN PRE-ORDEN
======================================== */
.preorden-section {
  background: linear-gradient(135deg, #f6f5f1 0%, #e1f5ee 100%);
  padding: 4.5rem 1.5rem;
}

.preorden-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.preorden-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(15, 110, 86, 0.12);
  border-radius: 999px;
}

.preorden-title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.preorden-text {
  margin: 0 auto 2rem;
  max-width: 540px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.preorden-btn {
  padding: 13px 28px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 560px) {
  .preorden-section {
    padding: 3.2rem 1.2rem;
  }

  .preorden-text {
    font-size: 0.98rem;
  }

  .preorden-btn {
    width: 100%;
    max-width: 320px;
  }
}





/* ========================================
  SECCIONES DE PRODUCTOS
======================================== */
.product-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-ver-mas {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.section-ver-mas:hover {
  color: #111;
  border-bottom-color: #111;
}

/* ========================================
  CARRUSEL
======================================== */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

/* Botones de flecha */
.carousel-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: all 0.2s;
  z-index: 5;
}

.carousel-btn:hover:not(:disabled) {
  background: #111;
  border-color: #111;
  color: #fff;
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
}





















/* ========================================
  TARJETA DE PRODUCTO
======================================== */
.product-card {
  flex: 0 0 calc((100% - 7 * 1rem) / 8); /* 8 visibles por defecto */
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* Imagen con efecto hover */
.product-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f5f5f5;
}

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

.product-image .img-default {
  opacity: 1;
}

.product-image .img-hover {
  opacity: 0;
}

.product-card:hover .img-default {
  opacity: 0;
}

.product-card:hover .img-hover {
  opacity: 1;
}

/* Nombre truncado */
.product-name {
  margin: 0.75rem 0.85rem 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

/* Precios */
.product-prices {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0.85rem 0.75rem;
  flex-wrap: wrap;
}

.price-current {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111; /* negro */
}

.price-old {
  font-size: 0.8rem;
  font-weight: 400;
  color: #e11d48; /* rojo */
  text-decoration: line-through;
}

/* Botones de la tarjeta */
.product-actions {
  display: flex;
  gap: 0.5rem;
  margin: 0 0.85rem 1rem;
  margin-top: auto;
}

.btn-card {
  flex: 1;
  padding: 0.5rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 6px;
  text-align: center;
  transition: all 0.2s;
}

.btn-card--primary {
  background: #111;
  color: #fff;
}

.btn-card--primary:hover {
  background: #333;
}

.btn-card--outline {
  border: 1px solid #ddd;
  color: #333;
  background: #fff;
}

.btn-card--outline:hover {
  border-color: #111;
  color: #111;
}

/* ========================================
   RESPONSIVE - CANTIDAD DE PRODUCTOS VISIBLES
   8 → 7 → 6 → 5 → 4 → 3 → 2
======================================== */

/* 8 visibles (por defecto, > 1280px) */
@media (max-width: 1280px) {
  .product-card {
    flex: 0 0 calc((100% - 6 * 1rem) / 7);
  }
}

/* 6 visibles */
@media (max-width: 1100px) {
  .product-card {
    flex: 0 0 calc((100% - 5 * 1rem) / 6);
  }
}

/* 5 visibles */
@media (max-width: 920px) {
  .product-card {
    flex: 0 0 calc((100% - 4 * 1rem) / 5);
  }
}

/* 4 visibles */
@media (max-width: 760px) {
  .product-card {
    flex: 0 0 calc((100% - 3 * 1rem) / 4);
  }

  .nav-menu {
    display: none;
  }



  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }
}

/* 3 visibles */
@media (max-width: 560px) {
  .product-card {
    flex: 0 0 calc((100% - 2 * 1rem) / 3);
  }

  .product-section {
    padding: 2.5rem 1rem 2rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel {
    gap: 0.25rem;
  }
}

/* 2 visibles */
@media (max-width: 400px) {
  .product-card {
    flex: 0 0 calc((100% - 1 * 1rem) / 2);
  }

  .product-name {
    font-size: 0.8rem;
  }

  .price-current {
    font-size: 0.875rem;
  }

  .btn-card {
    font-size: 0.72rem;
    padding: 0.45rem 0.4rem;
  }
}

/* Ajuste extra para pantallas muy grandes */
@media (min-width: 1400px) {
  .product-section {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: #1c1f1d;
  color: #e8e6e0;
  margin-top: 4rem;
  padding-top: 3.5rem;
}

.footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
}

.footer__logo {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.footer__tagline {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #a8ada5;
  max-width: 260px;
}

.footer__title {
  margin: 0 0 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.55rem;
}

.footer__links a {
  color: #a8ada5;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #fff;
}

.footer__contact {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  color: #a8ada5;
}

.footer__contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #0f6e56;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #e8e6e0;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}

.social-icon:hover {
  background: #0f6e56;
  color: #fff;
  transform: translateY(-2px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 32px;
  text-align: center;
}

.footer__bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: #7a8078;
}

/* Responsive footer */
@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .footer__inner {
    grid-template-columns: 1fr;
    padding: 0 20px 2.5rem;
    gap: 2rem;
  }

  .footer__bottom {
    padding: 1.1rem 20px;
  }
}





/* ========================================
   BOTÓN FLOTANTE WHATSAPP
======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;
  border-radius: 50%;

  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* Móvil */
@media (max-width: 560px) {
  .whatsapp-float {
    bottom: 20px;
    right: 18px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ========================================
  FIX: Botón Pre-orden siempre visible
======================================== */
.preorden-btn.btn-primary {
  display: inline-flex !important;
}

@media (max-width: 560px) {
  .preorden-btn.btn-primary {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* ========================================
   BOTÓN CORAZÓN (FAVORITOS)
======================================== */
.wishlist-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.92);
  color: #555;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);

  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.wishlist-btn:hover {
  background: #fff;
  color: #e11d48;
  transform: scale(1.08);
}

.wishlist-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none; /* para que el click siempre sea del botón */
}

/* Estado activo (favorito) */
.wishlist-btn.is-favorite {
  background: #fff;
  color: #e11d48;
}

.wishlist-btn.is-favorite svg {
  fill: #e11d48;
  stroke: #e11d48;
}

/* Móvil: un poco más pequeño */
@media (max-width: 560px) {
  .wishlist-btn {
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
  }

  .wishlist-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* ========================================
   SECCIÓN CHECKOUT (FORMULARIO DE COMPRA)
======================================== */
.checkout-section {
  background: var(--color-surface);
  padding: 3.5rem 1.5rem 5rem;
  min-height: 60vh;
}

.checkout-inner {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 2.2rem 2rem 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.checkout-title {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-text);
}

.checkout-subtitle {
  margin: 0 0 1.8rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: center;
}

.checkout-form .form-group {
  margin-bottom: 1.25rem;
}

.checkout-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.checkout-form .required {
  color: #c0392b;
}

.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.15);
}

.checkout-form input:disabled {
  background: #f0efeb;
  color: #999;
  cursor: not-allowed;
}

.checkout-form textarea {
  height: 100px;   
  resize: none;  
  overflow-y: auto;    
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.radio-option:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-tint);
}

.radio-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.checkout-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Responsive del formulario */
@media (max-width: 560px) {
  .checkout-section {
    padding: 2.5rem 1rem 4rem;
  }

  .checkout-inner {
    padding: 1.6rem 1.25rem 2rem;
    border-radius: 12px;
  }

  .checkout-title {
    font-size: 1.3rem;
  }
}


/* ========================================
   BOTONES DE AUTENTICACIÓN Y USUARIO
======================================== */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-menu {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: background 0.2s, border-color 0.2s;
}

.user-btn:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.user-btn[aria-expanded="true"] .user-chevron {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 300;
}

.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s;
}

.user-dropdown-item:hover {
  background: var(--color-accent-tint);
  color: var(--color-accent-hover);
}

.auth-buttons.hidden,
.user-menu.hidden {
  display: none !important;
}

@media (max-width: 800px) {
  .auth-buttons .btn {
    padding: 7px 10px;
    font-size: 12px;
  }
  .user-name {
    max-width: 70px;
  }
}

@media (max-width: 480px) {
  .auth-buttons .btn-ghost {
    display: none;
  }
  .user-name {
    display: none;
  }
}

/* ========================================
   CHECKOUT: dos columnas, resumen y detalles
======================================== */
.checkout-section [hidden] {
  display: none !important;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

.checkout-layout .checkout-inner {
  max-width: none;
  margin: 0;
}

.checkout-form input[type="email"],
.checkout-form select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-form select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.15);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Botones Neiva / Otra ciudad */
.zona-botones {
  display: flex;
  gap: 0.6rem;
}

.zona-btn {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.zona-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.zona-btn.is-active {
  background: var(--color-accent-tint);
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
  font-weight: 600;
}

/* Código de descuento */
.codigo-fila {
  display: flex;
  gap: 0.6rem;
}

.codigo-fila input {
  flex: 1;
  min-width: 0;
}

/* Casilla "Guardar mis datos" */
.checkout-form .check-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
}

.check-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

/* Mensajes */
.checkout-nota {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.checkout-nota a {
  color: var(--color-accent);
  font-weight: 500;
}

.checkout-nota--aviso {
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: #fff7ed;
  color: #c2410c;
}

.checkout-nota--aviso a {
  color: #c2410c;
  text-decoration: underline;
}

.checkout-nota--ok {
  color: var(--color-accent-hover);
}

.checkout-nota--error {
  color: #b91c1c;
}

.checkout-nota--centro {
  text-align: center;
}

.checkout-error {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Resumen del pedido */
.checkout-resumen {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.checkout-resumen__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
}

.resumen-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.resumen-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resumen-item__img {
  width: 52px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f5f5;
  flex-shrink: 0;
}

.resumen-item__info {
  flex: 1;
  min-width: 0;
}

.resumen-item__nombre {
  margin: 0 0 0.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resumen-item__meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.resumen-item__precio {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text);
}

.resumen-filas {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.resumen-fila {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.resumen-fila span:last-child {
  font-weight: 500;
  color: var(--color-text);
}

.resumen-fila--total {
  margin-top: 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.resumen-fila--total span:last-child {
  font-weight: 600;
}

/* Bolsa vacía */
.checkout-vacia {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.checkout-vacia__titulo {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

.checkout-vacia__texto {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-resumen {
    position: static;
  }
}

@media (max-width: 480px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .codigo-fila {
    flex-direction: column;
  }
}

.checkout-error.checkout-error--ok {
  background: var(--color-accent-tint);
  color: var(--color-accent-hover);
}

/* Enlaces dentro de la casilla de aceptar términos */
.check-option a {
  color: var(--color-accent-hover, #a5746a);
  font-weight: 500;
}

/* ===== Mismo estilo que Inicio ===== */
.header {
  background: var(--color-header-bg);
  border-bottom: none;
  box-shadow: 0 2px 16px var(--color-shadow);
}

.header__logo {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu { gap: 40px; }

.nav-link {
  font-size: 15px;
  color: var(--color-text);
}

.nav-link:hover,
.nav-link.active { color: var(--color-accent-hover); }

.btn { border-radius: 999px; padding: 10px 22px; }

.btn-ghost { border-color: var(--color-accent); }

.checkout-title,
.checkout-resumen__title,
.checkout-vacia__titulo {
  font-family: var(--font-serif);
  font-weight: 500;
}

.checkout-title { font-size: 1.8rem; }

.checkout-inner,
.checkout-resumen,
.checkout-vacia { background: var(--color-panel); }

.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus {
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.2);
}

.footer { background: #2b2522; }

.footer__logo {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .header__logo { font-size: 20px; max-width: 130px; }
}


/* Lista de ciudad de entrega */
#ciudadId {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7268' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
}

#ciudadId:hover {
  border-color: var(--color-accent);
}

#ciudadId optgroup {
  font-weight: 600;
  color: var(--color-text);
}

#ciudadId option {
  font-weight: 400;
}