/* ===== FUENTE GLOBAL ===== */
* {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: #28a745;
}

/* ===== NAVBAR ===== */
.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: all 0.4s ease;
  padding: 0.8rem 0;
  border-radius: 12px;
}

.custom-navbar .nav-link {
  font-weight: 500;
  color: #2b7a0b;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
}

.custom-navbar .nav-link:hover {
  background-color: #d8f3dc;
  color: #146404;
  transform: translateY(-2px);
}

.custom-navbar .nav-link.active {
  background-color: #95d5b2;
  color: white !important;
}

.custom-navbar .navbar-brand span {
  font-size: 1.2rem;
  color: #236608;
}

.navbar-toggler {
  border: none;
}

/* ===== EVITAR QUE EL MENU EMPUJE EL CARRUSEL EN MÓVIL ===== */
@media (max-width: 991px) {
  .custom-navbar .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255,255,255,0.95);
    z-index: 1040;
  }
}

/* ===== SCROLL SUAVE Y ESPACIO PARA NAVBAR ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-carousel img {
  object-fit: cover;
  height: 100vh;
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  width: 90%;
  padding: 0 15px;
}

.carousel-caption h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.6);
  margin-bottom: 15px;
}

.carousel-caption p {
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.5);
  margin-bottom: 25px;
}

.carousel-caption .btn {
  font-size: 1.2rem;
  padding: 12px 28px;
  transition: transform 0.3s ease, font-size 0.3s ease;
}

.carousel-caption h1:hover,
.carousel-caption p:hover,
.carousel-caption .btn:hover {
  transform: scale(1.05);
}

/* ===== RESPONSIVE CAROUSEL ===== */
@media (max-width: 1200px) {
  .carousel-caption h1 { font-size: 2.5rem; }
  .carousel-caption p { font-size: 1.3rem; }
  .carousel-caption .btn { font-size: 1.1rem; padding: 10px 25px; }
}

@media (max-width: 992px) {
  .carousel-caption h1 { font-size: 2rem; }
  .carousel-caption p { font-size: 1.1rem; }
  .carousel-caption .btn { font-size: 1rem; padding: 8px 20px; }
}

@media (max-width: 768px) {
  .carousel-caption h1 { font-size: 1.6rem; }
  .carousel-caption p { font-size: 0.95rem; }
  .carousel-caption .btn { font-size: 0.9rem; padding: 6px 18px; }
  .hero-carousel img { height: 70vh; }
}

@media (max-width: 480px) {
  .carousel-caption h1 { font-size: 1.3rem; }
  .carousel-caption p { font-size: 0.85rem; }
  .carousel-caption .btn { font-size: 0.8rem; padding: 5px 15px; }
  .hero-carousel img { height: 60vh; }
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url("tu-imagen.jpg") no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero-overlay h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

.hero-overlay p {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 20px;
}

.hero-overlay .btn {
  background: #228B22;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-overlay .btn:hover {
  background: #1a6e1a;
  transform: scale(1.05);
}

/* ===== PRODUCTOS ===== */
.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* ===== BOTÓN SCROLL TOP ===== */
#btnScrollTop {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #2e7d32;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  border: none;
}

#btnScrollTop:hover {
  background-color: #66bb6a;
  transform: scale(1.1);
}

#btnScrollTop i {
  font-size: 24px;
}

/* ===== BOTONES ===== */
.btn-comprar, .btn-success {
  background: linear-gradient(90deg, #146527, #37813c);
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-comprar:hover, .btn-success:hover {
  background: linear-gradient(90deg, #23963e, #4fd164);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* ===== SECCIONES ===== */
.nosotros-section {
  background: linear-gradient(120deg, #e6f4ea, #ffffff);
  padding: 80px 15px;
}

.nosotros-section h2 {
  color: #2e7d32;
  font-size: 2rem;
}

.nosotros-section .image-wrapper {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
}

.nosotros-section .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nosotros-section .image-wrapper:hover img {
  transform: scale(1.08);
}

.nosotros-section .text-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.nosotros-section .text-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.nosotros-section p {
  color: #555;
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer-custom {
  background-color: #c9dbcd;
  text-align: center;
  padding: 30px 0;
  font-family: 'Roboto', sans-serif;
  color: #333;
}

.footer-custom h6 {
  margin-bottom: 5px;
  font-weight: 500;
}

.footer-custom p {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #666;
}

.footer-custom .whatsapp-link {
  background: linear-gradient(145deg, #25d366, #20bd5a);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.footer-custom .whatsapp-link:hover {
  transform: scale(1.2) rotate(5deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  background: linear-gradient(145deg, #20bd5a, #1cae4c);
}

.footer-custom .whatsapp-link::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -10%;
  left: -10%;
  transform: scale(0);
  transition: transform 0.4s;
}

.footer-custom .whatsapp-link:hover::after {
  transform: scale(1);
}

.sub-footer {
  background-color: #cfddd2; 
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 65px;
  }
  .hero-overlay h1 {
    font-size: 1.6rem;
  }
  .hero-overlay p {
    font-size: 1rem;
  }
  .hero-overlay .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 60px;
  }
  .hero-overlay h1 {
    font-size: 1.4rem;
  }
  .hero-overlay p {
    font-size: 0.9rem;
  }
  .hero-overlay .btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}

