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

/* =========================================
   🎨 VARIABLES
========================================= */

:root {
  --color-dorado: #d4af37;
  --color-dorado-oscuro: #b9952e;
  --color-vino: #7b5c2e;
  --color-texto: #333;
  --color-fondo: #ffffff;
  --color-fondo-oscuro: #121212;
  --color-texto-oscuro: #eeeeee;

  --radius-card: 12px;
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.08);
  --transition-base: 0.3s ease;
}

/* =========================================
   🔁 RESET BÁSICO
========================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: none;
}

/* =========================================
   ✨ EFECTOS GLOBALES / ANIMACIONES
========================================= */

.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s forwards;
}

.fade-out {
  animation: fadeOut 0.4s forwards;
}

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

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

/* Evita que el fade-in rompa position: fixed */
body.fade-in,
body.fade-out {
  will-change: opacity;
  transform: none !important;
}

/* =========================================
   🧭 HEADER + NAV
========================================= */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-base), background var(--transition-base);
}

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

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

/* ----- Menú desktop ----- */

#main-nav {
  margin-left: auto;
}

#main-nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

#main-nav a {
  font-weight: 500;
  color: var(--color-texto);
  padding: 0.4rem 0.3rem;
  transition: color var(--transition-base);
}

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

/* ----- Hamburguesa (móvil) ----- */

.menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 22px;
  cursor: pointer;
  padding: 0;
  z-index: 9999;
}

.menu-toggle span {
  position: absolute;
  width: 100%;
  height: 3px;
  left: 0;
  border-radius: 4px;
  background: #000;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ----- Nav móvil ----- */

@keyframes menuFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  #main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 999;
  }

  #main-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 1rem 0 1.2rem;
    text-align: center;
    gap: 0.8rem;
  }

  #main-nav.open ul {
    display: flex;
    animation: menuFadeSlide 0.35s ease forwards;
  }

  body.dark-mode #main-nav,
  body.dark-mode #main-nav ul {
    background: #000;
  }
}

/* =========================================
   🌙 MODO OSCURO GLOBAL
========================================= */

body.dark-mode {
  background-color: var(--color-fondo-oscuro) !important;
  color: var(--color-texto-oscuro) !important;
}

body.dark-mode header {
  background-color: #000;
  border-bottom: 1px solid #3b3b3b;
}

body.dark-mode #main-nav a {
  color: #e0e0e0 !important;
}

body.dark-mode #main-nav a.active,
body.dark-mode #main-nav a:hover {
  color: var(--color-dorado) !important;
}

/* Texto genérico en dark */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode p,
body.dark-mode span {
  color: #f4f4f4;
}

/* Inputs en dark */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: #1b1b1b !important;
  border: 1px solid #555 !important;
  color: #fff !important;
}

body.dark-mode input::placeholder {
  color: #c0c0c0 !important;
}

/* Links en dark */
body.dark-mode a:hover {
  color: #d4b169 !important;
}

/* =========================================
   ⬇ PERFIL FLOTANTE + CARRITO FLOTANTE
========================================= */

#perfil-btn {
  position: fixed;
  top: 110px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  z-index: 999;
}

#perfil-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#perfil-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.dark-mode #perfil-btn {
  background-color: #1e1e1e;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Carrito flotante */

.carrito-flotante {
  position: fixed;
  top: 120px;
  right: 25px;
  width: 70px;
  height: 70px;
  background: var(--color-dorado);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  z-index: 999;
}

.carrito-flotante:hover {
  transform: scale(1.08);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 600px) {
  .carrito-flotante {
    width: 60px;
    height: 60px;
  }

  .carrito-flotante img {
    width: 32px;
    height: 32px;
  }
}

/* =========================================
   🦶 FOOTER VID DORADA
========================================= */

.footer {
  background-color: #f7f7f7;
  color: #333;
  padding: 3.5rem 1.5rem 2.2rem;
  border-top: 1px solid #ddd;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-column h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: #7b4b2a;
  margin-bottom: 0.5rem;
}

.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #7b4b2a;
  margin-bottom: 0.7rem;
}

.footer-column ul li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.footer-column ul li a {
  color: #555;
  transition: color var(--transition-base);
}

.footer-column ul li a:hover {
  color: #7b4b2a;
}

.footer .slogan {
  font-style: italic;
  color: #777;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-links img {
  width: 28px;
  height: 28px;
  filter: grayscale(100%) brightness(0.7);
  transition: transform var(--transition-base), filter var(--transition-base);
}

.social-links img:hover {
  transform: scale(1.15);
  filter: grayscale(0%) brightness(1);
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.footer-logo img {
  width: 90px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.4s ease, filter 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* Footer dark */

body.dark-mode .footer {
  background-color: #1a1a1a;
  color: #ccc;
  border-top: 1px solid #333;
}

body.dark-mode .footer-column h3,
body.dark-mode .footer-column h4 {
  color: var(--color-dorado);
}

body.dark-mode .footer-column ul li a {
  color: #bbb;
}

body.dark-mode .footer-column ul li a:hover {
  color: var(--color-dorado);
}

body.dark-mode .social-links img {
  filter: brightness(0.8) saturate(0);
}

body.dark-mode .social-links img:hover {
  filter: brightness(1) saturate(1);
}

/* =========================================
   🏠 INICIO + HERO
========================================= */

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

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

.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.6rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: background var(--transition-base);
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.inicio {
  text-align: center;
  padding: 4rem 2rem 3.5rem;
  background: #fff;
}

.inicio .logo-grande {
  width: 200px;
  margin: 0 auto 2rem;
}

.inicio-contenido p {
  max-width: 800px;
  margin: 0 auto 1.4rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.inicio-contenido strong {
  color: #7b5c2e;
}

.inicio-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.boton {
  background-color: #7b5c2e;
  color: #fff;
  padding: 0.85rem 2.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.35s ease;
}

.boton:hover {
  background-color: #a67c52;
  transform: translateY(-3px);
}

.mini-botellas {
  width: 260px;
  margin: 1rem auto 0;
  transition: transform 0.35s ease;
}

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

/* Inicio dark */

body.dark-mode .inicio {
  background: #121212;
  color: #eee;
}

body.dark-mode .inicio-contenido strong {
  color: var(--color-dorado);
}

body.dark-mode .boton {
  background-color: var(--color-dorado);
  color: #000;
}

body.dark-mode .boton:hover {
  background-color: var(--color-dorado-oscuro);
  color: #fff;
}

/* =========================================
   🌿 SOBRE NOSOTROS
========================================= */

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

.about-slider .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

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

.about-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sobre-nosotros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 3rem auto;
  gap: 3rem;
  padding: 0 2rem;
}

.sobre-nosotros-texto {
  flex: 1 1 550px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.sobre-nosotros-texto h1 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 1.8rem;
  color: #7b5c2e;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sobre-nosotros-texto strong {
  color: #a67c52;
}

.sobre-nosotros-texto p {
  margin-bottom: 1.1rem;
  text-align: justify;
}

.sobre-imagen {
  flex: 1 1 450px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.sobre-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.sobre-imagen img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.28);
}

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

  .sobre-nosotros-texto {
    text-align: center;
  }

  .sobre-nosotros-texto h1 {
    font-size: 2.2rem;
  }

  .sobre-imagen {
    order: 2;
  }
}

/* Sobre nosotros dark */

body.dark-mode .sobre-nosotros-texto {
  color: #e0e0e0;
}

body.dark-mode .sobre-nosotros-texto h1 {
  color: var(--color-dorado);
}

body.dark-mode .sobre-nosotros-texto strong {
  color: #f5d88c;
}

body.dark-mode .sobre-imagen img {
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.08);
}

/* =========================================
   🍷 NUESTROS VINOS (LISTADO)
========================================= */

.vinos {
  padding: 3.2rem 1.5rem 4rem;
  background: #fafafa;
}

.vinos-topbar,
.buscador-filtros {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.titulo-vinos {
  font-size: 2.4rem;
  color: var(--color-vino);
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.barra-puntos {
  text-align: center;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-vino);
}

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

.input-busqueda {
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  width: 100%;
  max-width: 400px;
  transition: border-color var(--transition-base);
}

.input-busqueda:focus {
  border-color: var(--color-dorado);
  outline: none;
}

.filtros-botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.filter-pill {
  background: #f1f1f1;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-pill.activo,
.filter-pill:hover {
  background: var(--color-dorado);
  color: #fff;
}

.price-filter {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.9rem;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition-base);
}

.price-filter:hover,
.price-filter:focus {
  border-color: var(--color-dorado);
}

/* Grid de vinos (4-2-1 responsive) */

.vinos-grid {
  max-width: 1300px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
}

.vino {
  width: 300px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 1.2rem 1.3rem;
  background: #fff;
  border-radius: 15px;
  border: 1px solid #eee;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vino:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.imagen-botella {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  overflow: hidden;
}

.imagen-botella img {
  height: 230px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.vino:hover .imagen-botella img {
  transform: scale(1.08);
}

.vino h3 {
  margin: 1rem 0 0.4rem;
  min-height: 48px;
  padding: 0 0.5rem;
  color: var(--color-vino);
  font-size: 1.15rem;
  font-weight: 600;
}

.vino p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.precio,
.vino-precio {
  font-size: 1.25rem;
  color: var(--color-dorado);
  font-weight: 600;
  margin-top: 0.4rem;
}

/* Botones en tarjeta */

.vino-botones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  padding-top: 0.8rem;
}

.btn-carrito {
  background: var(--color-dorado);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
}

.btn-carrito:hover {
  background: var(--color-dorado-oscuro);
  transform: scale(1.08);
}

.btn-detalles {
  background: var(--color-vino);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.btn-detalles:hover {
  background: var(--color-dorado);
  transform: translateY(-2px);
}

/* No resultados */

.no-results {
  text-align: center;
  font-size: 1.05rem;
  margin: 2rem 0;
  color: #777;
  display: none;
}

.no-results.visible {
  display: block;
}

/* Vinos responsive */

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

@media (max-width: 768px) {
  .buscador-filtros {
    gap: 0.8rem;
  }

  .input-busqueda {
    max-width: 100%;
  }

  .price-filter {
    width: 100%;
    max-width: 300px;
  }
}

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

  .vino {
    width: 90vw;
    min-height: auto;
  }
}

/* Vinos dark */

body.dark-mode .vinos {
  background: #121212;
  color: var(--color-texto-oscuro);
}

body.dark-mode .titulo-vinos {
  color: var(--color-dorado);
}

body.dark-mode .input-busqueda,
body.dark-mode .price-filter {
  background: #1f1f1f;
  color: #eee;
  border-color: #333;
}

body.dark-mode .filter-pill {
  background: #333;
  color: #ccc;
}

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

body.dark-mode .vino {
  background: #1e1e1e;
  border-color: #333;
}

body.dark-mode .vino h3 {
  color: var(--color-dorado);
}

body.dark-mode .vino p {
  color: #bbb;
}

body.dark-mode .barra-puntos {
  background: #1f1f1f;
  border-color: #333;
  color: var(--color-dorado);
}

/* =========================================
   🍇 FICHA DE VINO INDIVIDUAL
========================================= */

.fondo-vino {
  background-color: #ffffff;
  transition: background-color 0.4s ease;
}

body.dark-mode .fondo-vino {
  background-color: #111111;
}

.vino-ficha {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 4rem auto;
  padding: 2rem 2.3rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.vino-ficha:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Imagen + zoom frame */

.vino-img {
  flex: 1 1 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-frame {
  width: 300px;
  height: 750px;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fdf5f5;
  transition: transform 0.3s ease;
}

.zoom-frame:hover {
  transform: scale(1.12);
}

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

/* Info */

.vino-info {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.vino-info h1 {
  font-size: 2.2rem;
  color: var(--color-vino);
  margin-bottom: 0.4rem;
}

.vino-datos {
  list-style: none;
}

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

.vino-datos strong {
  color: var(--color-vino);
}

.vino-descripcion {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #333;
}

.vino-precio {
  font-size: 1.5rem;
  color: var(--color-dorado);
  font-weight: 700;
  margin-top: 0.4rem;
}

/* Botones en ficha */

.vino-ficha .vino-botones {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.vino-ficha .btn-carrito {
  background-color: #8b0000;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.vino-ficha .btn-carrito:hover {
  background-color: #a22b2b;
  transform: scale(1.08);
}

.vino-ficha .btn-volver {
  background-color: #c89f5d;
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
  margin-top: 0.4rem;
  transition: all 0.3s ease;
}

.vino-ficha .btn-volver:hover {
  background-color: #e0b96f;
  color: #000;
  transform: translateY(-2px);
}

/* Bloque info extra */

.vino-detalle-extra {
  max-width: 800px;
  margin: 1.5rem auto 2.5rem;
  padding: 1.4rem 1.8rem;
  background: #f7f7f7;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.vino-detalle-extra p {
  margin: 0.6rem 0;
}

.vino-detalle-extra strong {
  color: #8b0000;
}

/* Ficha vino responsive */

@media (max-width: 768px) {
  .vino-ficha {
    flex-direction: column;
    text-align: center;
    padding: 1.3rem;
    margin: 2.2rem auto;
    max-width: 92%;
  }

  .vino-info {
    align-items: center;
  }
}

/* Ficha vino dark */

body.dark-mode .vino-ficha {
  background: #000000;
  box-shadow: 0 3px 15px rgba(255, 255, 255, 0.05);
}

body.dark-mode .vino-info h1 {
  color: #d9b48f;
}

body.dark-mode .vino-datos li {
  color: #ccc;
}

body.dark-mode .vino-descripcion {
  color: #bbb;
}

body.dark-mode .vino-precio {
  color: #e3bb63;
}

body.dark-mode .vino-ficha .btn-carrito {
  background-color: #cfa44e;
  color: #1e1e1e;
}

body.dark-mode .vino-ficha .btn-carrito:hover {
  background-color: #e3bb63;
}

body.dark-mode .vino-ficha .btn-volver {
  background-color: #cfa44e;
  color: #1e1e1e;
}

/* =========================================
   🔔 TOASTS
========================================= */

.toast,
#notificacion.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #4c2a1b;
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
  font-size: 0.85rem;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

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

.toast.oculto,
.toast-individual.oculto {
  opacity: 0;
}

/* =========================================
   📝 BLOG
========================================= */

.blog {
  padding: 4rem 2rem;
  background-color: #fafafa;
  text-align: center;
}

.blog h1 {
  font-size: 2.6rem;
  color: var(--color-vino);
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

.intro-blog {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
}

.articulo-blog {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1100px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.articulo-blog:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.img-blog {
  width: 45%;
  height: 100%;
  object-fit: cover;
}

.contenido-articulo {
  flex: 1;
  text-align: left;
  padding: 2rem;
}

.contenido-articulo h2 {
  color: var(--color-vino);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contenido-articulo p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.btn-leer-mas {
  display: inline-block;
  background: var(--color-dorado);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-leer-mas:hover {
  background: var(--color-dorado-oscuro);
  transform: translateY(-2px);
}

.articulo-blog:nth-child(even) {
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  .articulo-blog {
    flex-direction: column;
  }

  .img-blog {
    width: 100%;
  }

  .contenido-articulo {
    text-align: center;
    padding: 1.6rem;
  }

  .contenido-articulo h2 {
    font-size: 1.6rem;
  }
}

/* Blog dark */

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

body.dark-mode .blog h1 {
  color: var(--color-dorado);
}

body.dark-mode .intro-blog {
  color: #ccc;
}

body.dark-mode .articulo-blog {
  background: #1a1a1a;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.08);
}

body.dark-mode .contenido-articulo h2 {
  color: var(--color-dorado);
}

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

body.dark-mode .btn-leer-mas {
  background: var(--color-dorado);
  color: #000;
}

/* =========================================
   ⭐ FIDELIDAD
========================================= */

body.fidelidad-page {
  background: #faf7f2;
}

.fidelidad-modern {
  padding: 2rem 1rem 4rem;
  max-width: 1200px;
  margin: auto;
}

.fidelidad-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  text-align: center;
  color: #3a2f2d;
  margin-bottom: 0.5rem;
}

.fidelidad-header p {
  text-align: center;
  color: #6c6c6c;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* Tarjeta puntos */

.fidelidad-puntos {
  background: linear-gradient(135deg, #d4b169, #c59b47, #b7893c);
  padding: 2.5rem;
  margin: 3rem auto;
  border-radius: 20px;
  color: #fff;
  max-width: 750px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.fidelidad-puntos h2 {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
  font-family: "Playfair Display", serif;
}

.points-value {
  font-size: 4rem;
  font-weight: bold;
  margin: 0.8rem 0 1.5rem;
}

.fidelidad-progress {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  overflow: hidden;
}

.fidelidad-progress-bar {
  height: 100%;
  width: 0%;
  background: #ffd371;
  transition: width 1s ease;
}

/* Beneficios 2x2 */

.fidelidad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: 2rem auto;
}

.fidelidad-card {
  background: #1a1a1a;
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  min-height: 180px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: #cfcfcf;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fidelidad-card .icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.fidelidad-card h3 {
  font-family: "Playfair Display", serif;
  margin-bottom: 0.6rem;
  font-size: 1.5rem;
  color: #fff;
}

.fidelidad-card p {
  font-size: 1rem;
}

.fidelidad-card:hover {
  transform: translateY(-6px);
}

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

/* Beneficio extra cards */

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  margin-top: 3rem;
}

.beneficio-card {
  background: #ffffff;
  border: 2px solid #eee;
  padding: 1.6rem;
  border-radius: 15px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: 0.25s ease;
}

.beneficio-card:hover {
  border-color: #d4b169;
  transform: translateY(-5px);
}

.beneficio-icon {
  background: #f7f1df;
  color: #b38b3a;
  font-size: 2rem;
  padding: 10px;
  border-radius: 12px;
  flex-shrink: 0;
}

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

/* Cómo funciona */

.como-funciona {
  background: #fff;
  border-radius: 18px;
  padding: 2.5rem;
  margin-top: 3rem;
  border: 2px solid #eee;
}

.title-center {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 1.8rem;
}

.pasos-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
  gap: 2rem;
}

.paso-numero {
  width: 55px;
  height: 55px;
  margin: 0 auto 0.5rem;
  background: #f5e9d2;
  color: #b38b3a;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  font-weight: bold;
}

.paso p {
  max-width: 260px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .pasos-grid {
    flex-direction: column;
  }
}

/* CTA fidelidad */

.fidelidad-cta {
  margin-top: 3rem;
  text-align: center;
}

.btn-gold {
  background: #d6b15c;
  color: #000;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-gold:hover {
  background: #f2ce83;
}

/* Fidelidad dark */

body.dark-mode .fidelidad-progress {
  background: #2b2b2b;
}

body.dark-mode .fidelidad-progress-bar {
  background: #d4b169;
}

body.dark-mode .beneficio-card {
  background: #1a1a1a;
  border-color: #444;
  color: #f6f6f6;
  box-shadow: 0 0 12px rgba(212, 177, 105, 0.1);
}

body.dark-mode .beneficio-card:hover {
  border-color: #d4b169;
  box-shadow: 0 0 18px rgba(212, 177, 105, 0.3);
}

body.dark-mode .beneficio-icon {
  background: #292929;
  color: #d4b169;
}

/* =========================================
   📞 CONTACTO
========================================= */

.contacto {
  padding: 4rem 2rem;
  background-color: #fafafa;
  text-align: center;
}

.contacto h1 {
  font-size: 2.5rem;
  color: var(--color-vino);
  margin-bottom: 2rem;
}

.contacto-horario {
  background: #fff;
  border-radius: 10px;
  padding: 1.6rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  box-shadow: var(--shadow-soft);
}

.contacto-horario h3 {
  color: var(--color-dorado);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.contacto-horario ul {
  color: var(--color-vino);
  line-height: 1.8;
}

.contacto-principal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin-top: 2rem;
}

/* Tarjetas */

.contacto-tarjetas {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
}

.tarjeta-contacto {
  flex: 1 1 280px;
  max-width: 360px;
  background: #fff;
  border-radius: 12px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.icono-contacto {
  display: flex;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.icono-contacto img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s ease;
}

.tarjeta-contacto:hover .icono-contacto img {
  transform: scale(1.08);
}

.tarjeta-contacto address,
.tarjeta-contacto p,
.tarjeta-contacto a {
  color: var(--color-vino);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tarjeta-contacto a:hover {
  color: var(--color-dorado);
  text-decoration: underline;
}

/* Mapa */

.mapa-contacto {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  max-width: 1000px;
  width: 100%;
}

.mapa-contacto h3 {
  color: var(--color-vino);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.mapa-contacto iframe {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  border: none;
}

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

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

  .mapa-contacto iframe {
    height: 300px;
  }
}

/* Contacto dark */

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

body.dark-mode .contacto h1 {
  color: var(--color-dorado) !important;
}

body.dark-mode .contacto-horario {
  background: #1f1f1f !important;
  color: #ddd !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.08);
}

body.dark-mode .contacto-horario h3 {
  color: var(--color-dorado) !important;
}

body.dark-mode .tarjeta-contacto,
body.dark-mode .mapa-contacto {
  background: #1e1e1e !important;
  color: #ddd !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.08);
}

/* =========================================
   🛒 CARRITO
========================================= */

.fondo-uvas {
  background-image: url("img/uvas.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.9);
  padding-top: 4rem;
  padding-bottom: 6rem !important;
}

.carrito-lleno {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.carrito-container {
  background: #fff;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  margin: 0 auto 6rem;
}

.carrito-vacio {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.carrito-icono img {
  width: 80px;
  height: 80px;
}

.carrito-titulo {
  font-size: 2rem;
  color: var(--color-vino);
  margin-bottom: 0.8rem;
}

.carrito-mensaje {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.4rem;
}

.btn-explorar {
  background: var(--color-dorado);
  color: #fff;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-explorar:hover {
  background: var(--color-dorado-oscuro);
  transform: scale(1.05);
}

/* Lista productos carrito */

#carrito {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.item-carrito {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fdfdfd;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.item-info {
  flex: 1;
  text-align: left;
}

.item-nombre {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-vino);
}

.item-precio {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.4rem;
}

.acciones {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.oculto {
  display: none !important;
}

/* =========================================
   💳 CHECKOUT (resumen general)
========================================= */
/* =====================================================
   🛒 CHECKOUT COMPLETO (Adaptado al HTML final)
===================================================== */

.checkout-wrapper {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Título principal del checkout */
.checkout-header {
  text-align: center;
  margin-bottom: 1rem;
}

.checkout-title {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--color-vino);
}

.checkout-subtitle {
  font-size: 1rem;
  color: #777;
  margin-top: .5rem;
}

/* GRID PRINCIPAL: formulario + resumen */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 2.5rem;
  align-items: flex-start;
}

/* FORMULARIO GENERAL */
.checkout-form {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Secciones dentro del formulario */
.form-block {
  margin-bottom: 2.2rem;
}

.block-title {
  font-size: 1.3rem;
  color: var(--color-dorado);
  margin-bottom: 1.3rem;
  font-weight: 700;
}

/* Campos */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-field.full {
  flex-basis: 100%;
}

/* Inputs */
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: .9rem 1rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  transition: all .3s ease;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  border-color: var(--color-dorado);
  box-shadow: 0 0 8px rgba(212,175,55,0.3);
}

/* ===========================
   Métodos de pago
=========================== */

.payment-section {
  margin-top: 2.5rem;
}

.payment-options {
  display: flex;
  gap: 1rem;
}

.payment-option {
  flex: 1;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  cursor: pointer;
  background: #fff;
  transition: all .3s ease;
  text-align: center;
  font-weight: 600;
}

.payment-option:hover {
  transform: scale(1.02);
}

.payment-option-active,
.payment-option input:checked + .payment-label {
  border-color: var(--color-dorado);
  background: var(--color-dorado);
  color: #fff;
}

/* Campo de tarjeta */
.payment-details {
  margin-top: 1.5rem;
}

/* ===========================
   RESUMEN DEL PEDIDO
=========================== */

.order-summary {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  position: sticky;
  top: 20px;
}

.summary-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-vino);
  margin-bottom: 1.5rem;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Fila de cada producto (grid para alinear columnas) */
.summary-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto; /* nombre | cantidad | precio | borrar */
  align-items: center;
  column-gap: 1rem;
}

/* Nombre del vino */
.item-name {
  font-weight: 600;
  margin-bottom: 3px;
}

/* Cantidad */
.qty-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 90px;        /* mismo ancho en todas las filas */
}

.qty-btn {
  background: #ccaa33;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: #b3952d;
  transform: scale(1.05);
}

.qty-display {
  font-weight: bold;
  font-size: 15px;
  width: 24px;
  text-align: center;
}

/* Precio a la derecha de su columna */
.item-price {
  font-weight: bold;
  text-align: right;
}

/* Botón eliminar */
.delete-item {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #d9534f;
  transition: 0.2s;
}

.delete-item:hover {
  transform: scale(1.2) rotate(-10deg);
}

/* Totales */
.summary-totals {
  margin-top: 2rem;
  border-top: 1px solid #e5e5e5;
  padding-top: 1rem;
}

.summary-totals p {
  display: flex;
  justify-content: space-between;
  margin-bottom: .6rem;
}

.summary-totals .total {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dorado);
}

/* Botón confirmar compra */
.btn-submit {
  width: 100%;
  background: var(--color-dorado);
  border: none;
  padding: 1.2rem;
  margin-top: 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: .3s ease;
  color: white;
}

.btn-submit:hover {
  transform: translateY(-3px);
  background: var(--color-dorado-oscuro);
}

/* ===========================
   PANEL LATERAL RECOMENDADOS
=========================== */

.recomendados {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(100%);
  width: 280px;
  max-height: 80vh;
  padding: 1.4rem 1.2rem;
  background: #ffffff;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  overflow-y: auto;
  z-index: 999;
  transition: transform 0.3s ease;
}

.recomendados.mostrar {
  transform: translateY(-50%) translateX(0);
}

.recomendados h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-vino);
}

.producto-sugerido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid #eee;
}

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

.producto-sugerido h4 {
  font-size: .95rem;
  text-align: center;
}

.producto-sugerido .precio {
  font-weight: 600;
  color: var(--color-dorado);
}

.producto-sugerido .btn-agregar {
  background: var(--color-dorado);
  color: #fff;
  border-radius: 999px;
  padding: .3rem .7rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background .3s ease, transform .2s ease;
}

.producto-sugerido .btn-agregar:hover {
  background: var(--color-dorado-oscuro);
  transform: translateY(-2px);
}

/* Botón flotante para abrir/cerrar */
.btn-recomendados-toggle {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 28px;
  height: 60px;
  border-radius: 8px 0 0 8px;
  background: var(--color-dorado);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   MODO OSCURO
=========================== */

body.dark-mode .checkout-form,
body.dark-mode .order-summary {
  background: #1f1f1f;
  border-color: #333;
  color: #eee;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #2d2d2d;
  color: #fff;
  border-color: #444;
}

body.dark-mode .payment-option-active {
  background: var(--color-dorado);
  color: #111;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 1024px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  
  .order-summary {
    position: relative;
    top: unset;
  }
}

@media (max-width: 680px) {
  .checkout-title {
    font-size: 1.9rem;
  }

  .checkout-wrapper {
    padding: 1rem;
  }
}

/* =========================================
   🔐 LOGIN / REGISTRO (estructura básica)
========================================= */

/* Igual: mantengo estructura original.
   Todo lo importante (containers, overlay, back-home, etc.) sigue igual. */

/* =========================================
   💬 WHATSAPP FLOTANTE
========================================= */

#whatsapp-container {
  position: fixed !important;
  bottom: 25px;
  right: 25px;
  z-index: 999999 !important;
  pointer-events: none;
}

#whatsapp-btn {
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25d366;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  animation: aparecerWhats 0.7s ease-out, latido 2.5s infinite ease-in-out;
}

.whatsapp-icon {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease, filter 0.3s ease;
}

#whatsapp-btn:hover {
  background-color: #1ebe5d;
  transform: scale(1.1);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

#whatsapp-btn:hover .whatsapp-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

@keyframes aparecerWhats {
  from {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes latido {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(37, 211, 102, 0);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
  }
}

@media (max-width: 900px) {
  #whatsapp-btn {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-icon {
    width: 32px;
    height: 32px;
  }
}

body.dark-mode #whatsapp-btn {
  filter: brightness(0.8);
}

body.dark-mode #whatsapp-btn:hover {
  filter: brightness(1);
}