/* -------------------- BASE -------------------- */
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f5deb3; /* Fondo piel de maní */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

/* -------------------- HEADER Y NAVBAR -------------------- */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #d17e1f;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(8, 8, 8, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  max-width: 200px;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto 15px;
}
.logo img:hover {
  transform: scale(1.1);
}

/* Nav Bootstrap usando clases nativas */
/* Navbar general */
.navbar {
  background: linear-gradient(50deg, #f0b94f, #f0b94f);
  box-shadow: 0 4px 8px rgba(209, 126, 31, 0.6);
  padding: 0.8rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
}

/* Links del navbar */
.navbar-nav .nav-link {
  font-weight: 600;
  color: #ffffff !important;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, transform 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #08fa03 !important; /* amarillo vibrante */
  transform: scale(1.05);
}
/* -------------------- BOTÓN HAMBURGUESA -------------------- */
.navbar-toggler {
  background-color: #98FB98; /* Verde pistacho */
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler img.icono-mani {
  width: 30px;
  height: auto;
}
.icono-mani.girar {
  animation: girar 0.6s linear;
}
/* -------------------- CARRUSEL -------------------- */
.carousel {
  max-height: 400px;
  overflow: hidden;
}
.carousel-inner img {
  height: 400px;
  object-fit: cover;
}
#carouselExample .carousel-item .carousel-caption {
  color: #000;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  padding: 10px;
}

/* -------------------- AVISO DE KILO -------------------- */
.aviso-kilo {
  margin: 0 !important;
  border-radius: 0;
  padding: 1rem 2rem;
}

/* -------------------- BIENVENIDA -------------------- */
.titulo-bienvenida {
  font-size: 2.5rem;
  font-weight: 700;
  color: #704214;
  margin-bottom: 20px;
  text-align: center;
}

.texto-bienvenida {
  font-size: 1.2rem;
  color: #444;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: center;
}

/* -------------------- CARD CONTAINER -------------------- */
.card-container {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex-wrap: nowrap;
  justify-content: start;
}

.card-container .card {
  flex: 0 0 18rem;     /* Ancho fijo para escritorio */
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}

/* Estilo para la imagen */
.card-container .card img {
  height: 200px;
  object-fit: cover;
}

/* SOLO PARA CELULAR */
@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;     /* Oculta scroll horizontal */
    padding: 1rem 0;
  }

  .card-container .card {
    flex: none;
    width: 90%;             /* Ocupa casi todo el ancho del celular */
    margin-bottom: 1.5rem;
  }

  .card-container .card img {
    height: auto;
    width: 100%;
  }
}

/* -------------------- SECCIÓN NOSOTROS -------------------- */
#nosotros {
  background-color: #f6e2c2;
  padding: 80px 0;
}
.titulo-nosotros {
  font-size: 2.5rem;
  font-weight: 700;
  color: #704214;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.descripcion-nosotros {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #000000;
  text-align: justify;
  max-width: 800px;
  margin: 0 auto 30px;
}
@media (max-width: 768px) {
  .titulo-nosotros { font-size: 2rem; }
  .descripcion-nosotros { font-size: 1.1rem; }
}

/* -------------------- CONTACTO -------------------- */
#contacto {
  background-color: #f6e2c2;
  padding: 60px 20px;
  scroll-margin-top: 165px;
}
#contacto h2 {
  text-align: center;
  color: #704214;
  margin-bottom: 30px;
  font-weight: 700;
}
#contacto p.lead {
  text-align: center;
  font-size: 18px;
  color: #333;
  margin-bottom: 40px;
}
#contacto form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
#contacto form input,
#contacto form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  font-size: 16px;
}
#contacto form button {
  width: 100%;
  padding: 12px;
  background-color: #a57c36;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#contacto form button:hover {
  background-color: #704214;
}
@media (max-width: 768px) {
  #contacto form {
    padding: 20px;
  }
}

/* -------------------- FAQ -------------------- */
#faq {
  background-color: #e39323;
  border: 2px solid #ccc;
  padding: 2rem;
  margin: 40px auto;
  border-radius: 10px;
  max-width: 800px;
  font-family: 'Montserrat', sans-serif;
}
#faq h2 {
  text-align: center;
  margin-bottom: 20px;
}
.faq-item {
  margin-bottom: 15px;
  padding: 10px;
  border-left: 4px solid #a5824f;
  background-color: #fff;
  border-radius: 5px;
}
.faq-item h3 {
  margin: 0 0 5px;
  color: #333;
}
.faq-item p {
  margin: 0;
  color: #555;
}

/* -------------------- SOCIAL FUN -------------------- */
.social-fun-section {
  width: 100%;
  background: linear-gradient(135deg, #fbd3a0, #ffe4c4);
  padding: 2rem;
  text-align: center;
}
.social-fun-section h2,
.social-fun-section p {
  color: #000;
}
.social-fun-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.social-fun-icon {
  font-size: 3em;
  color: #fff;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.social-fun-icon.instagram {
  background-color: #E1306C;
}
.social-fun-icon.whatsapp {
  background-color: #25D366;
}
.social-fun-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
@media (max-width: 600px) {
  .social-fun-icons {
    gap: 25px;
  }
  .social-fun-icon {
    font-size: 2.5em;
    width: 60px;
    height: 60px;
  }
}

/* -------------------- FOOTER -------------------- */
.footer {
  background-color: #666;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}
.footer p {
  margin: 0;
  font-size: 0.95em;
}
.footer-logo img {
  max-width: 250px;
  height: auto;
  margin-bottom: 15px;
}

/* En tu archivo CSS personalizado */

@keyframes girar {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Estilo del botón contenedor del maní */
.mani-btn {
  border: none;
  background-color: transparent;
  padding: 0;
}

/* Contenedor decorativo */
.mani-icon-container {
  background-color: #fff3e0; /* fondo suave como mantequilla de maní */
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Imagen del maní */
.icono-mani {
  width: 30px;
  height: 30px;
  transition: transform 0.6s ease;
}

/* Al girar */
.icono-mani.girar {
  transform: rotate(360deg);
}
