/* style.css mejorado para SYARIAH con inicio dinámico */
:root {
  --color-primary: #0d2a1c;
  --color-secondary: #1a4d2e;
  --color-accent: #a4ff9f;
  --color-gold: #d4af37;
  --color-light: #f0fdf4;
  --color-white: #ffffff;
  --color-text: #1d392a;
  --color-text-light: #5a7d6e;
  --color-community: #3a7d54;
  --color-tech: #2c5f42;
  --stories-height: 90vh;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: var(--color-light);
  color: var(--color-text);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, .section-title, .stories-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13, 42, 28, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  z-index: 1000;
  backdrop-filter: blur(6px);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 0.8rem 3rem;
  background: rgba(13, 42, 28, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo i {
  color: var(--color-gold);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-list li a {
  text-decoration: none;
  color: var(--color-white);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  font-size: 1.05rem;
}

.nav-list li a:hover {
  color: var(--color-accent);
}

.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.nav-list li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-white);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section - Nueva versión dinámica */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(13, 42, 28, 0.7), rgba(13, 42, 28, 0.7)), 
              url('https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80') no-repeat center center/cover;
  background-attachment: fixed;
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="%23a4ff9f" stroke-width="0.5" opacity="0.1" /></svg>');
  background-size: 200px;
  opacity: 0.3;
  z-index: 1;
}

.intro {
  position: relative;
  z-index: 3;
  color: var(--color-white);
  padding: 2.5rem 3rem;
  max-width: 900px;
  animation: fadeInDown 1.2s ease forwards, float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.intro h1 {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7), 
               0 0 8px var(--color-accent);
  animation: textGlow 4s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7), 
                 0 0 8px var(--color-accent);
  }
  50% {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7), 
                 0 0 16px var(--color-accent);
  }
}


.intro p {
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1.5s ease forwards;
  /* Sombra sutil también para el párrafo, para mantener la coherencia */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin: 2.5rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  font-size: 2.5rem;
  color: var(--color-accent);
  animation: bounce 2s infinite;
  z-index: 3;
  text-decoration: none;
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.scroll-down span {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--color-accent);
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: var(--color-accent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0%, 100% { height: 40px; opacity: 1; }
  50% { height: 60px; opacity: 0.7; }
}

.scroll-down:hover {
  background: rgba(164, 255, 159, 0.2);
  transform: translateY(5px);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(164, 255, 159, 0.15);
  animation: floatElement 15s infinite ease-in-out;
  filter: blur(1px);
  z-index: 2;
}

@keyframes floatElement {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(50px, 100px) rotate(90deg); }
  50% { transform: translate(100px, 50px) rotate(180deg); }
  75% { transform: translate(50px, 0) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

/* Carrusel de Historias - Estilo WhatsApp */
.stories-section {
  padding: 5rem 1rem;
  background: var(--color-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.stories-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, var(--color-light), var(--color-primary));
}

.stories-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0 4rem;
}

.stories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.stories-title {
  font-size: 2.8rem;
  color: var(--color-accent);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
  display: inline-block;
}

.stories-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--color-gold);
}

.stories-status {
  background: var(--color-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 500;
}

.stories-wrapper {
  position: relative;
  height: var(--stories-height);
  max-height: 700px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.stories-timeline {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  padding: 0 20px;
  z-index: 10;
}

.timeline-progress {
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.timeline-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--color-accent);
  border-radius: 10px;
  animation: timelineProgress 8s linear forwards;
}

@keyframes timelineProgress {
  to { width: 100%; }
}

.stories-carousel {
  display: flex;
  transition: transform 0.8s ease;
  height: 100%;
}

.story-card {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: none;
}

.story-card.active {
  display: block;
  animation: storyFadeIn 0.5s ease;
}

@keyframes storyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.story-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  z-index: 2;
  text-align: left;
  background: linear-gradient(to top, rgba(13,42,28,0.9), transparent);
}

.story-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  object-fit: cover;
}

.profile-info h3 {
  font-size: 1.4rem;
  color: var(--color-white);
  margin-bottom: 0.3rem;
}

.story-date {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
}

.story-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  color: var(--color-white);
  line-height: 1.6;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 10;
  padding: 0 20px;
}

.carousel-btn {
  background: rgba(212, 175, 55, 0.8);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.3rem;
  color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
  background: rgba(212, 175, 55, 1);
  transform: scale(1.1);
}

/* Section */
.section {
  padding: 7rem 2rem;
  text-align: center;
}

.section-header {
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-gold);
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--color-text-light);
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
}

.card {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 360px;
  transition: all 0.4s ease;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--color-gold);
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.8rem;
  text-align: left;
}

.card-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-content h3 i {
  color: var(--color-gold);
}

.card-content p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.card-stats {
  display: flex;
  gap: 15px;
  margin-top: 1.2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 1.2rem;
}

.card-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  background: rgba(164, 255, 159, 0.15);
  padding: 5px 12px;
  border-radius: 20px;
}

.card-stats span i {
  color: var(--color-secondary);
}

/* Proyectos */
.light-green {
  background: linear-gradient(135deg, #d8fdd6 0%, #ecffe9 100%);
}

.project-grid {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.project {
  background: var(--color-white);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  max-width: 350px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--color-gold);
}

.project:hover {
  transform: translateY(-15px);
  background-color: var(--color-white);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.project-icon {
  width: 80px;
  height: 80px;
  background: rgba(26, 77, 46, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--color-secondary);
}

.project h4 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--color-primary);
}

.project p {
  color: var(--color-text-light);
  margin-bottom: 1.8rem;
  line-height: 1.7;
}

.project-progress {
  height: 10px;
  background: rgba(13, 42, 28, 0.1);
  border-radius: 50px;
  overflow: hidden;
  margin-top: 0.8rem;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00c853, #00e676);
  border-radius: 50px;
  position: relative;
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.8s ease-in-out;
  z-index: 1;
  overflow: hidden;
}

/* Efecto de brillo animado */
.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent, rgba(255, 255, 255, 0.3));
  animation: shimmer 2s infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Comunidades Locales */
.communities-section {
  background: linear-gradient(to right, var(--color-community) 0%, #83e3b8 100%);
  color: white;
}

.communities-container {
  max-width: 1200px;
  margin: 0 auto;
}

.communities-content {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.communities-text {
  flex: 1;
  text-align: left;
}

.communities-text h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

.communities-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.benefits-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.benefits-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}

.benefits-list li i {
  color: var(--color-gold);
  font-size: 1.3rem;
}

.communities-image {
  flex: 1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.communities-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.communities-image:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(13,42,28,0.9), transparent);
  color: var(--color-white);
  font-weight: 600;
  font-size: 1.2rem;
}

/* Bonos de Carbono */
.carbon-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 3rem;
}

.carbon-card {
  background: var(--color-white);
  border-radius: 18px;
  padding: 2.5rem;
  max-width: 350px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid rgba(13, 42, 28, 0.1);
  text-align: center;
}

.carbon-card.featured {
  transform: scale(1.05);
  border: 2px solid var(--color-gold);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.carbon-card.featured::before {
  content: 'Recomendado';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-primary);
  padding: 5px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.carbon-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.carbon-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 1.2rem;
}

.carbon-card p {
  color: var(--color-text-light);
  margin-bottom: 1.8rem;
  font-size: 1.1rem;
}

.carbon-card ul {
  list-style: none;
  margin-bottom: 2.5rem;
  text-align: left;
}

.carbon-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-light);
}

.carbon-card ul li i {
  color: var(--color-gold);
}

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.1rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(26, 77, 46, 0.4);
}

.btn-primary:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 77, 46, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.1rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Reserva Natural */
.reserva-content {
  display: flex;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.reserva-text {
  flex: 1;
  text-align: left;
}

.reserva-image {
  flex: 1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.reserva-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.reserva-image:hover img {
  transform: scale(1.05);
}

.reserva-stats {
  display: flex;
  gap: 2rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  background: rgba(164, 255, 159, 0.15);
  padding: 1.5rem 1rem;
  border-radius: 15px;
  flex: 1;
  min-width: 180px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* Ecoturismo */
.ecoturismo-section {
  background: linear-gradient(to bottom, #e6f4e6, #d0e8d0);
}

.ecoturismo-grid {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ecoturismo-card {
  background: var(--color-white);
  border-radius: 18px;
  overflow: hidden;
  max-width: 350px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
}

.ecoturismo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.ecoturismo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ecoturismo-card:hover img {
  transform: scale(1.05);
}

.ecoturismo-content {
  padding: 1.8rem;
  text-align: left;
}

.ecoturismo-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ecoturismo-content h3 i {
  color: var(--color-secondary);
}

.ecoturismo-content p {
  color: var(--color-text-light);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.ecoturismo-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-secondary);
  display: block;
}

/* Nueva sección de tecnología */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.tech-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  text-align: center;
  border-top: 5px solid var(--color-tech);
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tech-icon {
  width: 90px;
  height: 90px;
  background: rgba(44, 95, 66, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--color-tech);
  transition: all 0.4s;
}

.tech-card:hover .tech-icon {
  background: rgba(44, 95, 66, 0.2);
  transform: scale(1.1);
}

.tech-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.tech-card p {
  color: var(--color-text-light);
  margin-bottom: 1.8rem;
  line-height: 1.7;
}

.tech-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 1.5rem;
}

.tech-stats .stat {
  background: rgba(164, 255, 159, 0.15);
  padding: 10px 15px;
  border-radius: 15px;
  min-width: 100px;
}

.tech-stats .value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.2;
}

.tech-stats .label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Sección de Impacto Ambiental */
.impact-container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 3rem;
  flex-wrap: wrap;
}

.impact-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  min-width: 300px;
}

.impact-stat {
  background: var(--color-white);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.impact-visual {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.co2-counter {
  background: var(--color-primary);
  color: white;
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 100%;
}

.counter-value {
  font-size: 4.5rem;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(164, 255, 159, 0.5);
}

.counter-label {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.counter-equivalent {
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 15px;
}

.highlight {
  color: var(--color-gold);
  font-weight: 600;
}

.impact-progress {
  max-width: 800px;
  margin: 0 auto;
}

.progress-item {
  margin-bottom: 2rem;
}

.progress-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--color-primary);
  text-align: left;
}

.progress-bar {
  height: 20px;
  background: rgba(13, 42, 28, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-tech));
  border-radius: 10px;
  position: relative;
  text-align: right;
  padding-right: 15px;
  color: var(--color-white);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 50px;
  transition: width 1.5s ease;
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 120px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23f0fdf4" d="M0,192L80,181.3C160,171,320,149,480,160C640,171,800,213,960,229.3C1120,245,1280,235,1360,229.3L1440,224L1440,0L1360,0C1280,0,1120,0,960,0C800,0,640,0,480,0C320,0,160,0,80,0L0,0Z"></path></svg>') no-repeat;
  background-size: cover;
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  text-align: left;
}

.footer-brand .logo {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: rgba(240, 253, 244, 0.8);
  margin-bottom: 1.8rem;
  line-height: 1.7;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(164, 255, 159, 0.1);
  color: var(--color-accent);
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-5px);
}

.footer-links h4, .footer-contact h4, .footer-newsletter h4 {
  font-size: 1.4rem;
  margin-bottom: 1.8rem;
  color: var(--color-white);
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after, .footer-contact h4::after, .footer-newsletter h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--color-gold);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(240, 253, 244, 0.8);
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links ul li a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-links ul li a::before {
  content: '→';
  color: var(--color-gold);
  opacity: 0;
  transition: opacity 0.3s;
}

.footer-links ul li a:hover::before {
  opacity: 1;
}

.footer-contact p {
  color: rgba(240, 253, 244, 0.8);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contact p i {
  color: var(--color-gold);
  width: 20px;
  text-align: center;
}

.footer-contact .btn-outline {
  margin-top: 1.2rem;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.footer-contact .btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.footer-newsletter p {
  color: rgba(240, 253, 244, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-newsletter form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-newsletter input {
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid rgba(240, 253, 244, 0.2);
  background: rgba(26, 77, 46, 0.3);
  color: var(--color-white);
  font-size: 1rem;
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.footer-newsletter .btn-primary {
  align-self: flex-start;
}

.footer-bottom {
  background: rgba(10, 30, 20, 0.9);
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(240, 253, 244, 0.7);
  font-size: 0.95rem;
}

.footer-legal {
  display: flex;
  gap: 25px;
}

.footer-legal a {
  color: rgba(240, 253, 244, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--color-accent);
}

/* Animaciones */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 1200px) {
  .stories-wrapper {
    height: 80vh;
  }
}

@media (max-width: 992px) {
  .reserva-content, .communities-content {
    flex-direction: column;
  }
  
  .reserva-text, .reserva-image, .communities-text, .communities-image {
    width: 100%;
  }
  
  .intro h1 {
    font-size: 3rem;
  }
  .intro p {
    font-size: 1.5rem;
  }
  
  .stories-wrapper {
    height: 70vh;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-list {
    flex-direction: column;
    background-color: rgba(13, 42, 28, 0.98);
    position: absolute;
    top: 70px;
    right: 0;
    width: 70%;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-list.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }
  
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .intro h1 {
    font-size: 2.5rem;
    padding: 0 1rem;
  }
  
  .intro p {
    font-size: 1.3rem;
    padding: 0 1rem;
  }
  
  .section-title {
    font-size: 2.3rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .card-container, .project-grid, .carbon-cards, .ecoturismo-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .carbon-card.featured {
    transform: scale(1);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
  
  .impact-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-value {
    font-size: 2.8rem;
  }
  
  .counter-value {
    font-size: 3.5rem;
  }
  
  .stories-wrapper {
    height: 85vh;
  }
}

@media (max-width: 480px) {
  .story-content {
    padding: 1.5rem;
  }
  
  .story-content p {
    font-size: 1rem;
  }
  
  .reserva-stats, .stat-item {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .intro h1 {
    font-size: 2rem;
  }
  .intro p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .stories-wrapper {
    height: 80vh;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}
/* ————————————————————————
   Estilos específicos para barras en sección “Proyectos”
   ———————————————————————— */
.project .project-progress > .progress-bar {
  /* Forzamos altura y borde */
  height: 100% !important;
  border-radius: 50px !important;

  /* Degradado verde */
  background: linear-gradient(90deg, #00c853, #00e676) !important;

  /* Texto centrado */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  
  /* Transición de ancho */
  transition: width 0.8s ease-in-out !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 1 !important;
}

.project .project-progress > .progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
    rgba(255,255,255,0.3),
    transparent,
    rgba(255,255,255,0.3)
  ) !important;
  animation: shimmer 2s infinite !important;
  z-index: 2 !important;
  pointer-events: none !important;
}
