/* ===== ESTILOS GENERALES (PANAL DE MIEL) ===== */
:root {
  --miel-oscuro: #d4a017;  /* Dorado oscuro como miel */
  --miel: #f6c145;         /* Amarillo miel principal */
  --miel-claro: #fae8a0;   /* Miel claro para fondos */
  --panal: #fff5d6;        /* Fondo crema suave */
  --texto-oscuro: #5c3a00; /* Texto contrastante */
}

/* ===== HEADER PROFESIONAL (ESTILO MIEL) ===== */
.navbar {
  background: linear-gradient(135deg, var(--miel-oscuro), var(--miel));
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
  padding: 15px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-nav {
  align-items: center;
}

.nav-link {
  color: white !important;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 8px 15px !important;
  margin: 0 5px;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar.scrolled .nav-link {
  color: var(--texto-oscuro) !important;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

.navbar.scrolled .nav-link::before {
  background-color: var(--miel-oscuro);
}

.nav-link:hover::before {
  width: 60%;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(246, 193, 69, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2892, 58, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body {
  background-color: var(--panal);
  font-family: 'Poppins', sans-serif;
  color: var(--texto-oscuro);
  line-height: 1.6;
}

/* Estilos para la sección de contacto */
#contacto {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23f6c14510"><path d="M50 0L93.3 25V75L50 100L6.7 75V25L50 0Z"/></svg>');
  background-size: 80px;
}

.shadow-honey {
  box-shadow: 0 10px 30px rgba(212, 160, 23, 0.15);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(212, 160, 23, 0.2);
}

.btn-honey {
  background: linear-gradient(45deg, var(--miel-oscuro), var(--miel));
  color: white;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-honey:hover {
  background: linear-gradient(45deg, var(--miel), var(--miel-oscuro));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 160, 23, 0.3);
}

.text-honey {
  color: var(--miel-oscuro);
}

.form-control {
  border: 1px solid var(--miel-claro);
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--miel);
  box-shadow: 0 0 0 0.25rem rgba(246, 193, 69, 0.25);
}

/* Validación de formulario */
.was-validated .form-control:valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
}

/* ===== SECCIONES (PANALES HEXAGONALES) ===== */
section {
  padding: 60px 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23f6c14520"><path d="M50 0L93.3 25V75L50 100L6.7 75V25L50 0Z"/></svg>');
  background-size: 80px;
}

/* ===== TARJETAS DE PRODUCTOS (CELDAS DE MIEL) ===== */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition: all 0.3s;
  box-shadow: 0 6px 15px rgba(212, 160, 23, 0.1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(212, 160, 23, 0.2);
}

.card-title {
  color: var(--miel-oscuro);
  font-weight: 600;
}

/* ===== BOTONES (GOTAS DE MIEL) ===== */
.btn-gradient {
  background: linear-gradient(45deg, var(--miel-oscuro), var(--miel));
  color: white !important;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-gradient:hover {
  background: linear-gradient(45deg, var(--miel), var(--miel-oscuro));
}

/* ===== DISEÑO RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 60px !important;
  }

  .carousel img {
    height: 50vh !important;
  }

  .card {
    margin-bottom: 20px;
  }

  section {
    padding: 40px 0;
  }
}

/* ===== EFECTOS ESPECIALES ===== */
.hover-effect {
  transition: all 0.3s;
}

.hover-effect:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(212, 160, 23, 0.3));
}

/* ===== FOOTER MIEL ===== */
footer {
  background: linear-gradient(135deg, var(--miel-oscuro), var(--miel));
  color: white !important;
  padding: 40px 0 20px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 30px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path d="M0,0 L50,8 L100,0 L100,10 L0,10 Z" fill="%23f6c145"/></svg>') center/cover no-repeat;
}

footer a {
  color: white !important;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

footer a:hover {
  color: var(--panal) !important;
  transform: translateY(-2px);
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--panal);
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

footer p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

footer i {
  font-size: 1.2rem;
  color: var(--panal);
}

/* Efecto panal en el fondo */
footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23ffffff10"><path d="M50 0L93.3 25V75L50 100L6.7 75V25L50 0Z"/></svg>');
  background-size: 80px;
  pointer-events: none;
}

/* ===== CORRECCIÓN DEL HOVER ===== */
/* Estado normal (sin scroll) */
.navbar:not(.scrolled) .nav-link:hover {
  color: var(--miel-claro) !important;
  opacity: 0.9;
}

/* Estado con scroll */
.navbar.scrolled .nav-link:hover {
  color: var(--miel-oscuro) !important;
}

/* Elimina subrayados no deseados */
.nav-link:hover::before {
  background-color: transparent !important;
}

/* ===== ESTILOS PARA FAQ - TEMA MIEL ===== */
#faq {
  background-color: var(--panal);
  border-radius: 15px;
  padding: 40px;
  margin: 40px 0;
}

#faq h2 {
  color: var(--miel-oscuro);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

.accordion {
  --bs-accordion-bg: var(--miel-claro);
  --bs-accordion-border-color: var(--miel);
  --bs-accordion-btn-bg: var(--miel-claro);
  --bs-accordion-btn-color: var(--texto-oscuro);
  --bs-accordion-active-bg: var(--miel);
  --bs-accordion-active-color: var(--texto-oscuro);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(212, 160, 23, 0.25);
}

.accordion-button {
  font-weight: 600;
  border-radius: 8px !important;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background-color: var(--miel);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.2);
}

.accordion-body {
  background-color: white;
  border-radius: 0 0 8px 8px;
  border-left: 3px solid var(--miel);
  border-right: 3px solid var(--miel);
  border-bottom: 3px solid var(--miel);
}

/* Efectos hover y animación */
.accordion-button:hover {
  background-color: var(--miel);
  transform: translateX(5px);
}

.accordion-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 6px 15px rgba(212, 160, 23, 0.2);
}

/* Iconos personalizados */
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235c3a00'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235c3a00'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* Efecto para el contenedor del mapa */
.rounded-3 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rounded-3:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(212, 160, 23, 0.3) !important;
}

/* Texto descriptivo */
.lead {
  color: var(--texto-oscuro);
  font-size: 1.25rem;
}

/* Estilos para la flecha gráfica */
.flecha-grafica {
  position: fixed;
  bottom: 95px;
  right: 29px;
  width: 60px;
  height: 60px;
  background: var(--miel);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (max-width: 768px) {
  .flecha-grafica {
    bottom: 90px; /* 20 (WhatsApp) + 50 (alto nuevo) + 20 de espacio */
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .flecha-svg {
    width: 24px;
    height: 24px;
  }
}

.flecha-grafica.mostrar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.flecha-svg {
  width: 30px;
  height: 30px;
  color: white;
  transition: all 0.3s ease;
}

/* Animación y efectos */
.flecha-grafica:hover {
  background: var(--miel-oscuro);
  transform: translateY(-5px) scale(1.05);
}

.flecha-grafica:hover .flecha-svg {
  transform: translateY(-5px);
}

/* Animación de latido */
@keyframes latido {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.flecha-grafica.mostrar .flecha-svg {
  animation: latido 1s infinite ease-in-out;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .flecha-grafica {
    bottom: 95px; /* 20 + 50 (nuevo alto) + 25 */
    right: 20px;
  }
}

/* Estilo para el botón de login en el menú */
.btn-login {
  background: var(--miel-claro);
  color: var(--texto-oscuro) !important;
  border-radius: 50px;
  padding: 0.4rem 1rem !important;
  margin-left: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: inline-block; /* Asegura que se vea como botón */
}

.btn-login:hover {
  background: var(--miel) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(212, 160, 23, 0.2);
  border-color: var(--miel-oscuro);
}

/* Versión mobile */
@media (max-width: 767px) {
  .btn-login {
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }
}

:root {
  --miel-oscuro: #C47F00; /* Ámbar oscuro tipo miel */
}

/* Estilo profesional para botón WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 15px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #F6C90E, #E79C07); /* Gradiente miel */
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 35px;
  box-shadow: 0 4px 20px rgba(231, 156, 7, 0.4); /* Sombra en tono miel */
  z-index: 1000;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid white;
  animation: pulse-whatsapp 2s infinite;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 25px rgba(231, 156, 7, 0.5); /* Intensificamos sombra */
  background: linear-gradient(135deg, #128C7E, #25D366); /* WhatsApp original */
  text-decoration: none;
  color: white;
}

.whatsapp-float i {
  transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
  transform: rotate(10deg);
}

/* Tooltip */
.tooltip-text {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--miel-oscuro); /* Miel oscuro definido en :root */
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.whatsapp-float:hover .tooltip-text {
  opacity: 1;
  right: 75px;
}

/* Animación de pulso */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(231, 156, 7, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(231, 156, 7, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(231, 156, 7, 0);
  }
}

/* Adaptación para móviles */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 25px;
    bottom: 20px;
    right: 20px;
  }

  .tooltip-text {
    display: none; /* Ocultamos tooltip en móviles */
  }
}

