@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Playfair+Display:wght@600&display=swap');

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

:root {
  --color-fondo: #fef9f4;
  --color-oro: #cea617;
  --color-oro-oscuro: #ac820f;
  --color-texto: #111;
  --color-negro: #000;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

header {
  background-color: var(--color-negro);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 80px;
}

.logo {
  height: 30px;
  background-color: transparent;
  display: block;
  transition: all 0.3s ease;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  transform: translateY(0);
  opacity: 1;
}

nav ul.oculto {
  transform: translateY(-30px);
  opacity: 0;
  pointer-events: none;
}

nav ul li a {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;
  color: var(--color-oro);
  text-decoration: none;
  font-weight: bold;
  border: 2px solid var(--color-oro);
  border-radius: 50px;
  transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: var(--color-oro);
  color: var(--color-negro);
}

.menu-toggle {
  background-color: transparent;
  border: 2px solid var(--color-oro);
  color: var(--color-oro);
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.menu-toggle:hover {
  background-color: var(--color-oro);
  color: var(--color-negro);
}

footer {
  background-color: var(--color-negro);
  color: var(--color-oro);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}

footer a {
  color: var(--color-oro);
  text-decoration: none;
  margin: 0 0.5rem;
}

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

.footer-logo {
  margin-top: 1rem;
}

.footer-logo img {
  width: 50px;
  display: block;
  margin: 0 auto;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
  opacity: 1;
}

.vinos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.vino {
  background-color: #fdf6ee;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-align: center;
}

.vino:hover {
  transform: translateY(-5px);
}

.vino img {
  width: 100%;
  height: 220px; 
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.vino h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.vino p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.5rem;
}

.vino .precio {
  color: #b58500;
  font-weight: bold;
  font-size: 1rem;
}

.sobre-nosotros {
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.sobre-nosotros img {
  width: 60%;
  height: auto;
  display: block;
  margin: 1rem auto 0 auto;
  border-radius: 10px;
}

.sobre-nosotros-texto {
  max-width: 900px;
  margin: 0 auto 2rem auto;
  padding: 0 1.5rem;
  text-align: center;
  line-height: 1.8;
  font-size: 1.05rem;
}

.sobre img {
  max-width: 500px;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.boton {
  background-color: #caa846;
  border: none;
  border-radius: 2rem;
  padding: 0.5rem 1.2rem;
  margin: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.boton:hover {
  background-color: var(--color-oro-oscuro);
}

.boton-wsp {
  background-color: #25d366;
  color: white;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.boton-wsp i {
  font-size: 1.2rem;
}

.cookies {
  position: fixed;
  top: -100px;
  left: 0;
  right: 0;
  background-color: var(--color-negro);
  color: #fff;
  padding: 1rem;
  text-align: center;
  z-index: 999;
  animation: slideDown 0.8s ease forwards;
  transition: top 0.5s ease-in-out;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  border-top: 3px solid var(--color-oro);
}

.cookies.oculto {
  animation: slideUp 0.8s ease forwards;
}

.cookies.show {
  top: 0;
}

.cookies button {
  background-color: #fff;
  color: #000;
  font-weight: bold;
  border: none;
  margin-left: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
}

.cookies button:hover {
  background-color: var(--color-oro);
}

.cookies a {
  color: var(--color-oro);
  text-decoration: underline;
}

@keyframes slideDown {
  from { top: -100px; }


  to { top: 0; }
}

@keyframes slideUp {
  from { top: 0; }


  to { top: -100px; }
}

.inicio {
  text-align: center;
  padding: 2rem;
}

.inicio img {
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.inicio-contenido {
  max-width: 800px;
  margin: 2rem auto 0 auto;
}

.inicio-contenido p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.inicio-buttons {
  margin-top: 20px;
}

.inicio-buttons a {
  margin: 0 10px;
  padding: 10px 20px;
  background-color: var(--color-oro);
  border-radius: 20px;
  font-weight: bold;
  color: var(--color-negro);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.inicio-buttons a:hover {
  background-color: var(--color-oro-oscuro);
}

.sobre {
  text-align: center;
  padding: 30px;
}

.sobre-nosotros {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.sobre-nosotros-texto {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  padding: 0 1rem;
}

.sobre-nosotros-texto p {
  margin-bottom: 1.2rem;
}

.sobre-nosotros img {
  width: 80%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vinos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.vino {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background-color: #fff6ed;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-align: center;
}

.vino img {
  width: auto;
  height: 220px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.vino h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #000;
}

.vino p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.5rem;
  min-height: 70px; 
}

.vino .precio {
  color: #b58500;
  font-weight: bold;
  font-size: 1rem;
  margin-top: auto;
}

.carrusel {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carrusel-contenedor {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100%;
}

.carrusel img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.titulo-vinos {
  text-align: center;
  margin-top: 2rem;
  font-size: 2.2rem;
  color: #b58500;
  font-family: 'Playfair Display', serif;
}

.encabezado {
  background-color: var(--color-negro);
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  background-color: transparent;
  display: flex;
  align-items: center;
}

.btn-carrito {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-negro);
  color: var(--color-oro);
  font-size: 1.5rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px;
  margin-bottom: 15px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.btn-carrito:hover {
  background-color: var(--color-oro);
  color: var(--color-negro);
  transform: scale(1.1);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

.btn-volver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 25px;
  background-color: var(--color-oro);
  color: var(--color-negro);
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.btn-volver:hover {
  background-color: var(--color-negro);
  color: var(--color-oro);
  transform: scale(1.05);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  nav {
    display: flex;
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .vino {
    width: 90%;
    margin: 0 auto;
  }

  .vino img {
    max-height: 150px;
  }

  .inicio img {
    max-width: 220px;
  }

  .boton {
    margin-top: 0.5rem;
  }

  .inicio-buttons a {
    display: block;
    margin: 10px auto;
    width: fit-content;
  }

  .menu-toggle {
    margin-left: 10px;
  }

  .logo {
    width: 40px;
  }

  .logo.expandido {
    width: 150px;
  }
}

.carrito-flotante {
  position: fixed;
  top: 140px;
  right: 20px;
  background-color: var(--color-oro);
  border-radius: 50%;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
}

.carrito-flotante img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.carrito-flotante:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.carrito-titulo {
  text-align: center;
  margin: 40px 0 20px;
  font-size: 2.2em;
  font-weight: bold;
}

.carrito-container {
  max-width: 800px;
  margin: 0 auto 80px;
  background-color: #fffaf5;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.item-carrito {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.item-carrito:hover {
  background-color: #fff2d6;
  border-radius: 10px;
}

.carrito-item button {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; 
  line-height: 1;
  text-align: center;
  padding: 0;
  font-weight: bold;
  width: 36px;   
  height: 36px;
  transition: transform 0.2s ease;
}

.carrito-item button span,
.carrito-item button i {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrito-item button:hover {
  transform: scale(1.08);
}

.item-carrito .acciones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.item-carrito button,
.carrito-item button {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;   
  line-height: 1;
  text-align: center;
  padding: 0;
  font-weight: bold;
}

.item-carrito .acciones,
.carrito-item .acciones {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.item-carrito button:hover,
.carrito-item button:hover {
  transform: scale(1.06);
  transition: transform .15s ease;
}

.item-info {
  flex: 1;
  margin-left: 15px;
}

.item-nombre {
  font-weight: bold;
  color: #000;
}

.item-precio {
  color: #555;
  font-size: 0.95em;
}

.acciones {
  display: flex;
  gap: 10px;
}

.acciones button {
  background-color: #000;
  color: var(--color-oro);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.acciones button:hover {
  background-color: var(--color-oro);
  color: #000;
}

.total {
  font-weight: bold;
  text-align: right;
  margin-top: 25px;
  font-size: 1.2em;
  color: #000;
}

.btn-finalizar {
  display: block;
  margin: 30px auto 0;
  background-color: #000;
  color: var(--color-oro);
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-size: 1em;
  cursor: pointer;
  transition: 0.3s;
}

.btn-finalizar:hover {
  background-color: var(--color-oro);
  color: #000;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  font-size: 0.95em;
}

.toast.visible {
  opacity: 1;
  bottom: 40px;
  pointer-events: auto;
}

.toast.oculto {
  display: none;
}

.checkout-container {
  max-width: 800px;
  width: 90%;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.checkout-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #000;
}

.checkout-container .campo {
  margin-bottom: 1.2rem;
}

.checkout-container label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.checkout-container input,
.checkout-container select {
  width: 100%;
  padding: 0.7rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff8ef;
}

.checkout-container button {
  background-color: var(--color-oro);
  border: none;
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1.5rem;
  width: 100%;
}

.checkout-container button:hover {
  background-color: var(--color-oro-oscuro);
}

#mensaje-confirmacion {
  background-color: #e0ffe0;
  border: 1px solid #4caf50;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
  border-radius: 8px;
  font-weight: 500;
}

.oculto {
  display: none;
}

.metodo {
  margin-top: 1.5rem;
}

input[type="text"]#expiracion {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

#mensaje-confirmacion {
  background-color: #e9fce9;
  padding: 2rem;
  text-align: center;
  font-size: 1.2rem;
  border-radius: 12px;
  color: #145214;
  font-weight: bold;
}

.banner-lateral {
  position: fixed;
  top: 100px;
  width: 100px;
  opacity: 0.9;
  z-index: 10;
}

.banner-lateral.derecha {
  right: 10px;
}

.banner-lateral img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.recomendados {
  position: fixed;
  top: 50px; 
  bottom: 130px; 
  right: 20px;
  width: 240px;
  padding: 12px;
  background-color: #fff9f0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow-y: auto;
  z-index: 5;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.recomendados.oculto {
  transform: translateX(120%);
  opacity: 0;
}

.recomendados h2 {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #b58500;
}

.producto-sugerido {
  text-align: center;
  margin-bottom: 15px;
  background: white;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #eee;
  transition: transform 0.3s ease;
}

.producto-sugerido:hover {
  transform: translateY(-4px);
}

.producto-sugerido img {
  max-width: 100px;
  height: auto;
}

.producto-sugerido h4 {
  font-size: 0.95rem;
  margin: 5px 0;
  color: #000;
}

.producto-sugerido .precio {
  font-weight: bold;
  color: #b58500;
  margin: 5px 0;
}

.producto-sugerido button {
  background-color: #ffd43b;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.producto-sugerido button:hover {
  background-color: #e6be30;
}

.btn-recomendados-toggle {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background-color: #000;
  color: #ffd43b;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-recomendados-toggle:hover {
  background-color: #ffd43b;
  color: #000;
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .recomendados {
    transform: translateX(120%);
    opacity: 0;
  }

  .recomendados.mostrar {
    transform: translateX(0);
    opacity: 1;
    animation: slideIn 0.4s ease forwards;
  }

  .btn-recomendados-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

.contacto {
  padding: 2rem;
  background: var(--color-fondo);
}

.contacto h1 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5em;
  color: var(--color-texto, #333);
}

.contacto-principal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contacto-tarjetas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.tarjeta-contacto {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 2rem 1rem;
  text-align: center;
  flex: 1 1 250px;
  max-width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  font-size: 1.1rem;
}

.tarjeta-contacto:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.icono-contacto {
  width: 60px;
  height: 60px;
  background-color: #f7f7f7;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1rem auto;
}

.icono-contacto img {
  width: 28px;
  height: 28px;
}

.tarjeta-contacto p,
.tarjeta-contacto a,
.tarjeta-contacto address {
  margin: 5px 0;
  line-height: 1.6;
  color: #555;
  text-decoration: none;
  font-style: normal;
}

.contacto-horario-mapa {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
}

.contacto-horario {
  flex: 1;
  max-width: 300px;
  text-align: left;
  font-size: 1.1rem;
  background-color: #fff;
  color: #000;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid #eee;
}

.contacto-horario h3 {
  color: #b9931f;
  margin-bottom: 0.8rem;
}

.contacto-horario ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacto-horario li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #333;
}

.mapa-contacto {
  flex: 2;
  max-width: 800px;
}

.mapa-contacto h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: #555;
}

.mapa-contacto iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .contacto {
  background-color: #111;
}

body.dark-mode .contacto h1 {
  color: #d4af37 !important;
}

body.dark-mode .tarjeta-contacto {
  background-color: #1c1c1c;
  border-color: #333;
  color: #eee;
}

body.dark-mode .icono-contacto {
  background-color: #2a2a2a;
}

body.dark-mode .tarjeta-contacto p,
body.dark-mode .tarjeta-contacto a,
body.dark-mode .tarjeta-contacto address {
  color: #ccc !important;
}

body.dark-mode .contacto-horario {
  background-color: #1b1b1b !important;
  border: 1px solid #333 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

body.dark-mode .contacto-horario h3 {
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.3px;
}

body.dark-mode .contacto-horario ul li {
  color: #d4af37 !important;
  font-weight: 500;
}

body.dark-mode .contacto-tarjetas .tarjeta-contacto:first-child address {
  color: #d4af37 !important;
}

body.dark-mode .tarjeta-contacto:nth-child(2) a,
body.dark-mode .tarjeta-contacto:nth-child(3) a {
  color: #eee !important;
}

@media (max-width: 900px) {
  .contacto-horario-mapa {
    flex-direction: column;
    align-items: center;
  }

  .contacto-horario {
    margin-bottom: 2rem;
    max-width: 90%;
  }

  .mapa-contacto {
    max-width: 90%;
  }
}

@media (max-width: 600px) {
  .contacto-tarjetas {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .tarjeta-contacto {
    max-width: 90%;
  }

  .contacto h1 {
    font-size: 2em;
  }
}

#whatsapp-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
}

#whatsapp-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 65px;
  height: 65px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  overflow: hidden;
}

#whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.7);
}

.whatsapp-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.whatsapp-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

#whatsapp-btn:hover .whatsapp-icon {
  transform: scale(1.15);
}

.whatsapp-text {
  display: none !important;
}

body.dark-mode #whatsapp-btn {
  background-color: #1ebe5d;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.4);
}

body.dark-mode #whatsapp-btn:hover {
  background-color: #24c55b;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.7);
}

.toast {
  position: fixed;
  bottom: 80px;
  right: 30px;
  background: #ffc107;
  color: #000;
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-weight: bold;
  z-index: 9999;
  animation: fadeInOut 3s ease;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(20px); }

  10% { opacity: 1; transform: translateY(0); }

  90% { opacity: 1; }

  100% { opacity: 0; transform: translateY(20px); }
}

.recomendados {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 240px;
  padding: 10px;
  background-color: #fff9f0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  z-index: 5;
}

.producto-sugerido {
  margin-bottom: 15px;
  text-align: center;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  transition: transform 0.3s ease;
}

.producto-sugerido img {
  max-width: 100px;
  height: auto;
  object-fit: contain;
}

.producto-sugerido .precio {
  font-weight: bold;
  color: var(--color-oro);
  margin: 5px 0;
}

.producto-sugerido button {
  background-color: var(--color-oro);
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.producto-sugerido button:hover {
  background-color: var(--color-oro-oscuro);
}

header {
  background-color: #000;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 80px;
  z-index: 1000;
}

header.sticky-shadow {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: stickyAppear 0.3s ease-in-out forwards;
}

@keyframes stickyAppear {
  from { opacity: 0; transform: translateY(-20px); }


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

.logo {
  height: 50px;
  display: block;
  transition: all 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav ul li a {
  display: inline-block;
  padding: 10px 20px;
  color: #f5d479;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #f5d479;
  border-radius: 50px;
  transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #f5d479;
  color: #000;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background-color: transparent;
  border: 2px solid #f5d479;
  color: #f5d479;
  font-size: 30px;
  padding: 6px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  nav {
    display: block;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    background-color: #000;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  nav ul.mostrar {
    max-height: 500px;
    padding: 10px 0;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 15px 20px;
    font-size: 1.2rem;
    color: #f5d479;
    border: none;
    border-bottom: 1px solid rgba(245, 212, 121, 0.1);
    transition: background-color 0.2s ease;
  }

  nav ul li a:hover {
    background-color: #1a1a1a;
    color: #fff;
  }
}

@media (min-width: 769px) {
  nav ul {
    display: flex !important;
    flex-direction: row;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .menu-toggle {
    display: none !important;
  }
}

.vino-ficha {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  padding: 3rem 2rem;
  background-color: #fffaf0;
  color: #222;
}

.vino-img {
  width: 500px;               
  height: 620px;              
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.zoom-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.zoom-image {
  width: auto;
  height: 100%;
  max-height: 100%;
  object-fit: contain;   
  transition: transform 0.3s ease;
}

.vino-img:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.vino-img img {
  width: 100%;
  max-width: 250px;
  transition: transform 0.6s ease;
  transform-origin: center center;
}

.vino-img:hover img {
  transform: scale(1.15); 
}

.vino-info {
  flex: 1 1 400px;
  max-width: 600px;
}

.vino-info h1 {
  font-size: 2rem;
  color: #000;
  margin-bottom: 1rem;
  font-weight: 600;
  border-bottom: 2px solid #ffd43b;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.vino-datos {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.vino-datos li {
  font-size: 1rem;
  margin: 0.4rem 0;
  color: #444;
}

.vino-descripcion p {
  margin: 0.8rem 0;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
}

.vino-precio {
  font-size: 1.5rem;
  color: #b8860b;
  font-weight: bold;
  margin: 1rem 0;
}

.vino-info .btn-carrito {
  background-color: #000;
  color: #ffd43b;
  border: none;
  border-radius: 30px;
  padding: 0.7rem 1.8rem;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.vino-info .btn-carrito:hover {
  background-color: #ffd43b;
  color: #000;
  transform: scale(1.05);
}

.btn-volver {
  display: inline-block;
  color: #000;
  background-color: #ffd43b;
  padding: 0.6rem 1.3rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-volver:hover {
  background-color: #e0c136;
}

.zoom-container {
  position: relative;
  width: 280px;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: zoom-in;
}

.zoom-lens {
  position: absolute;
  border: 1px solid #aaa;
  width: 100px;
  height: 100px;
  opacity: 0.4;
  background-color: #fff;
  display: none;
  pointer-events: none;
  border-radius: 6px;
}

.zoom-result {
  position: absolute;
  top: 0;
  left: 310px; 
  width: 400px;
  height: 400px;
  border: 1px solid #ccc;
  background-repeat: no-repeat;
  background-size: 800px auto; 
  display: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background-color: #fff;
  z-index: 100;
}

.vino-img img.zoom-image {
  width: 55% !important;         
  max-width: 360px !important;   
  height: auto !important;       
  display: block;
  margin: 0 auto;
  transition: transform 0.4s ease;
  transform-origin: center center;
}

.zoom-image {
  width: 60%;           
  max-width: 380px;     
  transition: transform 0.4s ease;
  display: block;
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
}

.toast {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: #000;
  color: #ffd43b;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.oculto {
  opacity: 0;
  transform: translateY(40px);
}

@keyframes bounceIn {
  0% { transform: scale(0.9) translateY(30px); opacity: 0; }

  50% { transform: scale(1.05) translateY(-5px); opacity: 1; }

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

.toast.visible {
  animation: bounceIn 0.4s ease forwards;
}

.btn-detalles {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 8px;
  padding: 8px 14px;
  background-color: #ffd43b;
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px; 
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.btn-detalles:hover {
  background-color: #000;
  color: #ffd43b;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vino-botones {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 0 5px;
}

.btn-detalles {
  background-color: #ffd43b;
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.btn-detalles:hover {
  background-color: #000;
  color: #ffd43b;
  transform: scale(1.05);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.btn-carrito {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #000;
  color: #ffd43b;
  font-size: 1.3rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.btn-carrito:hover {
  background-color: #ffd43b;
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

.vinos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem;
}

.vino {
  background-color: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.vino:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.vino img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.vino img:hover {
  transform: scale(1.05);
}

.vino h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #000;
}

.vino p {
  font-size: 0.9rem;
  color: #333;
  min-height: 60px;
}

.precio {
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: #b48b02;
}

.vino-botones {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

@media (max-width: 1024px) {
  .vinos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .vino img {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .vinos-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1rem;
  }

  .vino {
    padding: 1rem;
  }

  .vino img {
    height: 250px;
  }

  .vino-botones {
    flex-direction: row;
    justify-content: space-between;
    margin-top: 12px;
  }

  .btn-detalles {
    font-size: 0.85rem;
    padding: 7px 12px;
  }

  .btn-carrito {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsappAppear 0.5s ease-out, whatsappPulse 2s infinite ease-in-out 0.5s;
}

.whatsapp-btn img {
  width: 32px;
  height: 32px;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappAppear {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }

  70% {
    opacity: 1;
    transform: translateY(-8px) scale(1.05);
  }

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

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.recomendados {
  position: fixed;
  right: 20px;
  width: 240px;
  background-color: #fff9f0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 12px;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.recomendados.oculto {
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
}

.recomendados.mostrar {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  animation: slideIn 0.4s ease forwards;
}

@media (max-width: 900px) {
  .recomendados {
    top: 100px;
    bottom: 100px;
    left: 20px;
    right: 20px;
    width: auto;
    max-height: 70vh;
  }
}
@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
}

.btn-recomendados-toggle {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background-color: #000;
  color: #ffd43b;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 1.5rem;
  cursor: pointer;
  display: none; 
  justify-content: center;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

@media (max-width: 900px) {
  .btn-recomendados-toggle {
    display: flex;
  }
}

.recomendados{
  position:fixed; right:20px; width:240px; background:#fff9f0;
  border-radius:10px; box-shadow:0 0 10px rgba(0,0,0,.1);
  padding:12px; overflow-y:auto; z-index:100; 
  transition:transform .4s ease, opacity .4s ease;
}

.recomendados.mostrar{ transform:translateX(0); opacity:1; pointer-events:auto; }

.recomendados.oculto{  transform:translateX(120%); opacity:0; pointer-events:none; }

@media (min-width:901px){
  .recomendados{ top:80px; bottom:80px; }

  #btnRecomendados{ display:none!important; }

}
@media (max-width:900px){
  .recomendados{ top:100px; bottom:100px; left:20px; right:20px; width:auto; max-height:70vh; }

}

#btnRecomendados{
  position:fixed; bottom:90px; right:20px; width:55px; height:55px;
  border-radius:50%; background:#000; color:#ffd43b; border:none;
  display:flex; justify-content:center; align-items:center; 
  font-size:1.5rem; z-index:9999; box-shadow:0 4px 10px rgba(0,0,0,.3);
}

body {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

body.fade-in {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

#dark-mode-toggle {
  position: fixed;
  top: 90px; 
  left: 20px;
  background-color: #222;
  color: #f8f8f8;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

#dark-mode-toggle:hover {
  transform: scale(1.1);
  background-color: #444;
}

body.dark-mode {
  background-color: #121212;
  color: #e6e6e6;
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode header,
body.dark-mode footer {
  background-color: #ffffff;
  color: #222;
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
}

body.dark-mode a {
  color: #d4af37; 
}

body.dark-mode button,
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: #222;
  color: #f1f1f1;
  border: 1px solid #555;
}

body.dark-mode .card,
body.dark-mode .producto,
body.dark-mode .recuadro,
body.dark-mode .formulario {
  background-color: #000000;
  color: #eaeaea;
  border: 1px solid #333;
}

* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .contacto-container,
body.dark-mode .info-contacto,
body.dark-mode .mapa,
body.dark-mode .horario,
body.dark-mode .card {
  background-color: #000000 !important; 
  color: #f1f1f1 !important; 
  border: 1px solid #000000 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

body.dark-mode .info-contacto a,
body.dark-mode .info-contacto p,
body.dark-mode .info-contacto h3 {
  color: #e6e6e6 !important;
}

body.dark-mode .info-contacto a:hover {
  color: #d4af37 !important; 
}

body.dark-mode iframe {
  filter: brightness(0.8) contrast(1.1);
  border-radius: 8px;
}

body.dark-mode .card {
  background-color: #000000 !important;
  border-color: #000000 !important;
}

body.dark-mode .horario {
  color: #f1f1f1 !important;
}

body.dark-mode {
  background-color: #000000 !important;
}

body.dark-mode {
  background-color: #000000 !important;
  color: #e6e6e6 !important;
}

body.dark-mode header,
body.dark-mode footer {
  background-color: #f8f8f8 !important;
  color: #caa648 !important;
  border: none;
}

body.dark-mode h1,
body.dark-mode h3,
body.dark-mode a {
  color: #d4af37 !important; 
}

body.dark-mode a:hover {
  color: #f5d76e !important; 
}

body.dark-mode main.contacto {
  background-color: #121212 !important;
  color: #e6e6e6 !important;
}

body.dark-mode .tarjeta-contacto {
  background-color: #1e1e1e !important;
  color: #f1f1f1 !important;
  border: 1px solid #333 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.dark-mode .tarjeta-contacto a {
  color: #d4af37 !important;
}

body.dark-mode .tarjeta-contacto a:hover {
  color: #f5d76e !important;
}

body.dark-mode .icono-contacto img {
  filter: brightness(0.9) invert(0.9);
}

body.dark-mode iframe {
  filter: brightness(0.8) contrast(1.05);
  border-radius: 8px;
}

body.dark-mode .btn-whatsapp-fijo img {
  filter: brightness(1.2);
}

body, main, article, footer, header, section, div {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

body.dark-mode .icono-contacto {
  background-color: #2a2a2a !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

body.dark-mode .icono-contacto img {
  width: 28px;
  height: 28px;
  filter: invert(1) brightness(1.8) contrast(0.9);
  transition: filter 0.3s ease, transform 0.3s ease;
}

body.dark-mode .icono-contacto:hover {
  background-color: #3a3a3a !important;
  transform: scale(1.08);
}

body.dark-mode .icono-contacto img:hover {
  filter: invert(1) brightness(2) contrast(1.1);
  transform: scale(1.1);
}

body.dark-mode .tarjeta-contacto {
  background-color: #1b1b1b !important;
  border: 1px solid #333 !important;
  color: #f1f1f1 !important;
}

main.blog {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px 60px;
  text-align: left;
}

main.blog h1 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.5rem;
  color: #333;
}

.intro-blog {
  text-align: center;
  color: #555;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.articulo-blog {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.articulo-blog:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.img-blog {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background-color: #e0e0e0; 
}

.contenido-articulo {
  padding: 20px 25px;
}

.contenido-articulo h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #333;
}

.contenido-articulo p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-leer-mas {
  display: inline-block;
  padding: 10px 20px;
  background-color: #d4af37;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-leer-mas:hover {
  background-color: #b8922f;
}

body.dark-mode main.blog {
  background-color: #121212;
  color: #e6e6e6;
}

body.dark-mode .articulo-blog {
  background-color: #1b1b1b;
  color: #f1f1f1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .contenido-articulo h2 {
  color: #f1f1f1;
}

body.dark-mode .contenido-articulo p {
  color: #d3d3d3;
}

.btn-leer-mas {
  display: inline-block;
  padding: 10px 25px;
  background-color: #d4af37;
  color: #1b1b1b;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-leer-mas:hover {
  background-color: #b8922f;
  transform: translateY(-2px);
}

body.dark-mode .btn-leer-mas {
  background-color: #d4af37;
  color: #121212;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

body.dark-mode .btn-leer-mas:hover {
  background-color: #f5d76e;
  color: #121212;
  transform: translateY(-2px);
}

.articulo-blog, .contenido-articulo, .btn-leer-mas, main.blog {
  transition: all 0.3s ease;
}

.btn-leer-mas {
  display: inline-block;
  padding: 10px 25px;
  background-color: #d4af37;
  color: #1b1b1b;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

body.dark-mode .btn-leer-mas {
  background-color: #d4af37;
  color: #121212; 
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

body.dark-mode .btn-leer-mas {
  color: #121212 !important;
}

main.articulo {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px 60px;
  line-height: 1.7;
  color: #333;
}

.imagen-articulo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.contenido-articulo h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-align: center;
}

.fecha-articulo {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 30px;
}

.contenido-articulo h2 {
  font-size: 1.4rem;
  margin-top: 30px;
  color: #444;
}

.contenido-articulo p {
  margin-bottom: 20px;
}

.btn-volver {
  display: inline-block;
  padding: 10px 25px;
  background-color: #d4af37;
  color: #1b1b1b;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-volver:hover {
  background-color: #b8922f;
  transform: translateY(-2px);
}

body.dark-mode main.articulo {
  background-color: #121212;
  color: #e6e6e6;
}

body.dark-mode .contenido-articulo h1,
body.dark-mode .contenido-articulo h2 {
  color: #f1f1f1;
}

body.dark-mode .fecha-articulo {
  color: #aaa;
}

body.dark-mode .btn-volver {
  background-color: #d4af37;
  color: #121212;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

body.dark-mode .btn-volver:hover {
  background-color: #f5d76e;
  color: #121212;
}

main.articulo, .btn-volver, .contenido-articulo {
  transition: all 0.3s ease;
}

.filtros-panel {
      position: sticky;
      top: 80px;
      margin-left: auto;
      width: min(520px, 96%);
      background: rgba(0,0,0,0.9);
      border: 1px solid var(--color-oro);
      border-radius: 14px;
      padding: 12px;
      display: grid;
      grid-template-columns: 1fr 150px 150px;
      gap: 10px;
      transform: translateX(20px);
      opacity: 0;
      animation: filtrosIn 400ms ease 120ms forwards;
      z-index: 9;
    }

    .filtros-panel input,
    .filtros-panel select {
      background: #111;
      color: var(--color-oro);
      border: 1px solid var(--color-oro);
      border-radius: 999px;
      padding: 10px 14px;
      outline: none;
      font-weight: 600;
    }

    .filtros-panel input::placeholder { color: #c7a83a; opacity: .8; }

    .filtros-row {
      display: contents;
    }

    .filtros-meta {
      grid-column: 1 / -1;
      font-size: .9rem;
      color: #d7b53a;
      text-align: right;
      opacity: .9;
      margin-top: -2px;
    }

    @keyframes filtrosIn {
      to { transform: translateX(0); opacity: 1; }

    }
    @media (max-width: 900px) {
      .filtros-panel { grid-template-columns: 1fr; top: 80px; }
    
    }

    .carrito-flotante {
      position: fixed !important;
      bottom: 20px !important;
      right: 20px !important;
      top: auto !important;
    }

    body.dark-mode .filtros-panel {
      background: #f8f8f8;
      border-color: #000;
    }

    body.dark-mode .filtros-panel input,
    body.dark-mode .filtros-panel select {
      background: #fff;
      color: #1b1b1b;
      border-color: #000;
    }

    body.dark-mode .filtros-meta { color: #1b1b1b; }

  .buscador-wrapper{
    position: sticky;
    top: 80px;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    padding: 8px 16px 0;
  }

  .search-toggle{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000;
    border: 1px solid var(--color-oro);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
  }

  .search-toggle img{
    width: 20px; height: 20px; object-fit: contain;
    filter: brightness(0) invert(1);
    pointer-events: none;
  }

  .search-toggle:hover{
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(245,212,121,.35);
    filter: drop-shadow(0 0 6px rgba(245,212,121,.6));
    background: #0e0e0e;
  }

  .filtros-panel{
    display: none;
    position: absolute;
    margin-top: 10px;
    right: 16px;
    width: min(420px, 92vw);
    background: rgba(0,0,0,.86);
    border: 1px solid var(--color-oro);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
  }

  .filtros-panel.abierto{
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .filtros-panel input{
    background: rgba(17,17,17,.95);
    color: var(--color-oro);
    border: 1px solid var(--color-oro);
    border-radius: 9999px; 
    padding: 10px 14px;
    outline: none;
    font-weight: 600;
    height: 38px;
  }

  .filtros-panel input::placeholder{ color:#c7a83a; opacity:.85; }

  .filtros-row-2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .filtros-panel select{
    background: rgba(17,17,17,.95);
    color: var(--color-oro);
    border: 1px solid var(--color-oro);
    border-radius: 9999px; 
    padding: 8px 12px;
    font-weight: 600;
    height: 38px;
    outline: none;
  }

  .filtros-meta{
    font-size: .85rem;
    color: #d7b53a;
    text-align: right;
    opacity: .9;
    margin-top: 2px;
  }

  @media (max-width: 900px){
    .filtros-panel.abierto{
      left: 12px;
      right: 12px;
      width: auto;
    }

    .filtros-row-2{ grid-template-columns: 1fr; }

  }

  .carrito-flotante{
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
  }

  body.dark-mode .filtros-panel{
    background: rgba(248,248,248,.96);
    border-color: #000;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
  }

  body.dark-mode .filtros-panel input,
  body.dark-mode .filtros-panel select{
    background: #fff;
    color: #1b1b1b;
    border-color: #000;
  }

  body.dark-mode .filtros-meta{ color:#1b1b1b; }

    main {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      min-height: 80vh;
      text-align: center;
      padding: 2rem;
    }

    h1 {
      color: var(--dorado, #caa846);
      margin-bottom: 1.5rem;
      font-size: 2rem;
    }

    form {
      background-color: rgba(0, 0, 0, 0.75);
      padding: 2rem;
      border-radius: 12px;
      box-shadow: 0 0 15px rgba(0,0,0,0.5);
      width: 100%;
      max-width: 380px;
      backdrop-filter: blur(4px);
    }

    label {
      display: block;
      margin-bottom: 1rem;
      text-align: left;
      color: #fff;
      font-weight: 500;
    }


    input[type="email"],
    input[type="password"] {
      width: 100%;
      padding: 0.8rem;
      border: 1px solid #555;
      border-radius: 8px;
      background: #111;
      color: #fff;
      font-size: 1rem;
    }

    input:focus {
      outline: none;
      border-color: var(--dorado, #caa846);
    }

    button {
      background: var(--dorado, #caa846);
      color: #000;
      border: none;
      padding: 0.8rem 1.2rem;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      width: 100%;
      margin-top: 1rem;
      transition: 0.3s;
    }

    button:hover {
      background: #e6c55c;
    }

    .muted {
      color: #ccc;
      margin-top: 1rem;
      font-size: 0.9rem;
    }

    .muted a {
      color: var(--dorado, #caa846);
      text-decoration: none;
      font-weight: 500;
    }

    .muted a:hover {
      text-decoration: underline;
    }

    footer {
      text-align: center;
      padding: 1rem 0;
    }

    .logo img {
      height: 100%;
      width: auto;
    }

main.registro-page {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 80vh;
  text-align: center;
  padding: 2rem;
}

.registro-page h1 {
  color: var(--dorado, #caa846);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.registro-page form {
  background-color: rgba(0, 0, 0, 0.75);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(4px);
  animation: fadeUp 0.6s ease;
}

.registro-page label {
  display: block;
  margin-bottom: 1rem;
  text-align: left;
  color: #fff;
  font-weight: 500;
}

.registro-page input[type="text"],
.registro-page input[type="email"],
.registro-page input[type="password"] {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #555;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.registro-page input:focus {
  outline: none;
  border-color: var(--dorado, #caa846);
}

.registro-page button {
  background: var(--dorado, #caa846);
  color: #000;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  margin-top: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.registro-page button:hover {
  background: #e6c55c;
  transform: scale(1.02);
}

.registro-page .muted {
  color: #ccc;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.registro-page .muted a {
  color: var(--dorado, #caa846);
  text-decoration: none;
  font-weight: 500;
}

.registro-page .muted a:hover {
  text-decoration: underline;
}

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

}

body.dark-mode .registro-page form {
  background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .registro-page label {
  color: #f8f8f8;
}

body.dark-mode .registro-page input {
  background: #222;
  border-color: #666;
  color: #f8f8f8;
}

main.container {
  padding: 2rem 0;
}

main.container h1 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--dorado, #caa846);
  margin-bottom: 2rem;
}

.grid.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 1.5rem;
  color: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(202, 168, 70, 0.3);
}

.card h2 {
  color: var(--dorado, #caa846);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  text-align: center;
}

.card p {
  margin-bottom: 0.5rem;
  color: #ddd;
}

.card .big {
  font-size: 2rem;
  font-weight: bold;
  color: #caa846;
  text-align: center;
  margin: 1rem 0;
}

.puntos-tier {
  margin: 1rem 0;
  text-align: center;
}

.puntos-tier .tier {
  background: #111;
  border: 1px solid #333;
  padding: 0.5rem;
  border-radius: 6px;
  margin: 0.4rem auto;
  width: 80%;
  color: #caa846;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0.7rem 1rem;
  font-weight: 600;
  background: var(--dorado, #caa846);
  color: #000;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: #e6c55c;
  transform: scale(1.03);
}

.btn-primary {
  background: var(--dorado, #caa846);
  color: #000;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--dorado, #caa846);
  color: var(--dorado, #caa846);
}

.btn.ghost:hover {
  background: var(--dorado, #caa846);
  color: #000;
}

.btn.danger {
  background: #800;
  color: #fff;
}

.btn.danger:hover {
  background: #a00;
}

.vip-card {
  background: linear-gradient(145deg, #1a1a1a, #000);
  border: 1px solid var(--dorado, #caa846);
  box-shadow: 0 0 25px rgba(202, 168, 70, 0.2);
}

.vip-card p strong {
  color: var(--dorado, #caa846);
}

.vip-card .muted {
  font-size: 0.9rem;
  color: #bbb;
}

.historial {
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  color: #ccc;
}

.historial .pedido {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0.8rem 0;
}

.historial .pedido:last-child {
  border-bottom: none;
}

.historial .pedido strong {
  color: var(--dorado, #caa846);
}

body.dark-mode .card {
  background-color: rgba(255, 255, 255, 0.05);
  color: #eee;
  border-color: #444;
}

body.dark-mode .card h2 {
  color: #e0c46c;
}

body.dark-mode .puntos-tier .tier {
  background: rgba(255,255,255,0.08);
  color: #e6c55c;
}

body.dark-mode .vip-card {
  background: linear-gradient(145deg, #222, #000);
  border-color: #e6c55c;
}

body.dark-mode .historial {
  background: rgba(0,0,0,0.3);
}

@media (max-width: 700px) {
  .grid.grid-3 {
    grid-template-columns: 1fr;
  }

}

.barra-puntos {
  background: rgba(202, 168, 70, 0.1);
  border: 1px solid var(--dorado, #caa846);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  text-align: center;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(202, 168, 70, 0.2);
}

.barra-puntos strong {
  color: var(--dorado, #caa846);
}

.vino-item .puntos-producto {
  color: #caa846;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.3rem;
}

body.dark-mode .barra-puntos {
  background: rgba(255,255,255,0.08);
  border-color: #e6c55c;
  color: #eee;
}

body.dark-mode .vino-item .puntos-producto {
  color: #e6c55c;
}

.search-panel {
  position: absolute;
  right: 52px;
  top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: width .25s ease, opacity .25s ease, transform .25s ease;
  background: rgba(25, 25, 25, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 6px 10px;
  z-index: 10;
}

.search-panel.abierto {
  width: min(400px, 70vw);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-input {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--color-oro);
  color: var(--color-oro);
  border-radius: 9999px;
  padding: 8px 12px;
  outline: none;
  font-weight: 600;
  font-size: 0.9rem;
  height: 36px;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.filter-pill {
  border: 1px solid var(--color-oro);
  background: #000;
  color: #fff;
  border-radius: 9999px;
  padding: 5px 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.filter-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(245, 212, 121, .25);
}

.filter-pill.activo {
  background: var(--color-oro);
  color: #000;
}

@media (max-width: 900px) {
  .search-panel {
    right: auto;
    top: 45px;
    width: 90%;
    padding: 8px;
  }

  .search-input {
    font-size: 0.85rem;
  }

  .filter-pill {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slider .hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 100%;
  opacity: 0;
  transition: all 1s ease-in-out;
}

.hero-slider .hero-slide.active {
  left: 0;
  opacity: 1;
}

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

.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;                
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid #d4af37; 
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;         
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.hero-prev:hover,
.hero-next:hover {
  background-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.hero-prev {
  left: 30px;
}

.hero-next {
  right: 30px;
}

.mini-botellas-container {
  display: flex;
  justify-content: flex-start;
  margin-top: 15px;
  margin-left: calc(50% - 160px); 
}

.mini-botellas-container .mini-botellas {
  height: 90px;
  width: auto;
  opacity: 0.95;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mini-botellas-container .mini-botellas:hover {
  transform: scale(1.05);
  opacity: 1;
}

.barra-puntos {
  background: rgba(202, 168, 70, 0.1);
  border: 1px solid var(--dorado, #caa846);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  text-align: center;
  font-weight: 500;
  color: #000000;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(202, 168, 70, 0.2);
}

.vino .puntos-producto {
  color: var(--dorado, #caa846);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.3rem;
}

body.dark-mode .barra-puntos {
  background: rgba(255,255,255,0.08);
  border-color: #e6c55c;
  color: #eee;
}

body.dark-mode .vino .puntos-producto {
  color: #e6c55c;
}

.perfil-page {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
}

.perfil-page h1 {
  text-align: center;
  color: var(--dorado, #caa846);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.perfil-card {
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.perfil-card h2 {
  text-align: center;
  color: var(--dorado, #caa846);
  margin-bottom: 1.5rem;
}

#perfilForm label {
  display: block;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 500;
}

#perfilForm input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #444;
  background: #111;
  color: #fff;
  font-size: 1rem;
  transition: border 0.3s ease;
}

#perfilForm input:focus {
  border-color: var(--dorado, #caa846);
  outline: none;
}

#perfilForm .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.perfil-page .btn {
  background: var(--dorado, #caa846);
  color: #000;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.perfil-page .btn:hover {
  background: #e6c55c;
  transform: scale(1.03);
}

.perfil-page .btn.danger {
  background: #800;
  color: #fff;
}

.perfil-page .btn.danger:hover {
  background: #a00;
}

body.dark-mode .perfil-card {
  background-color: rgba(255,255,255,0.05);
  border-color: #444;
}

body.dark-mode #perfilForm label {
  color: #eee;
}

body.dark-mode #perfilForm input {
  background: #222;
  border-color: #555;
  color: #eee;
}

main.container h1 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--dorado, #caa846);
  margin: 2rem 0 2.5rem;
  letter-spacing: 0.5px;
}

.grid.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.card {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  padding: 1.5rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(202, 168, 70, 0.3);
}

.card h2 {
  color: var(--dorado, #caa846);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  text-align: center;
  font-weight: 600;
}

.card p {
  margin: 0.4rem 0;
  color: #ddd;
}

.big {
  font-size: 2rem;
  font-weight: bold;
  color: var(--dorado, #caa846);
  text-align: center;
  margin: 1rem 0;
}

.puntos-tier {
  margin: 1rem auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.puntos-tier .tier {
  background: #111;
  border: 1px solid #333;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  color: var(--dorado, #caa846);
  font-size: 0.9rem;
  width: 80%;
  transition: background 0.3s ease;
}

.puntos-tier .tier:hover {
  background: rgba(255,255,255,0.05);
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.vip-card {
  background: linear-gradient(145deg, #1a1a1a, #000);
  border: 1px solid var(--dorado, #caa846);
  box-shadow: 0 0 25px rgba(202, 168, 70, 0.2);
}

.vip-card h2 {
  color: #e6c55c;
}

.vip-actions button {
  min-width: 120px;
  font-size: 0.9rem;
}

.historial {
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  color: #ccc;
  font-size: 0.95rem;
}

body.dark-mode .card {
  background: rgba(255,255,255,0.05);
  color: #eee;
  border-color: #444;
}

body.dark-mode .card h2 {
  color: #e6c55c;
}

@media (max-width: 800px) {
  .grid.grid-3 {
    grid-template-columns: 1fr;
  }

  main.container h1 {
    font-size: 1.8rem;
  }

  .vip-actions button {
    flex: 1 1 45%;
  }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 0.8rem 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}

header .logo img {
  height: 60px;
  width: auto;
}

#main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

#main-nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

#main-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  border: 2px solid var(--dorado, #caa846);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  transition: all 0.3s ease;
}

#main-nav a:hover,
#main-nav a.active {
  background: var(--dorado, #caa846);
  color: #000;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.user-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: #000;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-usuario {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-usuario:hover {
  color: var(--dorado, #caa846);
  text-decoration: underline;
}

.btn-out {
  background: #800;
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  border: none;
}

.btn-out:hover {
  background: #a00;
}

@media (max-width: 800px) {
  #main-nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    background: #000;
    width: 100%;
    padding: 1rem 0;
  }

  #main-nav ul.mostrar {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .user-bar {
    flex-direction: column;
    gap: 0.5rem;
  }
}

body.dark-mode header {
  background: #111;
}

body.dark-mode #main-nav a {
  color: #eee;
  border-color: #e6c55c;
}

body.dark-mode #main-nav a:hover,
body.dark-mode #main-nav a.active {
  background: #e6c55c;
  color: #000;
}

body.dark-mode .user-bar {
  background: #111;
}

.vip-card {
  background: linear-gradient(145deg, #0e0e0e, #1c1c1c);
  border: 2px solid var(--dorado, #caa846);
  box-shadow: 0 0 20px rgba(202, 168, 70, 0.2);
  position: relative;
  overflow: hidden;
}

.vip-card h2 {
  text-align: center;
  color: var(--dorado, #caa846);
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  position: relative;
}

.vip-card h2::after {
  content: "👑";
  font-size: 1.2rem;
  margin-left: 0.5rem;
}

.vip-card p {
  text-align: center;
  color: #ddd;
  margin: 0.3rem 0;
}

.vip-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.vip-actions .btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.7rem;
  text-transform: capitalize;
}

[data-plan="bronze"] {
  background: linear-gradient(to bottom, #b87333, #8c5a28);
  border: none;
  color: #fff;
}

[data-plan="bronze"].ghost {
  background: transparent;
  border: 1px solid #b87333;
  color: #b87333;
}

[data-plan="silver"] {
  background: linear-gradient(to bottom, #c0c0c0, #a0a0a0);
  border: none;
  color: #000;
}

[data-plan="silver"].ghost {
  background: transparent;
  border: 1px solid #c0c0c0;
  color: #c0c0c0;
}

[data-plan="gold"] {
  background: linear-gradient(to bottom, #d4af37, #b8911e);
  border: none;
  color: #000;
}

[data-plan="gold"].ghost {
  background: transparent;
  border: 1px solid #d4af37;
  color: #d4af37;
}

.vip-actions .btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

#vipCancelar {
  grid-column: span 2;
  margin-top: 0.8rem;
  background: #800;
  border: none;
}

#vipCancelar:hover {
  background: #a00;
}

#vipBeneficios {
  display: block;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.7rem;
  font-size: 0.9rem;
  color: #bbb;
  text-align: center;
  margin: 0.5rem 0 1rem;
}

.vip-card::before {
  content: attr(data-nivel);
  position: absolute;
  top: 0;
  left: 0;
  background: var(--dorado, #caa846);
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-bottom-right-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.dark-mode .vip-card {
  background: linear-gradient(145deg, #202020, #0f0f0f);
}

.vip-card {
  background: #111;
  border: 2px solid var(--dorado, #caa846);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 25px rgba(202, 168, 70, 0.25);
}

.vip-card h2 {
  text-align: center;
  color: var(--dorado, #caa846);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.vip-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.vip-plan {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 15px;
  text-align: center;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.vip-plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(202, 168, 70, 0.3);
}

.vip-plan.bronze {
  border-color: #b87333;
}

.vip-plan.silver {
  border-color: #c0c0c0;
}

.vip-plan.gold {
  border-color: #d4af37;
}

.vip-plan h3 {
  color: var(--dorado, #caa846);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vip-price {
  margin-bottom: 1rem;
}

.vip-price span {
  display: block;
  font-size: 1.2rem;
  color: #fff;
  font-weight: bold;
}

.vip-price small {
  color: #aaa;
}

.vip-benefits {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

.vip-benefits li {
  background: rgba(255, 255, 255, 0.05);
  margin: 0.3rem 0;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  color: #ddd;
  font-size: 0.95rem;
}

.vip-plan .vip-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.vip-plan .btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem;
  cursor: pointer;
}

.vip-plan.bronze .btn {
  background: linear-gradient(to right, #b87333, #8c5a28);
  color: #fff;
  border: none;
}

.vip-plan.silver .btn {
  background: linear-gradient(to right, #d3d3d3, #a9a9a9);
  color: #000;
  border: none;
}

.vip-plan.gold .btn {
  background: linear-gradient(to right, #d4af37, #b8911e);
  color: #000;
  border: none;
}

.btn.ghost {
  background: transparent !important;
  border: 2px solid currentColor;
  color: inherit;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn.danger {
  background: #800;
  border: none;
  color: #fff;
  width: 100%;
}

.btn.danger:hover {
  background: #a00;
}

@media (max-width: 768px) {
  .vip-plans {
    grid-template-columns: 1fr;
  }
}

.vip-card {
  background: #111;
  border: 2px solid var(--dorado, #caa846);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 25px rgba(202, 168, 70, 0.25);
  text-align: center;
}

.vip-card h2 {
  color: var(--dorado, #caa846);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.vip-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.vip-plan {
  background: #1a1a1a;
  border-radius: 15px;
  border: 2px solid #333;
  padding: 1.5rem;
  width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.vip-plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(202, 168, 70, 0.4);
}

.vip-plan h3 {
  color: var(--dorado, #caa846);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.vip-price {
  color: #fff;
  margin-bottom: 1rem;
}

.vip-price span {
  font-size: 1.3rem;
  font-weight: 600;
  display: block;
}

.vip-price small {
  color: #bbb;
}

.vip-benefits {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

.vip-benefits li {
  background: rgba(255, 255, 255, 0.05);
  margin: 0.4rem 0;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  color: #ddd;
}

.vip-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vip-actions .btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.6rem;
  cursor: pointer;
}

.bronze { border-color: #b87333; }

.silver { border-color: #c0c0c0; }

.gold { border-color: #d4af37; }

.bronze .btn { background: linear-gradient(to right, #b87333, #8c5a28); color: #fff; border: none; }

.silver .btn { background: linear-gradient(to right, #d3d3d3, #a9a9a9); color: #000; border: none; }

.gold .btn { background: linear-gradient(to right, #d4af37, #b8911e); color: #000; border: none; }

.btn.ghost {
  background: transparent !important;
  border: 2px solid currentColor;
}

.bronze .btn.ghost { color: #b87333; }

.silver .btn.ghost { color: #c0c0c0; }

.gold .btn.ghost { color: #d4af37; }

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn.danger {
  background: #800;
  border: none;
  color: #fff;
  font-weight: bold;
}

.vip-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dorado, #caa846);
  color: #000;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.destacado {
  transform: scale(1.05);
  border-width: 3px;
  background: #222;
}

@media (max-width: 1024px) {
  .vip-row { flex-wrap: wrap; }

}
@media (max-width: 768px) {
  .vip-plan { width: 100%; }

}

.vip-section {
  margin: 4rem auto 2rem auto;   
  width: 90%;                    
  max-width: 1400px;           
  background: #111;
  border: 2px solid var(--dorado, #caa846);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 0 25px rgba(202, 168, 70, 0.25);
}

.vip-section h2 {
  color: var(--dorado, #caa846);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.vip-section .vip-subtitle {
  color: #ddd;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.vip-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 3rem;                     
  flex-wrap: nowrap;
  flex: 1 1 auto;
}

.vip-plan {
  background: #1a1a1a;
  border-radius: 15px;
  border: 2px solid #333;
  padding: 1.5rem;
  width: 320px;                  
  min-height: 480px;             
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.destacado {
  transform: scale(1.05);
  border-color: var(--dorado, #caa846);
}

@media (max-width: 1100px) {
  .vip-row {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .vip-plan {
    width: 45%;
    min-width: 300px;
  }
}

@media (max-width: 768px) {
  .vip-plan {
    width: 100%;
  }
}

.vip-plan h3 {
  color: var(--dorado, #caa846);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.vip-price {
  color: #fff;
  margin-bottom: 1rem;
}

.vip-price span {
  font-size: 1.3rem;
  font-weight: 600;
}

.bronze { border-color: #b87333; }

.silver { border-color: #c0c0c0; transform: scale(1.05); }

.vip-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dorado, #caa846);
  color: #000;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .vip-row {
    flex-wrap: wrap;
  }

}
@media (max-width: 768px) {
  .vip-plan {
    width: 100%;
  }

}

.vip-section {
  margin-top: 3rem;          
  background: #111;
  border: 2px solid var(--dorado, #caa846);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 0 25px rgba(202, 168, 70, 0.25);
}

.vip-section {
  margin: 4rem auto 2rem auto;   
  width: 90%;                    
  max-width: 1400px;             
  background: #111;
  border: 2px solid var(--dorado, #caa846);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 0 25px rgba(202, 168, 70, 0.25);
}

.zona-info {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.zona-info .resumen-vip {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-bg, #2b2b2b);
  color: var(--text-color, #fff);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.zona-info .resumen-vip h2 {
  color: var(--gold, #caa648);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.zona-info .resumen-vip p {
  margin: 0.3rem 0;
  font-size: 1rem;
}

.zona-info .grid {
  gap: 1.5rem;
}

.zona-info .card {
  background: var(--card-bg, #2b2b2b);
  color: var(--text-color, #fff);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zona-info .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.35);
}

.zona-info h2 {
  color: var(--gold, #caa648);
  text-align: center;
  margin-bottom: 1rem;
}

.zona-info .big {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold, #caa648);
}

.zona-vip {
  margin-top: 4rem;
  text-align: center;
}

.zona-vip h2 {
  font-size: 2rem;
  color: var(--gold, #caa648);
  margin-bottom: 0.5rem;
}

.zona-vip .vip-subtitle {
  font-size: 1.1rem;
  color: var(--muted-text, #bbb);
  margin-bottom: 2rem;
}

.vip-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.vip-plan {
  background: var(--card-bg, #2b2b2b);
  color: var(--text-color, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  padding: 1.8rem;
  width: 280px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vip-plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.vip-plan h3 {
  color: var(--gold, #caa648);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.vip-price {
  font-size: 1.2rem;
  color: var(--gold, #caa648);
  margin-bottom: 1rem;
}

.vip-price small {
  display: block;
  color: #aaa;
  font-size: 0.9rem;
}

.vip-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.vip-benefits li {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

.vip-actions .btn {
  margin: 0.3rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.vip-plan.destacado {
  border: 2px solid var(--gold, #caa648);
  transform: scale(1.05);
}

.vip-label {
  background: var(--gold, #caa648);
  color: #000;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.btn.danger {
  background-color: #a03a3a;
  color: #fff;
  transition: background 0.3s ease;
}

.btn.danger:hover {
  background-color: #c04848;
}

@media (max-width: 900px) {
  .vip-row {
    flex-direction: column;
    align-items: center;
  }

  .zona-info .grid {
    grid-template-columns: 1fr;
  }

  .zona-info .card,
  .vip-plan {
    width: 100%;
    max-width: 400px;
  }

}

main.container .zona-info {
  margin-top: 2rem;
  margin-bottom: 3rem;    
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

main.container .zona-vip {
  position: relative;
  padding: 2.5rem 1rem 3rem;
  margin-top: 2rem;
  border-radius: 18px;
  background: rgba(0,0,0,0.04);
}

body.dark-mode main.container .zona-vip {
  background: rgba(255,255,255,0.04);
}

main.container .zona-vip::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 90%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #caa648, transparent);
  opacity: .9;
}

main.container .zona-info > .resumen-vip h2,
main.container .zona-vip > h2 {
  letter-spacing: 0.3px;
}

main.container .zona-info .grid.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  main.container .zona-info .grid.grid-3 {
    grid-template-columns: 1fr 1fr;
  }

}
@media (max-width: 720px) {
  main.container .zona-info .grid.grid-3 {
    grid-template-columns: 1fr;
  }

}

main.container .zona-info .card {
  background: var(--card-bg, #2b2b2b);
  color: var(--text-color, #fff);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

main.container .zona-vip .vip-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

main.container .zona-vip .vip-plan {
  background: var(--card-bg, #2b2b2b);
  color: var(--text-color, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  padding: 1.8rem;
  width: 280px;
  transition: transform .2s ease, box-shadow .2s ease;
}

main.container .zona-vip .vip-plan.destacado {
  border: 2px solid var(--gold, #caa648);
  transform: translateY(-2px);
}

main.container .zona-vip .vip-label {
  background: var(--gold, #caa648);
  color: #000;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 8px;
  position: relative;
  top: -6px;
}

@media (max-width: 480px) {
  main.container .zona-vip {
    padding-left: .75rem;
    padding-right: .75rem;
  }

}

.perfil-page {
  padding-top: 2rem;
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.perfil-page h1 {
  text-align: center;
  color: var(--gold, #caa648);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.perfil-card.card {
  max-width: 750px;
  margin: 0 auto;
  background: var(--card-bg, #2b2b2b);
  color: var(--text-color, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  padding: 1.8rem;
}

.perfil-card.card h2 {
  text-align: center;
  color: var(--gold, #caa648);
  margin-bottom: 1.5rem;
}

#perfilForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
}

#perfilForm label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #ddd;
  gap: 0.3rem;
}

#perfilForm input[type="text"],
#perfilForm input[type="email"],
#perfilForm input[type="password"] {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.8rem;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

#perfilForm input:focus {
  border-color: var(--gold, #caa648);
  box-shadow: 0 0 0 3px rgba(202,166,72,0.25);
  background: rgba(0,0,0,0.35);
}

#perfilForm input[readonly] {
  opacity: 0.8;
  background: rgba(255,255,255,0.08);
  cursor: not-allowed;
}

.perfil-card .actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.perfil-card .btn {
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
}

.perfil-card .btn.danger {
  background: #a23a3a;
  color: #fff;
  transition: background 0.3s;
}

.perfil-card .btn.danger:hover {
  background: #c04949;
}

.perfil-page > .card {
  max-width: 750px;
  margin: 0 auto;
  background: var(--card-bg, #2b2b2b);
  color: var(--text-color, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  padding: 1.5rem;
}

.perfil-page > .card h2 {
  color: var(--gold, #caa648);
  text-align: center;
  margin-bottom: 1rem;
}

.perfil-page > .card p {
  margin: 0.4rem 0;
  text-align: center;
}

.perfil-page > .card .actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  #perfilForm {
    grid-template-columns: 1fr;
  }

  .perfil-card.card,
  .perfil-page > .card {
    padding: 1.2rem;
  }

  .perfil-card .actions {
    flex-wrap: wrap;
  }

}

@media (max-width: 480px) {
  .perfil-page {
    padding-top: 1rem;
  }

}

.perfil-page {
  padding-top: 2rem;
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.perfil-page .perfil-card.card {
  max-width: 750px;
  margin: 0 auto;
  background: var(--card-bg, #2b2b2b);
  color: var(--text-color, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  padding: 1.8rem;
}

.perfil-page .perfil-card.card h2 {
  text-align: center;
  color: var(--gold, #caa648);
  margin-bottom: 1.5rem;
}

.perfil-page #perfilForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
}

.perfil-page #perfilForm label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #ddd;
  gap: 0.3rem;
}

.perfil-page #perfilForm input[type="text"],
.perfil-page #perfilForm input[type="email"],
.perfil-page #perfilForm input[type="password"] {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.8rem;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.perfil-page #perfilForm input:focus {
  border-color: var(--gold, #caa648);
  box-shadow: 0 0 0 3px rgba(202,166,72,0.25);
  background: rgba(0,0,0,0.35);
}

.perfil-page #perfilForm input[readonly] {
  opacity: 0.8;
  background: rgba(255,255,255,0.08);
  cursor: not-allowed;
}

.perfil-page .perfil-card .actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.perfil-page .perfil-card .btn {
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
}

.perfil-page .perfil-card .btn.danger {
  background: #a23a3a;
  color: #fff;
  transition: background 0.3s;
}

.perfil-page .perfil-card .btn.danger:hover {
  background: #c04949;
}

@media (max-width: 900px) {
  .perfil-page #perfilForm {
    grid-template-columns: 1fr;
  }

  .perfil-page .perfil-card.card,
  .perfil-page > .card {
    padding: 1.2rem;
  }

  .perfil-page .perfil-card .actions {
    flex-wrap: wrap;
  }

}

.vinos-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.vinos-topbar .titulo-vinos {
  text-align: center;
  color: var(--gold, #caa648);
  font-size: 2rem;
  margin: 0;
}

.vinos-topbar .search-area {
  position: absolute;
  right: 1.5rem;
  top: 0;
  display: flex;
  align-items: center;
}

#btnLupa {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--gold, #caa648);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 20;
}

#btnLupa img {
  width: 22px;
  height: 22px;
  filter: brightness(1);
}

#btnLupa:hover {
  background-color: #111;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(202,166,72,0.5);
}

.search-panel {
  position: absolute;
  top: 3.5rem;
  right: 0;
  width: 340px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--gold, #caa648);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.search-panel.active {
  display: flex;
}

.search-input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  outline: none;
  font-size: 0.95rem;
}

.search-input:focus {
  border-color: var(--gold, #caa648);
  background: rgba(0,0,0,0.2);
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.filter-pill {
  background: #000;
  border: 1px solid var(--gold, #caa648);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: #111;
}

.filter-pill.activo {
  background: var(--gold, #caa648);
  color: #000;
}

.price-filter {
  padding: 0.4rem;
  border-radius: 8px;
  background: #000;
  color: #fff;
  border: 1px solid var(--gold, #caa648);
  font-size: 0.9rem;
}

body.dark-mode .search-panel {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold, #caa648);
}

body.dark-mode .search-input {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

body.dark-mode .filter-pill {
  background: #111;
  border-color: var(--gold, #caa648);
}

body.dark-mode .filter-pill.activo {
  background: var(--gold, #caa648);
  color: #000;
}

#btnLupa {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--gold, #caa648);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  z-index: 20;
  backdrop-filter: blur(4px);
}

#btnLupa img {
  width: 22px;
  height: 22px;
  filter: brightness(1);
  pointer-events: none;
}

#btnLupa:hover {
  background-color: rgba(202, 166, 72, 0.1);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(202,166,72,0.4);
  border-color: var(--gold, #caa648);
}

body.dark-mode #btnLupa {
  background: transparent;
  border-color: var(--gold, #caa648);
}

body.dark-mode #btnLupa img {
  filter: brightness(0) invert(1);
}

body.dark-mode #btnLupa:hover {
  background-color: rgba(202,166,72,0.15);
}

#dark-mode-toggle {
  position: fixed;
  top: 5.5rem;
  left: 1.5rem;
  z-index: 999;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #1c1c1c;
  border: 2px solid var(--gold, #caa648);
  color: var(--gold, #caa648);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  padding: 0;           
}

#dark-mode-toggle:hover {
  transform: scale(1.08);
  background-color: #000;
  box-shadow: 0 0 10px rgba(202,166,72,0.5);
}

body.dark-mode #dark-mode-toggle {
  background: #f4f4f4;
  color: #000;
  border-color: var(--gold, #caa648);
}

#perfil-btn {
  position: fixed;
  top: 6.5rem; 
  right: 1.5rem;
  z-index: 999;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #1c1c1c;
  border: 2px solid var(--gold, #caa648);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#perfil-btn img {
  width: 24px;
  height: 24px;
  filter: brightness(1);
  transition: transform 0.2s ease;
}

#perfil-btn:hover {
  background-color: #000;
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(202,166,72,0.5);
}

#perfil-btn:hover img {
  transform: scale(1.1);
}

body.dark-mode #perfil-btn {
  background: #f4f4f4;
  border-color: var(--gold, #caa648);
}

body.dark-mode #perfil-btn img {
  filter: brightness(0);
}

#dark-mode-toggle,
#perfil-btn {
  background: #fff;
  border: 2px solid var(--gold, #caa648);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  background: #000;
  border-bottom: 1px solid var(--gold, #caa648);
}

header .logo img {
  height: 50px;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border: 1px solid var(--gold, #caa648);
  border-radius: 2rem;
  transition: all 0.3s ease;
}

header nav ul li a:hover {
  background: var(--gold, #caa648);
  color: #000;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold, #caa648);
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0 0 0;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--gold, #caa648);
    font-size: 1.5rem;           
    margin-top: 0.2rem;          
    cursor: pointer;
    z-index: 1000;
  }

  #main-nav {
    width: 100%;
    display: none;
    background: #000;
    border-top: 1px solid var(--gold, #caa648);
    text-align: center;
  }

  #main-nav.menu-abierto {
    display: block;
    animation: fadeDown 0.3s ease;
  }

  #main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;  
    padding: 0.5rem 0 1rem;
    gap: 0.6rem;
  }

  #main-nav ul li {
    width: 85%;
    display: flex;
    justify-content: center;
  }

  #main-nav ul li a {
    width: 100%;
    text-align: center;
    background: transparent;
    border: 1px solid var(--gold, #caa648);
    border-radius: 2rem;
    padding: 0.7rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
  }

  #main-nav ul li a:hover {
    background: var(--gold, #caa648);
    color: #000;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0 0;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;              
    height: 42px;
    background: var(--gold, #caa648);
    border: none;
    border-radius: 50%;      
    color: #000;
    font-size: 1.4rem;       
    cursor: pointer;
    margin-top: 0.5rem;       
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }

  .menu-toggle:hover {
    transform: scale(1.05);
    background: #d8b45c;
  }

  #main-nav {
    width: 100%;
    display: none;
    background: #000;
    border-top: 1px solid var(--gold, #caa648);
    text-align: center;
  }

  #main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    gap: 0.7rem;
  }

  #main-nav ul li a {
    width: 80%;
    text-align: center;
    padding: 0.6rem;
    background: transparent;
    border: 1px solid var(--gold, #caa648);
    border-radius: 2rem;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
  }
}

.perfil-page {
  max-width: 900px;
  margin: 3rem auto 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.perfil-page h1 {
  font-size: 2.2rem;
  color: var(--gold, #caa648);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 6px rgba(202,166,72,0.3);
}

.card,
.perfil-card {
  background: #1a1a1a;
  color: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card:hover,
.perfil-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.card h2,
.perfil-card h2 {
  color: var(--gold, #caa648);
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  text-align: center;
}

#perfilForm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  justify-items: center;
}

#perfilForm label {
  width: 100%;
  color: #cfcfcf;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  text-align: left;
}

#perfilForm input {
  margin-top: 0.3rem;
  padding: 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #444;
  background: #111;
  color: #fff;
  transition: all 0.2s ease;
}

#perfilForm input:focus {
  outline: none;
  border-color: var(--gold, #caa648);
  box-shadow: 0 0 6px rgba(202,166,72,0.3);
}

.actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  background: var(--gold, #caa648);
  color: #000;
  border: none;
  border-radius: 2rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #e1bf62;
  transform: translateY(-2px);
}

.btn.danger {
  background: #b14444;
  color: #fff;
}

.btn.danger:hover {
  background: #cc5a5a;
}

.card p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.card strong {
  color: var(--gold, #caa648);
}

.card .btn {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.perfil-card {
  background: linear-gradient(145deg, #1a1a1a, #101010);
  border: 1px solid rgba(202, 166, 72, 0.2);
  backdrop-filter: blur(4px);
}

.card {
  background: linear-gradient(145deg, #111, #191919);
  border: 1px solid rgba(202, 166, 72, 0.15);
}

@media (max-width: 768px) {
  #perfilForm {
    grid-template-columns: 1fr;
  }

  .perfil-page {
    padding: 0 1rem;
  }

  .card,
  .perfil-card {
    padding: 1.5rem;
  }

  .actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
  }

}

.search-panel {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-panel.abierto {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.contacto {
  text-align: center;
  padding: 80px 20px;
  background-color: #fffaf5;
}

.contacto h1 {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #3b2b2f;
}

.contacto-horario {
  margin: 0 auto 50px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 20px 30px;
  max-width: 600px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacto-horario:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.contacto-horario h3 {
  color: #7a3c23;
  margin-bottom: 10px;
}

.contacto-horario ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacto-horario li {
  margin-bottom: 6px;
  font-size: 1.05em;
  color: #333;
}

.contacto-tarjetas {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.tarjeta-contacto {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 25px 20px;
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-contacto:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.icono-contacto img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.tarjeta-contacto a {
  color: #7a3c23;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.tarjeta-contacto a:hover {
  color: #b55a3c;
}

.mapa-contacto {
  text-align: center;
  margin-top: 30px;
}

.mapa-contacto h3 {
  color: #7a3c23;
  margin-bottom: 15px;
}

.mapa-contacto iframe {
  width: 90%;
  height: 400px;
  border: none;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mapa-contacto iframe:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

@media (max-width: 900px) {
  .contacto-tarjetas {
    flex-direction: column;
    align-items: center;
  }

  .tarjeta-contacto {
    width: 90%;
    max-width: 400px;
  }

  .contacto-horario {
    width: 90%;
  }

  .mapa-contacto iframe {
    width: 95%;
    height: 350px;
  }

}

header.sticky-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

body.dark-mode .sobre-nosotros-texto p {
  color: #d4af37 !important; 
}

body.dark-mode .sobre-nosotros-texto strong {
  color: #ffd700 !important; 
}

body.dark-mode .vino-ficha {
  background-color: #000 !important;
  color: #f5f5f5 !important;
  box-shadow: none !important;
}

body.dark-mode .vino-img {
  background-color: #121212 !important;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .vino-info h1 {
  color: #d4af37 !important; 
  border-bottom: 2px solid #d4af37 !important;
}

body.dark-mode .vino-datos li {
  color: #e6e6e6 !important;
}

body.dark-mode .vino-descripcion p {
  color: #dcdcdc !important;
}

body.dark-mode .vino-precio {
  color: #ffd43b !important;
}

body.dark-mode .btn-volver {
  background-color: #d4af37 !important;
  color: #121212 !important;
  box-shadow: 0 3px 8px rgba(255, 255, 255, 0.1);
}

body.dark-mode .btn-volver:hover {
  background-color: #f5d76e !important;
  color: #000 !important;
}

body.dark-mode .btn-carrito {
  background-color: #d4af37 !important;
  color: #000 !important;
}

body.dark-mode .btn-carrito:hover {
  background-color: #fff !important;
  color: #000 !important;
  transform: scale(1.05);
}

body.dark-mode .vino-img img {
  filter: brightness(0.9) contrast(1.1);
  transition: filter 0.3s ease;
}

body.dark-mode .toast {
  background-color: #222 !important;
  color: #ffd43b !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

#whatsapp-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
}

#whatsapp-btn {
  text-decoration: none;
}

.whatsapp-inner {
  background-color: #25d366;
  border-radius: 50px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.whatsapp-inner:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.whatsapp-inner:hover .whatsapp-icon {
  transform: rotate(10deg);
}

.whatsapp-text {
  opacity: 0;
  color: white;
  font-weight: 500;
  white-space: nowrap;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.whatsapp-inner:hover .whatsapp-text {
  opacity: 1;
  transform: translateX(0);
}

body.dark-mode header {
  background-color: #fff !important;
  border-bottom: 1px solid #333;
}

body.dark-mode header a.logo img {
  filter: brightness(0.9) contrast(1.1);
}

body.dark-mode nav ul li a {
  color: #d4af37 !important; 
  border: 2px solid #d4af37 !important;
  background-color: transparent !important;
  transition: all 0.3s ease;
}

body.dark-mode nav ul li a:hover {
  background-color: #d4af37 !important;
  color: #111 !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

body.dark-mode nav ul li a.active {
  background-color: #d4af37 !important;
  color: #111 !important;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

body.dark-mode .menu-toggle {
  color: #d4af37 !important;
  border-color: #d4af37 !important;
}

.btn-detalles {
  background-color: #d4af37;
  color: #111;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-detalles:hover {
  background-color: #f5d76e;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.btn-carrito {
  background-color: #d4af37;
  color: #111;
  font-weight: bold;
  border: 2px solid #b58e1e;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-carrito:hover {
  background-color: #f5d76e;
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

body.dark-mode .btn-detalles {
  background-color: #b58e1e !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

body.dark-mode .btn-detalles:hover {
  background-color: #d4af37 !important;
  color: #111 !important;
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-carrito {
  background-color: #b58e1e !important;
  color: #fff !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

body.dark-mode .btn-carrito:hover {
  background-color: #d4af37 !important;
  color: #111 !important;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.2);
}

.carrito-contenedor {
  width: 90%;
  max-width: 1000px; 
  margin: 40px auto;
  padding: 50px;
  background-color: #fffaf0;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.carrito-contenedor:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.carrito-contenedor p {
  font-size: 1.2rem;
  color: #333;
  margin-top: 20px;
}

body.dark-mode .carrito-contenedor {
  background-color: #2b2b2b !important; 
  color: #f5f5f5 !important;
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

body.dark-mode .carrito-contenedor:hover {
  background-color: #333 !important;
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.15);
}

body.dark-mode .carrito-contenedor p {
  color: #000 !important;
}

.carrito-vacio {
  text-align: center;
  font-size: 1.1rem;
  color: #333; 
  font-weight: 500;
}

body.dark-mode .carrito-vacio {
  color: #000 !important; 
}

.boton {
  background-color: #d4af37; 
  color: #111;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  margin: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.boton:hover {
  background-color: #f5d76e;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .boton {
  background-color: #b58e1e !important; 
  color: #f5f5f5 !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

body.dark-mode .boton:hover {
  background-color: #d4af37 !important; 
  color: #111 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

.user-bar {
  background-color: #000; 
  padding: 8px 0;
  text-align: center;
  border-bottom: 1px solid #b99c5a; 
}

.btn-usuario {
  color: #f8f8f8;
  font-weight: 500;
  text-decoration: none;
  margin: 0 12px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.btn-usuario:hover {
  color: #bfa15a;
  border-color: #bfa15a;
  background-color: rgba(191,161,90,0.08);
  box-shadow: 0 0 8px rgba(191,161,90,0.3);
  transform: translateY(-1px);
}

.btn-usuario.btn-out {
  color: #ffdddd;
  border-color: #aa4444;
}
.btn-usuario.btn-out:hover {
  background-color: rgba(170,68,68,0.15);
  color: #ffbdbd;
}

.oculto {
  display: none !important;
}

@media (max-width: 768px) {
  .user-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .btn-usuario {
    margin: 4px 6px;
    padding: 8px 14px;
  }
}

.detalle-vino {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  background-color: #fff8f0;
}

.vino-contenedor {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  max-width: 1000px;
  background: #fffaf3;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 40px;
}

.vino-imagen img {
  width: 280px;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.vino-info {
  flex: 1;
  text-align: left;
  color: #2d1b00;
}

.vino-info h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  border-bottom: 2px solid #c19b3b;
  display: inline-block;
  padding-bottom: 5px;
}

.vino-info p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.vino-info .precio {
  font-size: 1.5rem;
  color: #c19b3b;
  margin-bottom: 20px;
}

.botones-vino {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-anadir {
  background-color: black;
  color: #f5d67b;
  border: none;
  font-size: 1.4rem;
  font-weight: bold;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-anadir:hover {
  background-color: #f5d67b;
  color: black;
  transform: scale(1.1);
}

.btn-volver {
  background-color: transparent;
  color: #2d1b00;
  border: 2px solid #c19b3b;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-volver:hover {
  background-color: #c19b3b;
  color: white;
}

.search-area {
  position: relative;
  display: inline-block;
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.search-toggle img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(0.9);
  transition: filter 0.3s ease;
}

.search-toggle:hover {
  transform: scale(1.1);
}

.search-toggle:hover img {
  filter: brightness(1) invert(0.6) sepia(1) saturate(8) hue-rotate(15deg);
}

.search-panel {
  position: absolute;
  top: 45px;
  right: 0;
  background-color: #111;
  border-radius: 15px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  padding: 20px;
  width: 270px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s ease;
}

.search-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-input {
  width: 100%;
  padding: 10px 15px;
  border-radius: 30px;
  border: 2px solid #c19b3b;
  background-color: #1b1b1b;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: #aaa;
}

.search-input:focus {
  box-shadow: 0 0 10px #c19b3b;
  background-color: #222;
}

.filters-row {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
  gap: 8px;
}

.filter-pill {
  background: transparent;
  border: 2px solid #c19b3b;
  color: #f5d67b;
  border-radius: 30px;
  padding: 8px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-pill:hover {
  background-color: #c19b3b;
  color: #111;
  transform: scale(1.05);
}

.filter-pill.activo {
  background-color: #c19b3b;
  color: #111;
}

.price-filter {
  width: 100%;
  margin-top: 15px;
  padding: 8px 12px;
  border-radius: 30px;
  border: 2px solid #c19b3b;
  background-color: #1b1b1b;
  color: #f5d67b;
  font-weight: bold;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.price-filter:hover {
  background-color: #222;
}

.price-filter:focus {
  outline: none;
  box-shadow: 0 0 8px #c19b3b;
}

.price-filter {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23c19b3b'%3E%3Cpath d='M6 8L0 0h12L6 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 35px;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-panel {
  position: absolute;
  top: 45px;
  right: 0;
  background-color: #111;
  border-radius: 15px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  padding: 20px;
  width: 270px;
  z-index: 9999; 
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s ease;
}

/* ================================================
   🔍 PANEL DE BÚSQUEDA Y FILTROS - VID DORADA
   ================================================ */

/* Contenedor principal de la lupa */
.search-area {
  position: relative;
  display: inline-block;
}

/* Botón de la lupa */
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.search-toggle img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(0.9);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.search-toggle:hover img {
  filter: brightness(1) invert(0.6) sepia(1) saturate(8) hue-rotate(15deg);
  transform: scale(1.1);
}

/* Panel flotante */
.search-panel {
  position: absolute;
  top: 45px;
  right: 0;
  background-color: #111;
  border-radius: 14px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  padding: 20px;
  width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: all 0.4s ease;
  z-index: 9999;
}

/* Estado visible del panel */
.search-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Campo de búsqueda */
.search-input {
  width: 100%;
  padding: 10px 15px;
  border-radius: 30px;
  border: 2px solid #c19b3b;
  background-color: #1b1b1b;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: #aaa;
}

.search-input:focus {
  background-color: #222;
  box-shadow: 0 0 8px #c19b3b;
}

/* Botones de filtro */
.filters-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
}

.filter-pill {
  background: transparent;
  border: 2px solid #c19b3b;
  color: #f5d67b;
  border-radius: 30px;
  padding: 8px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.filter-pill:hover {
  background-color: #c19b3b;
  color: #111;
  transform: scale(1.05);
}

.filter-pill.activo {
  background-color: #c19b3b;
  color: #111;
  box-shadow: 0 0 8px rgba(193, 155, 59, 0.6);
}

/* Selector de precios */
.price-filter {
  width: 100%;
  margin-top: 15px;
  padding: 8px 12px;
  border-radius: 30px;
  border: 2px solid #c19b3b;
  background-color: #1b1b1b;
  color: #f5d67b;
  font-weight: bold;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Icono dorado personalizado para el select */
.price-filter {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23c19b3b'%3E%3Cpath d='M6 8L0 0h12L6 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 35px;
}

.price-filter:hover {
  background-color: #222;
  box-shadow: 0 0 8px rgba(193, 155, 59, 0.4);
}

.price-filter:focus {
  outline: none;
  box-shadow: 0 0 10px #c19b3b;
}

/* Sin resultados */
.no-results {
  text-align: center;
  margin-top: 25px;
  font-weight: bold;
  color: #c19b3b;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.no-results.visible {
  opacity: 1;
}

.no-results.oculto {
  opacity: 0;
}

/* Animación suave al abrir */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-panel.active {
  animation: slideDown 0.3s ease;
}

/* --- Parche anti-overlay para la lupa y su panel --- */
.vinos-topbar,
.search-area {
  position: relative;
  isolation: isolate; /* crea stacking context propio */
}

.search-area,
.search-toggle {
  pointer-events: auto !important;
  z-index: 2147483646; /* muy arriba */
}

.search-toggle img {
  pointer-events: none; /* que el click llegue al botón, no a la imagen */
}

.search-panel {
  position: absolute;
  top: 45px;
  right: 0;
  z-index: 2147483647 !important; /* por encima de todo */
}

/* Si algún pseudo-elemento estuviera de “cortina”, lo anulamos: */
.vinos-topbar::before,
.vinos-topbar::after,
header::before,
header::after {
  pointer-events: none !important;
}

/* Por si algún contenedor global tuviera pointer-events que bloquean */
body * {
  pointer-events: auto;
}

/* --- Botón "Ver detalles" --- */
.btn-detalles {
  background-color: #d4af37; /* dorado elegante */
  color: #000; /* texto negro visible */
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-detalles:hover {
  background-color: #c19a2b; /* dorado más oscuro */
  color: #000; /* mantiene el negro */
  transform: translateY(-2px);
}

/* --- Botón circular con "+" (añadir al carrito) --- */
.btn-carrito {
  background-color: #d4af37;
  border: 2px solid #b38c1e;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-carrito:hover {
  background-color: #c19a2b;
  color: #000;
  transform: scale(1.1);
}

/* --- Contenedor de los botones --- */
.vino-botones {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

/* 🔍 Contenedor general de la lupa */
.search-area {
  position: relative;
  z-index: 2000;
}

/* 🟡 Botón de la lupa */
.search-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.search-toggle img {
  width: 28px;
  height: 28px;
}
.search-toggle:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.7));
}

/* 🎚️ Panel lateral del buscador */
.search-panel {
  position: absolute;
  top: 60px;
  right: 0;
  width: 230px;
  background: linear-gradient(160deg, #0e0e0e, #1b1b1b, #0e0e0e);
  background-size: 300% 300%;
  animation: fondoDorado 6s ease infinite;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s ease;
}

/* 🟢 Cuando el panel está activo (mostrar) */
.search-panel.activo {
  transform: translateX(0);
  opacity: 1;
}

/* ✨ Efecto de fondo con movimiento sutil */
@keyframes fondoDorado {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 🔠 Campo de búsqueda */
.search-input {
  width: 100%;
  padding: 8px 10px;
  background-color: #1b1b1b;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 15px;
  box-shadow: inset 0 0 8px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}
.search-input:focus {
  outline: none;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

/* ⚪ Filtros (botones) */
.filters-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}
.filter-pill {
  background-color: transparent;
  color: #d4af37;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 20px;
  padding: 8px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-pill:hover {
  background: rgba(212, 175, 55, 0.15); /* fondo sutil dorado translúcido */
  color: #d4af37; /* mantiene el dorado en el texto */
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
  transform: scale(1.05);
}

/* 🟡 Estado activo */
.filter-pill.activo {
  background-color: #d4af37;
  color: #000; /* texto negro sobre fondo dorado sólido */
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* 💰 Selector de precio */
.price-filter {
  width: 100%;
  padding: 8px 10px;
  background-color: #1b1b1b;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 6px;
  color: #d4af37;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.price-filter:hover {
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  background-color: #222;
}

/* --- Ajustes globales --- */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-fondo);
  transition: background-color 0.4s ease;
}

/* Mantener el contenido centrado */
section.carrito-vacio {
  flex: 1; /* ocupa todo el espacio entre header y footer */
}

/* --- Fondo adaptable según modo --- */
:root {
  --color-fondo: #f8f6f2; /* tono crema claro */
  --color-texto: #000;
  --color-dorado: #b89128;
  --color-dorado-claro: #d4af37;
  --color-cuadro: #ffffff;
  --color-sombra: rgba(184, 145, 40, 0.4);
}

/* 🌙 Modo oscuro (añadiendo clase body.modo-oscuro) */
body.modo-oscuro {
  --color-fondo: #0000;
  --color-texto: #fff;
  --color-cuadro: rgba(255, 255, 255, 0.05);
  --color-sombra: rgba(212, 175, 55, 0.3);
}

/* --- Estilo del carrito --- */
.carrito-vacio {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background: var(--color-fondo);
  transition: background 0.4s ease;
}

.carrito-contenido {
  background: var(--color-cuadro);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 0 25px var(--color-sombra);
  max-width: 480px;
  text-align: center;
  transition: all 0.3s ease;
}

.carrito-contenido:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 40px var(--color-sombra);
}

.carrito-icono img {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
  animation: latido 2s infinite ease-in-out;
}

@keyframes latido {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.carrito-titulo {
  color: var(--color-dorado-claro);
  font-size: 2em;
  margin-bottom: 10px;
}

.carrito-mensaje {
  color: var(--color-texto);
  font-size: 1.05em;
  margin-bottom: 25px;
  opacity: 0.9;
}

.btn-explorar {
  background: linear-gradient(145deg, var(--color-dorado-claro), var(--color-dorado));
  color: #000;
  border: none;
  border-radius: 25px;
  padding: 10px 25px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px var(--color-sombra);
}

.btn-explorar:hover {
  background: #000;
  color: var(--color-dorado-claro);
  box-shadow: 0 0 15px var(--color-sombra);
  transform: scale(1.05);
}

/* 🍇 Fondo decorativo elegante para Vid Dorada */
.carrito-vacio {
  position: relative;
  background: var(--color-fondo);
  overflow: hidden;
}

.carrito-vacio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/fondo-uvas-dorado.png") center/cover no-repeat;
  opacity: 0.18; /* un poco más de color */
  pointer-events: none;
  z-index: 0;
}

/* Asegura que el contenido esté encima */
.carrito-contenido {
  position: relative;
  z-index: 1;
}

/* 🌙 Versión para modo oscuro */
body.modo-oscuro .carrito-vacio::before {
  background: url("img/fondo-uvas-dorado.png") center/cover no-repeat;
  opacity: 0.22;
  filter: brightness(0.6);
}

/* 🍇 Fondo decorativo Vid Dorada */
.fondo-uvas {
  position: relative;
  overflow: hidden;
  background: var(--color-fondo);
}

.fondo-uvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/fondo-uvas-dorado.png") center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.carrito-contenido {
  position: relative;
  z-index: 1;
}

body.dark-mode .fondo-uvas::before {
  opacity: 0.25;
  filter: brightness(0.6);
}

/* 🍇 Fondo decorativo Vid Dorada */
.fondo-uvas {
  position: relative;
  overflow: hidden;
  background: var(--color-fondo);
}

.fondo-uvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/fondo-uvas-dorado.png") center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.carrito-contenido {
  position: relative;
  z-index: 1;
}

/* 🌙 Modo oscuro: fondo negro con uvas blancas */
body.dark-mode .fondo-uvas {
  background-color: #000; /* negro puro */
}

body.dark-mode .fondo-uvas::before {
  opacity: 0.25;
  filter: brightness(4) invert(1) grayscale(1); /* convierte dorado → blanco */
}

/* 🍇 Fondo con cambio automático según modo */
.fondo-uvas {
  position: relative;
  overflow: hidden;
  background-color: var(--color-fondo);
}

.fondo-uvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/fondo-uvas-dorado.png") center/cover no-repeat; /* 🔸 Mismo tamaño y escala */
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease, background-image 0.4s ease;
}

.carrito-contenido {
  position: relative;
  z-index: 1;
}

/* 🌙 En modo oscuro: solo cambia la imagen, sin alterar tamaño */
body.dark-mode .fondo-uvas {
  background-color: #000;
}

body.dark-mode .fondo-uvas::before {
  background: url("img/fondo-uvas-dorado-oscuro.png") center/cover no-repeat; /* 🔸 Misma escala */
  opacity: 0.25;
}

.oculto {
  display: none !important;
}

/* ===== MEJORA VISIBILIDAD EN MODO OSCURO ===== */
body.dark-mode .item-carrito,
body.dark-mode .total,
body.dark-mode .btn-finalizar {
  background: rgba(0, 0, 0, 0.6);
  color: #f4d47c; /* dorado claro para el texto */
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  backdrop-filter: blur(3px);
}

body.dark-mode .item-info .item-nombre,
body.dark-mode .item-precio {
  color: #f4d47c;
}

body.dark-mode .btn-finalizar {
  border: 1px solid #f4d47c;
  background: linear-gradient(180deg, #2c2c2c, #1a1a1a);
  color: #f4d47c;
  font-weight: 600;
  transition: all 0.3s ease;
}

body.dark-mode .btn-finalizar:hover {
  background: #f4d47c;
  color: #000;
  box-shadow: 0 0 10px #f4d47c;
}

body.dark-mode .btn-cantidad,
body.dark-mode .btn-eliminar {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid #f4d47c;
  color: #f4d47c;
  transition: all 0.3s ease;
}

body.dark-mode .btn-cantidad:hover,
body.dark-mode .btn-eliminar:hover {
  background: #f4d47c;
  color: #000;
}

/* ===== CONTENEDOR PRINCIPAL DEL CARRITO ===== */
.carrito-container {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  margin: 60px auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
}

/* ===== ELEMENTOS INTERNOS ===== */
.item-carrito {
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  color: #222;
}

.item-info .item-nombre {
  font-weight: bold;
  color: #3b2b00;
}

.item-precio {
  font-size: 0.95rem;
  color: #3b2b00;
}

/* ===== BOTONES ===== */
.btn-finalizar {
  background: linear-gradient(180deg, #1a1a1a, #000);
  color: #f4d47c;
  font-weight: 600;
  border-radius: 30px;
  padding: 10px 25px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 20px auto 0;
}

.btn-finalizar:hover {
  background: #f4d47c;
  color: #000;
  box-shadow: 0 0 10px #f4d47c;
}

/* ===== MODO OSCURO ===== */
body.dark-mode .carrito-container {
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

body.dark-mode .item-carrito,
body.dark-mode .item-info .item-nombre,
body.dark-mode .item-precio,
body.dark-mode .total {
  color: #f4d47c;
}

body.dark-mode .btn-finalizar {
  border: 1px solid #f4d47c;
}
/* ===== AJUSTE: cuando el carrito vacío está dentro del contenedor ===== */
.carrito-container .carrito-contenido {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  margin: 0;
}

.carrito-container .carrito-icono img {
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3));
}

.carrito-container .btn-explorar {
  margin-top: 15px;
}

/* Pequeña animación de aparición */
.carrito-container {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


/* ===== CONTENEDOR DEL CARRITO (CORREGIDO PARA MODO OSCURO) ===== */
.carrito-container {
  background: rgba(255, 255, 255, 0.85); /* Mismo fondo translúcido siempre */
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  margin: 60px auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
}

/* 🔸 Quitar cambio de color en modo oscuro */
body.dark-mode .carrito-container {
  background: rgba(255, 255, 255, 0.85); /* No cambia */
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); /* Un toque de brillo dorado */
}

/* Mantiene texto y botones legibles */
body.dark-mode .carrito-titulo,
body.dark-mode .carrito-mensaje,
body.dark-mode .btn-explorar {
  color: #000 !important;
}

/* ===== PRODUCTOS DENTRO DEL CARRITO ===== */
.item-carrito {
  background: rgba(245, 245, 245, 0.9);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  color: #2b2b2b;
}

.item-info .item-nombre {
  font-weight: 600;
  color: #3a2d00;
}

.item-precio {
  color: #4b3a00;
}

/* ===== BOTONES DE CANTIDAD Y ELIMINAR ===== */
.btn-cantidad,
.btn-eliminar {
  background: #d4af37; /* Dorado más vivo */
  border: none;
  color: #000;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  margin: 0 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-cantidad:hover,
.btn-eliminar:hover {
  background: #000;
  color: #f4d47c;
}

/* ===== TOTAL Y BOTÓN FINALIZAR ===== */
.total {
  font-weight: 700;
  text-align: right;
  margin-top: 10px;
  color: #3a2d00;
}

.btn-finalizar {
  background: linear-gradient(180deg, #000, #2b2b2b);
  color: #f4d47c;
  font-weight: 600;
  border-radius: 30px;
  padding: 10px 25px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 20px auto 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.btn-finalizar:hover {
  background: #f4d47c;
  color: #000;
  box-shadow: 0 0 12px #f4d47c;
}

/* ===== MODO OSCURO AJUSTADO ===== */
body.dark-mode .item-carrito {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #f4d47c;
}

body.dark-mode .item-nombre,
body.dark-mode .item-precio,
body.dark-mode .total {
  color: #f4d47c;
}

body.dark-mode .btn-cantidad,
body.dark-mode .btn-eliminar {
  background: transparent;
  border: 1px solid #f4d47c;
  color: #f4d47c;
}

body.dark-mode .btn-cantidad:hover,
body.dark-mode .btn-eliminar:hover {
  background: #f4d47c;
  color: #000;
}

/* ===== ELIMINAR EL FONDO GRIS DEL TOTAL ===== */
.total {
  background: transparent !important; /* elimina el fondo gris */
  color: #3a2d00 !important; /* color texto (marrón oscuro) */
  border: none !important;
  box-shadow: none !important;
  font-weight: 700;
  text-align: right;
  margin-top: 15px;
  padding: 0 !important;
}

/* Versión modo oscuro */
body.dark-mode .total {
  background: transparent !important;
  color: #f4d47c !important; /* dorado */
}

/* 🧹 Eliminar cualquier fondo del total y su contenedor */
.total,
.total * {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Si su contenedor crea el fondo (div padre) */
#carrito > div:last-child {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 10px 0 0 0 !important;
}

/* Estilo limpio del texto */
.total {
  color: #3a2d00 !important; /* marrón oscuro en claro */
  text-align: right;
  font-weight: 700;
}

/* En modo oscuro */
body.dark-mode .total {
  color: #f4d47c !important; /* dorado brillante */
}

/* 🎨 Igualar color del fondo del total al contenedor */
.total {
  background-color: rgba(255, 255, 255, 0.85) !important; /* mismo tono del contenedor */
  color: #3a2d00 !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 700;
  text-align: right;
  border-radius: 12px;
  padding: 8px 12px;
  margin-top: 10px;
}

/* 🌙 En modo oscuro */
body.dark-mode .total {
  background-color: rgba(0, 0, 0, 0.7) !important; /* mismo tono oscuro del contenedor */
  color: #f4d47c !important; /* dorado */
}

/* Contenedor fijo para las imágenes */
#sugerencias .producto .imagen-botella {
  width: 100%;
  height: 260px; /* tamaño uniforme */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imágenes dentro del contenedor */
#sugerencias .producto .imagen-botella img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* === Tamaño uniforme de las botellas === */
.vinos-grid .vino .imagen-botella {
  width: 100%;
  height: 260px; /* ajusta entre 240–280px según el efecto visual que prefieras */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.vinos-grid .vino .imagen-botella img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.vinos-grid .vino .imagen-botella {
  width: 100%;
  height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

/* Ajuste visual uniforme */
.vinos-grid .vino .imagen-botella img {
  height: 95%;
  width: auto;
  object-fit: contain;
  display: block;
  max-width: 180px; /* Evita que las botellas anchas se vean más grandes */
}

/* =============================== */
/* PERFIL ELEGANTE PREMIUM - VID DORADA */
/* =============================== */

body.perfil-page, .perfil-container {
 background: #ffffff;
  color: #f3e8c4;
  padding: 60px 20px;
  font-family: 'Poppins', sans-serif;
}

.perfil-titulo {
  text-align: center;
  font-size: 2.2em;
  color: #d4af37;
  margin-bottom: 40px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  margin: 30px auto;
  max-width: 700px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
}

.avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #d4af37;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.avatar-info h2 {
  margin: 0;
  font-size: 1.4em;
  color: #fff;
}

.avatar-info p {
  margin: 5px 0 0;
  color: #cfcfcf;
  font-size: 0.95em;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #d4af37;
}

.form-group input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  transition: border 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

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

.btn-gold {
  background: linear-gradient(90deg, #b89124, #e6c657);
  color: #1a1a1a;
  padding: 10px 22px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background: linear-gradient(90deg, #e6c657, #b89124);
  box-shadow: 0 0 15px rgba(230, 198, 87, 0.6);
}

.btn-outline {
  background: transparent;
  border: 1px solid #d4af37;
  color: #d4af37;
  padding: 10px 22px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #d4af37;
  color: #1a1a1a;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.link-gold {
  color: #e6c657;
  text-decoration: none;
  transition: color 0.3s;
}

.link-gold:hover {
  color: #fff;
}

.link-danger {
  color: #ff6b6b;
  text-decoration: none;
}

.link-danger:hover {
  text-decoration: underline;
}

.extra-links {
  text-align: center;
  margin-top: 15px;
}

.puntos-card, .historial-card {
  text-align: center;
}

#historialCompras {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

#historialCompras li {
  background: rgba(255, 255, 255, 0.05);
  margin: 8px 0;
  padding: 10px;
  border-radius: 10px;
  color: #e0e0e0;
  border-left: 3px solid #d4af37;
  transition: background 0.3s;
}

#historialCompras li:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* =============================== */
/* MODO CLARO MEJORADO - VID DORADA */
/* =============================== */

body.light-mode,
.light-mode .perfil-container {
  background: #ffffff;
  color: #1a1a1a;
}

/* Tarjetas */
.light-mode .glass-card {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
}

/* Encabezados */
.light-mode .perfil-titulo {
  color: #b89124;
  text-shadow: none;
}

/* Texto dentro de tarjetas */
.light-mode .glass-card h2 {
  color: #b89124;
}

.light-mode .glass-card p,
.light-mode .glass-card strong,
.light-mode #historialCompras li {
  color: #333;
}

/* Campos del formulario */
.light-mode .form-group label {
  color: #b89124;
  font-weight: 600;
}

.light-mode .form-group input {
  background: #f8f8f8;
  border: 1px solid #ccc;
  color: #1a1a1a;
}

.light-mode .form-group input:focus {
  border-color: #b89124;
  box-shadow: 0 0 6px rgba(184, 145, 36, 0.3);
}

/* Botones */
.light-mode .btn-gold {
  background: linear-gradient(90deg, #d4af37, #f5d878);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.light-mode .btn-gold:hover {
  background: linear-gradient(90deg, #f5d878, #d4af37);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.light-mode .btn-outline {
  border-color: #b89124;
  color: #b89124;
}

.light-mode .btn-outline:hover {
  background: #b89124;
  color: #fff;
}

/* Enlaces */
.light-mode .link-gold {
  color: #b89124;
}

.light-mode .link-gold:hover {
  color: #000;
}

.light-mode .link-danger {
  color: #b94b4b;
}

/* Historial de compras */
.light-mode #historialCompras li {
  background: #fff;
  border-left: 3px solid #d4af37;
  color: #333;
}

.light-mode #historialCompras li:hover {
  background: #faf7ec;
}

/* Avatar */
.light-mode .avatar-img {
  border-color: #b89124;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.light-mode .avatar-info h2 {
  color: #000;
}

.light-mode .avatar-info p {
  color: #444;
}

/* =============================== */
/* MODO CLARO Y OSCURO - VID DORADA */
/* =============================== */

/* ---------- BOTÓN DE CAMBIO ---------- */
#dark-mode-toggle {
  position: fixed;
  top: 90px;
  right: 20px;
  background: #d4af37;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.2em;
  color: #1a1a1a;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}

#dark-mode-toggle:hover {
  background: #e6c657;
  box-shadow: 0 0 15px rgba(212,175,55,0.4);
}

/* ===========================
   🌞 MODO CLARO (por defecto)
   =========================== */
body {
  background: #ffffff;
  color: #1a1a1a;
  transition: all 0.4s ease;
}

.perfil-container {
  background: none;
}

/* Tarjetas */
.glass-card {
  background: #ffffff;
  border: 1px solid rgba(212,175,55,0.4);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  color: #1a1a1a;
}

/* Texto */
.perfil-titulo {
  color: #b89124;
  text-shadow: none;
}

/* Formulario */
.form-group label {
  color: #b89124;
  font-weight: 600;
}
.form-group input {
  background: #f8f8f8;
  border: 1px solid #ccc;
  color: #1a1a1a;
}
.form-group input:focus {
  border-color: #b89124;
  box-shadow: 0 0 6px rgba(184,145,36,0.3);
}

/* Botones */
.btn-gold {
  background: linear-gradient(90deg, #d4af37, #f5d878);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn-gold:hover {
  background: linear-gradient(90deg, #f5d878, #d4af37);
  box-shadow: 0 0 10px rgba(212,175,55,0.5);
}

.btn-outline {
  border: 1px solid #b89124;
  color: #b89124;
}
.btn-outline:hover {
  background: #b89124;
  color: #fff;
}

/* Enlaces */
.link-gold {
  color: #b89124;
}
.link-gold:hover {
  color: #000;
}
.link-danger {
  color: #c04b4b;
}
.link-danger:hover {
  text-decoration: underline;
}

/* Historial */
#historialCompras li {
  background: #fff;
  border-left: 3px solid #d4af37;
  color: #333;
  transition: background 0.3s;
}
#historialCompras li:hover {
  background: #faf7ec;
}

/* Avatar */
.avatar-img {
  border-color: #b89124;
  box-shadow: 0 0 10px rgba(212,175,55,0.4);
}
.avatar-info h2 {
  color: #000;
}
.avatar-info p {
  color: #444;
}

/* ===========================
   🌙 MODO OSCURO
   =========================== */
body.dark-mode {
  background: linear-gradient(145deg, #0d0d0d 0%, #1a1a1a 70%);
  color: #f3e8c4;
}

/* Tarjetas */
body.dark-mode .glass-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.25);
  color: #f3e8c4;
  box-shadow: 0 0 20px rgba(212,175,55,0.1);
}

/* Títulos */
body.dark-mode .perfil-titulo {
  color: #d4af37;
  text-shadow: 0 0 10px rgba(212,175,55,0.3);
}

/* Formularios */
body.dark-mode .form-group label {
  color: #d4af37;
}
body.dark-mode .form-group input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212,175,55,0.3);
  color: #fff;
}
body.dark-mode .form-group input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 10px rgba(212,175,55,0.3);
}

/* Botones */
body.dark-mode .btn-gold {
  background: linear-gradient(90deg, #b89124, #e6c657);
  color: #1a1a1a;
}
body.dark-mode .btn-gold:hover {
  background: linear-gradient(90deg, #e6c657, #b89124);
  box-shadow: 0 0 15px rgba(230,198,87,0.6);
}
body.dark-mode .btn-outline {
  background: transparent;
  border: 1px solid #d4af37;
  color: #d4af37;
}
body.dark-mode .btn-outline:hover {
  background: #d4af37;
  color: #1a1a1a;
}

/* Enlaces */
body.dark-mode .link-gold {
  color: #e6c657;
}
body.dark-mode .link-gold:hover {
  color: #fff;
}
body.dark-mode .link-danger {
  color: #ff6b6b;
}

/* Historial */
body.dark-mode #historialCompras li {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid #d4af37;
  color: #e0e0e0;
}
body.dark-mode #historialCompras li:hover {
  background: rgba(255,255,255,0.1);
}
/* =============================== */
/* MEJORA VISUAL PERFIL VID DORADA */
/* =============================== */

/* Tarjeta principal más amplia */
.glass-card {
  max-width: 850px;
  padding: 40px;
  border-radius: 20px;
  transition: all 0.4s ease;
}

/* Avatar más visible */
.avatar-section {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 20px;
}

.avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #d4af37;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.avatar-info h2 {
  font-size: 1.6em;
  color: inherit;
}

.avatar-info p {
  color: #777;
  font-size: 0.95em;
}

/* Campos más amplios */
.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 1em;
}

/* Acciones con botones destacados */
.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 25px;
}

/* =============================== */
/* BOTONES MEJORADOS VID DORADA */
/* =============================== */

/* Botón dorado principal */
.btn-gold {
  background: linear-gradient(180deg, #f5d878 0%, #d4af37 100%);
  color: #1a1a1a;
  padding: 14px 30px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
  transition: all 0.25s ease;
}

.btn-gold:hover {
  background: linear-gradient(180deg, #ffe06a 0%, #c79c1b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(212, 175, 55, 0.6);
}

.btn-gold:active {
  transform: translateY(1px);
  box-shadow: 0 3px 6px rgba(212, 175, 55, 0.4);
}

/* Botón contorno (Cerrar sesión) */
.btn-outline {
  background: transparent;
  border: 2px solid #e6c657;
  color: #e6c657;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(230, 198, 87, 0.15);
}

.btn-outline:hover {
  background: linear-gradient(180deg, #e6c657 0%, #b89124 100%);
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(230, 198, 87, 0.4);
}

.btn-outline:active {
  transform: translateY(1px);
  box-shadow: 0 3px 6px rgba(230, 198, 87, 0.3);
}

/* Animación sutil al pasar el ratón */
.btn-gold:hover::after,
.btn-outline:hover::after {
  opacity: 1;
  transform: scale(1.05);
}

/* Enlaces */
.extra-links {
  text-align: center;
  margin-top: 15px;
}

.link-gold {
  color: #b89124;
  font-weight: 600;
  transition: color 0.3s ease;
}

.link-gold:hover {
  color: #000;
}

.link-danger {
  color: #c44b4b;
  font-weight: 600;
  transition: color 0.3s ease;
}

.link-danger:hover {
  color: #ff0000;
}

/* ===============================
   🌞 MODO CLARO
   =============================== */
body:not(.dark-mode) .glass-card {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  color: #1a1a1a;
}

body:not(.dark-mode) .form-group input {
  background: #f8f8f8;
  border: 1px solid #ccc;
  color: #1a1a1a;
}

body:not(.dark-mode) .form-group input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* ===============================
   🌙 MODO OSCURO
   =============================== */
body.dark-mode .glass-card {
  background: #1b1b1b;
  border: 1px solid rgba(212,175,55,0.3);
  box-shadow: 0 0 25px rgba(212,175,55,0.1);
  color: #f3e8c4;
}

body.dark-mode .btn-gold {
  background: linear-gradient(135deg, #b89124, #e6c657);
  color: #1a1a1a;
}

body.dark-mode .btn-gold:hover {
  background: linear-gradient(135deg, #e6c657, #b89124);
  box-shadow: 0 0 15px rgba(230,198,87,0.6);
}

body.dark-mode .btn-outline {
  border-color: #d4af37;
  color: #d4af37;
}

body.dark-mode .btn-outline:hover {
  background: #d4af37;
  color: #1a1a1a;
}

/* Mejor visibilidad de textos en modo oscuro */
body.dark-mode .form-group input {
  background: #2a2a2a;
  border: 1px solid #555;
  color: #f3e8c4;
}

body.dark-mode .avatar-info p {
  color: #cfcfcf;
}

/* =============================== */
/* ENLACES DE ACCIÓN - PERFIL */
/* =============================== */

.extra-links {
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.extra-links a {
  text-decoration: none;
  transition: all 0.25s ease;
  font-weight: 600;
}

/* Enlace dorado */
.link-gold {
  color: #e6c657;
  padding: 4px 6px;
  border-radius: 6px;
}

.link-gold:hover {
  color: #1a1a1a;
  background: #e6c657;
  box-shadow: 0 0 8px rgba(230, 198, 87, 0.6);
  transform: scale(1.05);
}

/* Enlace peligro (eliminar cuenta) */
.link-danger {
  color: #e85656;
  padding: 4px 6px;
  border-radius: 6px;
}

.link-danger:hover {
  color: #fff;
  background: #e85656;
  box-shadow: 0 0 8px rgba(232, 86, 86, 0.5);
  transform: scale(1.05);
}

/* Separador entre enlaces */
.extra-links span {
  color: #aaa;
  margin: 0 5px;
}

/* =============================== */
/* ENLACES DE ACCIÓN - PERFIL (alineados en línea) */
/* =============================== */

.extra-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px; /* Espaciado entre los enlaces */
  margin-top: 25px;
  font-size: 1rem;
  letter-spacing: 0.2px;
  flex-wrap: wrap;
}

.extra-links a {
  text-decoration: none;
  transition: all 0.25s ease;
  font-weight: 600;
}

/* Enlace dorado */
.link-gold {
  color: #e6c657;
  padding: 4px 6px;
  border-radius: 6px;
}

.link-gold:hover {
  color: #1a1a1a;
  background: #e6c657;
  box-shadow: 0 0 8px rgba(230, 198, 87, 0.6);
  transform: scale(1.05);
}

/* Enlace peligro (eliminar cuenta) */
.link-danger {
  color: #e85656;
  padding: 4px 6px;
  border-radius: 6px;
}

.link-danger:hover {
  color: #fff;
  background: #e85656;
  box-shadow: 0 0 8px rgba(232, 86, 86, 0.5);
  transform: scale(1.05);
}

/* Separador visual opcional */
.extra-links::before {
  content: "•";
  color: transparent;
}

/* Forzar enlaces de "Cambiar contraseña / Eliminar cuenta" en línea */
.perfil-card .extra-links {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.perfil-card .extra-links a,
.perfil-card .extra-links span {
  display: inline-block !important;
  text-align: center;
  white-space: nowrap; /* para que no se rompa en 2 líneas si cabe */
}

/* =============================== */
/* FIX FINAL - ENLACES PERFIL EN UNA LÍNEA */
/* =============================== */

.perfil-card form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.perfil-card .extra-links {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: nowrap;
  width: auto;
  text-align: center;
}

.perfil-card .extra-links a,
.perfil-card .extra-links span {
  display: inline !important;
  vertical-align: middle;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
}
/* =============================== */
/* CENTRADO Y ALINEACIÓN PERFIL */
/* =============================== */

.perfil-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  padding: 40px 20px;
}

/* Tarjeta principal */
.perfil-card {
  width: 100%;
  max-width: 750px; /* más ancha y proporcionada */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* Formulario dentro del perfil */
.perfil-card form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ajuste para los campos dentro del formulario */
.perfil-card .form-group {
  width: 100%;
  max-width: 600px;
  margin-bottom: 18px;
}

/* Botones y enlaces centrados */
.perfil-card .actions {
  justify-content: center;
  width: 100%;
}

.perfil-card .extra-links {
  justify-content: center;
  text-align: center;
  width: 100%;
}

/* Un poco más de aire debajo de la tarjeta */
.glass-card {
  margin: 0 auto;
}

/* ====================================== */
/* FIX CAMPOS PERFIL: FORMULARIO CENTRADO */
/* ====================================== */

/* Asegura que los inputs estén uno debajo del otro */
.perfil-card form {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  gap: 18px; /* espacio entre campos */
}

/* Cada grupo de formulario ocupa todo el ancho */
.perfil-card .form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Ajusta los inputs */
.perfil-card .form-group input {
  width: 100%;
  max-width: 100%;
}

/* Evita interferencias de grillas viejas */
.perfil-card label,
.perfil-card .form-group label {
  display: block !important;
  width: 100%;
  margin-bottom: 6px;
}

/* =============================== */
/* BOTÓN DORADO - TEXTO LEGIBLE */
/* =============================== */

.btn-gold {
  background: linear-gradient(180deg, #f6d55c 0%, #d4af37 100%);
  color: #1a1a1a; /* texto oscuro, alto contraste */
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
  padding: 12px 26px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background: linear-gradient(180deg, #ffe270 0%, #d4af37 100%);
  color: #000; /* aún más oscuro al pasar el ratón */
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
}

.btn-gold:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(212, 175, 55, 0.5);
}

/* =============================== */
/* MEJORA VISIBILIDAD TEXTO EN MODO OSCURO */
/* =============================== */

/* En modo oscuro, el texto del botón dorado será blanco */
body.dark-mode .btn-gold {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

body.dark-mode .btn-gold:hover {
  color: #fff !important;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
}

/* ======================================== */
/* BARRA DE USUARIO - DISEÑO DEFINITIVO VID DORADA */
/* ======================================== */

.user-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 40px 0;
  flex-wrap: wrap;
}

/* ===== ESTILO BASE ===== */
.btn-usuario,
.btn-usuario:visited {
  display: inline-block;
  background: linear-gradient(180deg, #f6d55c 0%, #d4af37 100%);
  color: #111 !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 34px;
  border: none;
  border-radius: 30px;
  text-decoration: none !important;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.35),
              inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease-in-out;
}

/* Hover dorado brillante */
.btn-usuario:hover {
  background: linear-gradient(180deg, #ffe270 0%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5),
              inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* Click suave */
.btn-usuario:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
}

/* ===== BOTÓN SALIR ===== */
.btn-out {
  background: linear-gradient(180deg, #e96a6a 0%, #b74141 100%);
  color: #fff !important;
  box-shadow: 0 6px 15px rgba(185, 65, 65, 0.4),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-out:hover {
  background: linear-gradient(180deg, #ff7878 0%, #b13d3d 100%);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.55),
              inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ===== MODO OSCURO ===== */
body.dark-mode .btn-usuario {
  background: linear-gradient(180deg, #b89124 0%, #e6c657 100%);
  color: #fff !important;
  box-shadow: 0 6px 15px rgba(230, 198, 87, 0.3),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

body.dark-mode .btn-usuario:hover {
  background: linear-gradient(180deg, #e6c657 0%, #b89124 100%);
  box-shadow: 0 8px 20px rgba(230, 198, 87, 0.45),
              inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* Botón Salir en modo oscuro */
body.dark-mode .btn-out {
  background: linear-gradient(180deg, #d9534f 0%, #a8322e 100%);
  box-shadow: 0 6px 15px rgba(217, 83, 79, 0.35),
              inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-out:hover {
  background: linear-gradient(180deg, #ff6b6b 0%, #a8322e 100%);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.45),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* ===== RESPONSIVIDAD ===== */
@media (max-width: 600px) {
  .user-bar {
    flex-direction: column;
    gap: 14px;
  }

  .btn-usuario {
    width: 85%;
  }
}

/* ======================================== */
/* BARRA DE USUARIO VID DORADA - DEFINITIVO */
/* ======================================== */

.user-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 40px 0;
  flex-wrap: wrap;
}

/* ===== ESTILO BASE ===== */
.btn-usuario {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #f6d55c 0%, #d4af37 100%);
  color: #111 !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 34px;
  border: none;
  border-radius: 30px;
  text-decoration: none !important;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  min-width: 160px;
  box-shadow: 0 6px 12px rgba(212, 175, 55, 0.35),
              inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease-in-out;
}

.btn-usuario:hover {
  background: linear-gradient(180deg, #ffe270 0%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5),
              inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-usuario:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
}

/* ===== BOTÓN SALIR ===== */
.btn-out {
  background: linear-gradient(180deg, #d95959 0%, #b43b3b 100%);
  color: #fff !important;
  box-shadow: 0 6px 12px rgba(185, 65, 65, 0.4),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
  min-width: 160px;
}

.btn-out:hover {
  background: linear-gradient(180deg, #ff7b7b 0%, #b33c3c 100%);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5),
              inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-out:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
}

/* ===== MODO OSCURO ===== */
body.dark-mode .btn-usuario {
  background: linear-gradient(180deg, #b89124 0%, #e6c657 100%);
  color: #fff !important;
  box-shadow: 0 6px 12px rgba(230, 198, 87, 0.35),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

body.dark-mode .btn-usuario:hover {
  background: linear-gradient(180deg, #e6c657 0%, #b89124 100%);
  box-shadow: 0 8px 18px rgba(230, 198, 87, 0.45),
              inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

body.dark-mode .btn-out {
  background: linear-gradient(180deg, #d9534f 0%, #a8322e 100%);
  color: #fff !important;
  box-shadow: 0 6px 12px rgba(217, 83, 79, 0.35),
              inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-out:hover {
  background: linear-gradient(180deg, #ff6b6b 0%, #a8322e 100%);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.45),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* ===== ESTADO OCULTO ===== */
.oculto {
  display: none !important;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 700px) {
  .user-bar {
    flex-direction: column;
    gap: 14px;
  }

  .btn-usuario {
    width: 85%;
  }
}

/* ======================================== */
/* BARRA DE USUARIO - VID DORADA PREMIUM */
/* ======================================== */

.user-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  background-color: transparent; /* deja ver el fondo del sitio */
  margin-top: 0;
}

/* ===== BOTONES BASE ===== */
.btn-usuario {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #f6d55c 0%, #d4af37 100%);
  color: #111 !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 26px;
  border: none;
  border-radius: 25px;
  text-decoration: none !important;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  min-width: 130px;
  max-width: 180px;
  box-shadow: 0 5px 10px rgba(212, 175, 55, 0.35),
              inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease-in-out;
}

.btn-usuario:hover {
  background: linear-gradient(180deg, #ffe270 0%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(212, 175, 55, 0.5),
              inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-usuario:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px rgba(212, 175, 55, 0.4);
}

/* ===== BOTÓN SALIR ===== */
.btn-out {
  background: linear-gradient(180deg, #e35b5b 0%, #b13d3d 100%);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 5px 10px rgba(185, 65, 65, 0.35),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
  min-width: 110px;
}

.btn-out:hover {
  background: linear-gradient(180deg, #ff7070 0%, #b33c3c 100%);
  box-shadow: 0 8px 15px rgba(255, 107, 107, 0.5),
              inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* ===== MODO OSCURO ===== */
body.dark-mode .btn-usuario {
  background: linear-gradient(180deg, #b89124 0%, #e6c657 100%);
  color: #fff !important;
  box-shadow: 0 5px 10px rgba(230, 198, 87, 0.3),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

body.dark-mode .btn-usuario:hover {
  background: linear-gradient(180deg, #e6c657 0%, #b89124 100%);
  box-shadow: 0 8px 18px rgba(230, 198, 87, 0.45),
              inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

body.dark-mode .btn-out {
  background: linear-gradient(180deg, #d9534f 0%, #a8322e 100%);
  box-shadow: 0 5px 10px rgba(217, 83, 79, 0.35),
              inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-out:hover {
  background: linear-gradient(180deg, #ff6b6b 0%, #a8322e 100%);
  box-shadow: 0 8px 18px rgba(255, 107, 107, 0.45),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* ===== ESTADO OCULTO ===== */
.oculto {
  display: none !important;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 700px) {
  .user-bar {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  .btn-usuario {
    width: 80%;
  }
}

/* ======================================== */
/* CORRECCIÓN DE COLOR DE TEXTO EN MODO OSCURO */
/* ======================================== */

/* En modo oscuro, el texto de los botones dorados se vuelve blanco brillante */
body.dark-mode .btn-usuario,
body.dark-mode .btn-gold,
body.dark-mode a.btn-usuario,
body.dark-mode a.btn-gold {
  color: #fff !important;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

/* Hover aún más legible */
body.dark-mode .btn-usuario:hover,
body.dark-mode .btn-gold:hover {
  color: #fff !important;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}

/* ======================================== */
/* AJUSTE FINAL DE COLOR DE TEXTO EN MODO OSCURO */
/* ======================================== */

/* Forzar texto negro puro en botones dorados en modo oscuro */
body.dark-mode .btn-usuario,
body.dark-mode .btn-gold,
body.dark-mode a.btn-usuario,
body.dark-mode a.btn-gold,
body.dark-mode button.btn-usuario {
  color: #000 !important;
  text-shadow: none !important;
  font-weight: 700;
}

/* ======================================== */
/* CORRECCIÓN DE CONTRASTE EN BOTONES DORADOS */
/* ======================================== */

/* Forzar texto negro sólido en modo oscuro */
body.dark-mode .btn-gold,
body.dark-mode a.btn-gold,
body.dark-mode button.btn-gold,
body.dark-mode .btn-usuario,
body.dark-mode a.btn-usuario,
body.dark-mode button.btn-usuario {
  color: #000 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}

/* Asegurar visibilidad también en modo claro */
body:not(.dark-mode) .btn-gold,
body:not(.dark-mode) .btn-usuario {
  color: #000 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Corregir botones dorados deshabilitados */
.btn-gold[disabled],
.btn-usuario[disabled],
body.dark-mode .btn-gold[disabled],
body.dark-mode .btn-usuario[disabled] {
  color: #000 !important;
  opacity: 0.7 !important;
  background: linear-gradient(180deg, #cfae46 0%, #a47f1d 100%) !important;
  cursor: not-allowed;
}

/* ======================================== */
/* BOTÓN DORADO PREMIUM PARA CHECKOUT Y FIDELIDAD */
/* ======================================== */

.btn.btn-primary {
  background: linear-gradient(180deg, #e6c657 0%, #cfae46 100%);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 28px;
  border-radius: 30px;
  display: inline-block;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease-in-out;
}

/* Efecto hover elegante */
.btn.btn-primary:hover {
  background: linear-gradient(180deg, #f0d46e 0%, #e2b939 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
  color: #000;
}

/* En modo oscuro: mantener texto negro puro */
body.dark-mode .btn.btn-primary {
  color: #000 !important;
  background: linear-gradient(180deg, #e3c24f 0%, #b99420 100%) !important;
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.2);
}

/* Hover en modo oscuro */
body.dark-mode .btn.btn-primary:hover {
  background: linear-gradient(180deg, #f5d862 0%, #d6a82b 100%) !important;
  color: #000 !important;
}

/* ======================================== */
/* ESTILO PREMIUM DORADO UNIFICADO */
/* Aplica a: Ir al perfil / Canjear en checkout / Guardar cambios */
/* ======================================== */

/* Base general para botones dorados */
.btn-primary,
.btn-gold,
.btn-usuario.btn-gold,
a.btn-primary,
a.btn-gold,
button.btn-primary {
  background: linear-gradient(180deg, #e6c657 0%, #cfae46 100%);
  color: #000 !important;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 28px;
  border-radius: 30px;
  display: inline-block;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease-in-out;
  text-align: center;
}

/* Hover con brillo dorado */
.btn-primary:hover,
.btn-gold:hover,
a.btn-primary:hover,
a.btn-gold:hover,
button.btn-primary:hover {
  background: linear-gradient(180deg, #f0d46e 0%, #e2b939 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
  color: #000 !important;
}

/* ========================== */
/* MODO OSCURO */
/* ========================== */
body.dark-mode .btn-primary,
body.dark-mode .btn-gold,
body.dark-mode a.btn-primary,
body.dark-mode a.btn-gold,
body.dark-mode button.btn-primary {
  background: linear-gradient(180deg, #e3c24f 0%, #b99420 100%) !important;
  color: #000 !important;
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.25) !important;
}

/* Hover modo oscuro */
body.dark-mode .btn-primary:hover,
body.dark-mode .btn-gold:hover,
body.dark-mode a.btn-primary:hover,
body.dark-mode a.btn-gold:hover,
body.dark-mode button.btn-primary:hover {
  background: linear-gradient(180deg, #f5d862 0%, #d6a82b 100%) !important;
  transform: translateY(-2px);
  color: #000 !important;
}

/* ========================== */
/* BOTONES DORADOS DESHABILITADOS */
/* ========================== */
.btn-primary[disabled],
.btn-gold[disabled],
body.dark-mode .btn-primary[disabled],
body.dark-mode .btn-gold[disabled] {
  background: linear-gradient(180deg, #c5ab4d 0%, #a68729 100%) !important;
  color: #000 !important;
  opacity: 0.8 !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ======================================== */
/* ESTILO PREMIUM DORADO UNIFICADO */
/* Aplica a: Ir al perfil / Canjear en checkout / Guardar cambios */
/* ======================================== */

.btn,
.btn-primary,
.btn-gold,
a.btn,
a.btn-primary,
a.btn-gold,
button.btn,
button.btn-primary {
  background: linear-gradient(180deg, #e6c657 0%, #cfae46 100%);
  color: #000 !important;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 28px;
  border-radius: 30px;
  display: inline-block;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease-in-out;
  text-align: center;
}

/* Hover con brillo dorado */
.btn:hover,
.btn-primary:hover,
.btn-gold:hover,
a.btn:hover,
a.btn-primary:hover,
a.btn-gold:hover,
button.btn:hover,
button.btn-primary:hover {
  background: linear-gradient(180deg, #f0d46e 0%, #e2b939 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
  color: #000 !important;
}

/* ========================== */
/* MODO OSCURO */
/* ========================== */
body.dark-mode .btn,
body.dark-mode .btn-primary,
body.dark-mode .btn-gold,
body.dark-mode a.btn,
body.dark-mode a.btn-primary,
body.dark-mode a.btn-gold,
body.dark-mode button.btn,
body.dark-mode button.btn-primary {
  background: linear-gradient(180deg, #e3c24f 0%, #b99420 100%) !important;
  color: #000 !important;
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.25) !important;
}

/* Hover modo oscuro */
body.dark-mode .btn:hover,
body.dark-mode .btn-primary:hover,
body.dark-mode .btn-gold:hover,
body.dark-mode a.btn:hover,
body.dark-mode a.btn-primary:hover,
body.dark-mode a.btn-gold:hover,
body.dark-mode button.btn:hover,
body.dark-mode button.btn-primary:hover {
  background: linear-gradient(180deg, #f5d862 0%, #d6a82b 100%) !important;
  transform: translateY(-2px);
  color: #000 !important;
}

/* ========================== */
/* BOTONES DORADOS DESHABILITADOS */
/* ========================== */
.btn[disabled],
.btn-primary[disabled],
.btn-gold[disabled],
body.dark-mode .btn[disabled],
body.dark-mode .btn-primary[disabled],
body.dark-mode .btn-gold[disabled] {
  background: linear-gradient(180deg, #c5ab4d 0%, #a68729 100%) !important;
  color: #000 !important;
  opacity: 0.8 !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
/* ============================== */
/* Avatar mini en el botón de perfil */
/* ============================== */

#perfil-btn img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
  border: 2px solid #cfae46;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

#perfil-btn:hover img {
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(207, 174, 70, 0.7);
}

/* En modo oscuro: mantener borde dorado visible */
body.dark-mode #perfil-btn img {
  border-color: #e0c35b;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}
/* ============================== */
/* BOTÓN PERFIL (agrandado y elegante) */
/* ============================== */

#perfil-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f7e7a1 0%, #cfae46 100%);
  border: 2px solid #b6922e;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
  cursor: pointer;
  margin-left: 10px;
}

#perfil-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(207, 174, 70, 0.6);
}

/* Imagen dentro del botón */
#perfil-btn img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  transition: transform 0.25s ease-in-out;
}

/* Efecto hover en la imagen */
#perfil-btn:hover img {
  transform: scale(1.05);
}

/* Modo oscuro */
body.dark-mode #perfil-btn {
  background: linear-gradient(180deg, #bda341 0%, #9a7c2a 100%);
  border-color: #e3c45a;
}

body.dark-mode #perfil-btn img {
  border-color: #e3c45a;
}
/* ============================== */
/* BOTÓN PERFIL (ajustado y visible) */
/* ============================== */

#perfil-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f9e49c 0%, #cfae46 100%);
  border: 2px solid #b6922e;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
  cursor: pointer;
  margin-left: 10px;
}

/* Efecto hover dorado */
#perfil-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(207, 174, 70, 0.7);
}

/* Imagen dentro del botón */
#perfil-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Imagen de icono (si no hay usuario) */
#perfil-btn img[src*="iconos/usuario.png"] {
  background: radial-gradient(circle, #fff6cc 0%, #f9e49c 100%);
  padding: 8px;
  object-fit: contain;
}

/* Modo oscuro */
body.dark-mode #perfil-btn {
  background: linear-gradient(180deg, #bda341 0%, #9a7c2a 100%);
  border-color: #e3c45a;
}

body.dark-mode #perfil-btn img[src*="iconos/usuario.png"] {
  background: radial-gradient(circle, #c9a733 0%, #7a611a 100%);
}
/* ============================== */
/* BOTÓN DE PERFIL — VISUAL MEJORADO */
/* ============================== */

#perfil-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f7e7a1 0%, #cfae46 100%);
  border: 2px solid #b6922e;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

#perfil-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(207, 174, 70, 0.7);
}

/* Imagen dentro del botón */
#perfilAvatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: radial-gradient(circle, #f9e49c 0%, #cfae46 100%);
}

/* Modo oscuro */
body.dark-mode #perfil-btn {
  background: linear-gradient(180deg, #bda341 0%, #8d6b1d 100%);
  border-color: #e3c45a;
}

body.dark-mode #perfilAvatar {
  background: radial-gradient(circle, #7a611a 0%, #b18e2b 100%);
}
/* ======================================== */
/* PERFIL - Corrección de visibilidad en modo oscuro */
/* ======================================== */

/* Fondo del botón en modo claro */
#perfil-btn {
  background: linear-gradient(180deg, #f7e7a1 0%, #cfae46 100%);
  border: 2px solid #b6922e;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#perfil-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(207, 174, 70, 0.7);
}

/* Imagen dentro del botón */
#perfilAvatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: radial-gradient(circle, #fff6cc 0%, #f9e49c 100%);
}

/* === MODO OSCURO === */
body.dark-mode #perfil-btn {
  background: linear-gradient(180deg, #d4b548 0%, #a4821a 100%);
  border-color: #f1d364;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
}

/* La imagen debe mantener su brillo */
body.dark-mode #perfilAvatar {
  background: radial-gradient(circle, #f4e099 0%, #d4b548 100%);
  filter: brightness(1.1) contrast(1.05);
  border-radius: 50%;
  object-fit: cover;
}

/* Para imágenes reales del usuario: evita que se oscurezcan */
body.dark-mode #perfilAvatar[src*="data:image"],
body.dark-mode #perfilAvatar[src*="http"],
body.dark-mode #perfilAvatar[src*="img/"] {
  filter: brightness(1.15) contrast(1.1);
}