/* ===================== VARIABLES & BASE ===================== */
:root {
  --verde-oscuro: #034D5C;
  --verde-claro:  #05686E;
  --naranja:      #F8A32A;
  --precio-color: #E4B99E;
  --fondo:        #f4f4f4;
  --blanco:       #ffffff;
  --texto:        #333333;
  --sombra:       0 8px 20px rgba(0,0,0,0.08);
  --transicion:   all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--fondo);
  background-color: #f4f4f4; /* Este es el gris claro que definimos */
  color: var(--texto);
  line-height: 1.6;
}

/* ===================== HEADER & NAVEGACIÓN ===================== */
.header {
  background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-claro));
  padding: 1.2rem 1.5rem 4rem;
  position: relative;
  color: var(--blanco);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 20;
}

/* Logo más grande */
.logo {
  height: 80px; /* Aumentado de 50px a 80px */
  width: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.1));
}

.logo:hover {
  transform: scale(1.05);
}

/* Ajuste del header para el nuevo tamaño del logo */
.header-content {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .logo {
    height: 60px; /* Un poco más pequeño en móviles */
  }
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transicion);
}

.nav-list a:hover {
  color: var(--naranja);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 2rem;
  cursor: pointer;
}

/* Waves */
.waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 1;
}

.wave1 { fill: #045E67; opacity: 0.6; }
.wave2 { fill: var(--verde-oscuro); opacity: 0.8; }

/* ===================== LAYOUT DEL CATÁLOGO ===================== */
.catalogo-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.titulo-catalogo {
  font-size: 2.2rem;
  color: var(--verde-oscuro);
  margin-bottom: 2rem;
}

.catalogo-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Sidebar Filtros */
.filtros-sidebar {
  background: var(--blanco);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--sombra);
}

.filtros-titulo {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--fondo);
  padding-bottom: 0.5rem;
}

.filtro-grupo {
  margin-bottom: 1.2rem;
}

.filtro-grupo label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

select, input[type="search"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

select:focus, input:focus {
  border-color: var(--verde-claro);
}

/* Controles y Grid */
.controles-superiores {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

#buscador { flex: 2; }
#orden-precio { flex: 1; }

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

/* ===================== TARJETA DE PRODUCTO ===================== */
.producto {
  background: var(--blanco);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: var(--transicion);
  display: flex;
  flex-direction: column;
}

.producto:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.thumb {
  position: relative;
  padding-top: 100%; /* Ratio 1:1 */
  overflow: hidden;
  background: #f9f9f9;
}

.thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.producto:hover .thumb img {
  transform: scale(1.1);
}

.info-producto {
  padding: 1.2rem;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .catalogo-layout {
    grid-template-columns: 1fr;
  }
  
  .filtros-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .filtros-titulo { width: 100%; }
  .filtro-grupo { flex: 1; min-width: 150px; margin-bottom: 0; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--verde-oscuro);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    border-radius: 0 0 0 12px;
  }
  
  .nav-list.open { display: flex; }

  .controles-superiores {
    flex-direction: column;
  }
}
.contenedor-detalle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.foto-principal img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--sombra);
}

.miniaturas-grid {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.miniaturas-grid img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transicion);
}

.miniaturas-grid img:hover {
  border-color: var(--naranja);
}

.btn-whatsapp {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .contenedor-detalle {
      grid-template-columns: 1fr;
  }
}
/* ===================== DETALLE DE PRODUCTO ===================== */
.detalle-wrapper {
  max-width: 1100px;
  margin: -20px auto 4rem; /* Sube para solapar con las ondas */
  position: relative;
  z-index: 5;
  padding: 0 1.5rem;
}

.breadcrumbs {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--verde2);
}

.producto-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--sombra-suave);
}

/* Galería */
.main-img-container {
  border-radius: 12px;
  overflow: hidden;
  background: #f8f8f8;
  border: 1px solid #eee;
}

.main-img-container img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.miniaturas-contenedor {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
}

.miniaturas-contenedor img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
}

.miniaturas-contenedor img.active {
  border-color: var(--naranja);
}

/* Información */
.badge {
  background: var(--naranja);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.producto-info h1 {
  font-size: 2.2rem;
  color: var(--verde1);
  margin: 1rem 0 0.5rem;
}

.precio-caja {
  margin: 1.5rem 0;
  color: var(--verde2);
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.precio-caja .monto {
  font-size: 2.5rem;
  font-weight: 800;
}

.detalles-tecnicos {
  background: #f9f9f9;
  padding: 1.2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.detalles-tecnicos ul {
  list-style: none;
}

.detalles-tecnicos li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.btn-comprar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 1.2rem;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.btn-comprar:hover {
  transform: scale(1.03);
  background: #1eb954;
}

/* Responsive */
@media (max-width: 850px) {
  .producto-container {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}
.productos-relacionados-container {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.titulo-seccion {
  color: var(--verde1);
  margin-bottom: 2rem;
  text-align: center;
}

.miniatura-item.active {
  border: 2px solid var(--naranja) !important;
  opacity: 1;
}

.miniatura-item {
  opacity: 0.6;
  transition: var(--transicion);
}

.miniatura-item:hover {
  opacity: 1;
}
.main-img-container {
  border-radius: 12px;
  overflow: hidden; /* Importante para que el zoom no se salga */
  background: #f8f8f8;
  border: 1px solid #eee;
  cursor: zoom-in;
}

#img-principal {
  width: 100%;
  display: block;
  transition: transform 0.5s ease; /* Transición suave */
  transform-origin: center center;
}

/* Efecto Zoom */
.main-img-container:hover #img-principal {
  transform: scale(1.5); /* Nivel de aumento */
}

/* Mejora para que el zoom siga al mouse (opcional pero recomendado) */
.main-img-container {
  position: relative;
}
/* ===================== PÁGINA DE CONTACTO ===================== */
.contacto-wrapper {
  max-width: 1000px;
  margin: -30px auto 4rem;
  position: relative;
  z-index: 5;
  padding: 0 1.5rem;
}

.contacto-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
}

.contacto-info {
  background: var(--verde-oscuro);
  color: white;
  padding: 3rem;
}

.contacto-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info-items {
  margin: 2rem 0;
}

.item {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.item strong {
  color: var(--naranja);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.contacto-form {
  padding: 3rem;
}

.campo {
  margin-bottom: 1.2rem;
}

.campo label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.btn-enviar {
  width: 100%;
  padding: 1rem;
  background: var(--verde-claro);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transicion);
}

.btn-enviar:hover {
  background: var(--verde-oscuro);
  transform: translateY(-2px);
}

/* Responsive Contacto */
@media (max-width: 768px) {
  .contacto-container {
    grid-template-columns: 1fr;
  }
  .contacto-info {
    padding: 2rem;
  }
}
/* ===================== BOTÓN WHATSAPP FLOTANTE ===================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

/* Tooltip (Mensaje pequeño al lado del botón) */
.tooltip-whatsapp {
  position: absolute;
  right: 75px;
  background-color: #333;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.whatsapp-float:hover .tooltip-whatsapp {
  opacity: 1;
  visibility: visible;
}

/* Animación de Pulso */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Adaptación para móviles */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .tooltip-whatsapp {
    display: none; /* Ocultar tooltip en móviles para no tapar pantalla */
  }
}
/* ===================== SECCIÓN HERO ===================== */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4rem 1.5rem;
  gap: 2rem;
  padding-top: 6rem; /* Más espacio arriba para no chocar con el header grande */
  background: linear-gradient(to bottom, #f4f4f4, #ffffff);
}

.hero-text h1 {
  font-size: 3rem;
  color: var(--verde-oscuro);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #555;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.btn-principal {
  background: var(--naranja);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transicion);
}

.btn-secundario {
  background: var(--verde-oscuro);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

/* ===================== CATEGORÍAS INICIO ===================== */
.categorias-grid-inicio {
  padding: 4rem 1.5rem;
  background: #fff;
}

.titulo-centrado {
  text-align: center;
  font-size: 2.2rem;
  color: var(--verde-oscuro);
  margin-bottom: 3rem;
}

.grid-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.cat-card {
  text-decoration: none;
  color: inherit;
  background: var(--fondo);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 1.5rem;
  transition: var(--transicion);
  border: 1px solid #eee;
}

.cat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--sombra);
}

.cat-img {
  height: 200px;
  overflow: hidden;
}

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

.cat-card h3 {
  margin: 1rem 0 0.5rem;
  color: var(--verde-oscuro);
}

/* ===================== FEATURES ===================== */
.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 4rem 1.5rem;
  background: var(--verde-oscuro);
  color: white;
  text-align: center;
}

.feature-item {
  max-width: 300px;
}

.feature-item .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ===================== CTA FINAL ===================== */
.cta-newsletter {
  text-align: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0.05));
}

.btn-whatsapp-rect {
  display: inline-block;
  margin-top: 1.5rem;
  background: #25D366;
  color: white;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
}

/* RESPONSIVE HERO */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-btns { justify-content: center; }
  .hero-image { order: -1; }
}
/* Sidebar de Filtros */
.filtros-sidebar {
  position: sticky;
  top: 20px; /* Se queda fijo al hacer scroll */
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--sombra-suave);
  height: fit-content;
}

.filtro-grupo {
  margin-bottom: 1.5rem;
}

.filtro-grupo label {
  display: block;
  font-weight: 700;
  color: var(--verde1);
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Estilo de los Selects */
select, #buscador {
  background-color: #f9f9f9;
  border: 1px solid #ececec;
  transition: border-color 0.3s ease;
}

select:hover, #buscador:hover {
  border-color: var(--naranja);
}

/* Estado de No Resultados */
.no-resultados {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 15px;
  border: 2px dashed #ddd;
}

.btn-reset {
  margin-top: 1rem;
  background: var(--verde-oscuro);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.btn-reset:hover {
  background: var(--naranja);
}

/* Responsivo para Filtros Móviles */
@media (max-width: 899px) {
  .filtros-sidebar {
    position: relative;
    top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .filtros-titulo { grid-column: 1 / -1; }
  .filtro-grupo { margin-bottom: 0; }
}

/* Contenedor de las ondas */
.waves-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.waves {
  position: relative;
  width: 100%;
  height: 12vh;
  min-height: 100px;
  max-height: 150px;
}

/* Animación Parallax */
.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
  .waves {
    height: 40px;
    min-height: 40px;
  }
}
.ofertas-banner {
  background: var(--naranja);
  color: white;
  overflow: hidden;
  padding: 12px 0;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ofertas-track {
  display: inline-block;
  animation: scroll-banner 30s linear infinite;
}

.ofertas-track span {
  display: inline-block;
  padding: 0 40px;
  font-weight: bold;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes scroll-banner {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Pausar al pasar el mouse para que puedan leer */
.ofertas-banner:hover .ofertas-track {
  animation-play-state: paused;
}
/* ===================== FOOTER PROFESIONAL ===================== */
.main-footer {
  background-color: var(--verde-oscuro);
  color: #e0e0e0;
  padding: 5rem 1.5rem 2rem;
  margin-top: 4rem;
  position: relative;
  border-top: 4px solid var(--naranja); /* Línea decorativa naranja */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-col h3 {
  color: var(--blanco);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: var(--naranja);
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1); /* Hace el logo blanco si es oscuro */
}

.footer-col p {
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--naranja);
  padding-left: 5px;
}

/* Redes Sociales e Iconos */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

.social-links a {
  background: rgba(255,255,255,0.1);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

.social-links a:hover {
  background: var(--naranja);
}

/* Parte inferior */
.footer-bottom {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .social-links {
    justify-content: center;
  }
}
/* Logo en el Footer (Color original con fondo ligero para que resalte) */
.footer-logo-color {
  background-color: transparent; /* Quitamos el fondo */
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)); /* Un brillo suave alrededor */
  height: 75px;
  padding: 0;
}

/* Contenedor del Mapa */
.google-map {
  margin-top: 10px;
  filter: grayscale(0.3) contrast(1.1); /* Estética profesional */
  transition: filter 0.3s ease;
}

.google-map:hover {
  filter: grayscale(0); /* El mapa recupera color al pasar el mouse */
}

/* Ajuste general de la columna del mapa */
.footer-col .google-map iframe {
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}