/* --- Tipografía (Nuevas Fuentes) --- */
body {
  font-family: 'Montserrat', sans-serif;
  color: #495057;
}

h1, h2, h3, h4, .navbar-brand, .display-5 {
  font-family: 'Playfair Display', serif;
}

/* --- Animación de Scroll (Microinteracción) --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Estilos Generales y Componentes --- */

/* Animaciones hover para tarjetas */
.product-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  background: #f8f9fa;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
}

.product-card img {
  transition: transform 0.6s ease;
  height: 250px;
  object-fit: cover;
}

.product-card:hover img {
  transform: scale(1.08);
}

.product-card .card-body {
  background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
  padding: 1rem;
}

.product-card h5 {
  color: #2c3e50;
  font-weight: 600;
}

/* Navbar estilo elegante */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 700;
  color: #27ae60 !important;
  font-size: 1.8rem;
}

.nav-link {
  font-weight: 500;
  color: #2c3e50 !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #27ae60 !important;
  text-decoration: none;
}

/* Hero Section */
.hero-section {
  background: url('https://trae-api-us.mchost.guru/api/ide/v1/text_to_image?prompt=Lush%20tropical%20indoor%20garden%20with%20various%20green%20plants%2C%20monstera%2C%20ferns%2C%20and%20hanging%20vines%2C%20natural%20sunlight%20streaming%20through%20windows%2C%20botanical%20paradise%2C%20vibrant%20green%20foliage%2C%20peaceful%20atmosphere&image_size=landscape_16_9') no-repeat center center;
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.85) 0%, rgba(46, 204, 113, 0.75) 30%, rgba(26, 188, 156, 0.8) 70%, rgba(22, 160, 133, 0.9) 100%);
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  z-index: 2;
  animation: shimmer 4s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.05); }
}

/* Hero Particles Animation */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.particle:nth-child(2) {
  top: 60%;
  left: 20%;
  animation-delay: 1s;
  animation-duration: 6s;
}

.particle:nth-child(3) {
  top: 40%;
  left: 70%;
  animation-delay: 2s;
  animation-duration: 7s;
}

.particle:nth-child(4) {
  top: 80%;
  left: 80%;
  animation-delay: 3s;
  animation-duration: 5s;
}

.particle:nth-child(5) {
  top: 30%;
  left: 50%;
  animation-delay: 4s;
  animation-duration: 9s;
}

.particle:nth-child(6) {
  top: 70%;
  left: 30%;
  animation-delay: 1.5s;
  animation-duration: 6.5s;
}

.particle:nth-child(7) {
  top: 15%;
  left: 85%;
  animation-delay: 2.5s;
  animation-duration: 7.5s;
}

.particle:nth-child(8) {
  top: 90%;
  left: 15%;
  animation-delay: 3.5s;
  animation-duration: 8.5s;
}

.particle:nth-child(9) {
  top: 50%;
  left: 90%;
  animation-delay: 0.5s;
  animation-duration: 6s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 12px rgba(0,0,0,0.7), 1px 1px 3px rgba(0,0,0,0.8);
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.4rem;
  max-width: 750px;
  margin: 0 auto 2.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7), 1px 1px 3px rgba(0,0,0,0.9);
  font-weight: 500;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 3px solid transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  user-select: none;
  z-index: 11;
}

.btn-primary {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #16a085 100%);
  color: white;
  border-color: #27ae60;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 50%, #1abc9c 100%);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.08) rotateX(5deg);
  box-shadow: 0 20px 50px rgba(39, 174, 96, 0.5), 0 0 30px rgba(39, 174, 96, 0.3);
  color: white;
  text-decoration: none;
  border-color: #2ecc71;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

.btn-primary:active {
  transform: translateY(-2px) scale(1.02);
  transition: all 0.1s ease;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.btn-secondary:hover {
  transform: translateY(-5px) scale(1.08) rotateX(5deg);
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover::before {
  left: 0;
}

.btn-secondary:hover::after {
  width: 300px;
  height: 300px;
}

.btn-secondary:active {
  transform: translateY(-2px) scale(1.02);
  transition: all 0.1s ease;
}

/* Responsive adjustments for buttons */
@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 280px;
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
}

/* --- Secciones Específicas --- */

/* PLANTA DESTACADA */
.featured-plant-section {
  background-color: #F5EFE6;
}

.featured-plant-section .display-5 {
  font-weight: 800;
  color: #2c3e50;
}

.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 1rem;
  font-weight: 500;
  color: #27ae60;
}

.quick-stats .stat-item {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 8px 15px;
  border-radius: 20px;
}

/* SECCIÓN DE CONTACTO (Color actualizado) */
.contact-section {
  background-color: #F5EFE6;
}

/* Footer */
footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 3rem 0 1rem;
}

.footer-column h5 {
  color: #3498db;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Footer text styling for better contrast */
footer .text-muted {
  color: #ffffff !important;
}

footer p {
  color: #ecf0f1;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin-right: 10px;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #27ae60;
  transform: translateY(-3px);
  text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.copyright {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  text-align: center;
}

/* Modal IA y Botón Flotante */
#aiButton {
  font-size: 1.2rem;
  padding: 15px 20px;
  border-radius: 50px !important;
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}
.modal-title { color: #27ae60; }
.btn-outline-primary:hover { background-color: #27ae60; color: white; }


/* --- Estilos para Video de Bienvenida --- */

/* Bloquea el scroll del body cuando el video está activo */
body.no-scroll {
  overflow: hidden;
}

/* Contenedor de la capa del video */
#video-intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s ease-out, visibility 1.2s ease-out;
}

/* Estilo para ocultar la capa del video */
#video-intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* El video dentro de la capa */
#video-intro-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Botón para saltar/entrar */
#skip-intro-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  padding: 12px 30px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #fff;
  color: #2c3e50;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInButton 1s ease 2s forwards;
}

#skip-intro-btn:hover {
  background-color: #ffffff;
  transform: translateX(-50%) scale(1.05);
}

/* Animación para que aparezca el botón */
@keyframes fadeInButton {
  to {
    opacity: 1;
  }
}