/* Estilos generales */
:root {
  --primary-color: #0066cc;
  --secondary-color: #004d99;
  --accent-color: #ff9900;
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --dark-gray: #666666;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Header y Navegación */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
}

.nav-modern {
  display: flex;
  align-items: center;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content a {
  padding: 0.5rem 1rem;
  display: block;
}

/* Hero Section */
.hero {
  margin-top: 80px;
  height: 80vh;
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

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

.hero-content {
  max-width: 800px;
  padding: 2rem;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  color: white;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.cta-button:hover {
  background: #e68a00;
  transform: translateY(-2px);
}

/* Categorías */
.categories {
  padding: 4rem 2rem;
  background: var(--light-gray);
}

.section-title {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  color: var(--text-color);
}

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

.category-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.category-image {
  height: 200px;
  overflow: hidden;
}

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

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-card h3 {
  padding: 1rem;
  font-size: 1.5rem;
  margin: 0;
}

.category-card p {
  padding: 0 1rem 1rem;
  color: var(--dark-gray);
}

/* Beneficios */
.benefits {
  padding: 4rem 2rem;
  background: var(--white);
}

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

.benefit-card {
  text-align: center;
  padding: 2rem;
  background: var(--light-gray);
  border-radius: 8px;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.benefit-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.benefit-card h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.benefit-card p {
  color: var(--dark-gray);
}

/* Carrito flotante */
.cart-button {
  position: fixed;
  bottom: 12rem;
  right: 2rem;
  background: var(--primary-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 100;
  transition: var(--transition);
}

.cart-button:hover {
  transform: scale(1.1);
  background: var(--secondary-color);
}

.cart-button a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.5rem;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-color);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: var(--white);
  padding: 4rem 2rem 2rem;
}

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

.footer-section h4 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  font-size: 1.5rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Botón de subir */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: var(--accent-color);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.scroll-top:hover {
  background: #e68a00;
  transform: translateY(-2px);
}

/* Menú móvil */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 5px 0;
  transition: var(--transition);
}
.contenedor-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Media Queries */
@media (max-width: 768px) {
  .menu-toggle {
      display: block;
  }

  .nav-links {
      display: none;
      flex-direction: column;
      background: #fff;
      position: absolute;
      top: 60px; /* ajusta según la altura de tu header */
      right: 0;
      width: 100%;
      box-shadow: 0 4px 16px rgba(0,0,0,0.08);
      z-index: 1001;
  }

  .nav-links.active {
      display: flex;
  }

  .dropdown-content {
      position: static;
      box-shadow: none;
      display: none;
  }

  .dropdown.active .dropdown-content {
      display: block;
  }

  .hero-title {
      font-size: 2rem;
  }

  .hero-subtitle {
      font-size: 1.2rem;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.benefit-card, .category-card {
  animation: fadeIn 0.5s ease-out;
} 

.formulario-contacto {
  max-width: 600px;
  margin-top: 2rem auto;
  margin: 2rem auto;
  padding: 5rem;
  background-color: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.formulario-contacto h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.formulario-contacto form {
  display: flex;
  flex-direction: column;
}

.formulario-contacto label {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.formulario-contacto input,
.formulario-contacto textarea {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

.formulario-contacto button {
  background-color: #0065c9;
  color: white;
  padding: 0.9rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.formulario-contacto button:hover {
  background-color: #003366;
}
.contacto-extra {
  text-align: center;
  margin-top: 3rem;
}

.contacto-extra h3 {
  margin-bottom: 1rem;
}

.btn-contacto {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.8rem 1.5rem;
  background-color: #0065c9;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.btn-contacto:hover {
  background-color: #003366;
}
.gracias {
  max-width: 600px;
  margin: 5rem auto;
  text-align: center;
  padding: 2rem;
  background-color: #f1f1f1;
  border-radius: 10px;
}

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

.gracias p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-volver {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #0065c9;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
}

.btn-volver:hover {
  background-color: #003366;
}
.footer {
  background-color: #222;
  color: #fff;
  padding: 2rem 1rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}

.footer-contenido {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1100px;
  margin: auto;
}

.footer-info,
.footer-enlaces,
.footer-redes {
  flex: 1;
  min-width: 200px;
}

.footer h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #0355a8;
}

.footer a {
  color: #ddd;
  text-decoration: none;
}

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

.footer-copy {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
  font-size: 0.8rem;
}
#btnArriba {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 20px;
  background-color: #007bff;
  color: white;
  border: none;
  outline: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

#btnArriba:hover {
  background-color: #0056b3;
}
.nosotros {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
}

.nosotros h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.lista-productos {
  text-align: left;
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
}

.lista-productos li {
  margin-bottom: 0.7rem;
  padding-left: 1rem;
  position: relative;
  font-size: 1.1rem;
}

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

.contacto-nosotros h2 {
  color: #003366;
  margin-bottom: 2rem;
}

.contacto-nosotros p {
  margin: 1rem 0;
  font-size: 1.1rem;
}

.boton-whatsapp {
  margin-top: 2rem;
}

.boton-whatsapp a {
  display: inline-block;
  background-color: #0055aa;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.boton-whatsapp a:hover {
  background-color: #002244;
}

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

.servicio {
  background-color: #f2f2f2;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: aparecer 0.6s ease forwards;
}

.servicio span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.servicio h3 {
  margin: 0.5rem 0;
  color: #333;
}

.servicio p {
  color: #666;
  font-size: 0.95rem;
}

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

.servicio:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

.tarjeta-producto {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  text-decoration: none;
  color: #333;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 280px;
  text-align: center;
}

.tarjeta-producto:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.tarjeta-producto img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.tarjeta-producto h3, .tarjeta-producto p {
  padding: 0.5rem 1rem;
}

.tarjeta-producto h3 {
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.tarjeta-producto p {
  font-size: 0.9rem;
  color: #666;
  padding-bottom: 1rem;
}

.boton-carrito {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  text-align: center;
}

.boton-carrito a {
  display: inline-block;
  background-color: #1c7de4;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.boton-carrito a:hover {
  background-color: #0056b3;
}

/* Tarjetas en productos.html */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.tarjeta-producto {
  border: 1px solid #ccc;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: black;
  background: white;
  transition: box-shadow 0.3s;
}

.tarjeta-producto:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.tarjeta-producto img {
  max-width: 100%;
  height: auto;
}

/* Detalle del producto */
.producto-detalle {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.imagen-producto {
  max-width: 400px;
  width: 100%;
}

.info-producto {
  max-width: 400px;
}

input[type="number"] {
  width: 60px;
  padding: 0.3rem;
  margin: 0.5rem 0;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
}

button:hover {
  background-color: #0056b3;
}
.contador-carrito {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  line-height: 1;
}
.boton-carrito {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}
.boton-carrito a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 60px;
  height: 60px;
  background-color: #007bff;
  color: white;
  font-size: 18px;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.boton-carrito a:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}
h1 {
  color: #333;
}

.contenedor-carrito {
  max-width: 800px;
  margin: auto;
}

.lista-productos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.producto-carrito {
  display: flex;
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  gap: 20px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.producto-carrito img {
  width: 100px;
  height: auto;
  border-radius: 5px;
}

.producto-carrito h3 {
  margin: 0;
  color: #444;
}

.total {
  margin-top: 20px;
  font-size: 1.2em;
  text-align: right;
}

.acciones-carrito {
  margin-top: 30px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  padding: 10px 20px;
  border: none;
  background-color: #007acc;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.btn:hover {
  background-color: #005fa3;
}

/* Estilos para las categorías de productos */
.categoria-productos {
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.categoria-productos h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    margin-left: 4rem;
    margin-right: 4rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

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

.tarjeta-producto {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.tarjeta-producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tarjeta-producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.tarjeta-producto h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 1rem;
    padding: 0;
}

.tarjeta-producto p {
    color: #666;
    font-size: 0.9rem;
    margin: 0 1rem 1rem;
    padding: 0;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .categoria-productos h2 {
        font-size: 1.5rem;
    }

    .tarjeta-producto img {
        height: 150px;
    }
}

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

    .categoria-productos {
        padding: 0.5rem;
    }
}

/* Estilos del carrusel */
.carrusel {
    width: 100%;
    max-width: 600px;
    margin: 0 0 1rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
}

.carrusel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carrusel-texto {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    text-align: center;
}

.carrusel-texto h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.carrusel-texto p {
    font-size: 1.2rem;
    margin: 0;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
    z-index: 2;
}

.carrusel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.carrusel-btn-prev {
    left: 10px;
}

.carrusel-btn-next {
    right: 10px;
}

.carrusel-indicadores {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carrusel-indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.carrusel-indicador.activo {
    background: white;
}

/* Estilos responsivos para el carrusel */
@media (max-width: 768px) {
    .carrusel {
        height: 300px;
    }

    .carrusel-texto h2 {
        font-size: 1.5rem;
    }

    .carrusel-texto p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carrusel {
        height: 200px;
    }

    .carrusel-texto h2 {
        font-size: 1.2rem;
    }

    .carrusel-texto p {
        font-size: 0.9rem;
    }

    .carrusel-btn {
        padding: 0.5rem;
        font-size: 1.2rem;
    }
}

/* Miniaturas */
.miniaturas {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

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

.miniaturas img.activa {
    border-color: #003366;
}

/* Selector de colores */
.color-selector {
    margin: 1rem 0;
    text-align: left;
    width: 100%;
}

.color-selector h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.color-option {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border: 2px solid #003366;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #003366;
    color: white;
    font-weight: 500;
}

.color-option:hover {
    background: #0a4d91;
    border-color: #0a4d91;
}

.color-option.selected {
    background: #0a4d91;
    border-color: #0a4d91;
}

/* Contenedor de colores */
.colores-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 1rem;
}

/* Selector de tamaños */
.tamano-selector {
    margin: 1rem 0;
    text-align: left;
    width: 100%;
}

.tamano-selector h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.tamano-option {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border: 2px solid #28a745;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #28a745;
    color: white;
    font-weight: 500;
}

.tamano-option:hover {
    background: #218838;
    border-color: #218838;
}

.tamano-option.selected {
    background: #218838;
    border-color: #218838;
}

/* Contenedor de tamaños */
.tamanos-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 1rem;
}

/* Estilos del Carrito */
#carrito-items {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

.item-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.item-info {
    flex: 1;
}

.item-info h3 {
    margin: 0 0 0.5rem 0;
    color: #003366;
}

.item-info p {
    margin: 0.25rem 0;
    color: #666;
}

.boton-eliminar {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.boton-eliminar:hover {
    background-color: #c82333;
}

.botones-carrito {
    max-width: 800px;
    margin: 1rem auto;
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.boton-primario {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.boton-primario:hover {
    background-color: #128C7E;
}

.boton-secundario {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.boton-secundario:hover {
    background-color: #5a6268;
}

/* Estilos para los botones del carrito */
.carrito-acciones {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.btn-vaciar {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-vaciar:hover {
    background-color: #c82333;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
}

.btn-eliminar {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-eliminar:hover {
    background-color: #c82333;
}

/* Estilos del carrito */
.carrito-contenido {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    overflow-x: auto; /* Permite scroll horizontal en tablas grandes */
}

#tabla-carrito {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    min-width: 600px; /* Asegura un ancho mínimo para la tabla */
}

#tabla-carrito th,
#tabla-carrito td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#tabla-carrito th {
    background-color: #003366;
    color: white;
    white-space: nowrap; /* Evita que los encabezados se rompan en múltiples líneas */
}

#tabla-carrito img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.total-carrito {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    margin: 1rem 0;
    color: #003366;
}

/* Estilos del formulario de cotización */
.formulario-cotizacion {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.formulario-cotizacion h2 {
    color: #003366;
    margin-bottom: 1rem;
}

.formulario-cotizacion p {
    color: #666;
    margin-bottom: 1.5rem;
}

.campo-formulario {
    margin-bottom: 1.5rem;
}

.campo-formulario label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.campo-formulario input,
.campo-formulario textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.campo-formulario input:focus,
.campo-formulario textarea:focus {
    border-color: #003366;
    outline: none;
}

.botones-cotizacion {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-whatsapp,
.btn-correo {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
}

.btn-correo {
    background-color: #003366;
    color: white;
}

.btn-correo:hover {
    background-color: #002244;
}

/* Selector de cantidad */
.cantidad-selector {
    margin: 1rem 0;
    text-align: left;
    width: 100%;
}

.cantidad-selector h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.cantidad-selector input {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

/* Botón de agregar al carrito */
.boton-agregar {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 1rem 0;
    padding: 1rem;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.boton-agregar:hover {
    background-color: #004080;
}

/* Estilos responsivos para el carrito */
@media (max-width: 768px) {
    .carrito-contenido {
        padding: 0.5rem;
        margin: 1rem auto;
    }

    #tabla-carrito th,
    #tabla-carrito td {
        padding: 0.5rem;
    }

    .formulario-cotizacion {
        padding: 1rem;
    }

    .botones-cotizacion {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-whatsapp,
    .btn-correo {
        width: 100%;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .carrito-contenido {
        margin: 0.5rem auto;
    }

    #tabla-carrito {
        font-size: 0.9rem;
    }

    #tabla-carrito img {
        width: 40px;
        height: 40px;
    }
}

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

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: #666;
}

.main-content {
  margin-top: 80px;
  padding: 2rem;
}

/* Ajuste para la galería */
.gallery-grid {
    padding-top: 1rem;
}

/* Estilos para el checkbox de aviso de privacidad */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
}

.checkbox-label a:hover {
  color: var(--secondary-color);
}

/* Estilos para el modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close {
  color: var(--dark-gray);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 20px;
  transition: var(--transition);
}

.close:hover,
.close:focus {
  color: var(--text-color);
}

.modal-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.modal-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.modal-content a:hover {
  color: var(--secondary-color);
}

/* Animación para el modal */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive para el modal */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    width: 95%;
    padding: 1.5rem;
  }
  
  .modal-content h3 {
    font-size: 1.3rem;
  }
}