:root {
  --negro: #111;
  --gris-oscuro: #333;
  --gris-claro: #f7f7f7;
  --gris-borde: #dcdcdc;
  --amarillo: #ffd700;
  --naranja-metal: #ff8c00;
  --blanco: #ffffff;
}

/* ===== GENERAL ===== */
body {
  background-color: var(--gris-claro);
  color: var(--negro);
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ===== HEADER ===== */
header {
  background-color: var(--blanco);
  border-bottom: 2px solid var(--gris-borde);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  color: var(--naranja-metal);
  font-size: 1.6rem;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
}

nav ul li a {
  color: var(--gris-oscuro);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--naranja-metal);
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #fff, #f3f3f3);
}

.hero h2 {
  color: var(--naranja-metal);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--gris-oscuro);
  max-width: 800px;
  margin: 0 auto;
}

/* ===== SECCIONES ===== */
section.content {
  padding: 2rem;
  color: var(--gris-oscuro);
}

.about {
  background: var(--blanco);
  padding: 3rem 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  margin: 2rem;
}

/* ===== PRODUCTOS ===== */
.catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.producto {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.producto:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

/* ===== BOTONES ===== */
.btn {
  background: var(--naranja-metal);
  color: var(--blanco);
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
  font-weight: 600;
}

.btn:hover {
  background: var(--amarillo);
  color: var(--negro);
}

/* ===== CARRITO ===== */
.carrito {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid var(--gris-borde);
  border-radius: 10px;
  background: var(--blanco);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.carrito ul {
  list-style: none;
  padding: 0;
}

.carrito li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gris-borde);
  padding: 0.5rem 0;
}

.carrito li button {
  background: transparent;
  color: var(--naranja-metal);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.carrito li button:hover {
  color: red;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--blanco);
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--gris-borde);
  color: var(--gris-oscuro);
  font-size: 0.9rem;
}

/* ===== GALERÍA ===== */
.galeria {
  text-align: center;
}

.imagen-principal {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background-color: var(--gris-claro);
  border-radius: 10px;
}

.miniaturas img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, border 0.2s;
}

.miniaturas img:hover {
  transform: scale(1.08);
  border: 2px solid var(--naranja-metal);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
}

/* ===== CONFIRMAR BOTÓN ===== */
.confirmar-btn {
  background-color: var(--naranja-metal);
  color: var(--blanco);
  font-weight: bold;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.confirmar-btn:hover {
  background-color: var(--amarillo);
  color: var(--negro);
  transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: var(--blanco);
    width: 100%;
    border-top: 1px solid var(--gris-borde);
    padding: 1rem 0;
  }

  .hero {
    padding: 2.5rem 1rem;
  }

  .about {
    margin: 1rem;
    padding: 2rem 1rem;
  }
}
/* ===== LOGO ===== */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  width: 40px;
  height: auto;
}

/* ===== MENÚ HAMBURGUESA ===== */
.menu-toggle {
  display: none; /* oculto por defecto */
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--gris-oscuro);
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* solo en móvil */
  }

  nav ul {
    display: none; /* oculto inicialmente */
    flex-direction: column;
    width: 100%;
    background-color: var(--blanco);
    position: absolute;
    top: 70px; /* justo debajo del header */
    left: 0;
    border-top: 1px solid var(--gris-borde);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  nav ul.active {
    display: flex; /* visible cuando se activa */
  }

  nav ul li {
    text-align: center;
    padding: 1rem 0;
  }
}
.hero p {
  font-size: 1.1rem;
  color: #333;
  max-width: 700px;
  margin: 0.8rem auto;
  line-height: 1.6;
}

.hero .btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.6rem;
  background: var(--naranja-metal);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.hero .btn:hover {
  background: var(--amarillo);
  color: #000;
}
.about {
  background: #f9f9f9;
  padding: 3rem 1.5rem;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: var(--azul-metal);
}

.about p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  max-width: 750px;
  margin: 0.7rem auto;
}
.about {
  background-color: #f9f9f9;
  padding: 4rem 2rem;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 500px;
  text-align: left;
}

.about-text h2 {
  font-size: 2.2rem;
  color: #ffb300; /* amarillo metálico */
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-list {
  list-style: none;
  padding: 0;
}

.about-list li {
  margin: 0.5rem 0;
  font-weight: 500;
  color: #222;
  display: flex;
  align-items: center;
}

.about-list li::before {
  content: "•";
  color: #ffb300;
  font-weight: bold;
  margin-right: 0.5rem;
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.03);
}

/* Responsivo para móvil */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-image img {
    max-width: 90%;
  }
}
/* ===== SECCIÓN DE SERVICIOS ===== */
.services {
  background: var(--gris-claro);
  color: var(--negro);
  padding: 4rem 2rem;
  text-align: center;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services h2 {
  font-size: 2.2rem;
  color: var(--naranja-metal);
  margin-bottom: 1rem;
}

.services-intro {
  color: #444;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--naranja-metal);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--gris-oscuro);
  margin-bottom: 0.6rem;
}

.service-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsivo */
@media (max-width: 768px) {
  .services {
    padding: 3rem 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }
}
/* ===== CATÁLOGO ===== */
.catalogo-section {
  background: var(--gris-claro);
  padding: 3rem 2rem;
}

.catalogo-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.catalogo h2 {
  font-size: 2.2rem;
  color: var(--naranja-metal);
  margin-bottom: 1rem;
}

.catalogo-intro {
  color: #555;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.producto {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.producto h3 {
  color: var(--negro);
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Carrito */
.carrito {
  background: var(--blanco);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-top: 2.5rem;
}

.carrito h3 {
  color: var(--naranja-metal);
}

.carrito ul li {
  border-bottom: 1px solid var(--gris-borde);
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carrito li span {
  color: #333;
}

/* Botón confirmar */
.confirmar-btn {
  background-color: var(--naranja-metal);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.confirmar-btn:hover {
  background-color: var(--amarillo);
  color: #000;
  transform: scale(1.05);
}
/* ===== CARRITO FLOTANTE ===== */
.carrito-flotante {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
}

.carrito-toggle {
  background-color: var(--naranja-metal);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carrito-toggle:hover {
  background-color: var(--amarillo);
  color: #000;
  transform: scale(1.05);
}

#contadorCarrito {
  background-color: #fff;
  color: var(--naranja-metal);
  font-weight: bold;
  border-radius: 50%;
  padding: 0.2rem 0.6rem;
  font-size: 0.9rem;
}

.carrito-contenido {
  display: none;
  background-color: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  max-height: 60vh;
  overflow-y: auto;
}

.carrito-contenido.activo {
  display: block;
  animation: fadeIn 0.3s ease;
}

.carrito-contenido h3 {
  color: var(--naranja-metal);
  margin-bottom: 0.8rem;
  text-align: center;
}

.carrito-contenido ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.carrito-contenido li {
  border-bottom: 1px solid var(--gris-borde);
  padding: 0.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.carrito-contenido li span {
  color: #333;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVO */
@media (max-width: 600px) {
  .carrito-contenido {
    width: 90vw;
    right: 5vw;
    bottom: 80px;
    padding: 1rem;
  }

  .carrito-toggle {
    padding: 0.7rem 1rem;
    font-size: 1rem;
  }

  #contadorCarrito {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
  }
}
/* ===== MENÚ MÓVIL ===== */
#menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--naranja-metal);
}

/* Versión móvil */
@media (max-width: 768px) {
  #menu {
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s ease;
    z-index: 999;
  }

  #menu.activo {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
  }
}

/* Asegurar que el header no tape el menú */
.header-fijo {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
}