/* ===== ESTILOS GENERALES ===== */
:root {
  /* Paleta de colores naturales */
  --primary-color: #2e7d32; /* Verde principal */
  --primary-dark: #1b5e20;
  --primary-light: #4caf50;
  --secondary-color: #8bc34a; /* Verde secundario */
  --accent-color: #ffc107; /* Amarillo acento */
  --text-dark: #263238;
  --text-medium: #455a64;
  --text-light: #607d8b;
  --bg-light: #f5f5f6;
  --white: #ffffff;
  --gray-light: #eceff1;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  
  /* Transiciones */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 2rem;
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  font-family: 'Poppins', sans-serif;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.text-center {
  text-align: center;
}

/* ===== HEADER ===== */
.main-header {
  
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo a {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
}

.logo a::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url('../img/leaf-icon.svg');
  background-size: contain;
  margin-right: 0.5rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  font-weight: 500;
  color: var(--text-medium);
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a:hover,
.main-nav .active a {
  color: var(--primary-dark);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-normal);
}

.main-nav a:hover::after,
.main-nav .active a::after {
  width: 100%;
}

.header-contact .contact-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.header-contact .contact-btn:hover {
  background-color: var(--primary-dark);
}

.header-contact i {
  margin-right: 0.5rem;
}

.header-info {
  /*background-color: var(--primary-dark);*/
  color: var(--white);
  padding: 0.5rem 0;
}

.header-info .container {
  display: flex;
  justify-content: space-between;
}

.info-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.info-item i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.info-item a {
  color: var(--white);
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
  margin-top: 80px; /* Para compensar el header fijo */
  position: relative;
  height: 80vh;
  max-height: 800px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: var(--transition-slow);
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  width: 90%;
  max-width: 800px;
  z-index: 2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.slide-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.slide-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-normal);
}

.carousel-control:hover {
  background-color: var(--primary-color);
}

.carousel-control.prev {
  left: 2rem;
}

.carousel-control.next {
  right: 2rem;
}

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.indicator.active {
  background-color: var(--white);
  transform: scale(1.2);
}

/* ===== SERVICIOS ===== */
.services-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.services-section .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  text-align: center;
  padding: 2rem;
  border-radius: 8px;
  transition: var(--transition-normal);
  background-color: var(--bg-light);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 1.5rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background-color: var(--accent-color);
  color: var(--text-dark);
  transform: rotateY(180deg);
}

.service-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-medium);
}

/* ===== SOBRE NOSOTROS ===== */
.about-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.about-section .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
}

.about-image img {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.about-content {
  flex: 1;
  min-width: 300px;
  padding: 1rem 2rem;
}

.mission-box {
  display: flex;
  align-items: flex-start;
  margin-top: 2rem;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.mission-icon {
  background-color: var(--primary-color);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.mission-text h4 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

/* ===== PRODUCTOS ===== */
.products-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.product-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent-color);
  color: var(--text-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-category {
  font-size: 0.9rem;
  color: var(--text-light);
  background-color: rgba(139, 195, 74, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
}

/* ===== COLECCIONES ===== */
.collections-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  min-height: 400px;
}

.collection-card {
  position: relative;
  overflow: hidden;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.collection-card:hover img {
  transform: scale(1.1);
}

.collection-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
}

.collection-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* ===== ESTADÍSTICAS ===== */
.stats-section {
  padding: 5rem 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  color: var(--white);
  text-align: center;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 125, 50, 0.9);
}

.stats-section .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  padding: 2rem;
}

.stat-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ===== CONTACTO ===== */
.contact-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.contact-section .container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info p {
  margin-bottom: 2rem;
  color: var(--text-medium);
}

.info-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.info-item i {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.social-links a:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===== FOOTER ===== */
.main-footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 4rem 0 0;
}

.footer-logo {
  margin-bottom: 2rem;
}

.footer-logo a {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-logo p {
  color: var(--gray-light);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.links-column h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.links-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.links-column ul {
  list-style: none;
}

.links-column li {
  margin-bottom: 0.75rem;
}

.links-column a {
  color: var(--gray-light);
}

.links-column a:hover {
  color: var(--white);
  padding-left: 0.5rem;
}

.links-column i {
  margin-right: 0.5rem;
  color: var(--accent-color);
  width: 20px;
  text-align: center;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  text-align: center;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Lightbox personalizado */
.product-image a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.product-image a::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: white;
    opacity: 0;
    background-color: rgba(46, 125, 50, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.product-image a:hover::after {
    opacity: 1;
}

/* Botones de producto */
.product-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* Lightbox personalizado */
.lb-container .lb-image {
    border: 10px solid var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.lb-data .lb-caption {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.lb-data .lb-close {
    filter: invert(1);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}


/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    display: block;
    margin: 5% auto;
    max-width: 90%;
    max-height: 80vh;
    border: 5px solid var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.modal-caption {
    margin: 15px auto;
    text-align: center;
    color: var(--white);
    font-size: 1.2rem;
    max-width: 80%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 35px;
    font-weight: bold;
    transition: var(--transition-normal);
    cursor: pointer;
}

.close-modal:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Efecto hover para las imágenes */
.zoom-image {
    position: relative;
    display: block;
    cursor: zoom-in;
}

.zoom-image::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--white);
    opacity: 0;
    background-color: rgba(46, 125, 50, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.zoom-image:hover::after {
    opacity: 1;
}



@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .slide-content h1 {
    font-size: 2.5rem;
  }
  
  .header-top {
    flex-direction: column;
    padding: 1rem 0;
  }
  
  .main-nav {
    margin: 1rem 0;
  }
  
  .header-info .container {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 70vh;
    margin-top: 70px;
  }
  
  .slide-content h1 {
    font-size: 2rem;
  }
  
  .slide-content h3 {
    font-size: 1.25rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  .carousel-control {
    width: 40px;
    height: 40px;
  }
  
  .about-section .container {
    flex-direction: column;
  }
  
  .about-image,
  .about-content {
    padding: 1rem 0;
  }
}

@media (max-width: 576px) {
  .hero-carousel {
    height: 60vh;
  }
  
  .slide-content h1 {
    font-size: 1.75rem;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav li {
    margin: 0.5rem 0;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .collections-section {
    grid-template-columns: 1fr;
  }
  
  .stats-section .container {
    grid-template-columns: 1fr;
  }
}