@charset "UTF-8";
*, *::before, *::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin: 0;
  -webkit-transition: 0.3s !important;
  transition: 0.3s !important;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  scroll-behavior: smooth;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
  all: unset;
  border: none;
}

/* Para Firefox */
input[type=number] {
  -moz-appearance: textfield;
  all: unset;
}

input[type=button] {
  all: unset;
}

html {
  font-size: 1rem;
}
@media (min-width: 768px) {
  html {
    font-size: 1rem;
  }
}
@media (min-width: 1200px) {
  html {
    font-size: 1.15rem;
  }
}

body {
  height: 100vh;
  overflow: hidden;
  line-height: 1.5;
  color: #343a40;
  background-color: #f8f9fa;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

ul, li, a {
  text-decoration: none;
  list-style: none;
  color: black;
}

.main-header {
  background-color: #0C0A4E;
  color: white;
  padding: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
@media screen and (max-width: 320px) {
  .main-header .logo {
    width: 40px;
  }
}
.main-header .header-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.main-header .logo a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 70px;
  padding: 0;
  position: relative;
}
@media screen and (max-width: 425px) {
  .main-header .logo a {
    height: 45px;
  }
}
.main-header .logo a img {
  max-height: 100%;
  width: auto;
  display: block;
  -webkit-filter: invert(0);
          filter: invert(0);
}
.main-header .logo a .season-img {
  position: absolute;
  aspect-ratio: 4/2;
  -o-object-fit: cover;
     object-fit: cover;
  width: 50%;
  right: -50%;
  display: none;
}
.main-header .logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-line-pack: center;
      align-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.main-header .search-bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 0.5;
      -ms-flex-positive: 0.5;
          flex-grow: 0.5;
  margin: auto;
  -webkit-box-shadow: 0 0 0.2rem white;
          box-shadow: 0 0 0.2rem white;
  border-radius: 0.2rem;
  overflow: hidden;
  background: white;
  margin: 0.5rem auto;
  font-size: 0.8rem;
}
.main-header input[type=text] {
  all: unset;
  width: 100%;
  border-radius: 1rem;
  border: none;
  padding: 0.2rem;
  color: black;
}
@media screen and (max-width: 480px) {
  .main-header input[type=text] {
    font-size: 0.3rem;
  }
}
.main-header button#search-button {
  all: unset;
  background: #0C0A4E;
  color: #D4A017;
  border: none;
  padding: 0.5rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.main-header button#search-button:hover {
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  background-color: #F0F2F5;
}
@media screen and (max-width: 480px) {
  .main-header button#search-button {
    display: none;
  }
}
.main-header .header-right-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-left: auto;
  font-weight: 600;
}
.main-header .main-nav ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-header .main-nav ul li a { /*Link a mi cuenta*/
  font-size: 0.8rem;
  color: #D4A017;
  text-decoration: none;
  padding: 0.5rem;
  display: block;
}
.main-header .main-nav ul li a:hover {
  text-decoration: underline;
}
@media screen and (max-width: 425px) and (min-width: 320px) {
  .main-header .main-nav ul li a {
    font-size: 0.7rem;
  }
}
.main-header .mobile-menu-toggle { /*Boton Menu*/
  display: none;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 1rem;
  color: #D4A017;
}
@media screen and (max-width: 425px) and (min-width: 320px) {
  .main-header .mobile-menu-toggle {
    font-size: 1rem;
  }
}
.main-header .cart-widget-container a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 5px;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}
.main-header .cart-widget-container a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.main-header .cart-icon {
  color: #D4A017;
}
@media screen and (max-width: 425px) and (min-width: 320px) {
  .main-header .cart-icon {
    font-size: 1.2rem;
  }
}
.main-header .cart-total-header { /*Total de  compra*/
  font-size: 1rem;
  font-weight: bold;
  color: #D4A017;
}
@media screen and (max-width: 425px) and (min-width: 320px) {
  .main-header .cart-total-header {
    font-size: 0.7rem;
  }
}

.header-content.simplified-header {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 1rem;
}
.header-content.simplified-header .search-bar {
  margin: 0;
}

.logo {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.promo-section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0.5rem;
}
.promo-section .promo-main-column {
  -webkit-box-flex: 2;
      -ms-flex: 2;
          flex: 2;
  min-width: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.promo-section .promo-sidebar-column {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.4rem;
}

.carousel-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}
.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

.carousel-control {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 1.5rem;
  z-index: 10;
}
.carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.7);
}
.carousel-control.prev {
  left: 15px;
}
.carousel-control.next {
  right: 15px;
}

.fixed-ad {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.fixed-ad img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}
.fixed-ad:hover {
  scale: 0.95;
}

@media (max-width: 1024px) {
  .promo-section {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}
.sidemenu {
  width: 20vw;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  background-color: #0C0A4E;
  position: fiex;
  top: 0px;
  height: 100%;
  overflow-y: auto;
  z-index: 100000;
}
.sidemenu::-webkit-scrollbar {
  width: 5px; /* Ancho para scrollbars verticales */
  height: 10px; /* Alto para scrollbars horizontales */
}
.sidemenu::-webkit-scrollbar-track {
  background: #0C0A4E;
}
.sidemenu::-webkit-scrollbar-thumb {
  background: #090737;
}
.sidemenu .sidemenu-header {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0.5rem;
  background: #0C0A4E;
}
.sidemenu .sidemenu-header h3 {
  width: 100%;
  margin: 0;
  font-size: 1rem;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  color: #D4A017;
}
.sidemenu .sidemenu-header .close-sidemenu {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.5rem;
}
.sidemenu ul {
  height: inherit;
}
.sidemenu ul li a {
  font-size: 0.8rem;
  display: block;
  padding: 0.2rem 0.5rem;
  color: #D4A017;
  font-weight: 600;
  width: 100%;
}
@media screen and (max-width: 425px) {
  .sidemenu ul li a {
    font-size: 0.7rem;
  }
}
.sidemenu ul li a:hover {
  color: #0C0A4E;
  text-decoration: none;
  background: white;
  color: #0C0A4E;
}

/* --- INICIO: Animaciones para el Carrito --- */
/* 1. Animación para desvanecer y eliminar un item */
.cart-item.is-removing {
  opacity: 0;
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  border: 0;
  /* La transición debe ser suave */
  -webkit-transition: all 0.4s ease-out !important;
  transition: all 0.4s ease-out !important; /* Usamos !important para asegurar que sobreescriba otras transiciones */
  overflow: hidden; /* Muy importante para que el contenido no se salga mientras colapsa */
}

/* 2. Animación de "destello" para confirmar una actualización */
@-webkit-keyframes flash-success {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: #e8f5e9;
  } /* Un verde muy claro */
  100% {
    background-color: transparent;
  }
}
@keyframes flash-success {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: #e8f5e9;
  } /* Un verde muy claro */
  100% {
    background-color: transparent;
  }
}
.cart-item.is-updated {
  /* Ejecuta la animación de destello */
  -webkit-animation: flash-success 0.7s ease-out;
          animation: flash-success 0.7s ease-out;
}

/* --- FIN: Animaciones para el Carrito --- */
/* DESPUÉS (Reemplaza el contenido de tu archivo con esto) */
/* 1. Define la animación (sin cambios) */
@-webkit-keyframes shake {
  10%, 90% {
    -webkit-transform: translateX(-1px);
            transform: translateX(-1px);
  }
  20%, 80% {
    -webkit-transform: translateX(2px);
            transform: translateX(2px);
  }
  30%, 50%, 70% {
    -webkit-transform: translateX(-4px);
            transform: translateX(-4px);
  }
  40%, 60% {
    -webkit-transform: translateX(4px);
            transform: translateX(4px);
  }
}
@keyframes shake {
  10%, 90% {
    -webkit-transform: translateX(-1px);
            transform: translateX(-1px);
  }
  20%, 80% {
    -webkit-transform: translateX(2px);
            transform: translateX(2px);
  }
  30%, 50%, 70% {
    -webkit-transform: translateX(-4px);
            transform: translateX(-4px);
  }
  40%, 60% {
    -webkit-transform: translateX(4px);
            transform: translateX(4px);
  }
}
.products-container {
  background: #F0F2F5;
}

/* Estilos solo para la cuadrícula principal */
.product-grid {
  display: -ms-grid;
  display: grid;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-height: 100vh;
  -ms-grid-columns: (0.7fr)[1];
  grid-template-columns: repeat(1, 0.7fr);
}
@media (min-width: 325px) {
  .product-grid {
    -ms-grid-columns: (0.7fr)[2];
    grid-template-columns: repeat(2, 0.7fr);
  }
}
@media (min-width: 768px) {
  .product-grid {
    -ms-grid-columns: (0.9fr)[4];
    grid-template-columns: repeat(4, 0.9fr);
  }
}
@media (min-width: 1440px) {
  .product-grid {
    -ms-grid-columns: (0.9fr)[5];
    grid-template-columns: repeat(5, 0.9fr);
  }
}

/* --- ¡LA CORRECCIÓN CLAVE! --- */
/* Ahora los estilos de la tarjeta son globales y se aplicarán en todas partes */
.product-card {
  padding: 1rem;
  position: relative;
  -webkit-box-shadow: 0px 5px 20px -10px rgba(0, 0, 0, 0.68);
          box-shadow: 0px 5px 20px -10px rgba(0, 0, 0, 0.68);
  background: #F8F8F8;
  border-radius: 0.5rem;
  margin: 0.3rem;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}
.product-card .share-btn {
  position: absolute;
  border: none;
  background: white;
  color: #D4A017;
  width: 40px;
  height: 40px;
  border: 1px solid #D4A017;
  border-radius: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 1rem;
  font-weight: 900;
  left: 5%;
  bottom: 78%;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
}
.product-card .product-image-container {
  width: 150px;
  height: 150px;
  padding: 0.2rem;
  margin: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-line-pack: center;
      align-content: center;
}
.product-card .product-image-container img {
  max-width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  aspect-ratio: 1/1;
}
.product-card .product-image-container .discount-badge {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 3rem;
  height: 3rem;
  font-variant: all-small-caps;
  padding: 0.2rem;
  background: #0C0A4E;
  color: yellow;
  font-size: 1rem;
  border-radius: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-weight: 600;
}
.product-card .product-image-container .discount-badge::before {
  content: "Ahorras:";
  font-variant: none;
  font-weight: 600;
  background: #D4A017;
  color: #0C0A4E;
  position: absolute;
  font-size: 0.7rem;
  top: -25%;
  padding: 0.1rem;
}
.product-card .favorite-btn {
  border: none;
  position: absolute;
  top: 5%;
  left: 5%;
  background: white;
  color: #D4A017;
  width: 40px;
  height: 40px;
  border: 1px solid #D4A017;
  border-radius: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 1rem;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.product-card .favorite-btn.is-favorite {
  -webkit-box-shadow: none;
          box-shadow: none;
  border: none;
  border-radius: 100%;
  background: red;
  color: white;
  border: 1px solid red;
  -webkit-animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
          animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.product-card .product-info {
  margin-top: 0.5rem;
}
.product-card .product-info h3 {
  color: black;
  font-size: 0.8rem;
  height: 150px;
  font-weight: 600;
}
.product-card .product-info .department {
  height: 50px;
  font-size: 0.8rem;
  color: #0C0A4E;
  font-weight: 600;
}
.product-card .product-info .price-container {
  height: 75px;
  font-size: 1rem;
}
.product-card .product-info .price-container .price {
  font-size: 1.1rem;
  font-weight: 600;
  color: red;
}
.product-card .product-info .price-container .price-offer {
  font-size: inherit;
  font-weight: 600;
  color: red;
  height: 1.5rem;
}
.product-card .product-info .price-container .price-older {
  color: #0C0A4E;
  font-weight: 900;
  text-decoration: line-through;
}
.product-card .product-info .price-container .code {
  font-weight: 600;
  font-size: 0.8rem;
}
.product-card .product-info .quantity-selector {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-line-pack: center;
      align-content: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 0.8rem 0;
  padding-bottom: 0.5rem;
}
.product-card .product-info .quantity-selector .quantity-input {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  all: unset;
  height: 100%;
  text-align: center;
  font-weight: 900;
  font-size: 1.2rem;
  -webkit-appearance: none;
  background: transparent;
}
.product-card .product-info .quantity-selector .quantity-btn {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  width: 100%;
}
.product-card .product-info .quantity-selector .quantity-btn.minus, .product-card .product-info .quantity-selector .quantity-btn.plus {
  all: unset;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: #0C0A4E;
  color: #D4A017;
  font-size: 1rem;
  -webkit-box-flex: 0.3;
      -ms-flex-positive: 0.3;
          flex-grow: 0.3;
  text-align: center;
  font-weight: 900;
}
@media screen and (min-width: 320px) and (max-width: 1024px) {
  .product-card .product-info .quantity-selector .quantity-btn.plus, .product-card .product-info .quantity-selector .quantity-btn.minus {
    -webkit-box-flex: 0.4;
        -ms-flex: 0.4;
            flex: 0.4;
  }
}

.product-carousel-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}
.product-carousel-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #0C0A4E;
  text-align: center;
}

.product-carousel-container {
  position: relative;
  overflow: hidden;
}
.product-carousel-container::before, .product-carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.product-carousel-container::before {
  left: 0;
  background: -webkit-gradient(linear, left top, right top, color-stop(1%, white), color-stop(60%, transparent));
  background: linear-gradient(to right, white 1%, transparent 60%);
}
.product-carousel-container::after {
  right: 0;
  background: -webkit-gradient(linear, right top, left top, color-stop(1%, white), color-stop(60%, transparent));
  background: linear-gradient(to left, white 1%, transparent 60%);
}

.product-carousel-slides {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
}

/* Estilos para los controles de la lista de productos */
.product-list-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0 1rem 1rem 1rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 1rem;
}

.results-summary-style {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.sort-control {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
}
.sort-control label {
  font-weight: 600;
  font-size: 0.9rem;
}
.sort-control select {
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: white;
  font-size: 0.9rem;
  cursor: pointer;
}

/* AÑADIR AL FINAL DE _product_card.scss */
.login-prompt-message {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0C0A4E; /* Color primario del tema */
  background-color: #f0f2f5; /* Un fondo sutil */
  padding: 0.5rem;
  border-radius: 4px;
  text-align: center;
  margin-top: 1rem;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #02010a;
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-overlay.visible {
  opacity: 0.5;
  visibility: visible;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  max-width: 500px;
  height: 100%;
  background-color: white;
  color: #333;
  -webkit-box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);
          box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-transform: translateX(100%);
          transform: translateX(100%);
  -webkit-transition: -webkit-transform 0.3s ease-in-out;
  transition: -webkit-transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}
.cart-panel.visible {
  -webkit-transform: translateX(0);
          transform: translateX(0);
}

.cart-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid #dee2e6;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.cart-header h2 {
  margin: 0;
  font-size: 1rem;
}
.cart-header .close-cart-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #888;
  padding: 0;
  line-height: 1;
}
.cart-header .close-cart-btn:hover {
  color: #000;
}

.cart-content {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.cart-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-line-pack: center;
      align-content: center;
  padding: 1.5rem;
  border-top: 1px solid #0C0A4E;
  background-color: #0C0A4E;
  -ms-flex-negative: 1;
      flex-shrink: 1;
}
.cart-footer .cart-total {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}
.cart-footer span {
  font-size: 1.8rem;
  color: #D4A017;
  margin: 0.55rem;
  text-align: center;
}
.cart-footer .checkout-btn {
  width: 100%;
  padding: 0.5rem;
  font-weight: bold;
  color: white;
  background-color: green;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
  text-align: center;
}
.cart-footer .checkout-btn:hover {
  background-color: #D4A017;
  color: #0C0A4E;
}

.cart-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.3rem;
  -webkit-box-shadow: 0 2px 0.2rem grey;
          box-shadow: 0 2px 0.2rem grey;
}
.cart-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.cart-item-image {
  width: 40px;
  height: 40px;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 5px;
  margin-right: 1rem;
}

.cart-item-details {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 900;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.7rem;
  width: 175px;
}

.cart-item-price {
  font-size: 0.9rem;
  color: #0C0A4E;
  font-weight: 900;
}

.quantity-selector.cart-quantity-selector {
  width: 90px;
  margin-left: 1rem;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
}
.quantity-selector.cart-quantity-selector .quantity-input {
  width: 30px;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}
.quantity-selector.cart-quantity-selector .quantity-btn {
  all: unset;
  background: #0C0A4E;
  color: white;
  width: 30px;
  border: none;
  height: 30px;
  font-size: 1rem;
}

.cart-footer .cart-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  width: 100%;
}
.cart-footer .checkout-btn, .cart-footer .clear-cart-btn {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 0.5rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  margin: 0.2rem;
}
.cart-footer .clear-cart-btn {
  background-color: #dc3545;
  color: white;
}
.cart-footer .clear-cart-btn:hover {
  background-color: #bd2130;
}

.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  gap: 10px;
}

.toast-notification {
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  -webkit-transform: translateX(120%);
          transform: translateX(120%);
  -webkit-transition: all 0.5s cubic-bezier(0.21, 1.02, 0.73, 1);
  transition: all 0.5s cubic-bezier(0.21, 1.02, 0.73, 1);
}
.toast-notification.show {
  opacity: 1;
  -webkit-transform: translateX(0);
          transform: translateX(0);
}
.toast-notification.success {
  background-color: green;
}
.toast-notification.error {
  background-color: #dc3545;
}
.toast-notification.info {
  background-color: red;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.hidden {
  display: none;
}
.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}
@media screen and (max-width: 425px) and (min-width: 320px) {
  .modal-overlay > * {
    font-size: 0.7rem;
    font-weight: bold;
  }
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  width: 90%;
  text-align: center;
  -webkit-transform: scale(0.9);
          transform: scale(0.9);
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}
.visible .modal-content {
  -webkit-transform: scale(1);
          transform: scale(1);
}
.modal-content h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
@media screen and (max-width: 425px) and (min-width: 320px) {
  .modal-content h3 {
    font-size: 0.9rem;
    font-weight: bold;
  }
}
.modal-content p {
  margin-bottom: 2rem;
  color: #6c757d;
  line-height: 1.6;
}

.modal-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.modal-actions .btn-secondary, .modal-actions .btn-primary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.modal-actions .btn-secondary {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
}
.modal-actions .btn-secondary:hover {
  background-color: #e0e0e0;
}
.modal-actions .btn-primary {
  background-color: #0C0A4E;
  color: white;
}
.modal-actions .btn-primary:hover {
  background-color: #050421;
}

/* --- ESTILOS PARA EL MODAL DE COMPARTIR --- */
.share-modal-content {
  max-width: 400px;
  padding: 1.5rem;
  position: relative;
}
.share-modal-content .modal-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.share-modal-content .modal-header button {
  all: unset;
  padding: 0.5rem;
  color: #0C0A4E;
  position: absolute;
  top: 0;
  right: 0;
  margin: 0.2rem;
  font-weight: 900;
  border-radius: 0.5rem;
}
.share-modal-content .share-options {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1rem 1fr;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.share-modal-content .share-option {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.share-modal-content .share-option img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 0.2rem;
}
.share-modal-content .share-option svg {
  width: 30px;
  height: 30px;
  margin-bottom: 0.2rem;
  fill: currentColor;
}
.share-modal-content .share-option:hover {
  -webkit-transform: translateY(-3px);
          transform: translateY(-3px);
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-color: #D4A017;
}
.share-modal-content .share-option.copy-link svg {
  fill: #D4A017;
}
.share-modal-content .share-option.whatsapp {
  color: #25D366;
}
.share-modal-content .share-option.whatsapp:hover {
  border-color: #25D366;
}
.share-modal-content .share-option.whatsapp img {
  background-color: #25D366;
  padding: 5px;
}
.share-modal-content .share-option.facebook {
  color: #1877F2;
}
.share-modal-content .share-option.facebook:hover {
  border-color: #1877F2;
}
.share-modal-content .share-option.facebook img {
  background-color: #1877F2;
  padding: 5px;
}
.share-modal-content .share-option.twitter {
  color: #1DA1F2;
}
.share-modal-content .share-option.twitter:hover {
  border-color: #1DA1F2;
}
.share-modal-content .share-option.twitter img {
  background-color: #1DA1F2;
  padding: 5px;
}

.pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 2rem;
}
.pagination button {
  background-color: #fff;
  border: 1px solid #dee2e6;
  color: #0C0A4E;
  padding: 0.75rem 1rem;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.pagination button:hover {
  background-color: #0C0A4E;
  color: white;
  border-color: #0C0A4E;
}
.pagination button.active {
  background-color: #0C0A4E;
  color: #D4A017;
  border-color: #0C0A4E;
  cursor: default;
  scale: 0.7;
}
.pagination button:disabled {
  color: #ccc;
  cursor: not-allowed;
  background-color: #f8f9fa;
}

body.page-checkout {
  overflow: hidden;
  background-color: #f4f7f9;
}

.summary-container {
  max-width: 1100px;
  margin: 0.7rem auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background: #fff;
  border-radius: 12px;
  -webkit-box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
          box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.summary-main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  overflow: hidden;
}

.summary-header {
  padding: 0.5rem;
  border-bottom: 1px solid #e9ecef;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.summary-header h1 {
  margin: 0;
  font-size: 1rem;
}

.summary-table-container {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
}
.summary-table th, .summary-table td {
  text-overflow: ellipsis;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f1f1;
  text-align: left;
  font-size: 1rem;
  font-weight: 400;
}
.summary-table .p_name {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.7rem;
  width: 175px;
}
.summary-table th {
  font-size: 0.5rem;
  text-transform: uppercase;
  color: #6c757d;
  font-weight: 600;
  padding-bottom: 1rem;
}
.summary-table .col-quantity {
  text-align: center;
}
.summary-table .col-subtotal {
  text-align: right;
}
.summary-table td:nth-child(2) {
  text-align: center;
}
.summary-table td:nth-child(3) {
  text-align: right;
  font-weight: 900;
}

.cart-empty-message {
  padding: 3rem 2rem;
  text-align: center;
}

.summary-sidebar {
  padding: 1rem;
  position: sticky;
  bottom: 0;
}
@media screen and (min-width: 480px) {
  .summary-sidebar .card-payment-option {
    text-align: center;
  }
}
.summary-sidebar .card-payment-option #pay-with-card-btn {
  all: unset;
  background: #0C0A4E;
  color: #D4A017;
  padding: 0.5rem;
  font-weight: 600;
}
.summary-sidebar .card-payment-option h4, .summary-sidebar .card-payment-option p {
  font-weight: 600;
}
.summary-sidebar .card-payment-option p {
  color: green;
}

.checkout-separator {
  padding: 0.5rem;
  font-weight: 900;
  text-align: left;
}
@media screen and (min-width: 480px) {
  .checkout-separator {
    text-align: center;
  }
}

.summary-total {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 1.5rem;
  font-weight: 900;
}
.summary-total span {
  font-size: 1.1rem;
}
.summary-total strong {
  font-size: 1.8rem;
  color: red;
}

.default-payment-option {
  text-align: center;
}

.whatsapp-button {
  display: block;
  width: 100%;
  background-color: green;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.8rem;
  text-align: center;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.whatsapp-button:hover {
  background-color: #1DA851;
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.cancel-button {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding: 0.5rem;
  color: red;
  text-decoration: none;
  font-weight: 500;
  border-radius: 5px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  background: white;
}
.cancel-button:hover {
  background-color: #e9ecef;
  color: #333;
}

@media (min-width: 992px) {
  .summary-container {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 380px;
    grid-template-columns: 1fr 380px;
  }
  .summary-sidebar {
    border-top: none;
    border-left: 1px solid #e9ecef;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
  }
}
@media (max-width: 991px) {
  body.page-checkout {
    overflow-y: auto;
  }
  .summary-container {
    margin: 0;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
    -webkit-box-shadow: none;
            box-shadow: none;
  }
  .summary-header, .summary-sidebar, .summary-table-container {
    padding: 0.55rem;
  }
  .summary-sidebar {
    position: sticky;
    bottom: 0;
  }
}
.page-login, .page-register {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
}
.page-login .link-back, .page-register .link-back {
  font-size: 1.1rem;
  color: white;
  background: #0C0A4E;
  width: 250px;
  margin: 0 auto;
  padding: 0.5rem;
}

.form-container {
  min-width: 325px;
  margin: 50px auto;
  padding: 48px 40px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  -webkit-box-shadow: 0 1px 3px #A9A9A9;
          box-shadow: 0 1px 3px #A9A9A9;
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}
.form-header h1 {
  font-size: 24px;
  color: #202124;
  font-weight: 600;
}
.form-header p {
  color: #5f6368;
  margin-top: 8px;
}

#register-form, #login-form {
  position: relative;
  overflow: hidden;
}

#register-form {
  min-height: 320px;
}

.form-step {
  position: absolute;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}
.form-step.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  -webkit-transform: translateX(0);
          transform: translateX(0);
}
.form-step.leaving {
  -webkit-transform: translateX(-30px);
          transform: translateX(-30px);
}

/* --- Efecto de Etiqueta Flotante (Floating Label) CORREGIDO --- */
.form-group.floating-label {
  position: relative;
  margin-bottom: 25px;
}
.form-group.floating-label input {
  width: 100%;
  padding: 24px 12px 8px 12px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 16px;
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
  background-color: #fff;
  position: relative;
  z-index: 1;
  min-height: 56px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.form-group.floating-label input:focus {
  outline: none;
  border: 2px solid #1a73e8;
}
.form-group.floating-label input:focus + label {
  -webkit-transform: translateY(-120%) scale(0.75);
          transform: translateY(-120%) scale(0.75);
  color: #1a73e8;
  background-color: #fff;
  padding: 0 6px;
}
.form-group.floating-label input:not(:-moz-placeholder-shown) + label {
  transform: translateY(-120%) scale(0.75);
  color: #1a73e8;
  background-color: #fff;
  padding: 0 6px;
}
.form-group.floating-label input:not(:-ms-input-placeholder) + label {
  transform: translateY(-120%) scale(0.75);
  color: #1a73e8;
  background-color: #fff;
  padding: 0 6px;
}
.form-group.floating-label input:not(:placeholder-shown) + label {
  -webkit-transform: translateY(-120%) scale(0.75);
          transform: translateY(-120%) scale(0.75);
  color: #1a73e8;
  background-color: #fff;
  padding: 0 6px;
}
.form-group.floating-label input[value]:not([value=""]) + label {
  -webkit-transform: translateY(-120%) scale(0.75);
          transform: translateY(-120%) scale(0.75);
  color: #1a73e8;
  background-color: #fff;
  padding: 0 6px;
}
.form-group.floating-label label {
  position: absolute;
  top: 28px;
  left: 12px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  color: #5f6368;
  pointer-events: none;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  -webkit-transform-origin: left top;
          transform-origin: left top;
  z-index: 2;
  font-size: 16px;
  font-weight: 400;
}

/* --- Estilos Unificados para Alertas y Mensajes --- */
.form-message {
  padding: 0.5rem;
  margin-bottom: 20px;
  border-radius: 4px;
  font-weight: 500;
  position: relative;
  z-index: 5;
}
.form-message:not(:empty) {
  display: block;
}
.form-message:empty {
  display: none;
}
.form-message.error {
  font-size: 0.9rem;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.form-message.success {
  font-size: 0.9rem;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.availability-message {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}
.availability-message.error {
  color: #721c24;
}
.availability-message.success {
  color: #155724;
}

/* --- Estilos Específicos del Asistente de Registro --- */
.choice-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.choice-buttons .btn-choice {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #dadce0;
  background-color: #fff;
  cursor: pointer;
  font-weight: 500;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.choice-buttons .btn-choice:hover {
  border-color: #1a73e8;
}
.choice-buttons .btn-choice.selected {
  background-color: #f2f6fe;
  border-color: #1a73e8;
  color: #1a73e8;
}

.student-fields.hidden {
  display: none;
}

.checkbox-group {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #dadce0;
  border-radius: 5px;
  padding: 15px;
}

.form-navigation {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-top: 20px;
}
.form-navigation button {
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
}
.form-navigation #btn-prev {
  color: #1a73e8;
  background-color: transparent;
}
.form-navigation #btn-prev:hover {
  background-color: #f2f6fe;
}
.form-navigation #btn-next {
  color: #fff;
  background-color: #2d27e3;
}
.form-navigation #btn-next:hover {
  background-color: #0b0949;
}

.form-footer-link {
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
  font-size: 1rem;
}
.form-footer-link a {
  font-size: 1rem;
  font-weight: bold;
  color: #0C0A4E;
}
.form-footer-link a:hover {
  color: #0C0A4E;
}

/* --- Estilos específicos para la página de Login --- */
.page-login .form-navigation {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.page-login .form-navigation .submit-btn.full-width {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
  color: #fff;
  background-color: #0C0A4E;
}
.page-login .form-navigation .submit-btn.full-width:hover {
  background-color: #2d27e3;
}

.form-group {
  text-align: left;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.form-group input {
  width: 40px;
}

/* ==========================================================================
   1. ESTRUCTURA Y LAYOUT GENERAL DEL DASHBOARD
   ========================================================================== */
/*Estilos para estos forms*/
.dashboard-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100vh;
  background-color: #F0F2F5;
}

.dashboard-main {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  overflow: hidden;
}

.dashboard-content {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  padding: 0.5rem;
  overflow-y: auto;
}
.dashboard-content::-webkit-scrollbar {
  width: 5px; /* Ancho para scrollbars verticales */
}
.dashboard-content::-webkit-scrollbar-track {
  background: white;
}
.dashboard-content::-webkit-scrollbar-thumb {
  background: #090737;
}

/* ==========================================================================
   2. ESTILOS COMPLETOS DE COMPONENTES DEL DASHBOARD
   ========================================================================== */
.dashboard-sidemenu {
  width: 260px;
  background-color: #0C0A4E;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-transition: margin-left 0.3s ease;
  transition: margin-left 0.3s ease;
  z-index: 1001;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.dashboard-sidemenu .dashboard-sidemenu-header {
  padding: 0.5rem;
}
.dashboard-sidemenu .dashboard-sidemenu-header h3 {
  text-align: center;
  margin: 0;
  font-size: 1.2rem;
  color: #D4A017;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-sidemenu nav ul {
  list-style: none;
  margin: 0;
}
.dashboard-sidemenu nav ul li a {
  display: block;
  padding: 1rem;
  color: #D4A017;
  text-decoration: none;
  font-weight: 900;
  border-left: 3px solid transparent;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  font-size: 0.8rem;
}
.dashboard-sidemenu nav ul li a:hover, .dashboard-sidemenu nav ul li a.active {
  background-color: #f8f9fa;
  border-left-color: #D4A017;
  color: #0C0A4E;
}
.dashboard-sidemenu nav ul li.separator {
  height: 1px;
  background-color: #e9ecef;
}

.dashboard-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-line-pack: center;
      align-content: center;
  padding: 0.3rem;
  background-color: #0C0A4E;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  z-index: 900;
}
.dashboard-header .dashboard-header-left {
  display: block;
}
.dashboard-header .dashboard-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #D4A017;
  padding: 0.5rem;
  font-weight: 900;
}
.dashboard-header .logo a img {
  max-height: 70px;
  width: auto;
  -webkit-filter: invert(0);
          filter: invert(0);
  display: block;
}
@media screen and (max-width: 480px) {
  .dashboard-header .logo a img {
    width: 70px;
  }
}
.dashboard-header .header-right-controls {
  padding: 0.5rem;
  width: 100%;
  text-align: right;
}
.dashboard-header .header-right-controls .cart-widget-container {
  font-weight: 900;
}
.dashboard-header .header-right-controls .cart-widget-container a .cart-icon {
  font-size: 1rem;
}
@media (max-width: 425px) {
  .dashboard-header .header-right-controls .cart-widget-container a .cart-icon {
    font-size: 1rem;
  }
}
.dashboard-header .header-right-controls .cart-widget-container a .cart-total-header {
  color: #D4A017;
}
@media (max-width: 425px) {
  .dashboard-header .header-right-controls .cart-widget-container a .cart-total-header {
    font-size: 1rem;
  }
}

/* ==========================================================================
   3. ESTILOS AISLADOS Y COMPACTOS PARA EL PERFIL (NO AFECTAN NADA MÁS)
   ========================================================================== */
.dashboard-content {
  margin-bottom: 4em;
}
.dashboard-content h1 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #2c3e50;
}
.dashboard-content p {
  margin-bottom: 1rem;
  color: #6c757d;
  font-size: 0.95rem;
}
.dashboard-content .profile-forms-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  min-height: 100vh;
}
.dashboard-content .form-container-profile {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}
.dashboard-content .form-container-profile h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 1rem;
  text-align: left;
  font-size: 1.3rem;
}
.dashboard-content .form-container-profile .form-group {
  margin-bottom: 0.85rem;
}
.dashboard-content .form-container-profile .form-group label {
  font-size: 1rem;
}
.dashboard-content .form-container-profile label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
  font-weight: 900;
}
.dashboard-content .form-container-profile input[type=text],
.dashboard-content .form-container-profile input[type=email],
.dashboard-content .form-container-profile input[type=password],
.dashboard-content .form-container-profile input[type=tel] {
  width: 100%;
  font-size: inherit;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fdfdfd;
  font-size: 0.8rem;
}
.dashboard-content .form-container-profile input[type=text]:focus,
.dashboard-content .form-container-profile input[type=email]:focus,
.dashboard-content .form-container-profile input[type=password]:focus,
.dashboard-content .form-container-profile input[type=tel]:focus {
  outline: none;
  border-color: #333;
  background-color: #fff;
  -webkit-box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
          box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}
.dashboard-content .form-container-profile input[type=text]:disabled,
.dashboard-content .form-container-profile input[type=email]:disabled,
.dashboard-content .form-container-profile input[type=password]:disabled,
.dashboard-content .form-container-profile input[type=tel]:disabled {
  opacity: 0.8;
  background-color: #0C0A4E;
  color: #D4A017;
  cursor: not-allowed;
}
.dashboard-content .form-container-profile small {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
}
.dashboard-content .form-container-profile .submit-btn {
  background-color: #0C0A4E;
  color: #D4A017;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  cursor: pointer;
}
.dashboard-content .form-container-pass {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}
.dashboard-content .form-container-pass h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 1rem;
  text-align: left;
  font-size: 1.3rem;
}
.dashboard-content .form-container-pass .form-group {
  margin-bottom: 0.85rem;
}
.dashboard-content .form-container-pass .form-group label {
  font-size: 1rem;
}
.dashboard-content .form-container-pass label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
  font-weight: 900;
}
.dashboard-content .form-container-pass input[type=text],
.dashboard-content .form-container-pass input[type=email],
.dashboard-content .form-container-pass input[type=password],
.dashboard-content .form-container-pass input[type=tel] {
  width: 100%;
  font-size: inherit;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fdfdfd;
  font-size: 0.8rem;
}
.dashboard-content .form-container-pass input[type=text]:focus,
.dashboard-content .form-container-pass input[type=email]:focus,
.dashboard-content .form-container-pass input[type=password]:focus,
.dashboard-content .form-container-pass input[type=tel]:focus {
  outline: none;
  border-color: #333;
  background-color: #fff;
  -webkit-box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
          box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}
.dashboard-content .form-container-pass input[type=text]:disabled,
.dashboard-content .form-container-pass input[type=email]:disabled,
.dashboard-content .form-container-pass input[type=password]:disabled,
.dashboard-content .form-container-pass input[type=tel]:disabled {
  opacity: 0.8;
  background-color: #0C0A4E;
  color: #D4A017;
  cursor: not-allowed;
}
.dashboard-content .form-container-pass small {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
}
.dashboard-content .form-container-pass .submit-btn {
  background-color: #0C0A4E;
  color: #D4A017;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  cursor: pointer;
}

/* ==========================================================================
   4. REGLAS RESPONSIVAS
   ========================================================================== */
@media (max-width: 991px) {
  .dashboard-sidemenu {
    position: fixed;
    left: -100%;
    height: 100%;
  }
  .dashboard-sidemenu.active {
    left: 0;
  }
  .dashboard-header .dashboard-menu-toggle {
    display: block;
  }
  .dashboard-content {
    padding: 1rem;
  }
}
@media (min-width: 992px) {
  .dashboard-content .profile-forms-grid {
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
  }
}
/* ==========================================================================
   ESTILOS PARA LA LISTA DE FAVORITOS
   ========================================================================== */
.favorites-list-container {
  background-color: white;
  border-radius: 8px;
  position: relative;
  min-height: 100%;
  text-align: left;
}
.favorites-list-container .submit-btn {
  background: #0C0A4E;
}

.favorites-header, .favorites-footer {
  padding: 0.75rem 1.5rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.favorites-footer {
  border-top: 1px solid #e0e0e0;
  border-bottom: none;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.select-all-container {
  margin: 0;
}

.favorites-list {
  overflow-y: auto;
}

.favorite-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0.5rem;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
  margin: 0.1rem;
}
.favorite-item:last-child {
  border-bottom: none;
}
.favorite-item:hover {
  background-color: #f8f9fa;
}

.favorite-item .form-group-checkbox {
  -ms-flex-preferred-size: 40px;
      flex-basis: 40px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.favorite-item-image {
  width: 40px;
  height: 40px;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 4px;
  margin-right: 1rem;
  -ms-flex-negative: 1;
      flex-shrink: 1;
}

.favorite-item-details {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  min-width: 0;
}

.favorite-item-name {
  -ms-flex-preferred-size: 150px;
      flex-basis: 150px;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  font-weight: 500;
  color: #333;
  font-size: 0.7rem;
  margin-right: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0C0A4E;
}

.favorite-item-price {
  -ms-flex-preferred-size: 70px;
      flex-basis: 70px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  color: #0C0A4E;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  margin-right: 1rem;
}

.favorite-item-remove-btn {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  background: none;
  border: none;
  color: #dc3545;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
}
.favorite-item-remove-btn:hover {
  background-color: red;
  color: white;
  border-radius: 50%;
}

#add-favorites-to-cart-btn {
  width: 50%;
  background: #0C0A4E;
  color: #D4A017;
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  border: none;
}
@media screen and (max-width: 480px) {
  #add-favorites-to-cart-btn {
    width: 100%;
  }
}
#add-favorites-to-cart-btn:disabled {
  opacity: 0.7;
  color: white;
  background-color: #0C0A4E;
  cursor: not-allowed;
  border: none;
}

@media (max-width: 768px) {
  .favorite-item-details {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  .favorite-item-price {
    -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
    text-align: left;
    margin-top: -0.25rem;
    margin-left: 0;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   ESTILOS PARA EL HISTORIAL DE PEDIDOS (CON MEJORAS RESPONSIVAS)
   ========================================================================== */
.order-history-container {
  display: -ms-grid;
  display: grid;
  gap: 1rem;
}

.order-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
          box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.order-card-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: space-evenly;
      -ms-flex-pack: space-evenly;
          justify-content: space-evenly;
  -ms-flex-line-pack: start;
      align-content: flex-start;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 1rem;
  overflow-y: auto;
}
.order-card-header .order-summary {
  margin-right: auto;
}
.order-card-header .order-summary strong {
  font-size: 0.8rem;
  font-weight: 900;
}
.order-card-header .order-summary small {
  color: #6c757d;
  display: block;
  margin-top: 2px;
  font-size: 0.8REM;
}
.order-card-header .order-card-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.order-card-header .order-card-actions > * {
  font-size: 0.8rem;
}
.order-card-header .order-card-total {
  color: #333;
  white-space: nowrap;
}
.order-card-header .order-card-total strong {
  color: red;
}
.order-card-header .details-btn {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  color: #333;
  padding: 0.5rem;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.order-card-body {
  height: 0px;
  overflow: hidden;
  padding: 0.5rem;
  -webkit-transition: max-height 1s ease-out, padding 0.4s ease-out, border-color 0.1s;
  transition: max-height 1s ease-out, padding 0.4s ease-out, border-color 0.1s;
}

.order-card.is-open .order-card-body {
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  padding: 1.5rem;
  border-color: #e0e0e0;
  -webkit-transition: max-height 0.5s ease-in, padding 0.4s ease-in;
  transition: max-height 0.5s ease-in, padding 0.4s ease-in;
}

.order-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.order-items-list .order-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f2f2f2;
}
.order-items-list .order-item:last-child {
  border-bottom: none;
}
.order-items-list .order-item > * {
  font-size: 0.7rem;
  font-weight: 900;
}
.order-items-list .order-item .order-item-qty {
  font-weight: bold;
}
.order-items-list .order-item .order-item-name {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}
.order-items-list .order-item .order-item-price {
  color: #6c757d;
}

.order-card-footer {
  padding-top: 1.5rem;
  text-align: right;
}
.order-card-footer .reorder-btn {
  background-color: #28a745;
  border: none;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  -webkit-box-shadow: 0 0 0.1rem black;
          box-shadow: 0 0 0.1rem black;
}

.order-status-badge {
  background-color: #0C0A4E;
  color: #D4A017;
  padding: 0.5rem;
  font-size: 0.8em;
  font-weight: 700;
  border-radius: 0.375rem;
  white-space: nowrap;
}

/* ==========================================================================
   ESTILOS PARA EL MÓDULO "MI TARJETA"
   ========================================================================== */
.card-summary-container {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-info-widget, .card-balance-widget {
  background: #0b0949;
  width: 300px;
  margin: auto;
  padding: 1rem;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.card-info-widget h4, .card-balance-widget h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.8rem;
  color: #D4A017;
  font-weight: 500;
}
.card-info-widget p, .card-balance-widget p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #D4A017;
}

.card-balance-widget p {
  color: #2DE22D;
}

.transaction-history-container {
  height: 50vh;
  overflow-y: auto;
}
.transaction-history-container h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.transaction-history-container .table-responsive-wrapper {
  overflow-x: auto;
}

.transaction-history-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.transaction-history-table th, .transaction-history-table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.transaction-history-table thead th {
  background-color: #f8f9fa;
  font-size: 0.85rem;
  font-weight: 600;
}
.transaction-history-table .transaction-amount {
  font-weight: bold;
}
.transaction-history-table .transaction-amount.credit {
  color: #28a745;
}
.transaction-history-table .transaction-amount.debit {
  color: #dc3545;
}
.transaction-history-table td {
  font-size: 0.7rem;
  font-weight: 600;
}
.transaction-history-table tr {
  padding: 0.5rem;
}
.transaction-history-table tr:hover {
  background: #0C0A4E;
  color: white;
}

/* --- MEJORA CLAVE PARA MÓVILES --- */
@media (max-width: 425px) {
  .order-card-header {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    padding: 1rem;
  }
  .order-card-actions {
    width: 100%;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
}
.site-footer {
  background-color: #0C0A4E;
  color: white;
  padding: 45px 0 20px;
  font-size: 15px;
  line-height: 24px;
  margin-top: 3rem;
}

.footer-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-column {
  width: 100%;
}

@media (min-width: 768px) {
  .footer-column {
    width: 48%;
  }
}
@media (min-width: 992px) {
  .footer-column {
    width: 31%;
  }
}
.site-footer h4 {
  color: white;
  font-size: 16px;
  text-transform: uppercase;
  margin-top: 5px;
  letter-spacing: 1px;
  border-bottom: 2px solid #13107b;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a,
.contact-info a {
  color: #D4A017;
  text-decoration: none;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.contact-info a:hover {
  color: white;
  text-decoration: none;
}

.contact-info p {
  margin-bottom: 15px;
  color: white;
}

.contact-info i {
  color: white;
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.map-container {
  height: auto;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #161392;
}

.map-container iframe {
  width: inherit;
  height: inherit;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #0f0d65;
  margin: 25px 20px 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.7rem;
}

.contact-info a {
  font-weight: 900;
  font-size: 1.2rem;
  color: #37EA37;
}

@media (max-width: 768px) {
  .sidemenu-user-section {
    display: block;
  }
  .main-header .main-nav .hide-on-mobile {
    display: none;
  }
  .main-header .header-content {
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
  .main-header .search-bar {
    -webkit-box-ordinal-group: 4;
        -ms-flex-order: 3;
            order: 3;
    width: 100%;
    margin: 1rem 0 0 0;
    max-width: 100%;
  }
  .main-header .search-bar button {
    display: none;
  }
  .main-header .main-nav .welcome-message {
    display: none;
  }
  .main-header .mobile-menu-toggle {
    display: block;
  }
  .sidemenu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    -webkit-transition: left 0.3s ease-in-out;
    transition: left 0.3s ease-in-out;
    -webkit-box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
            box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  }
  .sidemenu ul {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (1fr)[2];
    grid-template-columns: repeat(2, 1fr);
  }
  .sidemenu.active {
    left: 0;
  }
  .sidemenu .sidemenu-header .close-sidemenu {
    display: block;
  }
}
.main-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.main-container .grid-inner {
  overflow-y: auto;
}
.main-container .grid-inner::-webkit-scrollbar {
  width: 5px; /* Ancho para scrollbars verticales */
  height: 10px; /* Alto para scrollbars horizontales */
}
.main-container .grid-inner::-webkit-scrollbar-track {
  background: #0C0A4E;
}
.main-container .grid-inner::-webkit-scrollbar-thumb {
  background: #090737;
}
@media (max-width: 768px) {
  .sidemenu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    -webkit-transition: left 0.3s ease-in-out;
    transition: left 0.3s ease-in-out;
    -webkit-box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
            box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  }
  .sidemenu.active {
    left: 0;
  }
  .sidemenu .sidemenu-header .close-sidemenu {
    display: block;
  }
}
.product-carousel-section {
  max-width: 1200px;
  margin: 0;
  padding: 0.5rem;
}
.product-carousel-section h2 {
  font-size: 1.5rem;
  color: #0C0A4E;
  text-align: center;
  padding: 0.2rem;
  font-weight: 900;
  font-variant: all-small-caps;
}

.product-carousel-container {
  position: relative;
  overflow: hidden;
}

.product-carousel-slides {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.product-carousel-container .product-card {
  width: calc(25% - 0.75rem);
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin: 0;
  -webkit-box-shadow: 0.1rem 1px 0.3rem grey;
          box-shadow: 0.1rem 1px 0.3rem grey;
}
@media (max-width: 992px) {
  .product-carousel-container .product-card {
    width: calc(33.333% - 0.67rem);
  }
}
@media (max-width: 768px) {
  .product-carousel-container .product-card {
    width: calc(50% - 0.5rem);
  }
}
@media (max-width: 480px) {
  .product-carousel-container .product-card {
    width: 50%;
  }
}
.product-carousel-container .product-card h3 {
  height: 70px;
  font-size: 0.7rem;
}
.product-carousel-container .product-card .price-container {
  height: 70px;
  min-height: 50px;
}

.product-carousel-container .carousel-control {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 1rem;
  z-index: 10;
}
.product-carousel-container .carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.7);
}
.product-carousel-container .carousel-control.prev {
  left: 10px;
}
.product-carousel-container .carousel-control.next {
  right: 10px;
}

.main-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  overflow: hidden;
}
.main-container .grid-inner {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  min-width: 0;
}

.products-container {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  padding: 0.5rem;
  overflow-y: auto;
}

.results-summary-style {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #555;
  padding-left: 0.5rem;
}

/* 2. Header más responsivo */
@media (max-width: 768px) {
  .main-header .header-content {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 0.5rem;
  }
  .main-header .search-bar {
    -webkit-box-ordinal-group: 4;
        -ms-flex-order: 3;
            order: 3;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.5rem 0 0 0 !important;
  }
  .main-header input[type=text] {
    font-size: 16px; /* Evita zoom en iOS */
  }
}
/* 6. Modal responsive */
@media (max-width: 480px) {
  .modal-content {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 1rem;
  }
}
/* 7. Formularios móviles */
@media (max-width: 480px) {
  .form-container {
    margin: 0.5rem !important;
    padding: 1rem !important;
  }
  .form-group input[type=text],
  .form-group input[type=email],
  .form-group input[type=password],
  .form-group input[type=tel] {
    font-size: 16px !important; /* Evita zoom */
    padding: 0.2rem;
    font-size: 0.8rem;
  }
}
/* 9. Cart panel responsive */
@media (max-width: 480px) {
  .cart-panel {
    width: 100vw !important;
    max-width: 100vw !important;
  }
}
/* 10. Texto más legible en móvil */
@media (max-width: 480px) {
  .main-nav ul li a {
    font-size: 0.9rem !important; /* Más legible que 0.7rem */
  }
  .cart-total-header {
    font-size: 0.9rem !important;
  }
}
/* 11. Fix para elementos que se salen */
* {
  -webkit-box-sizing: border-box !important;
          box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .main-container,
  .summary-container {
    overflow-x: hidden;
  }
}
/* 12. Mejora de z-index */
.sidemenu {
  z-index: 1500 !important;
}

.cart-overlay {
  z-index: 1800 !important;
}

.cart-panel {
  z-index: 1900 !important;
}

.modal-overlay {
  z-index: 2500 !important;
}

/* 13. Fix específico para Chrome móvil - viewport units */
@supports (-webkit-touch-callout: none) {
  .summary-container {
    height: calc(100vh - 4rem) !important;
    min-height: calc(100vh - 4rem) !important;
  }
  @media (max-width: 991px) {
    .summary-container {
      height: auto !important;
      min-height: 100vh !important;
    }
  }
}
.form-group > * {
  font-size: 0.8rem !important;
}

.login-prompt-message {
  font-size: 0.7rem;
  font-weight: 600;
  color: #0C0A4E; /* Color primario del tema */
  background-color: #f0f2f5; /* Un fondo sutil */
  padding: 0.5rem;
  border-radius: 4px;
  text-align: center;
  margin-top: 1rem;
}

/* Estilos para el Skeleton Loader */
@-webkit-keyframes pulse {
  0% {
    background-color: #f0f0f0;
  }
  50% {
    background-color: #e0e0e0;
  }
  100% {
    background-color: #f0f0f0;
  }
}
@keyframes pulse {
  0% {
    background-color: #f0f0f0;
  }
  50% {
    background-color: #e0e0e0;
  }
  100% {
    background-color: #f0f0f0;
  }
}
.skeleton-pulse {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  -webkit-animation: pulse 1.5s infinite ease-in-out;
          animation: pulse 1.5s infinite ease-in-out;
}