/* styles.css (Añadir al inicio) */

:root {
  /* ================================== */
  /* ?? Variables de Estilo Profesional */
  /* ================================== */

  /* Colores de Marca */
  --color-primary: #64a84e;           /* Botones Pedir y iconoes */
  --color-secondary: #50853f;         /* Precios, Éxito, botones secundarios */
  --color-accent: #558D42;            /* header/footer */
 
  /* Colores de header */
  --color-header-icono: #FFED00;      /*Color icono usuario bienvenida*/
  --color-header-text: #fff9a8;       /*Color texto bienvenida*/

  /* Colores de Menú escritorio */
  --color-header-menu-background: #558D42;       /*Color menu texto*/
  --color-header-menu-text: #558D42;       /*Color menu texto*/
  --color-header-menu-background-active: #59b836;       /*Color menu texto*/
  --color-header-menu-text-active: #ffffff;       /*Color menu texto*/
  --color-header-menu-background-hover: #FFED00;       /*Color menu texto*/
  --color-header-menu-text-hover: #000000;       /*Color menu texto*/  

  /* Colores de MenúCelular */
  --color-header-menu-movil-text: #ffffff;       /*Color texto*/

  /* Colores de boton 01 */ 
  --color-header-btn-uno: var(--color-primary); /*Color boton mi cuenta fondo mormal*/
  --color-header-btn-uno-text: #ffffff; /*Color boton mi cuenta letra normal*/

  /* Colores de boton 02 */ 
  --color-header-btn-dos: #ffffff; /*Color boton mi cuenta borde mormal*/
  --color-header-btn-dos-text: #ffffff; /*Color boton mi cuenta letra normal*/
  --color-header-btn-dos-hover: #FFED00; /*Color boton mi cuenta fondo horve*/
  --color-header-btn-dos-hover-text: #000000; /*Color boton mi cuenta texto horvw*/

  /* Colores de boton 03 */ 
  --color-header-btn-tres: var(--color-primary); /*Color boton mi cuenta fondo mormal*/
  --color-header-btn-tres-text: #ffffff; /*Color boton mi cuenta letra normal*/

  /* Colores de footer */
  --color-accent-sec: #447435;        /*Derechos de autor*/
  --color-footer-iconos: #FFED00;     /*Iconos del footer*/
  --color-footer-text-title:#FFED00;  /*Color titulos*/
  --color-footer-text: #ffffff;       /*Color texto*/
  --color-footer-text-gris: #ffffff;  /*Color texto mas opaco*/
  --color-footer-marca: #ffffff;  /*Color texto*/

  /* Colores de Carrito */
  --color-cart-title: #ffffff;      /*Color texto mas opaco*/

  /* Colores de fondos */
  --color-background: #fcfcf9;        /* Fondo general c�lido (Blanco roto) */
  --color-surface: #ffffff;           /* Fondo de contenedores (cards, modales) */
  --color-text-dark: #2d2f1f;         /* Texto principal oscuro con tinte oliva */
  --color-text-medium: #6b7060;       /* Texto secundario/descriptivo (gris verdoso medio) */
  --color-text-light: #9ca3af;        /* Texto de ayuda, deshabilitado (gris claro) */

  /* Colores de Borde y Sombra */
  --color-border-light: #e5e7eb;      /* Borde ligero (divisores, inactivos) */
  --color-border-focus: #b2b36e;      /* Borde al hacer foco (Oliva m�s claro) */
  --color-shadow-base: rgba(45, 47, 31, 0.04); /* Sombra suave */
  --color-shadow-hover: rgba(141, 143, 58, 0.15); /* Sombra en hover/acci�n (Oliva transparente) */

  /* Colores de Estado (Botones/Interacci�n) */
  --color-success: #496200;           /* �xito / Confirmaci�n (Igual que Secondary para consistencia) */
  --color-danger: #b71c1c;            /* Error / Advertencia / Eliminar */
  --color-info: #3b82f6;              /* Informativo (Se mantiene est�ndar si no se quiere cambiar) */

  /* Colores de Componente (Ej. Carrito) */
  --color-cart-badge: var(--color-danger); /* Globo de notificaci�n de carrito */
  --color-input-border: #d9dbbc;      /* Borde de inputs en estado normal (Oliva muy claro) */
  --color-desc-badge: #fa1414;

  /* Mapeo de variables antiguas */
  --color-primary-green: var(--color-primary);
  --color-secondary-green: var(--color-secondary);
  --color-light-green: var(--color-accent);
  --card-shadow-color: var(--color-shadow-base);
  --card-border-color: var(--color-border-light);
  --card-hover-border-color: var(--color-border-focus);
  --card-hover-shadow: rgba(141, 143, 58, 0.12); /* Sombra para hover */
  --card-hover-shadow-focus: rgba(141, 143, 58, 0.25);
  --text-dark: var(--color-text-dark);
  --text-medium: var(--color-text-medium);
  --price-color: var(--color-secondary);
  --button-color: var(--color-primary);
}

html{
  overflow-y: auto;
  scrollbar-gutter: stable;
}

body {
  font-family: 'DM Sans', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--color-background);
}

header {
  background-color: var(--color-accent);
  padding: 6px 15px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  /* Altura estable al cargar fuentes / cambiar totales del carrito */
  min-height: 44px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-bar h1 {
  margin: 0 20px 0 20px;
  font-size: 23px;
  line-height: 1.2;
}

/* Bloque de búsqueda + botones en cabecera */
.search-login button {
  cursor: pointer;
}

/* Input de búsqueda antiguo (fallback) */
.search-login input[type="text"] {
  padding: 5px;
  border-radius: 4px;
  border: 1px solid var(--color-input-border);
}

.search-login button {
  cursor: pointer;
}

/* ==== Buscador de productos en la cabecera ==== */
.search-box {
  position: relative;
  width: 100%;
  max-width: none;
}

/* Popup de resultados */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
  box-shadow: 0 4px 10px var(--color-shadow-base);
  max-height: 260px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 4px;
  display: none; /* se muestra por JS */
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  cursor: pointer;
}

.search-result-item:hover {
  background-color: var(--color-background);
}

.search-result-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.search-result-info {
  display: flex;
  flex-direction: column;
}

.search-result-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-dark);
}

.search-result-price {
  font-size: 0.8rem;
  color: var(--color-text-medium);
}

.search-result-empty {
  padding: 8px;
  font-size: 0.85rem;
  color: var(--color-text-medium);
}

/* Input de búsqueda (dentro de .header-search-pill en header.css) */
.search-box input#header-search {
  width: 100%;
  padding: 10px 12px;
  border-radius: 0;
  border: none;
  font-size: 0.95rem;
  outline: none;
  box-shadow: none;
  transition: none;
}

.search-box input#header-search:focus {
  border: none;
  box-shadow: none;
}

nav {
  position: sticky;
  top: 55px;
  z-index: 999;
  width: calc(100% + 30px);
  margin-left: -15px;
  margin-right: -5px;
  margin-bottom: -6px;
  margin-top: 5px;
}


/* =======================================================
   MENU PRINCIPAL
   ======================================================= */
nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  border-bottom: 1px solid var(--color-border-light);
  background-color: var(--color-surface);
}

/* Cada li ocupa un ancho proporcional */
nav ul li {
  flex: 1 1 0;
  text-align: center;
}

/* Enlaces del menú: pills redondeados, más grandes */
nav ul li a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 20px;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-header-menu-text);
  border-radius: 10;
  box-sizing: border-box;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease;
}

/* Subrayado suave animado al pasar el mouse */
nav ul li a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-header-menu-background-hover);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
  opacity: 0.9;
}

/* Hover general */
nav ul li a:hover {
  background-color: var(--color-header-menu-background-hover); 
  color: var(--color-header-menu-text-hover);
  transform: none;
}

nav ul li a:hover::after {
  transform: scaleX(1);
}

nav ul li a.active {
  background-color: var(--color-header-menu-background-active);
  color: var(--color-header-menu-text-active);
  font-weight: 600;
}

nav ul li a.active::after {
  transform: scaleX(1);
}

/* Enlace del carrito dentro del nuevo estilo */
nav ul li a.cart-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

nav ul li a.cart-link .fa-shopping-cart {
  font-size: 1.5rem;
}

nav ul li a.cart-link .fa-shopping-cart {
  font-size: 1.05rem;
}

/* Logo Principal */
.logo-img {
  width: 100px;         /* Ancho fijo solicitado */
  height: 60px;         /* Alto fijo solicitado */
  object-fit: contain;  /* Esto evita que la imagen se deforme (la centra y escala) */
  display: block;       /* Elimina espacios fantasmas inferiores */
}

/* Banner principal */
.banner {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contenido principal */
main {
  text-align: center;
  padding: 20px;
  background-color: var(--color-surface);
}

/* Ficha producto: ancho completo de la ventana */
main.main--producto-ficha {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 20px 16px 40px;
  box-sizing: border-box;
}

/* Listado de productos (estilo general antiguo) */
.productos {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 20px;
}

.producto {
  width: 300px;
  height: auto;
  padding: 10px;
  text-align: center;
  margin-bottom: 20px;
  border: 3px solid transparent;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: var(--color-surface);
  position: relative;
}

/* Botón corazón (favoritos) común a todas las tarjetas de producto */
.btn-card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  color: var(--color-text-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-card-fav:hover {
  background: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-card-fav:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-card-fav[aria-pressed="true"] {
  color: #e11d48;
}

.btn-card-fav[aria-pressed="true"]:hover {
  color: #be123c;
}

.btn-card-fav i {
  pointer-events: none;
}

.producto img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10% / 10%;
}

.producto:hover {
  border-color: var(--color-primary);
}

.producto:hover img {
  transform: scale(1.05);
  filter: brightness(100%) contrast(110%);
}

.producto p {
  margin: 10px 0;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-text-dark);
  /* Siempre 2 líneas para alinear precios y botones entre tarjetas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.2em * 2);
  word-break: break-word;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* FOOTER */
footer {
  background-color: var(--color-accent);
  padding: 0 0px;
  font-size: 14px;
}


.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
  color: var(--color-footer-text-title);
}

.footer-section h4 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
}

.footer-section p,
.footer-section span {
  margin: 5px 0;
}

.whatsapp {
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp img {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding: 15px 0;
  background-color: var(--color-accent-sec);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.footer-bottom a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--color-header-icono);
  text-decoration: none;
}

/* =======================================================
   BOTÓN FORMATO 01
   ======================================================= */

.btn{
  display:inline-block;
  padding:8px 16px;
  border:none;
  border-radius:6px;
  font-weight:bold;
  cursor:pointer;
  transition:filter .3s ease;
  background-color:var(--color-header-btn-uno);
  color:var(--color-header-btn-uno-text);
  text-decoration: none;
}

.btn:hover{filter:brightness(90%);}

.btn-danger{background:var(--color-danger);color:var(--color-surface);}

.price{font-size:16px;font-weight:bold;margin:.4rem 0;color:var(--color-secondary);}

/* =======================================================
   BOTÓN FORMATO 02
   ======================================================= */

.btn-outline-header {
  display: inline-flex;          /* Alineación correcta de texto e icono si hubiera */
  align-items: center;
  justify-content: center;
  
  /* 🚫 LO MÁS IMPORTANTE: QUITAR EL SUBRAYADO */
  text-decoration: none !important; 
  
  /* Estilo visual */
  background-color: transparent;
  border: 2px solid var(--color-header-btn-dos);
  color: var(--color-header-btn-dos);
  
  /* Forma y Tamaño */
  padding: 6px 20px;
  border-radius: 999px;          /* Forma redondeada completa (Pill shape) */
  font-weight: 700;              /* Texto más gordito para que se lea bien */
  font-size: 0.9rem;
  
  /* Transiciones suaves */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  box-shadow: none;
}

/* EFECTO HOVER (Al pasar el mouse) */
.btn-outline-header:hover {
  background-color: var(--color-header-btn-dos-hover);
  color: var(--color-header-btn-dos-hover-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 216, 32, 0.3);
  border-color: var(--color-header-btn-dos-hover);
}

/* EFECTO ACTIVE (Al hacer clic) */
.btn-outline-header:active {
  transform: translateY(0);
  box-shadow: none;
}

/* =======================================================
   BOTÓN FORMATO 03
   ======================================================= */

.btn-outline-mode { background-color: transparent; border: 2px solid var(--color-header-btn-tres); color: var(--color-header-btn-tres); }
.btn-outline-mode:hover { background-color: var(--color-header-btn-tres); color: var(--color-header-btn-tres-text); transform: translateY(-2px); }

/* ==== Contact Form ==== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 320px;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
}

.contact-form label {
  font-weight: bold;
  margin-top: 10px;
  color: var(--color-text-dark);
}

.contact-form input,
.contact-form textarea {
  padding: 8px;
  border: 1px solid var(--color-input-border);
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
}

.contact-form button {
  align-self: flex-start;
}

/* ==== Carrito Mejorado (carrito.php) ==== */
#cart-area {
  overflow-x: auto;
  margin: 20px auto;
  max-width: 1000px;
  width: 90%;
}

#cart-area table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

#cart-area th,
#cart-area td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--color-border-light);
  text-align: left;
}

#cart-area th {
  background-color: var(--color-accent);
  color: var(--color-cart-title);
  font-weight: bold;
}

#cart-area tr:last-child td {
  border-bottom: none;
}


/* ===== Carrito: acciones y total ===== */
.cart-actions {
  margin-top: 20px;
  margin-bottom: 30px;
  display: none;
  justify-content: center;
  gap: 12px;
}

.cart-actions .btn {
  min-width: 150px;
}

.actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.qty-input {
  width: 60px;
  padding: 5px;
  text-align: center;
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
  font-size: 14px;
  margin-right: 5px;
}

/* ==== Modal Auth ==== */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal-content {
  background: var(--color-surface);
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
}
.modal-content input {
  display: block;
  width: 90%;
  max-width: 250px;
  margin: 10px auto;
  padding: 8px;
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
}

/* Etiquetas de los campos del modal (Sexo, Fecha nac., etc.) */
.modal-content label.field-label {
  display: block;
  width: 90%;
  max-width: 250px;
  margin: 4px auto 2px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--color-text-medium);
}

/* Select del modal (Sexo) con mismo tamaño que los inputs */
.modal-content select {
  display: block;
  width: 90%;
  max-width: 276px;
  margin: 0 auto 8px;
  padding: 8px;
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
}

/* === Checkout modal === */
.checkout-modal-content {
  max-width: 420px;
  width: 95%;
  text-align: left;
}

.checkout-row {
  margin-top: 6px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Fila compacta para DNI / Celular */
.checkout-inline-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.checkout-inline-group label {
  margin: 0;
  min-width: 80px;
  color: var(--color-text-dark);
}

.checkout-inline-group input[type="text"],
.checkout-inline-group input[type="tel"],
.checkout-inline-group input[type="number"] {
  flex: 1;
  margin: 0;
}

.checkout-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.checkout-modal-content input[type="text"],
.checkout-modal-content select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
}

.checkout-actions {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.help-text {
  font-size: 0.8rem;
  color: var(--color-text-medium);
}

/* Secciones de pedido previo */
.order-section {
  background: var(--color-surface);
  margin: 10px auto;
  padding: 15px;
  border-radius: 8px;
  max-width: 900px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.order-section h3 {
  margin-top: 0;
  color: var(--color-text-dark);
}

.order-section .form-group {
  margin: 8px 0;
}

.order-section .form-group input,
.order-section .form-group select {
  width: 100%;
  max-width: 400px;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid var(--color-input-border);
}

/* ==== Contacto (mapa + formulario) ==== */
.contacto-contenedor {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-mapa {
  flex: 1 1 320px;
  min-width: 600px;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsivo contacto */
@media (max-width: 900px) {
  .contacto-contenedor {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-mapa {
    margin-top: 25px;
    min-width: auto;
  }
}

/* Contenedores de paginación (destacados y catálogo) */
.paginacion-destacados,
.paginacion-catalogo {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-medium);
}

/* Botones flecha paginación */
.btn-paginacion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-primary);
  color: var(--color-surface);
  cursor: pointer;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-paginacion-icon:hover:not(:disabled) {
  background-color: var(--color-secondary);
  transform: translateY(-1px);
}

.btn-paginacion-icon:disabled {
  background-color: var(--color-border-light);
  cursor: default;
  transform: none;
}

/* Contenedor de los números de página */
.pag-numbers {
  display: flex;
  gap: 6px;
}

/* Cada número de página */
.pag-number {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 14px;
  border: 1px solid var(--color-input-border);
  background-color: var(--color-surface);
  color: var(--color-text-medium);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.pag-number:hover {
  background-color: var(--color-background);
  transform: translateY(-1px);
}

/* Página seleccionada */
.pag-number.active {
  background-color: var(--color-primary);
  color: var(--color-surface);
  border-color: var(--color-primary);
  font-weight: 600;
}

/* Contenedor del título + flechas de destacados */
.destacados-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.destacados-header h2 {
  margin: 0;
  font-size: 20px;
  text-align: center;
  flex: 1;
  color: var(--color-text-dark);
}

/* Botones de flecha (solo destacados y similares/lateral) */
.btn-destacados-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-primary);
  color: var(--color-surface);
  cursor: pointer;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-destacados-arrow:hover:not(:disabled) {
  background-color: var(--color-secondary);
  transform: translateY(-1px);
}

.btn-destacados-arrow:disabled {
  background-color: var(--color-border-light);
  cursor: default;
  transform: none;
}

/* ====================
   Estilos del Carrito
   ==================== */

main h2 {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

.cart-wrapper {
  margin-top: 1rem;
  overflow-x: auto;
}



/* Mensaje carrito vacío */
p.empty {
  text-align: center;
  padding: 2rem 0;
  color: var(--color-text-medium);
}

/* Botones de acciones debajo del carrito */
.actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Botones dentro de los modales (auth y carrito) */
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

/* ===== Icono de carrito con contador en la cabecera ===== */

nav ul li a.cart-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

nav ul li a.cart-link .fa-shopping-cart {
  font-size: 1.1rem;
}

/* ==== Detalle de producto (producto.php) ==== */

.product-section {
  max-width: 1000px;
  margin: 8px auto;
  padding: 16px;
}

/* Ficha de producto: ocupa el ancho del contenedor principal */
.product-section.product-section--ficha {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 0 24px;
  box-sizing: border-box;
}

main.main--producto-ficha .catalogo-section.catalogo-section--similares-fullwidth {
  max-width: 100%;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.product-section h2 {
  text-align: center;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-dark);
}

/* Layout: detalle + destacados laterales */
.product-detail-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Caja del detalle principal */
.product-detail-wrapper {
  background-color: var(--color-surface);
  border-radius: 12px;
  
  /* CAMBIO 1: Sombra más pronunciada (de 0.04 a 0.12 de opacidad) */
  box-shadow: 0 10px 25px rgba(45, 47, 31, 0.12); 
  
  /* CAMBIO 2: Agregamos un borde gris visible */
  border: 1px solid #cbd5e1; 
  
  padding: 16px;
  flex: 1;
}

/* Lateral de destacados */
.product-sidebar {
  width: 260px;
  max-width: 100%;
}

/* Header del bloque lateral */
.product-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: var(--color-text-dark);
}

.product-sidebar-header span {
  font-weight: 700;
  font-size: 14px;
}

.product-sidebar-arrows {
  display: flex;
  gap: 4px;
}

/* Lista vertical de destacados laterales */
.destacados-lateral-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Item individual del lateral */
.destacado-lateral-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background-color: var(--color-surface);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid var(--color-border-light);
}

.destacado-lateral-item:hover {
  background-color: var(--color-background);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.destacado-lateral-img img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

.destacado-lateral-info {
  display: flex;
  flex-direction: column;
  gap: 0px;
  text-align: left;
  justify-content: center;
}

.destacado-lateral-name {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: 1px;
}

.destacado-lateral-price {
  font-size: 13px;
  color: var(--color-secondary);
  margin: 0;
  line-height: 1.1;
}

.destacado-lateral-stock {
  font-size: 11px;
  color: var(--color-text-medium);
  margin: 0;
  line-height: 1.1;
}

/* Breadcrumb del detalle del producto */
.product-breadcrumb {
  /* Anula estilos globales de `nav` (menú principal: sticky + ancho extra) */
  position: static;
  top: auto;
  z-index: auto;
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px 0;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-medium);
  padding: 8px 0;
  line-height: 1.35;
  border-bottom: 1px solid var(--color-border-light);
  text-align: left;
}

.product-breadcrumb-link {
  color: var(--color-text-medium);
  text-decoration: none;
  transition: color 0.15s ease;
  line-height: inherit;
}

.product-breadcrumb-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.product-breadcrumb-sep {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1;
}

.product-breadcrumb-current {
  color: var(--color-text-dark);
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: inherit;
}

@media (max-width: 600px) {
  .product-breadcrumb {
    font-size: 0.78rem;
  }
  .product-breadcrumb-current {
    max-width: 200px;
  }
}

/* === Ficha producto 3 columnas (galería | detalle | compra) — sin tarjeta envolvente === */
.product-detail-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.product-ficha-grid {
  display: grid;
  /* Proporción fija galería | info | compra — escala igual al zoom */
  grid-template-columns: minmax(0, 1.58fr) minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 8px;
  width: 100%;
}

.product-ficha-col--gallery {
  min-width: 0;
  max-width: 100%;
}

.product-ficha-col--cta {
  min-width: 0;
  max-width: none;
  width: 100%;
}

.product-ficha-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0 0 8px;
  line-height: 1.3;
}

.product-ficha-subtitle {
  margin: 16px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

.product-ficha-col--info {
  min-width: 0;
  max-width: none;
  width: 100%;
  justify-self: stretch;
  text-align: left;
}

.product-ficha-col--info .product-ficha-title {
  font-size: 1.12rem;
  text-align: left;
}

/* main tiene text-align:center; la ficha debe ir alineada a la izquierda */
main .product-section.product-section--ficha,
.product-detail-page {
  text-align: left;
}

.product-detail-page .product-detail-description-block,
.product-detail-page .product-share-modern--ficha {
  text-align: left;
}

.product-ficha-col--info .product-detail-caracteristicas {
  text-align: left;
  align-items: stretch;
}

.product-ficha-col--info .pc-group .pc-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px;
  text-align: left;
}

.product-ficha-col--info .pc-chips {
  justify-content: flex-start;
}

.product-ficha-col--info .pc-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.product-ficha-col--info .pc-select,
.product-ficha-col--info .pc-parrafo {
  max-width: 100%;
  text-align: left;
}

.product-ficha-col--info .product-share-modern--ficha .share-buttons-row {
  justify-content: flex-start;
}

/* Etiquetas dinámicas ficha */
.product-ficha-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.product-ficha-tags-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.product-ficha-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-primary, #059669);
  color: var(--color-primary, #059669);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  background: #fff;
}

.product-ficha-tag--sold {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.product-detail-code {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-dark);
  letter-spacing: 0.02em;
}

.product-ficha-col--info .product-detail-description-block p {
  color: var(--color-text-dark);
}

.product-ficha-col--info .product-share-modern--ficha .share-label {
  color: var(--color-text-dark);
}

/* Swatches — opción única en ficha (cuadrado + texto) */
.product-ficha-col--info .pc-chip {
  min-width: auto;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 8px 14px 8px 48px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  color: var(--color-text-dark);
  position: relative;
  overflow: visible;
}

.product-ficha-col--info .pc-chip::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 1px solid var(--color-border-light, #d1d5db);
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

.product-ficha-col--info .pc-chip::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  opacity: 0;
  background: #111827 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 16px no-repeat;
  pointer-events: none;
}

.product-ficha-col--info .pc-chip.pc-chip-active {
  border-color: var(--color-border-light, #d1d5db);
  box-shadow: none;
  color: var(--color-text-dark);
  font-weight: 600;
}

.product-ficha-col--info .pc-chip.pc-chip-active::after {
  opacity: 1;
}

.product-ficha-col--info .pc-chips {
  gap: 10px;
}

.product-detail-price-stock--cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #f3f4f6;
  border-radius: 12px;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.product-detail-price-stock--cta .product-detail-price--destacado {
  color: var(--color-text-dark);
}

.product-detail-price-stock--cta .product-detail-actions--en-bloque-precio {
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.product-detail-price-stock--cta .product-detail-actions--en-bloque-precio .pedido {
  margin-top: 0;
}

.product-price-online-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-medium);
  margin-top: 0;
}

.product-price-info-btn {
  border: none;
  background: transparent;
  color: var(--color-text-medium);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 0.85rem;
}

.product-detail-stock-urgency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary, #059669);
}

.product-detail-actions--cta .btn-add-cart-ficha--pill,
.product-detail-actions--cta .btn-whatsapp-consult--pill,
.product-detail-actions--cta .product-qty-stepper {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  justify-content: center;
  border-radius: 999px;
  margin-left: 0;
  margin-right: 0;
}

.product-detail-actions--cta .btn-add-cart-ficha--pill,
.product-detail-actions--cta .btn-whatsapp-consult--pill {
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
}

.product-detail-actions--cta .btn-add-cart-ficha--pill {
  background: #14532d !important;
  border-color: #14532d !important;
}

.product-detail-actions--cta .btn-add-cart-ficha--pill.is-hidden {
  display: none;
}

.product-detail-actions--cta .whatsapp-consult-container {
  margin-top: 0;
  width: 100%;
}

.product-detail-actions--cta .btn-whatsapp-consult--pill {
  display: flex;
  width: 100%;
  margin-top: 0;
}

.product-qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #14532d;
  padding: 0 20px;
  height: 48px;
}

.product-qty-stepper.is-hidden {
  display: none;
}

.product-qty-stepper-btn {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.product-qty-stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-qty-stepper-val {
  flex: 1;
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.product-sidebar--inline .product-sidebar-header {
  justify-content: flex-start;
}

.product-detail-price-old {
  text-decoration: line-through;
  color: var(--color-danger);
  font-size: 0.95rem;
  margin-right: 8px;
}

.price-discount-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-discount-line-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.product-detail-ahorras {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.product-detail-price--destacado {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-secondary);
}

.product-detail-actions--cta .pedido {
  flex-wrap: wrap;
}

.btn-add-cart-ficha {
  flex: 1;
  min-width: 160px;
  background: var(--color-primary, #166534) !important;
  border-color: var(--color-primary, #166534) !important;
  color: #fff !important;
}

.product-sidebar--inline {
  width: 100%;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
}

.product-share-modern--ficha {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
}

.product-share-modern--ficha .share-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 8px;
}

.product-share-modern--ficha .share-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Compartir móvil: debajo del precio, encima de destacados */
.product-share-modern--ficha-mobile {
  display: none;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
  text-align: left;
}

.product-share-modern--ficha-mobile .share-buttons-row {
  justify-content: flex-start;
}

.product-gallery {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  width: 100%;
}

.product-gallery-thumbs-col {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: auto;
}

.product-gallery-thumbs-col.is-hidden {
  display: none;
}

.product-gallery-thumbs-viewport {
  overflow: hidden;
  width: auto;
  max-height: none;
}

.product-gallery-thumbs-track {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: auto;
}

.product-gallery-thumb {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-thumb.is-active {
  border-color: var(--color-primary, #059669);
  box-shadow: 0 0 0 1px var(--color-primary, #059669);
}

.product-gallery-main-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
}

.product-gallery-main-view.product-detail-img-wrapper {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  cursor: zoom-in;
}

.product-gallery-hnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.product-gallery-hnav--prev {
  left: 12px;
}

.product-gallery-hnav--next {
  right: 12px;
}

.product-gallery-hnav:hover:not(:disabled) {
  background: #fff;
  color: var(--color-secondary);
}

.product-gallery-hnav:disabled {
  opacity: 0.35;
  cursor: default;
  display: none;
}

.btn-product-fav--on-gallery {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-product-fav--on-gallery:hover {
  background: #fff;
}

/* Imagen principal: escala con el ancho de la columna galería */
.product-ficha-col--gallery .product-gallery-main-view.product-detail-img-wrapper img {
  width: 100%;
  max-height: none;
  height: auto;
  display: block;
}

@media (max-width: 1100px) {
  .product-ficha-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-ficha-col--cta {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .product-ficha-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .product-share-modern--ficha-desktop {
    display: none !important;
  }

  .product-share-modern--ficha-mobile {
    display: block;
  }

  /* Móvil: ocultar destacados laterales en ficha de producto */
  main.main--producto-ficha .product-sidebar--inline {
    display: none !important;
  }

  .product-ficha-col--gallery .product-gallery-main-view.product-detail-img-wrapper img {
    max-height: 504px;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
  }

  .product-gallery-main-view.product-detail-img-wrapper {
    width: 100% !important;
    max-width: 100%;
    min-height: 200px;
    flex: 1 1 auto;
  }

  /* Móvil: imagen grande arriba y miniaturas en fila debajo */
  .product-gallery {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .product-gallery-thumbs-col {
    width: 100%;
  }

  .product-gallery-thumbs-viewport {
    max-height: none;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-gallery-thumbs-track {
    flex-direction: row;
    width: max-content;
    padding-bottom: 4px;
  }

  .product-gallery-thumb {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
  }
}

.product-detail-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* 👇 Contenedor con overflow y cursor + zoom */
.product-detail-img-wrapper {
  flex: 0 0 360px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  cursor: zoom-in;
}

.product-detail-img-wrapper img {
  width: 100%;
  max-height: 420px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.2s ease-out;
}

.product-detail-info {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-detail-category {
  font-size: 0.9rem;
  color: var(--color-text-medium);
}

.product-detail-description {
  font-size: 0.95rem;
  color: var(--color-text-medium);
}

.product-detail-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-secondary);
}

/* Tabla con “todo el detalle” extra del producto */
.product-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--color-text-dark);
}

.product-detail-table th,
.product-detail-table td {
  border: 1px solid var(--color-border-light);
  padding: 6px 8px;
  text-align: left;
}

.product-detail-table th {
  width: 35%;
  background-color: var(--color-background);
}

/* Responsive detalle producto + lateral */
@media (max-width: 900px) {
  .product-detail-layout {
    flex-direction: column;
  }

  .product-sidebar {
    width: 100%;
  }
}

/* Responsive detalle producto */
@media (max-width: 768px) {
  .product-detail-card {
    flex-direction: column;
    align-items: center;
  }

  .product-detail-img-wrapper:not(.product-gallery-main-view) {
    width: 80%;
  }

  .product-detail-info {
    width: 100%;
  }
}

.stock {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-medium);
  margin-bottom: 4px;
}

/* ==== Animación de FADE para DESTACADOS, SIMILARES y LATERAL ==== */
#lista-ofertas,
#prod-cat-destacados,
#destacados,
#nuevos {
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 0;
  justify-content: center;
  justify-items: center;
}

#similares-container {
  position: relative;
  overflow: visible;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 0;
  box-sizing: border-box;
}

main.main--producto-ficha #similares-container {
  max-width: 100%;
  margin-inline: auto;
}

/* Escritorio: similares centrados como catálogo (no aplicar reglas móvil) */
@media (min-width: 769px) {
  main.main--producto-ficha #similares-container.catalogo-grid--similares-ficha {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 270px));
    justify-content: center;
    justify-items: stretch;
    gap: 14px;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding: 10px 0 32px;
    box-sizing: border-box;
  }

  main.main--producto-ficha .catalogo-section.catalogo-section--similares-fullwidth {
    padding-left: clamp(16px, 4vw, 48px);
    padding-right: clamp(16px, 4vw, 48px);
  }
}

/* === Calificaciones producto (columna info en escritorio; bajo stock en móvil) === */
.product-ficha-col--info .product-resenas-section,
.product-ficha-col--cta .product-resenas-section {
  width: 100%;
  margin: 20px 0 16px;
  box-sizing: border-box;
}

.product-resenas-section--after-stock {
  margin-top: 16px;
}

.product-resenas-inner {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border-light, #e5e7eb);
  border-radius: 16px;
  padding: 12px 16px 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.product-resenas-inner .product-resenas-interact__title {
  margin: 0 0 10px;
  text-align: left;
}

.product-resenas-interact {
  margin-top: 0;
}

.product-resenas-public {
  padding: 0;
  margin-bottom: 14px;
  background: none;
  border: none;
  border-radius: 0;
}

.product-resenas-public__label {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark, #111827);
  text-transform: none;
  letter-spacing: normal;
}

.product-resenas-stats--public {
  margin-bottom: 0;
}

.product-resenas-stats--public .product-resenas-star {
  font-size: 1.35rem;
}

.product-ficha-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.product-ficha-rating__stars {
  display: inline-flex;
  gap: 3px;
}

.product-ficha-rating__star {
  color: #d1d5db;
  font-size: 0.95rem;
}

.product-ficha-rating__star.is-on {
  color: #eab308;
}

.product-ficha-rating__text {
  font-size: 0.88rem;
  color: var(--color-text-medium, #6b7280);
  font-weight: 600;
}

.product-resenas-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.product-resenas-stats__stars,
.product-resenas-picker {
  display: inline-flex;
  gap: 4px;
}

.product-resenas-star,
.product-resenas-picker__star {
  border: none;
  background: transparent;
  padding: 2px;
  cursor: pointer;
  color: #d1d5db;
  font-size: 1.25rem;
  line-height: 1;
}

.product-resenas-star.is-on,
.product-resenas-picker__star.is-on {
  color: #eab308;
}

.product-resenas-stats__text {
  font-size: 0.95rem;
  color: var(--color-text-medium, #6b7280);
}

.product-resenas-guest {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 12px;
  padding: 18px 16px;
  border: 1px dashed #d1d5db;
}

.product-resenas-guest__content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.product-resenas-guest__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(100, 168, 78, 0.15);
  color: var(--color-primary, #64a84e);
  font-size: 1rem;
}

.product-resenas-guest p {
  margin: 0;
  color: var(--color-text-dark, #374151);
  line-height: 1.55;
  font-size: 0.92rem;
}

.product-resenas-guest__actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.product-resenas-guest__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary, #64a84e) 0%, #4d8a3a 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(100, 168, 78, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.product-resenas-guest__btn i {
  font-size: 0.95rem;
}

.product-resenas-guest__btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(100, 168, 78, 0.4);
  filter: brightness(1.05);
}

.product-resenas-guest__btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(100, 168, 78, 0.3);
}

@media (min-width: 576px) {
  .product-resenas-guest {
    padding: 20px 22px;
  }

  .product-resenas-guest__actions {
    justify-content: flex-start;
    padding-left: 52px;
  }
}

.product-resenas-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 12px 0 8px;
  color: var(--color-text-dark, #111827);
}

.product-resenas-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  box-sizing: border-box;
}

.product-resenas-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.product-resenas-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--color-text-medium, #6b7280);
}

.product-resenas-mine-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.product-resenas-mine-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-dark, #374151);
}

.product-resenas-mine-stars {
  display: inline-flex;
  gap: 3px;
}

.product-resenas-msg {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.product-resenas-msg.is-success { color: #15803d; }
.product-resenas-msg.is-error { color: #b91c1c; }

.product-caracteristicas-loading {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--color-text-medium, #6b7280);
}

.product-resenas-loading,
.product-resenas-error {
  text-align: center;
  color: var(--color-text-medium, #6b7280);
  padding: 20px;
}

.badge-resena {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-resena--pendiente { background: #fef3c7; color: #92400e; }
.badge-resena--aprobado { background: #dcfce7; color: #166534; }
.badge-resena--rechazado { background: #fee2e2; color: #991b1b; }
.badge-resena--oculto { background: #e5e7eb; color: #374151; }

@media (max-width: 768px) {
  .product-ficha-col--info .product-resenas-section,
  .product-ficha-col--cta .product-resenas-section {
    margin: 16px 0 12px;
  }
  .product-resenas-guest__actions .btn {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }
}

/* clase que activaremos desde JS */
#lista-ofertas.fade,
#prod-cat-destacados.fade,
#destacados.fade,
#similares-container.fade,
#destacados-lateral.fade,
#nuevos.fade {
  animation: destacadosFade 0.4s ease;
}

@keyframes destacadosFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.nosotros {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 20px 0;
}

/* Imagen a la izquierda */
.nosotros img {
  max-width: 35%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Texto a la derecha y justificado */
.nosotros-texto {
  flex: 1;
  text-align: justify;
}

.nosotros-texto p {
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--color-text-medium);
}

/* Responsivo: en pantallas pequeñas se pone en columna */
@media (max-width: 768px) {
  .nosotros {
    flex-direction: column;
  }

  .nosotros img {
    max-width: 100%;
  }
}

/* Página de registro */
.register-page {
  min-height: calc(100vh - 200px); /* ajusta según tu header/footer */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 15px 40px;
  background-color: var(--color-background);
}

.register-wrapper {
  width: 100%;
  max-width: 960px;
}

.register-card {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 24px 24px 28px;
  box-shadow: 0 8px 24px var(--color-shadow-base);
  border: 1px solid var(--color-border-light);
}

.register-title {
  font-size: 1.6rem;
  margin: 0 0 6px;
  text-align: center;
  color: var(--color-text-dark);
}

.register-subtitle {
  margin: 0 0 20px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-medium);
}

/* Grid de dos columnas en escritorio */
.register-form .form-grid {
  display: flex;
  gap: 20px;
}

.register-form .form-column {
  flex: 1;
}

/* Campos */
.register-form .form-group {
  margin-bottom: 12px;
}

.register-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--color-text-dark);
}

.register-form input,
.register-form select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid var(--color-input-border);
  box-sizing: border-box;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.register-form input:focus,
.register-form select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(141, 143, 58, 0.2);
}

/* Botón principal */
.register-btn {
  width: 100%;
  margin-top: 18px;
  padding: 10px 0;
  font-size: 1rem;
}

/* Texto inferior */
.register-footer-text {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  color: var(--color-text-medium);
}

.register-footer-text a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}

.register-footer-text a:hover {
  text-decoration: underline;
}

.register-hint {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* Responsive: una sola columna en móvil */
@media (max-width: 768px) {
  .register-card {
    padding: 18px 15px 22px;
  }

  .register-form .form-grid {
    flex-direction: column;
  }
}
/*Boton mi cuenta snormal*/
.btn-mi-cuenta {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-header-btn-cuenta);
  background-color: transparent;
  color: var(--color-header-btn-cuenta-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

/*Boton mi cuenta al pasar el mouse*/
.btn-mi-cuenta:hover {
  background-color: var(--color-header-btn-cuenta-hover);
  color: var(--color-header-btn-cuenta-hover-text);
}

/* ==========================
   Home: Destacados, Nuevos y Similares
   con estilo de catálogo
   ========================== */

/* Contenedor: mismo grid que catálogo (similares ficha: ver catalogo.css en móvil) */
#lista-ofertas,
#prod-cat-destacados,
#destacados,
#nuevos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 270px));
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  margin-bottom: 32px;
}

#similares-container:not(.catalogo-grid--similares-ficha) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 270px));
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  margin-bottom: 32px;
}

/* Tarjeta: mismo “card” que catálogo, pero usando .producto */
#lista-ofertas .producto,
#prod-cat-destacados .producto,
#destacados .producto,
#nuevos .producto,
#similares-container .producto {
  width: 100%;
  max-width: 250px;
  text-align: left;              /* igual que catálogo */
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 6px 14px var(--card-shadow-color);
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.12s ease,
              box-shadow 0.12s ease,
              border-color 0.12s ease;
  margin-bottom: 0;              /* ya no necesitamos margen grande */
}

#lista-ofertas .producto:hover,
#prod-cat-destacados .producto:hover,
#destacados .producto:hover,
#nuevos .producto:hover,
#similares-container .producto:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-focus);
  box-shadow: 0 10px 22px var(--card-hover-shadow);
}

/* Imagen al estilo catálogo (cuadrada, recortada) */
#lista-ofertas .producto img,
#prod-cat-destacados .producto img,
#destacados .producto img,
#nuevos .producto img,
#similares-container .producto img {
  width: 100%;
  max-height: none;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: var(--color-background);
  border: 1px solid var(--color-border-light);
  object-fit: cover;
}

/* Nombre igual que .catalogo-card-name */
#lista-ofertas .producto p,
#prod-cat-destacados .producto p,
#destacados .producto p,
#nuevos .producto p,
#similares-container .producto p {
  margin: 6px 0 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-text-dark);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* Categoría debajo del nombre */
.producto-category {
  font-size: 0.8rem;
  color: var(--color-text-medium);
  text-align: center;
  margin: 2px 0 0;
  width: 100%;
  box-sizing: border-box;
}

/* Fila precio (izquierda) + stock (derecha), igual que .catalogo-card-meta */
.producto-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
  box-sizing: border-box;
}

.producto-meta .price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0;
}

.producto-meta .stock {
  font-size: 0.8rem;
  color: var(--color-text-medium);
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

/* Precio igual que .catalogo-card-price */
#lista-ofertas .producto .price,
#prod-cat-destacados .producto .price,
#destacados .producto .price,
#nuevos .producto .price,
#similares-container .producto .price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 2px 0 0;
}

/* Stock, si lo usas, estilo discreto */
#lista-ofertas .producto .stock,
#prod-cat-destacados .producto .stock,
#destacados .producto .stock,
#nuevos .producto .stock,
#similares-container .producto .stock {
  font-size: 0.8rem;
  color: var(--color-text-medium);
  margin-top: 2px;
}

/* Contenedor de controles carrito (stepper) en home */
#lista-ofertas .producto .pedido,
#prod-cat-destacados .producto .pedido,
#destacados .producto .pedido,
#nuevos .producto .pedido,
#similares-container .producto .pedido {
  margin-top: 6px;
  display: block;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  width: 100%;
}

/* Input cantidad tipo pill */
#lista-ofertas .producto .pedido .qty-input,
#prod-cat-destacados .producto .pedido .qty-input,
#destacados .producto .pedido .qty-input,
#nuevos .producto .pedido .qty-input,
#similares-container .producto .pedido .qty-input {
  width: 70px;
  padding: 6px 7px;
  border-radius: 999px;
  border: 1px solid var(--color-input-border);
  font-size: 0.85rem;
}

/* Botón "Agregar al carrito" (acento --color-header-icono, texto oscuro) */
#lista-ofertas .producto .btn,
#prod-cat-destacados .producto .btn,
#destacados .producto .btn,
#nuevos .producto .btn,
#similares-container .producto .btn {
  align-self: flex-end;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  background-color: var(--color-header-icono);
  color: var(--color-header-menu-text-hover);
}

.product-detail-actions .pedido .btn {
  background-color: var(--color-header-icono);
  color: var(--color-header-menu-text-hover);
}

.catalogo-card-foot button.catalogo-add-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
  margin: 0;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.3s ease;
  background-color: var(--color-header-icono);
  color: var(--color-header-menu-text-hover);
}

.catalogo-card-foot button.catalogo-add-cart-btn:hover {
  filter: brightness(0.95);
}

/* Controles carrito en tarjetas (mismo patrón que ficha producto) */
.card-cart-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.card-add-cart-btn {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  background: #14532d !important;
  border-color: #14532d !important;
  color: #fff !important;
  line-height: 1.2;
}

.card-add-cart-btn__mob {
  display: none;
}

.card-add-cart-btn__desk {
  display: inline;
}

@media (max-width: 768px) {
  .card-add-cart-btn__desk {
    display: none;
  }

  .card-add-cart-btn__mob {
    display: inline;
  }
}

.card-add-cart-btn.is-hidden {
  display: none !important;
}

.card-add-cart-btn:hover {
  filter: brightness(1.08);
}

.catalogo-card-foot .card-qty-stepper,
#lista-ofertas .producto .card-qty-stepper,
#prod-cat-destacados .producto .card-qty-stepper,
#destacados .producto .card-qty-stepper,
#nuevos .producto .card-qty-stepper,
#similares-container .producto .card-qty-stepper,
#similares-container .catalogo-card .card-qty-stepper {
  width: 100%;
  min-height: 42px;
  height: 42px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 999px;
}

.catalogo-card-foot .card-qty-stepper:not(.is-hidden),
#lista-ofertas .producto .card-qty-stepper:not(.is-hidden),
#prod-cat-destacados .producto .card-qty-stepper:not(.is-hidden),
#destacados .producto .card-qty-stepper:not(.is-hidden),
#nuevos .producto .card-qty-stepper:not(.is-hidden),
#similares-container .card-qty-stepper:not(.is-hidden) {
  display: flex !important;
}

.catalogo-card-foot .catalogo-card-qty {
  display: none;
}

#lista-ofertas .producto .pedido,
#prod-cat-destacados .producto .pedido,
#destacados .producto .pedido,
#nuevos .producto .pedido,
#similares-container .producto .pedido {
  margin-top: 8px;
  display: block;
  width: 100%;
}

/* Alinear precio y stock como en el catálogo (misma “fila”) */
#lista-ofertas .producto .price,
#prod-cat-destacados .producto .price,
#destacados .producto .price,
#nuevos .producto .price,
#similares-container .producto .price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-top: 4px;
  float: left;         /* precio a la izquierda */
}

#lista-ofertas .producto .stock,
#prod-cat-destacados .producto .stock,
#destacados .producto .stock,
#nuevos .producto .stock,
#similares-container .producto .stock {
  font-size: 0.8rem;
  color: var(--color-text-medium);
  margin-top: 6px;
  float: right;        /* stock a la derecha */
}

/* La fila de cantidad + botón debe ir debajo de esa línea */
#lista-ofertas .producto .pedido,
#prod-cat-destacados .producto .pedido,
#destacados .producto .pedido,
#nuevos .producto .pedido,
#similares-container .producto .pedido {
  clear: both;         /* baja debajo de price/stock */
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* === Mejora visual del detalle de producto === */

.product-detail-card {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.product-detail-img-wrapper {
  flex: 0 0 360px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-background);
  border: 1px solid var(--color-border-light);
}

.product-detail-img-wrapper img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* Columna de info */
.product-detail-info {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Título + chips */
.product-detail-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-detail-title-block {
  flex: 1;
  min-width: 0;
}

.product-detail-header h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

.btn-product-fav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
  color: var(--color-danger);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-product-fav:hover {
  background: var(--color-background);
}

.btn-product-fav[aria-pressed="true"] {
  color: var(--color-danger);
}

.product-detail-chip {
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 4px;
  padding: 2px 8px;
  font-size: 0.78rem;
  border-radius: 999px;
  background-color: var(--color-background);
  color: var(--color-text-medium);
}

/* Fila precio / stock */
.product-detail-price-stock {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.product-detail-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.product-detail-stock {
  font-size: 0.9rem;
  color: var(--color-text-medium);
}

/* Características tipo formulario (ficha producto) */
.product-detail-caracteristicas {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pc-group .pc-label-row {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.pc-group .pc-val-display {
  font-weight: 600;
  color: var(--color-secondary, #059669);
}

.pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pc-chip {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border-light, #d1d5db);
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pc-chip:hover {
  border-color: var(--color-secondary, #059669);
}

.pc-chip.pc-chip-active {
  border-width: 2px;
  border-color: var(--color-primary, #059669);
  box-shadow: 0 0 0 1px var(--color-primary, #059669);
  color: var(--color-secondary, #059669);
  font-weight: 600;
}

.pc-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

.pc-select,
.pc-parrafo {
  width: 100%;
  max-width: 420px;
  margin-top: 4px;
}

/* Pedido (cantidad+botón) */
.product-detail-actions .pedido {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Bloque de descripción debajo del botón */
.product-detail-description-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border-light);
}

.product-detail-description-block h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.product-detail-description-block p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-medium);
  line-height: 1.5;
}

/* Compartir en redes */
/* =================================
   ESTILOS COMPARTIR (ICONOS)
   ================================= */

.product-share {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-share span {
  font-weight: 600;
  color: var(--color-text-dark);
  font-size: 0.9rem;
}

.share-buttons-row {
  display: flex;
  gap: 8px;
}

/* Botón Rectangular de WhatsApp con Color Original */
.whatsapp-consult-container {
    margin-top: 15px;
    margin-bottom: 0px;
    text-align: left;
}

.btn-whatsapp-consult {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366; /* Verde oficial de WhatsApp */
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-whatsapp-consult:hover {
    background-color: #128C7E; /* Verde más oscuro al pasar el mouse */
}

/* Iconos de compartir: Círculos con borde gris */
.product-share-modern {
    margin-top: 5px;    /* Reducido de 20px a 5px */
    padding-top: 10px;  /* Reducido de 15px a 10px */
    border-top: 1px dashed var(--color-border-light);
}

.share-buttons-row {
    display: flex;
    gap: 10px;
}

.btn-share-outline {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd; /* Borde gris claro */
    background-color: transparent;
    color: #aaa; /* Icono gris claro */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Efecto Hover: se colorean con sus marcas originales al pasar el mouse */
.btn-share-outline[data-network="facebook"]:hover { border-color: #1877F2; color: #1877F2; }
.btn-share-outline[data-network="x"]:hover { border-color: #000; color: #000; }
.btn-share-outline[data-network="email"]:hover { border-color: #7f8c8d; color: #7f8c8d; }
.btn-share-outline[data-network="pinterest"]:hover { border-color: #bd081c; color: #bd081c; }
.btn-share-outline[data-network="linkedin"]:hover { border-color: #0077b5; color: #0077b5; }
/* Responsive para detalle */
@media (max-width: 900px) {
  .product-detail-card {
    flex-direction: column;
  }

  .product-detail-img-wrapper {
    width: 100%;
  }
}

/* Responsive para esos grids (2 columnas en móvil, igual que catálogo/similares) */
@media (max-width: 768px) {
  #lista-ofertas,
  #prod-cat-destacados,
  #destacados,
  #nuevos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 16px;
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
    justify-content: stretch;
    justify-items: stretch;
  }

  #lista-ofertas .producto,
  #prod-cat-destacados .producto,
  #destacados .producto,
  #nuevos .producto {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 8px 8px 10px;
    gap: 5px;
    margin: 0;
    box-sizing: border-box;
  }

  #lista-ofertas .producto p,
  #prod-cat-destacados .producto p,
  #destacados .producto p,
  #nuevos .producto p {
    font-size: 0.78rem;
    line-height: 1.25;
    min-height: calc(1.25em * 2);
  }

  #lista-ofertas .producto .producto-category,
  #prod-cat-destacados .producto .producto-category,
  #destacados .producto .producto-category,
  #nuevos .producto .producto-category {
    font-size: 0.72rem;
  }

  #lista-ofertas .producto .price,
  #prod-cat-destacados .producto .price,
  #destacados .producto .price,
  #nuevos .producto .price {
    font-size: 0.85rem;
    float: none;
  }

  #lista-ofertas .producto .stock,
  #prod-cat-destacados .producto .stock,
  #destacados .producto .stock,
  #nuevos .producto .stock {
    font-size: 0.7rem;
    float: none;
  }

  #lista-ofertas .producto .producto-meta,
  #prod-cat-destacados .producto .producto-meta,
  #destacados .producto .producto-meta,
  #nuevos .producto .producto-meta {
    flex-wrap: wrap;
    gap: 4px;
  }

  #lista-ofertas .producto .pedido,
  #prod-cat-destacados .producto .pedido,
  #destacados .producto .pedido,
  #nuevos .producto .pedido {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-top: 2px;
  }

  #lista-ofertas .producto .pedido .qty-input,
  #prod-cat-destacados .producto .pedido .qty-input,
  #destacados .producto .pedido .qty-input,
  #nuevos .producto .pedido .qty-input {
    width: 100%;
    max-width: 52px;
    padding: 4px 5px;
    font-size: 0.75rem;
    align-self: center;
  }

  #lista-ofertas .producto .btn,
  #prod-cat-destacados .producto .btn,
  #destacados .producto .btn,
  #nuevos .producto .btn {
    width: 100%;
    padding: 6px 8px;
    font-size: 0.72rem;
    align-self: stretch;
  }
}

/* ==== Página de autenticación (login / registro) ==== */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 140px); /* restando header/footer aproximado */
  padding: 40px 15px;
  background-color: var(--color-background);
}

.auth-container {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 25px 20px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 2px 8px var(--color-shadow-base);
  margin: 0 auto;
  text-align: left;
}

.auth-container h2 {
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
  color: var(--color-text-dark);
}

/* ==== Página de autenticación (login / registro / recuperar) ==== */

.auth-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--color-text-dark);
}

/* ✅ CORREGIDO: Agregamos input[type="text"] para el DNI */
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  margin-bottom: 12px;
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none; /* Opcional: para quitar el borde azul por defecto del navegador */
  transition: border-color 0.2s ease;
}

/* Efecto al hacer clic (Focus) */
.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  border-color: var(--color-primary);
}

.auth-form .btn-full {
  width: 100%;
  margin-top: 5px;
}

.auth-alert {
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.auth-alert-error {
  background-color: rgba(183, 28, 28, 0.1); /* var(--color-danger) transparente */
  border: 1px solid var(--color-danger);
  color: #7c1f1f;
}

.auth-alert-success {
  background-color: rgba(73, 98, 0, 0.1); /* var(--color-secondary) transparente */
  border: 1px solid var(--color-secondary);
  color: #3b5000;
}

.auth-links {
  margin-top: 15px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-medium);
}

.auth-links a {
  color: var(--color-primary);
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* ==========================
   DRAWER RESPONSIVE (NO afecta escritorio)
   ========================== */

.hamburger {
  display: none;
  width: 40px;
  height: 36px;
  border: 0;
  background: var(--color-surface);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-right: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--color-text-dark);
  border-radius: 999px;
}

/* Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 1999;
}
.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer lateral */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 82vw;
  height: 100vh;
  background: var(--color-surface);
  transform: translateX(-100%);
  transition: transform .25s ease;
  z-index: 2000;
  box-shadow: 6px 0 18px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.is-open {
  transform: translateX(0);
}

/* Header drawer */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-accent);
}
.drawer-title {
  font-weight: 700;
  color: var(--color-header-menu-movil-text);
}
.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: var(--color-surface);
  cursor: pointer;
  font-size: 20px;
  line-height: 32px;
  color: var(--color-text-dark);
}

/* Links drawer */
.drawer-menu {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.drawer-menu li a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--color-text-dark);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-background);
  transition: background .15s ease, color .15s ease;
}
.drawer-menu li a:hover {
  background: rgba(141, 143, 58, 0.1);
  color: var(--color-primary);
}

.drawer-extras {
  margin-top: auto;
  padding: 12px 0 20px;
  border-top: 1px solid var(--color-border-light);
}
.drawer-extras-section {
  padding: 8px 0 4px;
}
.drawer-extras-title {
  margin: 0 0 8px;
  padding: 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted, #6b7280);
}
.drawer-rapidos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.drawer-rapidos li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--color-text-dark);
  font-size: 0.95rem;
  font-weight: 500;
}
.drawer-rapidos li a i {
  width: 20px;
  text-align: center;
  color: var(--color-primary);
}
.drawer-rapidos li a:hover {
  background: rgba(141, 143, 58, 0.1);
  color: var(--color-primary);
}
.drawer-extras-social {
  padding-top: 12px;
}
.drawer-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 16px 8px;
}
.drawer-social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary, #003d1c);
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
}
.drawer-social-icons a:hover {
  filter: brightness(1.1);
}

body.drawer-open { overflow: hidden; }

/* =========================
   Página Pedido Confirmado
   ========================= */

.success-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background-color: var(--color-background);
  min-height: 60vh; /* Para que ocupe buen espacio vertical */
}

.success-card {
  background-color: var(--color-surface);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--color-shadow-base);
  text-align: center;
  max-width: 500px;
  width: 100%;
  border: 1px solid var(--color-border-light);
}

.success-icon {
  font-size: 4rem;
  color: var(--color-success); /* O usa var(--color-primary) */
  margin-bottom: 20px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-card h2 {
  margin: 0 0 15px;
  color: var(--color-text-dark);
  font-size: 1.8rem;
}

.order-number {
  font-size: 1.1rem;
  color: var(--color-text-dark);
  margin-bottom: 10px;
}

.order-number strong {
  color: var(--color-secondary);
  font-size: 1.2rem;
}

.success-message {
  color: var(--color-text-medium);
  margin-bottom: 30px;
  line-height: 1.5;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Botón secundario (borde) */
.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 6px 14px; /* Ajuste para coincidir con tu clase .btn */
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

/* Animación simple para el icono */
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive para el card */
@media (max-width: 600px) {
  .success-card {
    padding: 30px 20px;
  }
  
  .success-icon {
    font-size: 3.5rem;
  }

  .success-actions {
    flex-direction: column;
  }
  
  .success-actions .btn, 
  .success-actions .btn-secondary {
    width: 100%;
    box-sizing: border-box;
  }
}

/* === ESTILOS PARA LISTA DE PEDIDOS === */

.orders-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.order-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: 15px;
  transition: box-shadow 0.2s;
}

.order-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.order-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-background);
  padding-bottom: 8px;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--color-text-dark);
}

.order-date {
  color: var(--color-text-medium);
  font-size: 0.85rem;
  font-weight: normal;
}

.order-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.order-info p {
  margin: 2px 0;
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.cancel-reason {
  margin-top: 5px !important;
  color: var(--color-danger) !important;
}

/* Badges de estado */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 5px;
  text-transform: uppercase;
}
.badge-default { background: #eee; color: #555; }
.badge-warning { background: #fff3cd; color: #856404; } /* Pendiente */
.badge-info    { background: #d1ecf1; color: #0c5460; } /* Confirmado */
.badge-success { background: #d4edda; color: #155724; } /* Entregado */
.badge-danger  { background: #f8d7da; color: #721c24; } /* Cancelado */

/* Botones pequeños */
.order-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 120px;
}

.btn-mini {
  padding: 5px 10px;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
}
.btn-whatsapp:hover { background-color: #128C7E; }

.btn-outline-danger {
  background: transparent;
  border-color: var(--color-danger);
  color: var(--color-danger);
}
.btn-outline-danger:hover {
  background: var(--color-danger);
  color: white;
}

.btn-outline-primary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-primary:hover {
  background: var(--color-primary);
  color: white;
}

.rated-info {
  font-size: 0.85rem;
  color: var(--color-secondary);
  font-weight: bold;
  text-align: center;
}

@media (max-width: 600px) {
  .order-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .order-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
  .btn-mini {
    flex: 1;
  }
}

/* DASHBOARD GRID */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.dash-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

/* Iconos del dashboard */
.dash-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.icon-orders {
  background-color: #e0f2fe; /* Azul muy claro */
  color: #0284c7;            /* Azul fuerte */
}

.icon-pending {
  background-color: #fef9c3; /* Amarillo claro */
  color: #ca8a04;            /* Amarillo fuerte */
}

.icon-success {
  background-color: #dcfce7; /* Verde claro */
  color: #16a34a;            /* Verde fuerte */
}

.icon-money {
  background-color: #f3e8ff; /* Morado claro */
  color: #9333ea;            /* Morado fuerte */
}

/* Texto de la tarjeta */
.dash-info {
  display: flex;
  flex-direction: column;
}

.dash-label {
  font-size: 0.85rem;
  color: var(--color-text-medium);
}

.dash-value {
  font-size: 1.4rem;
  color: var(--color-text-dark);
  font-weight: 700;
}

/* =================================
   ESTILOS COMPARTIR (ICONOS)
   ================================= */

.product-share {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border-light);
  display: flex;
  align-items: center;
  gap: 12px; /* Espacio entre el texto "Compartir:" y los iconos */
}

.product-share span {
  font-weight: 600;
  color: var(--color-text-dark);
  font-size: 0.9rem;
}

.share-buttons-row {
  display: flex;
  gap: 8px;
}

/* Estilo base del botón redondo */
.btn-share {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: #fff;
  transition: transform 0.2s ease, filter 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-share:hover {
  transform: translateY(-2px);
  filter: brightness(110%);
}

/* Colores de marca */
.btn-share-wa {
  background-color: #25D366; /* WhatsApp Green */
}

.btn-share-fb {
  background-color: #1877F2; /* Facebook Blue */
}

.btn-share-x {
  background-color: #000000; /* X Black */
}

/* =========================================
   ESTILOS CHECKOUT / PEDIDO PREVIO (NUEVO)
   ========================================= */

.checkout-page {
  padding: 20px;
  background-color: var(--color-background);
  min-height: 80vh;
}

.checkout-page h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: var(--color-text-dark);
}

/* Layout Flex: Izquierda (Resumen) | Derecha (Sidebar) */
.checkout-layout {
  display: flex;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start; /* Para que el sidebar no se estire */
}

/* === COLUMNA IZQUIERDA === */
.checkout-summary {
  flex: 1; /* Ocupa el espacio restante */
  min-width: 0; /* Evita desbordamientos en flex */
}

.section-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--color-text-dark);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 8px;
  display: inline-block;
}

.cart-summary-box {
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--color-shadow-base);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}

/* Resumen checkout — tarjetas solo móvil; tabla en escritorio */
.checkout-summary-cards {
  display: none;
}

.checkout-summary-table {
  display: block;
}

.cart-summary-box--checkout .cart-grupo-badge {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .checkout-summary-cards {
    display: block;
  }

  .checkout-summary-table {
    display: none;
  }

  .cart-summary-box--checkout {
    background: #fdfbf2;
    border: 1px solid #ebe6d8;
    padding: 0;
  }

  .cart-summary-box--checkout .cart-grupo-badge {
    margin: 0;
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid #ebe6d8;
    font-size: 0.85rem;
    color: #555;
  }
}

.checkout-summary-list {
  display: flex;
  flex-direction: column;
}

.checkout-summary-item {
  padding: 14px;
  border-bottom: 1px solid #e8e4d9;
  background: #fdfbf2;
}

.checkout-summary-item:last-child {
  border-bottom: none;
}

.checkout-summary-item__grid {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}

.checkout-summary-item__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.checkout-summary-item__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e0d4;
  background: #fff;
  display: block;
}

.checkout-summary-item__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 1.4rem;
}

.checkout-summary-item__qty {
  text-align: center;
  width: 100%;
}

.checkout-summary-item__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.checkout-summary-item__qty-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

.checkout-summary-item__right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-summary-item__name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.checkout-summary-item__opts {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.35;
}

.checkout-summary-item__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #e8e4d9;
}

.checkout-summary-item__col {
  padding: 0 10px;
}

.checkout-summary-item__col:first-child {
  padding-left: 0;
  border-right: 1px solid #e8e4d9;
}

.checkout-summary-item__col--sub {
  padding-right: 0;
}

.checkout-summary-item__price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.checkout-summary-item__subtotal {
  font-size: 1rem;
  font-weight: 800;
  color: #16a34a;
}

.checkout-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border-top: 2px solid #e8e4d9;
}

.checkout-summary-total__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.checkout-summary-total__value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #16a34a;
}

@media (max-width: 768px) {
  .checkout-page {
    padding: 12px;
  }

  .checkout-layout {
    flex-direction: column;
    gap: 16px;
  }

  .checkout-sidebar {
    width: 100%;
    position: static;
  }

  .checkout-summary h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }

  .cart-summary-box--checkout {
    border-radius: 10px;
  }

  .checkout-summary-item {
    padding: 12px;
  }

  .checkout-card .selection-grid--modo-cliente {
    margin-bottom: 12px;
  }

  .checkout-card .selection-grid--modo-cliente .selection-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .guest-data-panel {
    margin-top: 0;
    padding: 16px;
  }

  .registered-data-panel {
    margin-top: 0;
  }

  .auth-alert-card {
    padding: 14px;
    gap: 12px;
  }

  .auth-alert-card--benefits {
    padding: 18px 14px;
  }

  .auth-alert-card--benefits .auth-alert-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-alert-card--benefits .auth-alert-card__btn {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }
}

/* Ajustes para la tabla dentro del resumen (hereda de .cart-table) */
.cart-summary-box table {
  margin: 0;
  box-shadow: none;
  border-radius: 0;
}

.checkout-back-btn-container {
  margin-top: 20px;
}

/* === COLUMNA DERECHA (SIDEBAR) === */
.checkout-sidebar {
  width: 380px; /* Ancho fijo para el sidebar */
  flex-shrink: 0; /* No encogerse */
  position: sticky;
  top: 90px; /* Sticky al hacer scroll (ajustar según altura header) */
}

.checkout-card {
  background: var(--color-surface);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid var(--color-border-light);
}

.checkout-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--color-text-dark);
  font-weight: 700;
}

/* Filas de información clave:valor */
.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
  text-align: left;
}

.info-label {
  color: var(--color-text-medium);
  font-weight: 500;
  text-align: left;
}

.info-value {
  color: var(--color-text-dark);
  text-align: left;
}

/* Bloque de dirección */
.info-block {
  margin-top: 12px;
}

.address-text {
  background: var(--color-background);
  padding: 10px;
  border-radius: 6px;
  margin-top: 5px;
  font-size: 0.9rem;
  color: var(--color-text-dark);
  border: 1px dashed var(--color-input-border);
}

/* Badge de tipo de entrega */
.badge-delivery {
  background-color: var(--color-accent);
  color: var(--color-success); /* O un verde oscuro */
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.85rem;
}

/* Divisor */
.divider {
  border: 0;
  border-top: 1px solid var(--color-border-light);
  margin: 20px 0;
}

/* Info del establecimiento (inyectada por JS) */
.est-info-box {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--color-text-medium);
}

.est-info-box strong {
  color: var(--color-primary);
  font-size: 1rem;
  display: block;
  margin-bottom: 4px;
}

/* Botón confirmar grande (Estilo base para ambos estados) */
.btn-confirm {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  margin-top: 24px;
  box-shadow: 0 4px 12px rgba(100, 216, 32, 0.3);
}

.btn-confirm:hover {
  transform: translateY(-2px);
}

/* =================================
   SECCIÓN CATEGORÍAS (HOME)
   ================================= */

/* Contenedor principal */
.categorias-section {
  padding: 20px 15px;
  text-align: center;
  background-color: var(--color-surface); /* Fondo limpio */
  margin-bottom: 10px;
}

.categorias-header h2 {
  font-size: 1.5rem; /* Un poco más pequeño que Destacados */
  color: var(--color-text-dark);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

/* Línea decorativa debajo del título */
.categorias-header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* =========================================
   CARRUSEL DE CATEGORÍAS (Sobreescribe Grid)
   ========================================= */

#categorias-home-container {
  display: flex !important;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px 5px 25px 5px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: flex-start;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Tarjeta de Categoría */
.categoria-card {
  background: var(--color-background);
  border-radius: 50% 50% 12px 12px; /* Forma redondeada arriba, cuadrada abajo */
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Wrapper de imagen circular */
.cat-img-wrapper {
  width: 100px; /* Tamaño fijo pequeño (aprox mitad de un producto normal) */
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-surface);
  box-shadow: 0 4px 10px var(--color-shadow-base);
  transition: transform 0.4s ease;
  background-color: #fff;
}

.cat-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 0;
  transition: color 0.3s ease;
}

/* --- EFECTO HOVER (Diferente a productos) --- */
.categoria-card:hover {
  background-color: var(--color-surface);
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(100, 216, 32, 0.15); /* Sombra verdosa */
  transform: translateY(-5px);
}

.categoria-card:hover .cat-img-wrapper {
  transform: rotate(5deg) scale(1.1); /* Rota y agranda la imagen */
  border-color: var(--color-primary);
}

.categoria-card:hover .cat-name {
  color: var(--color-secondary);
}

/* Responsive: Móvil */
@media (max-width: 600px) {
  #categorias-home-container {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en celular */
    gap: 10px;
  }
  
  .cat-img-wrapper {
    width: 70px;
    height: 70px;
  }
  
  .cat-name {
    font-size: 0.75rem;
  }
  
  .categoria-card {
    padding: 10px 5px;
  }
}

/* =========================================
   CORRECCIÓN CENTRADO MENSAJES VACÍOS/ERROR
   ========================================= */
#lista-ofertas .empty,
#prod-cat-destacados .empty,
#destacados .empty,
#nuevos .empty,
#similares-container .empty {
  grid-column: 1 / -1; /* Obliga al elemento a ocupar desde la 1ª hasta la última columna */
  width: 100%;
  text-align: center;
  margin: 20px 0;
}

/* =========================================
   CORRECCIÓN CENTRADO MENSAJE CATEGORÍAS VACÍAS
   ========================================= */
#categorias-home-container .empty {
  grid-column: 1 / -1;  /* Ocupar todo el ancho del grid */
  width: 100%;
  text-align: center;
  padding: 20px 0;
  font-size: 0.95rem;   /* Opcional: unificar tamaño */
  color: var(--color-text-medium); /* Opcional: usar el color de tu tema */
}

/* ... (MANTÉN TODO TU CSS ANTERIOR ARRIBA DE ESTO) ... */

/* =========================================
   CARRUSEL DE CATEGORÍAS (Sobreescribe Grid)
   ========================================= */

/* Convertimos el contenedor en una fila con scroll */
#categorias-home-container {
  display: flex !important;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px 5px 25px 5px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: flex-start;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Ocultar barra de scroll en Chrome/Safari */
#categorias-home-container::-webkit-scrollbar {
  display: none;
}

/* Ajustar las tarjetas para que no se encojan */
.categoria-card {
  flex: 0 0 150px; /* Ancho fijo de 150px: no encoger, no crecer */
  min-width: 150px;
  /* Hereda estilos de borde y fondo del CSS anterior */
}

/* Ajustes Responsive */
@media (max-width: 600px) {
  .categoria-card {
    flex: 0 0 130px; /* Más pequeñas en móvil */
    min-width: 130px; 
  }
  
  .cat-img-wrapper {
    width: 80px;
    height: 80px;
  }
}
/* =========================================
   NUEVO ESTILO MODAL CHECKOUT
   ========================================= */

/* Ajuste del contenedor principal del modal */
.checkout-modal-content {
  max-width: 500px;
  width: 95%;
  padding: 0; /* Quitamos padding global para manejarlo por secciones */
  border-radius: 16px;
  overflow: hidden;
  border: none;
  background-color: #f9f9f9;
  font-family: 'DM Sans', sans-serif;
}

/* Header */
.checkout-header {
  background-color: var(--color-primary); /* Tu color oliva */
  color: #fff;
  padding: 20px;
  text-align: center;
}

.checkout-header h3 {
  margin: 0;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.checkout-header p {
  margin: 5px 0 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Secciones */
.checkout-section {
  padding: 15px 25px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.checkout-dynamic-area {
  padding: 15px 25px;
  background: #fcfcfc;
}

.section-label {
  display: block;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 12px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Animación simple */
.animate-fade {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Responsivo */
@media (max-width: 480px) {
  .selection-grid:not(.selection-grid--entrega) {
    grid-template-columns: 1fr;
  }
  .checkout-card .selection-grid--entrega {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 8px;
  }
  .checkout-card .selection-grid--entrega .card-content {
    padding: 10px 6px;
    min-height: auto;
  }
  .checkout-card .selection-grid--entrega .card-content i {
    font-size: 1.25rem;
    margin-bottom: 4px;
  }
  .checkout-card .selection-grid--entrega .card-content span {
    font-size: 0.78rem;
  }
  .checkout-card .selection-grid--entrega .card-content small {
    font-size: 0.65rem;
    line-height: 1.15;
    margin-top: 2px;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .checkout-footer {
    flex-direction: column-reverse;
  }
  .checkout-footer button {
    width: 100%;
  }
}

/* =========================================
   ESTILOS CORREGIDOS CHECKOUT (ESPACIADO)
   ========================================= */

/* Espaciado de la tarjeta principal */
.checkout-card {
  background: var(--color-surface);
  padding: 30px 25px; /* Un poco más de aire arriba/abajo */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--color-border-light);
}

/* Títulos */
.checkout-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ✅ AUMENTO DE ESPACIO ENTRE PASOS */
.checkout-step-block {
  margin-bottom: 30px; /* Antes era 10px, ahora da más aire */
}

/* Grid de tarjetas */
.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 40px; 
}

.selection-grid--entrega {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  align-items: stretch;
}

.selection-grid--entrega .selection-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}

.selection-grid--entrega .selection-card--hidden {
  display: none !important;
}

.selection-grid--entrega .selection-card:only-of-type,
.selection-grid--entrega .selection-card:only-child {
  grid-column: 1 / -1;
}

.selection-grid--entrega .card-content {
  flex: 1;
  min-height: 72px;
}

.checkout-card .selection-grid--modo-cliente {
  margin-bottom: 12px;
}

.guest-data-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.registered-data-panel {
  margin-top: 0;
}

.auth-alert-card {
  background-color: #fffaf0;
  border: 1px solid #feebc8;
  border-radius: 12px;
  padding: 18px;
  margin: 0;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.registered-data-panel .auth-alert-card + .user-info-box,
.registered-data-panel .auth-alert-card:not(:last-child) {
  margin-bottom: 12px;
}

.auth-alert-card__icon {
  background-color: #fbd38d;
  color: #7b341e;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-alert-card__title {
  margin: 0 0 5px 0;
  color: #7b341e;
  font-size: 0.95rem;
  font-weight: 700;
}

.auth-alert-card__text {
  margin: 0;
  color: #9c4221;
  font-size: 0.85rem;
  line-height: 1.5;
}

.auth-alert-card__link {
  color: #7b341e;
  text-decoration: underline;
  font-weight: 700;
}

.auth-alert-card--benefits {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #bbf7d0;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  gap: 0;
}

.auth-alert-card__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.auth-alert-card__icon--benefits {
  background-color: #86efac;
  color: #166534;
  width: 48px;
  height: 48px;
  font-size: 1.15rem;
}

.auth-alert-card__title--benefits {
  color: #166534;
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.auth-alert-card__text--benefits {
  color: #15803d;
  margin: 12px 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  max-width: 320px;
}

.auth-alert-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
  width: 100%;
}

.auth-alert-card--benefits .auth-alert-card__btn {
  flex: 1 1 calc(50% - 5px);
  min-width: 0;
  max-width: 180px;
  padding: 10px 12px;
}

.auth-alert-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  background: #16a34a;
  color: #fff;
  border: 1px solid #16a34a;
}

.auth-alert-card__btn:hover {
  filter: brightness(1.05);
  color: #fff;
}

.auth-alert-card__btn--outline {
  background: #fff;
  color: #166534;
  border-color: #86efac;
}

.btn-confirm:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  filter: none;
}

.provincia-selects-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 0;
}

.provincia-selects-grid .form-group {
  margin-bottom: 0;
}

.provincia-selects-grid select,
.provincia-selects-grid input {
  width: 100%;
}

/* Tarjeta individual */
.selection-card {
  position: relative;
  cursor: pointer;
}

.selection-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  transition: all 0.2s ease;
  height: 100%;
  text-align: center;
  color: #666;
}

/* Estilo Seleccionado */
.selection-card input[type="radio"]:checked + .card-content {
  border-color: var(--color-primary);
  background-color: rgba(192, 179, 2, 0.05);
  color: var(--color-text-dark);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.selection-card input[type="radio"]:checked + .card-content i {
  color: var(--color-primary);
}

.card-content i {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #ccc;
}

.card-content span {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.card-content small {
  font-size: 0.75rem;
  margin-top: 4px;
  color: #888;
}

.dynamic-data-container {
  background-color: #f9fafb;
  padding: 16px 14px;
  border-radius: 8px;
  border: 1px dashed var(--color-border-light);
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

#checkout-entrega-section .dynamic-data-container {
  margin-top: 14px;
}

#checkout-entrega-section.checkout-step-block {
  margin-bottom: 16px;
}

.checkout-card > .btn-confirm {
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

.guest-data-panel__title {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guest-data-panel__title i {
  font-size: 1rem;
}

.guest-data-panel__title span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Inputs layout */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-medium);
}

.full-width-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.full-width-input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(192, 179, 2, 0.2);
}

/* Input con Icono */
.input-icon-wrapper {
  position: relative;
}
.input-icon-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}
.input-icon-wrapper input {
  padding-left: 35px;
}

.divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 20px 0;
}

/* Info badge */
.info-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Botón Final */
.btn-full {
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Responsive */
@media (max-width: 500px) {
  .form-row-2 {
    grid-template-columns: 1fr; /* Una columna en móvil */
  }
}

/* Botón Final con más espacio */
.btn-primary-pulse {
  background: var(--color-primary); 
  color: #fff; 
  border: none; 
  font-weight: 600; 
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
  transition: transform 0.2s;
  margin-top: 50px; 
}

.btn-primary-pulse:hover { 
  transform: translateY(-2px); 
  filter: brightness(1.1); 
}

/* =========================================
   ESTILOS PERFIL EN DRAWER (MENÚ MÓVIL)
   ========================================= */

.drawer-profile {
  padding: 20px 15px;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 10px;
}

/* Estilo para usuario logueado */
.drawer-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.drawer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
  background-color: #fff;
}

.drawer-avatar.drawer-avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  background-color: var(--color-surface);
  box-sizing: border-box;
}

img.drawer-avatar.drawer-avatar--hidden {
  display: none !important;
}

.drawer-user-details {
  display: flex;
  flex-direction: column;
}

.drawer-username {
  font-weight: 700;
  color: var(--color-text-dark);
  font-size: 1rem;
}

.drawer-role {
  font-size: 0.8rem;
  color: var(--color-secondary);
  font-weight: 500;
  background-color: rgba(192, 179, 2, 0.1); /* Tinte del color primario */
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
  margin-top: 2px;
}

/* Estilo para invitado */
.drawer-profile-guest {
  text-align: center;
}

.drawer-profile-guest p {
  margin: 0 0 10px;
  color: var(--color-text-medium);
  font-size: 0.9rem;
}

/* Botón del drawer */
.drawer-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: filter 0.2s;
  box-sizing: border-box; /* Importante para que no se salga */
}

.drawer-btn.primary {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
}

.drawer-btn:hover {
  filter: brightness(1.1);
}

/* Ajustes a la lista del menú */
.drawer-menu i {
  width: 24px; /* Ancho fijo para iconos */
  text-align: center;
  margin-right: 10px;
  color: var(--color-text-light);
}

.drawer-menu li a:hover i {
  color: var(--color-primary);
}

.drawer-separator {
  height: 1px;
  background-color: var(--color-border-light);
  margin: 10px 16px;
}

/* Cerrar sesión en rojo suave */
#drawer-logout-btn {
  color: var(--color-danger);
}
#drawer-logout-btn i {
  color: var(--color-danger);
}
#drawer-logout-btn:hover {
  background-color: rgba(183, 28, 28, 0.05);
}

/* CONTACTO LAYOUT */
.contacto-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 15px;
}
.contacto-header {
  text-align: center;
  margin-bottom: 30px;
}
.contacto-header h2 {
  color: var(--color-text-dark);
  font-size: 2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

/* Formulario */
.col-form {
  background: var(--color-surface);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--color-border-light);
}
.contact-form-modern .form-group {
  margin-bottom: 15px;
  text-align: left;
}
.contact-form-modern label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-dark);
}
.contact-form-modern input,
.contact-form-modern textarea,
.contact-form-modern select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-input-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text-dark);
  background-color: #fff;
  box-sizing: border-box;
}
.contact-form-modern select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.contact-form-modern input:focus,
.contact-form-modern textarea:focus,
.contact-form-modern select:focus {
  border-color: var(--color-primary);
  outline: none;
}

.lr-doc-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lr-doc-wrap input {
  flex: 1;
  min-width: 0;
}
.lr-nombre-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lr-nombre-wrap input {
  flex: 1;
  min-width: 0;
}
.lr-btn-consultar-dni {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-input-border);
  border-radius: 6px;
  background: var(--color-primary, #003d1c);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lr-btn-consultar-dni:hover:not(:disabled) {
  filter: brightness(1.08);
}
.lr-btn-consultar-dni:disabled {
  opacity: 0.65;
  cursor: wait;
}
.lr-dni-ok {
  flex-shrink: 0;
  color: #16a34a;
  font-size: 1.6rem;
  line-height: 1;
  display: none;
  align-items: center;
}
.lr-dni-ok.is-visible {
  display: inline-flex;
}
.lr-dni-hint {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 0.82rem;
}
.contact-form-modern input.lr-nombre-validado[readonly] {
  background: #f3faf4;
  border-color: #86efac;
}

/* Captcha */
.captcha-group .captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.captcha-box img {
  border-radius: 4px;
  border: 1px solid var(--color-input-border);
}
.btn-refresh {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  width: 36px; 
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.captcha-box input {
  text-align: center;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  margin-top: 10px;
}

/* Mapa */
.col-map {
  display: flex;
  flex-direction: column;
}
.info-card h3 {
  margin: 0 0 5px;
  color: var(--color-text-dark);
}
#mapa-tiendas {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 2px solid #fff;
  z-index: 1;
}

/* Alertas */
.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* =========================================
   NUEVO DISEÑO GESTIÓN DE EVENTOS (MEJORADO)
   ========================================= */

/* 1. BARRA DE HERRAMIENTAS (GENERAL) */
.gestion-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-light);
}

.gestion-actions {
  display: flex;
  gap: 12px;
}

/* Botón Volver */
.btn-back {
  background-color: transparent;
  color: var(--color-text-medium);
  border: 1px solid var(--color-border-light);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background-color: #f3f4f6;
  color: var(--color-text-dark);
  border-color: #d1d5db;
}

/* Botones de Acción (Editar/Ver) */
.btn-action {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
}

.btn-edit {
  background-color: #f0fdf4; /* Verde muy claro */
  color: var(--color-primary);
  border: 1px solid rgba(20, 166, 202, 0.2);
}

.btn-edit:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-view {
  background-color: var(--color-secondary);
  color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-view:hover {
  background-color: var(--color-primary);
  transform: translateY(-1px);
}

/* 2. TARJETA PRINCIPAL DEL EVENTO */
.gestion-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  align-items: flex-start;
}

/* Imagen del evento */
.gestion-img-container {
  flex: 0 0 180px; /* Ancho fijo en escritorio */
  width: 180px;
  height: 210px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  background-color: var(--color-background);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.gestion-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Información del evento */
.gestion-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gestion-title {
  margin: 0;
  font-size: 1.6rem;
  color: var(--color-text-dark);
  font-weight: 800;
  line-height: 1.2;
}

/* Grid de Metadatos (Fechas, Sexo) */
.gestion-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas en escritorio */
  gap: 15px;
  padding: 15px 0;
  border-top: 1px dashed var(--color-border-light);
  border-bottom: 1px dashed var(--color-border-light);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #e0f2fe; /* Azul muy suave */
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.meta-content {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-medium);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 0.95rem;
  color: var(--color-text-dark);
  font-weight: 600;
}

/* Sección de Compartir */
.gestion-share-section label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-medium);
  margin-bottom: 8px;
}

.share-input-group {
  display: flex;
  background: var(--color-background);
  border: 1px solid var(--color-input-border);
  border-radius: 8px;
  padding: 4px;
  max-width: 500px;
}

.share-input-group input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--color-text-dark);
  outline: none;
  min-width: 0; /* Evita que el input crezca más de lo debido */
}

.btn-copy {
  background-color: var(--color-text-dark);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-copy:hover {
  background-color: #000;
}

/* 3. TABS (Ajuste de margen) */
.event-tabs {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-border-light);
  display: flex;
  gap: 20px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 5px;
  font-size: 1rem;
  color: var(--color-text-medium);
  cursor: pointer;
  position: relative;
  font-weight: 600;
}

.tab-btn.active {
  color: var(--color-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}
/* ===== Preguntas frecuentes (pblico) ===== */
.faq-intro {
  margin-bottom: 22px;
  color: #444;
  line-height: 1.55;
}
.faq-loading,
.faq-empty {
  color: #666;
  padding: 12px 0;
}
.faq-cat {
  margin-bottom: 22px;
}
.faq-cat-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--color-primary, #003d1c);
  border-bottom: 1px solid var(--color-border-light, #e5e7eb);
  padding-bottom: 6px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  border: 1px solid var(--color-border-light, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--color-text-dark, #111);
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-chevron {
  color: var(--color-primary, #003d1c);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 16px 16px;
  color: #444;
  line-height: 1.55;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}
