:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* Verde forestal personalizado */
  --forest-green-light: rgba(76, 175, 80, 1);
  --forest-green: rgba(56, 142, 60, 1);
  --forest-green-dark: rgba(27, 94, 32, 1);
  --forest-green-darker: rgba(1, 87, 155, 0.1);
  --mint-green: rgba(165, 214, 167, 1);
  --sage-green: rgba(129, 199, 132, 1);
  --gold-accent: rgba(255, 193, 7, 1);
  --gold-light: rgba(255, 235, 59, 1);

  /* Semantic Color Tokens */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-charcoal-700);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--forest-green);
  --color-primary-light: var(--forest-green-light);
  --color-primary-dark: var(--forest-green-dark);
  --color-accent: var(--gold-accent);
  --color-accent-light: var(--gold-light);
  --color-border: var(--color-gray-300);
  --color-shadow: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-primary);
}

.logo-icon {
  font-size: 2rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--color-primary);
}

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

.nav-link:hover::after {
  width: 100%;
}

.language-selector {
  display: flex;
  gap: 5px;
  background: var(--color-primary);
  border-radius: 25px;
  padding: 5px;
}

.language-btn {
  background: transparent;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: 500;
}

.language-btn.active {
  background: rgba(255, 255, 255, 0.2);
}

.language-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--forest-green-dark), var(--forest-green));
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--gold-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--gold-accent);
  color: var(--color-text);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--forest-green);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--color-primary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--gold-accent));
  border-radius: 2px;
}

/* Proyecto Section */
.proyecto {
  background: var(--color-surface);
}

.proyecto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.proyecto-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px var(--color-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-primary);
  margin: 1rem 0;
}

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

.proyecto-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Ventajas Section */
.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.ventaja-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--color-shadow);
  transition: transform 0.3s ease;
}

.ventaja-item:hover {
  transform: translateY(-5px);
}

.ventaja-icon {
  font-size: 2.5rem;
  min-width: 60px;
  text-align: center;
}

.ventaja-item h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.ventaja-item p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Impacto Section */
.impacto {
  background: linear-gradient(135deg, var(--mint-green), var(--sage-green));
  color: var(--color-text);
}

.impacto-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.impacto-text h2 {
  color: var(--forest-green-dark);
}

.impacto-benefits {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.benefit-icon {
  font-size: 2rem;
  min-width: 50px;
}

.benefit-item h4 {
  color: var(--forest-green-dark);
  margin-bottom: 0.5rem;
}

.benefit-item p {
  color: var(--color-text-secondary);
}

.impacto-certifications {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  height: fit-content;
}

.impacto-certifications h3 {
  color: var(--forest-green-dark);
  margin-bottom: 1.5rem;
}

.certifications-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cert-badge {
  background: var(--forest-green);
  color: white;
  padding: 1rem;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Rentabilidad Section */
.rentabilidad {
  background: var(--color-surface);
}

.rentabilidad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.rentabilidad-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  border: 3px solid var(--gold-accent);
  transition: transform 0.3s ease;
}

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

.rentabilidad-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.rentabilidad-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--gold-accent);
  margin-bottom: 1rem;
}

.rentabilidad-card p {
  color: var(--color-text-secondary);
}

.roi-calculator {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--color-shadow);
}

.roi-calculator h3 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.calculator-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

.input-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  font-size: 1.1rem;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.calculator-result {
  display: grid;
  gap: 1rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--forest-green-darker);
  border-radius: 10px;
  border-left: 4px solid var(--color-primary);
}

.result-item span:first-child {
  font-weight: 600;
  color: var(--color-text);
}

.result-item span:last-child {
  font-weight: bold;
  color: var(--color-primary);
  font-size: 1.2rem;
}

/* Timeline Section */
.timeline {
  background: linear-gradient(135deg, var(--forest-green-dark), var(--forest-green));
  color: white;
  padding: 80px 0;
}

.timeline .section-title {
  color: white;
}

.timeline .section-title::after {
  background: linear-gradient(90deg, var(--gold-accent), var(--gold-light));
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold-accent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 80px;
}

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--gold-accent);
  border-radius: 50%;
  border: 4px solid white;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.timeline-content h3 {
  color: var(--gold-light);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: white;
  margin-bottom: 1rem;
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Contacto Section */
.contacto {
  background: var(--color-surface);
}

.contacto-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contacto-benefits {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.contact-benefit {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px var(--color-shadow);
}

.contact-icon {
  font-size: 1.5rem;
  min-width: 40px;
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--color-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--color-charcoal-800);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--gold-accent);
  margin-bottom: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-certifications {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cert-small {
  background: var(--forest-green);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: bold;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
  opacity: 0.7;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  font-size: 1.5rem;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .impacto-content {
    grid-template-columns: 1fr;
  }

  .contacto-content {
    grid-template-columns: 1fr;
  }

  .calculator-inputs {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-container::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-marker {
    left: 5px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .proyecto-grid {
    grid-template-columns: 1fr;
  }

  .ventajas-grid {
    grid-template-columns: 1fr;
  }

  .rentabilidad-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

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

.count-up {
  animation: countUp 2s ease-out;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading states */
.loading {
  opacity: 0.5;
  pointer-events: none;
}