/* ===========================================
   STYLES.CSS PARA MONTCAO
   ---
   Organización:
   1. :root - Variables Globales
   2. Reseteo y Estilos Base
   3. Clases de Utilidad (Helpers)
   4. Estilos por Componente (Header, Hero, etc.)
   5. Estilos de Componentes Funcionales (Modal, Cart, etc.)
   6. Media Queries (Diseño Responsivo)
   =========================================== */

/* =======================
   1. VARIABLES GLOBALES
   ======================== */
:root {
  --color-primary: #4E342E;
  /* Marrón oscuro profundo */
  --color-secondary: #F8F5F2;
  /* Crema/Beige claro */
  --color-accent: #D4AF37;
  /* Dorado/Ocre */
  --color-cta: #4CAF50;
  /* Verde Orgánico */
  --color-cta-hover: #45a049;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #FFFFFF;
  --color-border: #E0E0E0;

  --font-primary: 'Montserrat', sans-serif;
  --font-headings: 'Playfair Display', serif;

  --container-width: 1200px;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  --section-padding: 5rem;

  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition-smooth: all 0.3s ease-in-out;
}

/* =======================
   2. RESETEO Y ESTILOS BASE
   ======================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-headings);
  color: var(--color-primary);
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =======================
   3. CLASES DE UTILIDAD
   ======================== */
.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--spacing-md);
}

.section-padding {
  padding: var(--section-padding) 0;
}

.section-bg {
  background-color: var(--color-secondary);
}

.text-center {
  text-align: center;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-light);
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-accent);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* =======================
   4. ESTILOS POR COMPONENTE
   ======================== */

/* --- Banner de Anuncios --- */
.announcement-bar {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.announcement-bar p {
  margin: 0;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* Estilos para el logo principal */
.logo {
  /* Para Dancing Script: */
  font-family: 'Dancing Script', cursive;
  /* Aplica la fuente */
  /* Para Great Vibes: */
  /* font-family: 'Great Vibes', cursive; */
  /* Descomenta esta si usas Great Vibes */

  font-size: 2.8rem;
  /* Tamaño más grande para que destaque */
  font-weight: 700;
  /* Negrita para Dancing Script, Great Vibes no lo necesita tanto */
  color: var(--color-primary);
  /* Usa tu color principal o un dorado/bronce */
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.7),
    /* Un brillo sutil blanco */
    0 0 10px rgba(255, 255, 255, 0.5),
    /* Otro brillo más extendido */
    0 0 15px rgba(255, 255, 255, 0.3);
  /* Un halo más suave */
  letter-spacing: 2px;
  /* Espaciado entre letras para elegancia */
  transition: transform 0.3s ease-in-out;
  /* Animación sutil al pasar el mouse */
}

.logo:hover {
  transform: scale(1.05);
  /* Ligeramente más grande al pasar el mouse */
  color: #d4af37;
  /* Podrías cambiar a un dorado más intenso en hover */
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.9),
    0 0 15px rgba(255, 255, 255, 0.7),
    0 0 25px rgba(255, 255, 255, 0.5);
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-links a {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.cart-button {
  position: relative;
  font-size: 1.5rem;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -10px;
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.hamburger {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
}


/* --- Hero Section --- */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  /* centrado vertical */
  justify-content: flex-start;
  /* pegado a la izquierda */
  text-align: left;
  color: var(--color-white);
  padding-left: 5%;
  /* espacio a la izquierda */
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}

.hero-video-wrapper .hero-video,
.hero-video-wrapper .hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* El video se recortará para cubrir todo el espacio */
}


#hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero-content h1 {
  color: var(--color-white);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  text-align: left;
  /* texto alineado a la izquierda */
  max-width: 600px;
  /* ancho máximo para que no ocupe toda la pantalla */
  margin-left: 5%;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 1rem auto 2rem;
  text-align: left;
  /* texto alineado a la izquierda */
  max-width: 600px;
  /* ancho máximo para que no ocupe toda la pantalla */
  margin-left: 5%;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* --- Process Section --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.process-step {
  padding: 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.process-step:hover {
  background-color: var(--color-white);
  box-shadow: var(--shadow-medium);
  transform: translateY(-10px);
}

.process-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* --- Catalog Section --- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.product-image-container {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.product-image {
  width: 100%;
  height: 340px;
  /* Aumenta este valor hasta que la imagen se vea como deseas */
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.quick-view-btn {
  display: none;
}

.product-card:hover .quick-view-btn {
  opacity: 1;
}

.product-info {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-actions {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 20px;
}

.quantity-btn,
.quantity-input {
  background: none;
  border: none;
  width: 35px;
  height: 35px;
  text-align: center;
  font-weight: 700;
}

.quantity-input {
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.add-to-cart-btn {
  flex-grow: 1;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
}

.add-to-cart-btn:hover {
  background-color: var(--color-cta);
  color: var(--color-white);
}

/* --- Story Section --- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.story-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

/* --- Reviews Section --- */
.review-slider {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.review-card {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
}

.review-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--color-accent);
}

.review-text {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.review-author {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-primary);
}

.swiper-pagination-bullet-active {
  background-color: var(--color-accent) !important;
}


/* --- Footer --- */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--section-padding) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.footer-col h3,
.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a,
.footer-col p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
  color: var(--color-white);
}

.social-links a {
  margin-right: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-md) 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}


/* ==================================
   5. COMPONENTES FUNCIONALES
   ================================== */

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  max-width: 900px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  color: var(--color-text-light);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.modal-actions {
  margin-top: var(--spacing-lg);
  display: flex;
  gap: 1rem;
}


/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 200%);
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  z-index: 3000;
  transition: transform 0.5s ease-in-out;
}

.toast.show {
  transform: translate(-50%, 0);
}

.toast p {
  margin: 0;
}

/* --- Side Cart --- */
.side-cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background-color: var(--color-white);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 4000;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
}

.side-cart.active {
  transform: translateX(0);
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-cart-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.side-cart-header #close-cart-btn {
  font-size: 1.8rem;
}

.side-cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: var(--spacing-md);
}

.cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.remove-item-btn {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-decoration: underline;
}

.empty-cart-message {
  text-align: center;
  margin-top: 4rem;
  color: var(--color-text-light);
}

.side-cart-footer {
  padding: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* =======================
   6. DISEÑO RESPONSIVO
   ======================== */

/* --- Tablets (hasta 992px) --- */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-image {
    display: none;
    /* Ocultar en tablet para simplicidad */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===========================================
   CORRECCIÓN FINAL PARA ICONOS SOCIALES RESPONSIVOS
   =========================================== */

/* --- VISTA DE ESCRITORIO (POR DEFECTO) --- */

/* 1. Ocultamos la versión móvil de los enlaces sociales */
.nav-socials-mobile {
  display: none;
}

/* 2. Mostramos la versión de escritorio */
.header-socials-desktop {
  display: flex;
  gap: 12px;
}

/* --- VISTA MÓVIL (hasta 768px de ancho) --- */
@media (max-width: 768px) {

  /* 1. Ocultamos la versión de escritorio */
  .header-socials-desktop {
    display: none;
  }

  /* 2. Mostramos la versión móvil DENTRO del menú hamburguesa */
  .nav-socials-mobile {
    display: block;
    /* Cambiamos de none a block para que sea visible */
    margin-top: 20px;
  }

  .nav-socials-mobile .social-btn {
    margin-bottom: 15px;
    justify-content: center;
    /* Centramos el contenido del botón */
  }

  /* Separador para el menú móvil */
  .nav-separator {
    width: 80%;
    margin: 15px auto;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
}


/* ===========================================
   6. ESTILOS PÁGINA DE CHECKOUT (CÓDIGO UNIFICADO FINAL)
   =========================================== */

/* Regla general para los 3 bloques de la página (más anchos) */
.checkout-flow>* {
  max-width: 950px;
  margin: 0 auto var(--spacing-lg);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  background: var(--color-white);
  /* Fondo blanco por defecto */
  border: 1px solid var(--color-border);
}

/* Títulos H3 para las secciones (estilo premium) */
.checkout-flow h3 {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--spacing-md);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-accent);
  /* Línea dorada y gruesa */
  letter-spacing: 0.5px;
}

/* --- 1. Tarjeta de Resumen de Pedido (Diseño Premium) --- */
.order-summary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #FDFBF8 100%);
  border: 1px solid rgba(78, 52, 46, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: var(--spacing-lg) calc(var(--spacing-lg) * 1.5);
  position: static;
  /* Asegura que no se superponga */
}

.summary-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px dashed rgba(78, 52, 46, 0.2);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.summary-item-details {
  flex-grow: 1;
}

.summary-item-details p {
  color: var(--color-text);
  font-weight: 500;
}

.summary-item-price {
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.summary-total {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 2px solid var(--color-primary);
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.grand-total {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.grand-total span:first-child {
  color: var(--color-primary);
}

/* --- 2. Tarjeta de Métodos de Pago (Diseño Neutro) --- */
.payment-section {
  background: var(--color-white);
}

.payment-methods {
  display: grid;
  gap: var(--spacing-md);
  /* En móvil, se verá una sola columna */
  grid-template-columns: 1fr;
}

/* En pantallas más grandes (tablets y escritorio), forzamos las 3 columnas */
@media (min-width: 768px) {
  .payment-methods {
    grid-template-columns: repeat(3, 1fr);
  }
}

.payment-card {
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.payment-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.payment-logo {
  height: 30px;
}

.payment-card-body {
  padding: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.payment-card-body p {
  font-size: 1rem;
  font-weight: 500;
}

.payment-card-body span,
.payment-card-body strong {
  display: block;
  margin-bottom: 0.25rem;
}

.payment-qr {
  max-width: 120px;
  margin: 0.5rem auto;
}

.payment-card.yape {
  background-color: #F0FFFE;
  border-top: 5px solid #00A99D;
}

.payment-card.bcp {
  background-color: #FFF4E8;
  border-top: 5px solid #FF7800;
}

.payment-card.bbva {
  background-color: #EBF4FF;
  border-top: 5px solid #004481;
}

/* --- 3. Tarjeta de WhatsApp (Diseño Verde) --- */
.whatsapp-action {
  background-color: #E8F5E9;
  /* Fondo verde claro */
  border: 1px solid var(--color-cta);
  /* Borde verde */
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--color-white);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
  width: 100%;
  justify-content: center;
}

.btn-whatsapp:hover {
  background-color: #1EBE57;
  transform: scale(1.02);
  color: var(--color-white);
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
}

/* --- Estilos para acciones en el resumen de pedido --- */
.summary-item-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.summary-item-actions .quantity-selector {
  border: 1px solid var(--color-border);
  border-radius: 20px;
}

.summary-item-actions .remove-item-btn {
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}

.summary-item-actions .remove-item-btn:hover {
  color: #c94a4a;
  /* Color rojo al pasar el mouse */
}

/* ===========================================
   MEJORA VISUAL PARA EL BOTÓN 'ELIMINAR' EN CHECKOUT
   =========================================== */

.summary-item-actions .remove-item-btn {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #c94a4a;
  /* Un tono de rojo sutil */
  background-color: #fce8e8;
  /* Fondo rojo muy claro */
  padding: 6px 12px;
  border-radius: 20px;
  /* Bordes redondeados estilo "píldora" */
  border: 1px solid #f8d7da;
  transition: all 0.2s ease;
  line-height: 1;
}

.summary-item-actions .remove-item-btn:hover {
  background-color: #c94a4a;
  /* Fondo rojo más oscuro al pasar el mouse */
  color: var(--color-white);
  /* Texto blanco */
  border-color: #c94a4a;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ===========================================
   MEJORA VISUAL PARA EL BOTÓN 'QUITAR' EN EL CARRITO LATERAL
   =========================================== */

.cart-item-actions .remove-item-btn {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #c94a4a;
  /* Un tono de rojo sutil */
  background-color: #fce8e8;
  /* Fondo rojo muy claro */
  padding: 6px 12px;
  border-radius: 20px;
  /* Bordes redondeados */
  border: 1px solid #f8d7da;
  transition: all 0.2s ease;
  line-height: 1;
}

.cart-item-actions .remove-item-btn:hover {
  background-color: #c94a4a;
  /* Fondo rojo más oscuro al pasar el mouse */
  color: var(--color-white);
  /* Texto blanco */
  border-color: #c94a4a;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ===========================================
   NUEVO ESTILO DE BOTONES EN LA CABECERA
   =========================================== */

/* Contenedor principal de los íconos/botones en la cabecera */
.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  /* Espacio entre los botones */
}

/* Estilo base para los botones de redes sociales */
.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Espacio entre el ícono y el texto */
  padding: 10px 20px;
  border-radius: 50px;
  /* Esto crea la forma de píldora */
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Colores específicos para cada red social */
.social-btn.tiktok {
  background-color: #000000;
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Nuevo estilo para el botón del carrito */
#cart-button,
.cart-button {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  /* Misma forma de píldora */
  padding: 10px;
  position: relative;
  width: 50px;
  /* Ancho fijo */
  height: 42px;
  /* Alto fijo */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

#cart-button:hover,
.cart-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Ajuste del contador del carrito */
.cart-count {
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
}

/* --- ESTILOS DEFINITIVOS PARA EL BOTÓN DE DESCARGA DEL CATÁLOGO --- */
.download-catalog-btn {
  display: block !important;
  /* Asegura que se comporte como un bloque */
  width: 100% !important;
  /* Ocupa todo el ancho */
  padding: 10px 15px !important;
  /* Espaciado interno */
  margin-top: 15px !important;
  /* Aumentamos la separación */
  background-color: var(--color-primary) !important;
  /* Fondo claro y distintivo */
  color: var(--color-white) !important;
  /* Texto blanco sobre el fondo */
  border: none !important;
  /* Sin borde para un aspecto más limpio */
  border-radius: var(--border-radius) !important;
  /* Bordes redondeados */
  text-align: center !important;
  /* Centra el texto */
  font-size: 0.95rem !important;
  /* Fuente ligeramente más grande */
  font-weight: 700 !important;
  /* Negrita para el texto del botón */
  cursor: pointer !important;
  /* Indica que es clickeable */
  transition: background-color 0.3s ease, transform 0.2s ease !important;
  /* Transición suave */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  /* Sombra más pronunciada para un efecto 3D */
}

.download-catalog-btn:hover {
  background-color: #6a4a3c !important;
  /* Un tono más oscuro de tu color primario en hover */
  transform: translateY(-2px) !important;
  /* Ligero efecto de levantamiento */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
  /* Sombra más fuerte en hover */
}

/* Opcional: Si quieres un botón completamente gris, usa esto en vez de lo de arriba: */
/*
.download-catalog-btn {
    display: block !important;
    width: 100% !important;
    padding: 10px 15px !important;
    margin-top: 15px !important;
    background-color: var(--color-light-gray) !important;
    color: var(--color-dark-gray) !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05) !important;
}

.download-catalog-btn:hover {
    background-color: var(--color-gray) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1) !important;
}
*/
/* ===========================================
   7. AJUSTES FINALES PARA DISPOSITIVOS MÓVILES
   =========================================== */

/* --- Tablets y Móviles (hasta 992px) --- */
@media (max-width: 992px) {

  /* Hacemos que la navegación principal se transforme */
  .nav-links {
    position: fixed;
    /* Se posiciona sobre todo el contenido */
    top: 0;
    right: 0;
    width: 80%;
    /* Ocupa el 80% del ancho de la pantalla */
    max-width: 350px;
    /* Ancho máximo para no ser demasiado grande */
    height: 100vh;
    /* Ocupa toda la altura */
    background-color: var(--color-white);
    /* Fondo blanco */

    /* Centramos los enlaces verticalmente */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    /* Aumentamos el espacio entre enlaces */

    /* Por defecto, está oculto fuera de la pantalla a la derecha */
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out;

    /* Sombra para darle un efecto de profundidad */
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    /* Se asegura que esté por encima de otros elementos */
  }

  /* Esta clase 'active' hará que el menú sea visible */
  .nav-links.active {
    transform: translateX(0);
    /* Lo trae a la vista */
  }

  /* Hacemos la fuente de los enlaces más grande para el móvil */
  .nav-links a {
    font-size: 1.2rem;
  }

  /* Mostramos el botón de hamburguesa en dispositivos móviles */
  .hamburger {
    display: block;
    z-index: 1600;
    /* Debe estar por encima del menú para poder cerrarlo */
  }

  /* Ocultamos los botones de redes sociales del escritorio */
  .header-socials-desktop {
    display: none;
  }

  /* Ajustes generales para una mejor vista en móvil */
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-image {
    display: block;
    /* Aseguramos que la imagen de la historia se vea */
    order: -1;
    /* La colocamos antes del texto */
  }

  .process-grid {
    grid-template-columns: 1fr;
    /* Una columna para los pasos del proceso */
  }
}

/* ===========================
   AJUSTES ESPECIALES PARA MÓVILES (checkout)
   =========================== */
@media (max-width: 768px) {

  /* Reducir padding general */
  .checkout-flow>* {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  /* Resumen del pedido */
  .summary-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-item-img {
    width: 100%;
    height: auto;
  }

  /* Métodos de pago: de 3 columnas a 1 columna */
  .payment-methods {
    grid-template-columns: 1fr !important;
  }

  .payment-card {
    margin-bottom: 1.5rem;
  }

  /* Texto más pequeño en móviles */
  .payment-card-body {
    font-size: 0.9rem;
  }

  /* Botón de WhatsApp full width */
  .btn-whatsapp {
    font-size: 1rem;
    padding: 0.8rem;
    width: 100%;
  }
}

/* --- Nuevo estilo para el botón de productos próximos --- */
.btn-coming-soon {
  background-color: #e53935; /* Un tono de rojo */
  color: #fff;
  border: 1px solid #e53935;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  cursor: default;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-coming-soon:hover {
  background-color: #d32f2f;
}
/* --- ESTILO PARA EL LOGO CON IMAGEN FORZADO --- */
.logo-img {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-img img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}
/* --- Estilos para el Menú de Categorías y Layout de Tienda --- */

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr; /* Columna fija para el menú, el resto para productos */
  gap: 2rem;
  align-items: flex-start; /* Alinea los items al inicio */
  margin-top: 2rem;
}

.category-menu {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  position: sticky; /* Fija el menú al hacer scroll */
  top: 20px;
  border: 1px solid #0c0c0c;
}

.category-menu h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.category-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
  border-left: 3px solid transparent; /* Borde para el estado activo */
}

.category-menu li a:hover {
  background-color: #ece7e1;
}

/* ESTILO ACTIVO: Así se resalta la categoría seleccionada */
.category-menu li.active a {
  color: #8B4513; /* Un color marrón chocolate */
  font-weight: 700;
  border-left: 3px solid #8B4513;
  background-color: #f5f0eb;
}


/* --- Estilos para la nueva sección de Promociones --- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.promo-card {
  border: 2px dashed #ddd;
  border-radius: 8px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: #999;
  background-color: #fafafa;
}

/* --- Adaptación para Móviles (Responsive) --- */
@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr; /* El menú se pondrá encima de los productos */
  }
  
  .category-menu {
    position: static; /* Quitamos el efecto "sticky" en móvil */
    margin-bottom: 2rem;
  }
}
