/* Variables y Reset */
:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #81c784;
  --secondary: #ffab00;
  --secondary-dark: #ff8f00;
  --text: #333;
  --text-light: #666;
  --text-lighter: #888;
  --bg-light: #f9f9f9;
  --bg-footer: rgb(36, 26, 19);
  --white: #fff;
  --black: #000;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --border-radius-lg: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.primary-btn {
  background-color: var(--primary);
  color: var(--white);
}

.brown-btn {
  background-color: var(--bg-footer);
  color: var(--white);
}

.primary-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.secondary-btn {
  background-color: var(--secondary);
  color: var(--white);
}

.secondary-btn:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.outline-btn {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: rgba(255,255,255,0.2);
}

.outline-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.divider {
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  margin: 20px auto;
  border-radius: 2px;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader-inner {
  text-align: center;
}

.leaf {
  display: inline-block;
  font-size: 2rem;
  color: var(--primary);
  margin: 0 10px;
  animation: float 2s infinite ease-in-out;
}

.leaf1 {
  animation-delay: 0s;
}

.leaf2 {
  animation-delay: 0.2s;
}

.leaf3 {
  animation-delay: 0.4s;
}

.loading-text {
  margin-top: 20px;
  font-weight: 500;
  color: var(--text-light);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background-color: rgba(236, 255, 236, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.98);
}


#logo_viva_foresta {
  width: 175px;
  height: auto;
  margin-left: 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  position: relative;
}

/* Barra indicadora */
.nav-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background-color: var(--primary);
  transition: all 0.3s ease;
  will-change: transform, width;
}

.nav-link {
  margin: 0 15px;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  padding: 10px 0;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Elimina el pseudo-elemento ::after que tenías antes */
.nav-link.active::after {
  content: none;
}

.nav-btn {
  margin-left: 20px;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
}

.hamburger .line {
  width: 100%;
  height: 3px;
  background-color: var(--primary-dark);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)); */
}

.hero-content {
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.hero-btn {
  min-width: 180px;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: auto;
  right: 50px;
  transform: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.scroll-down i {
  font-size: 1.5rem;
  margin-top: 10px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* Servicios Section */
.servicios {
  padding: 100px 0;
  background-color: var(--white);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.servicio-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--primary);
  transition: var(--transition);
}

.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.servicio-card:hover::before {
  height: 10px;
  background-color: var(--secondary);
}

.servicio-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.servicio-card:hover .servicio-icon {
  color: var(--secondary);
  transform: scale(1.1);
}

.servicio-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.servicio-card p {
  color: var(--text-light);
  margin-bottom: 25px;
}

.servicio-hover {
  height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.servicio-card:hover .servicio-hover {
  height: 50px;
}

/* Parcelas Section */
.parcelas {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.parcelas-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.parcelas-info {
  flex: 1;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(5px);
}

.parcelas-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.parcelas-info p {
  margin-bottom: 30px;
  color: var(--text);
}

.parcelas-features {
  list-style: none;
  margin-bottom: 30px;
}

.parcelas-features li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.parcelas-features i {
  color: var(--primary);
  margin-right: 10px;
  font-size: 1.2rem;
}

.parcelas-visual {
  flex: 1;
  perspective: 1000px;
}

/* Tokenization Section */
.tokenization {
    background-color: var(--bg-light);
}

.tokenization-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.tokenization-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.tokenization-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.tokenization-image:hover img {
    transform: scale(1.03);
}

/* Accordion Styles */
.accordion {
    width: 100%;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background-color: var(--white);
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: var(--gray-light);
}

.accordion-header i {
    transition: var(--transition);
}

.accordion-header.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: var(--white);
    transition: max-height 0.3s ease-out;
}

.accordion-content.active {
    padding: 20px;
    max-height: 1000px;
}

.report-details ul {
  margin-left: 20px;
  padding: 10px 0;
}

.report-details li {
  margin: 8px 0;
  color: var(--text-secondary);
}

.report-details i {
  margin-right: 8px;
  color: var(--primary);
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.advantage-card {
    padding: 20px;
    background: var(--gray-light);
    border-radius: 8px;
    text-align: center;
}

.advantage-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.advantage-card h4 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* Example Case */
.example-case {
    background: var(--gray-light);
    padding: 20px;
    border-radius: 8px;
}

.example-stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.example-stats .stat {
    text-align: center;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    flex: 1;
    margin: 0 5px;
}

.example-stats .stat-value {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.example-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* CTA */
.tokenization-cta {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 8px;
    text-align: center;
}

.tokenization-cta h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.tokenization-cta .btn-secondary {
    border-color: var(--white);
    color: var(--white);
    margin-top: 20px;
}

.tokenization-cta .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .tokenization-content {
        grid-template-columns: 1fr;
    }
    
    .tokenization-image {
        order: -1;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .example-stats {
        flex-direction: column;
    }
    
    .example-stats .stat {
        margin: 5px 0;
    }
}

.token-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transition: var(--transition);
  animation: floatCard 6s infinite ease-in-out;
}

.token-card:hover {
  transform: rotateY(10deg) rotateX(5deg) translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.token-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.token-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.token-card:hover .token-image img {
  transform: scale(1.05);
}

.token-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--primary);
  color: var(--white);
  padding: 5px 10px;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 600;
}

.token-details {
  padding: 20px;
}

.token-details h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.token-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.stat {
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.stat i {
  margin-right: 5px;
  color: var(--primary);
}

.token-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.price-eth {
  font-size: 0.9rem;
  background-color: #f0f0f0;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  color: var(--text-light);
}

.token-btn {
  width: 100%;
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Tokenization Accordion - Mejorado */
.tokenization-accordion {
    max-width: 800px;
    margin: 40px auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tokenization-item {
    margin-bottom: 15px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.tokenization-item:last-child {
    margin-bottom: 0;
}

.tokenization-header {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.tokenization-header:hover {
    background-color: var(--primary-dark);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tokenization-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.tokenization-header i.fa-check-circle {
    color: var(--primary-light);
    font-size: 1.3rem;
}

.tokenization-header i.fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.tokenization-item.active .tokenization-header i.fa-chevron-down {
    transform: rotate(180deg);
}

.tokenization-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: rgba(129, 199, 132, 0.05);
}

.tokenization-item.active .tokenization-content {
    max-height: 1000px;
}

.tokenization-features {
    padding: 25px;
    margin: 0;
    list-style: none;
}

.tokenization-features li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
    color: var(--text);
}

.tokenization-features li:last-child {
    border-bottom: none;
}

.tokenization-features i {
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.1rem;
    min-width: 20px;
    margin-top: 3px;
}

.tokenization-sublist {
    padding-left: 35px;
    margin-top: 10px;
    list-style: none;
}

.tokenization-sublist li {
    padding: 8px 0;
    position: relative;
    border-bottom: none;
}

.tokenization-sublist li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* Responsive */
@media (max-width: 768px) {
    .tokenization-header {
        padding: 18px 20px;
    }
    
    .header-content {
        gap: 12px;
    }
    
    .tokenization-header h4 {
        font-size: 1.1rem;
    }
    
    .tokenization-features {
        padding: 20px;
    }
    
    .tokenization-features li {
        font-size: 0.95rem;
    }

}

/* Proyectos Section */
.proyectos {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.proyecto-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.proyecto-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.proyecto-imagen {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proyecto-card:hover .proyecto-imagen img {
    transform: scale(1.05);
}

.proyecto-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.proyecto-info {
    padding: 25px;
}

.proyecto-info h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.proyecto-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.proyecto-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.proyecto-stats i {
    color: var(--primary);
}

.progreso {
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progreso-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    position: relative;
    border-radius: 5px;
}

.progreso-bar span {
    position: absolute;
    right: 5px;
    top: -25px;
    font-size: 0.8rem;
    color: var(--primary-dark);
    font-weight: 600;
}

/* Calculadora Section */
.calculadora {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.calculadora-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.calculadora-form {
  flex: 1;
  padding: 40px;
  background-color: var(--white);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-step h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 10px;
}

.form-step h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-light);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: 'Montserrat', sans-serif;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 4px;
  margin-top: 10px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

.range-value {
  display: inline-block;
  margin-left: 10px;
  font-weight: 500;
  color: var(--primary);
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-row .half {
  flex: 0.5;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.next-step, .prev-step, .calculate-btn {
  min-width: 150px;
}

.calculadora-resultado {
  flex: 1;
  background-color: var(--bg-footer);
  padding: 40px;
  color: var(--white);
  display: flex;
  align-items: center;
}

#huella_carbono_img {
  height: 120px;
  width: auto;
}

.resultado-inner {
  width: 100%;
}

.resultado-default {
  text-align: center;
}

.resultado-default img {
  width: 100px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.resultado-default h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.resultado-default p {
  opacity: 0.9;
}

.resultado-content {
  display: none;
}

.resultado-content h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
}

.co2-result {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--border-radius-lg);
  margin-bottom: 30px;
  text-align: center;
}

.co2-amount {
  margin-bottom: 15px;
}

.co2-amount span:first-child {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.co2-unit {
  display: block;
  font-size: 1.2rem;
  opacity: 0.8;
}

.co2-comparison {
  font-size: 1.1rem;
  opacity: 0.9;
}

.co2-comparison span {
  font-weight: 600;
}

.compensacion {
  margin-bottom: 30px;
}

.compensacion h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
}

.compensacion-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
}

.compensacion-item i {
  font-size: 1.5rem;
  margin-right: 15px;
  color: var(--secondary);
}

.compensacion-item span {
  font-size: 1.2rem;
  font-weight: 600;
}

.resultado-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Fundación Section */
#fundation-title {
    color: rgba(236, 255, 236);;
}

#fundation-subtitle {
    color: #d6d6d6;
}

.fundacion {
    position: relative;
    padding: 100px 0;
    background-color: var(--white);
    background-image: url(../img/4k_forest.jpg);
    background-size: cover;
    background-position: center;
    color: #fff;
    z-index: 1;
  }
  
  .fundacion::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.68); /* Más oscuro que antes */
    z-index: -1;
  }
  
.fundacion-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.fundacion-video {
  flex: 1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.fundacion-info {
  flex: 1;
}

.fundacion-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.fundacion-info p {
  margin-bottom: 30px;
  color: var(--text);
}

.fundacion-stats {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 0 15px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(236, 255, 236);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.fundacion-buttons {
  display: flex;
  gap: 15px;
}

/* Testimonios Section */
.testimonios {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.testimonios-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonio-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonio-slide.active {
  display: block;
}

.testimonio-content {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.testimonio-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 30px;
  position: relative;
}

.testimonio-text::before,
.testimonio-text::after {
  content: '"';
  font-size: 3rem;
  color: var(--primary-light);
  opacity: 0.3;
  position: absolute;
}

.testimonio-text::before {
  top: -20px;
  left: -10px;
}

.testimonio-text::after {
  bottom: -40px;
  right: -10px;
}

.testimonio-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.author-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}

.author-info h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--primary-dark);
}

.author-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

.author-rating {
  color: var(--secondary);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.slider-prev, .slider-next {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  padding: 5px 15px;
}

.slider-prev:hover, .slider-next:hover {
  color: var(--primary-dark);
}

.slider-dots {
  display: flex;
  gap: 10px;
  margin: 0 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary);
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-footer), var(--primary-dark));
  color: var(--white);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-form {
  max-width: 500px;
  margin: 0 auto;
}

.cta-form .form-group {
  display: flex;
  gap: 10px;
}

.cta-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: var(--border-radius);
  font-family: 'Montserrat', sans-serif;
}

.cta-form button {
  padding: 15px 30px;
}

.form-agreement {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.form-agreement input {
  margin-right: 10px;
}

/* Animaciones adicionales */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

.shake-animation {
  animation: shake 0.5s;
}

/* Efecto hover para las tarjetas de parcela */
.token-card:hover .token-badge {
  animation: pulse 1s infinite;
}

/* Efecto al completar la calculadora */
.calculadora-resultado .resultado-content {
  animation: fadeIn 0.5s ease;
}

/* Contacto Section */
.contacto {
  padding: 100px 0;
  background-color: var(--white);
}

.contacto-content {
  display: flex;
  gap: 50px;
}

.contacto-info {
  flex: 1;
  padding: 40px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius-lg);
}

.info-item {
  display: flex;
  margin-bottom: 30px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 20px;
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--primary-dark);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 40px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.contacto-form {
  flex: 1;
  padding: 40px;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
}

.contacto-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-light);
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: 'Montserrat', sans-serif;
  transition: var(--transition);
}

.contacto-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

/* Footer */
.footer {
  background-color: var(--bg-footer);
  color: var(--white);
  padding: 80px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.footer-logo img {
  width: 150px;
  margin-bottom: 20px;
}

.footer p {
  opacity: 0.7;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.footer-subscribe h4 {
  margin-bottom: 15px;
}

.footer-subscribe form {
  display: flex;
}

.footer-subscribe input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-family: 'Montserrat', sans-serif;
}

.footer-subscribe button {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 0 15px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  transition: var(--transition);
}

.footer-subscribe button:hover {
  background-color: var(--primary-dark);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  opacity: 0.7;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-payments h4 {
  margin-bottom: 15px;
}

.payment-methods {
  display: flex;
  gap: 10px;
  font-size: 1.8rem;
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-lang select {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: var(--border-radius);
  font-family: 'Montserrat', sans-serif;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .parcelas-content,
  .fundacion-content {
    flex-direction: column;
  }
  
  .calculadora-resultado {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 30px;
    transition: var(--transition);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-link {
    margin: 15px 0;
    font-size: 1.2rem;
  }
  
  .nav-btn {
    margin: 20px 0 0;
    width: 100%;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .contacto-content {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-row .half {
    flex: 1;
  }
  
  .form-buttons, .resultado-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .fundacion-stats {
    flex-direction: column;
    gap: 30px;
  }
  
  .fundacion-buttons {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

.mobile-image {
  display: none;
}

.desktop-video {
  display: block;
}

@media (max-width: 768px) {
  .mobile-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .desktop-video {
    display: none;
  }
  
  .hero {
    min-height: 600px; /* Ajusta según necesites */
  }
}