/* RESETEO GENERAL */
* { 
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

html {
  scroll-behavior: smooth; /* Hace que el scroll sea suave al dar clic en el menú */
}
html, body {
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  background: linear-gradient(135deg, #d4d4d4, #d4d4d4, #d4d4d4);
  color: #333;
}

/*  LOGO */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
  text-align: center;
}
.logo h1 {
    width: 100%;
    margin: 0;
    text-transform: uppercase;
    text-align: center; /* Título centrado */
}
.logo img {
  width: 120px;
  height: auto;
  position: static;
}
@media (min-width: 786px) {
    .logo {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 20px 50px;
    }
    
    .logo img {
        position: static;
        transform: none;
        justify-self: start;
    }
    
    .logo h1 {
        grid-column: 2;
        text-transform: uppercase;
        text-align: center;
        width: 100%;
    }
}

/* HEADER Y NAV */
header {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-links {
  background-color: #f30c0c;
}

.nav-links ul {
  list-style: none !important; 
  display: flex;
  flex-direction: column; 
  padding: 0;
  margin: 0;
}

.nav-links li {
  width: 100%;
}

.nav-links li a {
  display: block;
  text-decoration: none;
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 20px;
  transition: background 0.3s ease;
}

.nav-links li a:hover {
  color: #333;
  background-color: #f39c12;
}

@media (min-width: 768px) {
  .nav-links ul {
    flex-direction: row;
    justify-content: center;
  }
  .nav-links li {
    width: auto;
  }
}

/*  HISTORIA */
#sobre-nosotros {
  background: linear-gradient(135deg, #383535, #ffffff, #ffffff);
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#sobre-nosotros .title {
  color: #b30000;
  font-size: 2.5em;
  margin: 20px;
  font-family: 'Georgia', serif;
  transform: uppercase;
}
#sobre-nosotros {
  background: linear-gradient(135deg, #ffffff, #d4d4d4, #d4d4d4);
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#sobre-nosotros .productos-card {
  max-width: 800px;
  background: rgba(255, 255, 255, 0.7);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  
}
#sobre-nosotros .productos-card:hover {
  transform: scale(1.02);
}
#sobre-nosotros .productos-card p {
  font-size: 1em;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

.productos-card {
  max-width: 800px;
  background: rgba(255, 255, 255, 0.7);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}
.productos-card:hover {
  transform: scale(1.02);
}
.productos-card p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #000000;
  text-align: right;
}


/* HERO */
#hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/Portada.jpeg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
}
#hero h1 {
  font-size: 30px;
  margin-bottom: 1rem;
}
#hero .slogan {
  font-size: 50px; /* El tamaño que tenía el h1 original */
  margin-bottom: 1rem;
  font-weight: bold;
}
#hero .cta-button {
  background-color: #ff6b6b;
  color: white;
  padding: 10px 20px;
  margin-top: 20px;
  border-radius: 5px;
}
#hero .cta-button:hover {
  background-color: #fa5a5a;
}

/* CONTENEDOR EXTERNO */
.contenedor {
  width: 100%;
  overflow: hidden;      /* evita que se salgan */
  padding: 20px 0;
}
.contenedor-animacion {
  overflow: hidden;
  position: relative;
}


/* CONTENEDOR DE IMÁGENES */
.box {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;    /* ancho total de todas las imágenes */
  animation: mover 25s linear infinite;
}

/* IMÁGENES */
.box span {
  flex-shrink: 0;        /* evita que se aplasten */
}
.box span img {
  width: 300px;          /* ajusta el tamaño si quieres */
  height: auto;
  display: block;
  border-radius: 10px;   /* opcional */
}
.box img { /* Estilo de las imágenes */
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
}
/* ANIMACIÓN */
@keyframes mover {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


/* PRODUCTOS */
#productos {
  text-align: center;
  margin-bottom: 2rem;
  padding: 4rem 2rem;
}
#productos h2 {
  color: #b30000;
  margin-bottom: 2rem;
  font-size: 2.2rem;
}
.productos-grid {
  display: grid;
  
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.productos-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
  padding-bottom: 1rem;
}
.productos-card:hover {
  transform: translateY(-5px);
}
.productos-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  display: block;
}
.productos-card h3 {
  padding: 0.5rem;
  color: #333;
  font-size: 1.1rem;
}

.precio {
  color: #b30000;
  font-weight: bold;
  padding: 0 1rem;
}

.descripcion {
  padding: 0.5rem 1rem;
  color: #666;
  font-size: 0.9rem;
}

.productos-card button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #e90b0b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.productos-card button:hover {
  background-color: #eb0d0d;
}

/* modal */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.4s ease-out;
  font-family: 'Poppins', sans-serif;
}
.modal-content img {
  width: 50%;
  border-radius: 15px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}
.modal-content img:hover {
  transform: scale(1.05);
}
.modal-content h3 {
  font-size: 1.8rem;
  color: #b30000;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.modal-content p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
  padding: 0 10px;
}

#cerrar-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #b30000;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}
#cerrar-modal:hover {
  color: #b30000;
  transform: scale(1.2);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ver-producto {
  background: linear-gradient(135deg, #e23c3c, #b30000);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.ver-producto:hover {
  background: linear-gradient(135deg, #ff4d4d, #e02d2d);
  transform: scale(1.05);
}
.ver-producto:active {
  transform: scale(0.95);
}

/* CONTACTO */
#contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  background: linear-gradient(500deg, #994f4f, #d4d4d4, #ffffff);
  padding: 40px;
  color: #333;
}

.mapa {
  flex: 1;
  text-align: center;
}
.mapa img {
  width: 90%;
  max-width: 550px;
  border-radius: 10px;
}

.info {
  flex: 1;
  padding: 20px;
}
.info h2 {
  color: #131212;
  font-size: 28px;
  margin-bottom: 15px;
}
.info h3 {
  color: #e70606;
  margin-top: 25px;
  margin-bottom: 5px;
  font-size: 20px;
}
.info p, 
.info a {
  font-size: 1.15rem;
  font-family: 'Poppins', sans-serif;
  color: #222;
  line-height: 1.8;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.info a:hover {
  color: #b30000;
}

iframe {
  margin-top: 15px;
  border: none;
  border-radius: 10px;
  width: 100%;
  height: 200px;
}

.redes {
  margin-top: 25px;
}
.redes h3 {
  color: #0a0a0a;
  margin-bottom: 10px;
}
.redes a {
  display: inline-block;
  background: #b30000;
  color: white;
  font-size: 22px;
  width: 45px;
  height: 45px;
  text-align: center;
  line-height: 45px;
  border-radius: 50%;
  margin: 0 5px;
  transition: transform 0.3s ease;
}
.redes a:hover {
  transform: scale(1.1);
  background: #b30000;
  color: white;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .slider-box {
    height: 250px;
  }
  .slider-box img {
    height: 250px;
  }

  .texto h2 {
    font-size: 1.8rem;
  }

  .logo img {
    width: clamp(90px, 12vw, 160px);
  }

  #contacto {
    flex-direction: column;
    padding: 30px;
    text-align: center;
  }

  .info {
    padding: 0;
  }

  .mapa img {
    width: 100%;
  }
}
footer {
  background: linear-gradient(135deg, #b32222, #ce1616, #b41f1f);
  color: #fff;
  text-align: center;
  padding: 25px 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  bottom: 0;
  width: 100%;
}

footer p {
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  transition: color 0.3s ease;
}
footer p:hover {
  color: #ffd700; /* Dorado al pasar el cursor */
}

/* BURBUJA WHATSAPP */
.whatsapp-float {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;

  width: 60px;
  height: 60px;

  background-color: #25d366;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;
  color: white;

  z-index: 2147483647 !important;
  pointer-events: auto !important;
}
