/* Variables y Reset Mejorados */
:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #81c784;
  --secondary: #ffab00;
  --secondary-dark: #ff8f00;
  --accent: #00bcd4;
  --text: #333;
  --text-light: #666;
  --text-lighter: #888;
  --bg-light: #f9f9f9;
  --bg-dark: #1a2e22;
  --bg-footer: #0f1a13;
  --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;
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius: 8px;
  --border-radius-lg: 16px;
  
  /* Dark mode variables */
  --dm-bg: #121212;
  --dm-text: #e0e0e0;
  --dm-card: #1e1e1e;
}

[data-theme="dark"] {
  --bg-light: var(--dm-bg);
  --text: var(--dm-text);
  --white: var(--dm-card);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-light);
  transition: background-color 0.5s ease;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Preloader 3D Mejorado */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader-inner {
  text-align: center;
  perspective: 1000px;
}

.leaf-3d {
  width: 100px;
  height: 100px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate3d 6s infinite linear;
}

.leaf-face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-light);
  border: 2px solid rgba(129, 199, 132, 0.5);
  border-radius: 50%;
  backface-visibility: hidden;
  background: rgba(46, 125, 50, 0.1);
}

.leaf-face.front { transform: rotateY(0deg) translateZ(50px); }
.leaf-face.back { transform: rotateY(180deg) translateZ(50px); }
.leaf-face.right { transform: rotateY(90deg) translateZ(50px); }
.leaf-face.left { transform: rotateY(-90deg) translateZ(50px); }
.leaf-face.top { transform: rotateX(90deg) translateZ(50px); }
.leaf-face.bottom { transform: rotateX(-90deg) translateZ(50px); }

.loading-text {
  margin-top: 40px;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.loading-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
}

@keyframes rotate3d {
  0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

/* Particles Background Mejorado */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
}

/* Theme Toggle Mejorado */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 100px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--white);
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-slow);
  overflow: hidden;
}

.back-to-top.visible ~ .theme-toggle {
  right: 100px;
}

.back-to-top:not(.visible) ~ .theme-toggle {
  right: 30px;
}

.theme-toggle i {
  position: absolute;
  font-size: 1.5rem;
  transition: var(--transition-slow);
}

.theme-toggle .fa-moon {
  color: var(--primary-dark);
  transform: translateY(0);
}

.theme-toggle .fa-sun {
  color: var(--secondary);
  transform: translateY(100px);
}

[data-theme="dark"] .theme-toggle .fa-moon {
  transform: translateY(-100px);
}

[data-theme="dark"] .theme-toggle .fa-sun {
  transform: translateY(0);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(30deg);
}

/* Header Holográfico Mejorado */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-slow);
  background-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.header .nav-link {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.header.scrolled .nav-link {
  color: var(--black) !important;
  text-shadow: none;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 10px 0;
}



.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo-img {
  height: 60px;
  transition: var(--transition);

  filter: brightness(1.5);
  transition: filter 0.3s ease;
}

.logo-hologram {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(46,125,50,0.4) 0%, rgba(46,125,50,0) 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: var(--transition-slow);
  pointer-events: none;
  border-radius: 50%;
}

.logo:hover .logo-hologram {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.8);
}

.nav-links {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background-color: var(--primary);
  transition: all 0.3s ease !important;
  will-change: transform;
  opacity: 0;
  border-radius: 3px;
}

.nav-link {
  margin: 0 20px;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
  padding: 15px 0;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--text);
}

.nav-link::before {
display: none;
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  z-index: 1001;
  position: relative;
}

.hamburger .line {
  width: 100%;
  height: 3px;
  background-color: var(--primary-dark);
  transition: var(--transition-slow);
  transform-origin: left center;
}

[data-theme="dark"] .hamburger .line {
  background-color: var(--primary-light);
}

[data-theme="dark"] .footer,
[data-theme="dark"] .footer p,
[data-theme="dark"] .footer a {
  color: white !important;
}


[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-subtitle {
  color: white !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .hero-subtitle {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  color: var(--white);
}

[data-theme="dark"] .member-info h3,
[data-theme="dark"] .member-info p {
  color: var(--text);
}

[data-theme="dark"] .new-contact-section {
  background: linear-gradient(to bottom right, #1a2e22, #0f1a13);
  color: var(--dm-text);
}

[data-theme="dark"] .contact-form-container,
[data-theme="dark"] .contact-info-card {
  background-color: var(--dm-card);
}

[data-theme="dark"] .input-wrapper label,
[data-theme="dark"] .info-content h3,
[data-theme="dark"] .info-content p {
  color: var(--dm-text) !important;
}

[data-theme="dark"] .input-wrapper input,
[data-theme="dark"] .input-wrapper textarea {
  background-color: var(--dm-card);
  border-color: rgba(255,255,255,0.1);
  color: var(--dm-text);
}


.hamburger.active .line:nth-child(1) {
  transform: rotate(45deg) translateY(-3px);
}

.hamburger.active .line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .line:nth-child(3) {
  transform: rotate(-45deg) translateY(3px);
}

/* Hero Section Parallax 3D Mejorado */
.hero {
  position: relative;
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  isolation: isolate;
}

.hero-parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.8;
  mix-blend-mode: screen;
}

.hero-content {
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 30px;
  line-height: 1.1;
}

.title-word {
  display: inline-block;
  margin: 0 10px;
  transform: translateY(30px);
  opacity: 0;
  animation: fadeInUp 1s forwards;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeInUp 1s 0.8s forwards;
  font-weight: 300;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  animation: fadeInUp 1s 1s forwards;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  padding: 18px 36px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-slow);
  border: none;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.primary-btn {
  background-color: var(--primary);
  color: var(--white);
}

.secondary-btn {
  background-color: var(--secondary);
  color: var(--white);
}

.outline-btn {
  background-color: rgba(255,255,255,0.1);
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

section {
  scroll-margin-top: 100px;
}

.btn-reflection {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
  transition: var(--transition-slow);
}

.hover-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hover-3d:hover {
  transform: translateY(-5px) rotateX(10deg) scale(1.05);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

.hover-3d:hover .btn-reflection {
  top: 100%;
}

.scroll-hint {
  position: absolute;
  bottom: -200px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 15px;
  margin-bottom: 10px;
  position: relative;
}

.wheel {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 4px;
  height: 8px;
  background-color: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

.arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arrows span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  margin: -4px;
  animation: scrollArrows 2s infinite;
}

.arrows span:nth-child(2) {
  animation-delay: 0.2s;
}

.arrows span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes scrollWheel {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0.5;
  }
}

@keyframes scrollArrows {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Secciones comunes */
section {
  padding: 40px 0 0 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--primary-dark);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
  margin: 30px auto;
  max-width: 200px;
}

/* Timeline Mejorado */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.timeline-progress {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom, var(--primary-light), var(--primary-dark));
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  perspective: 1000px;
}

.timeline-item:nth-child(odd) .timeline-content {
  padding-right: calc(50% + 60px);
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  padding-left: calc(50% + 60px);
}

.timeline-content {
  position: relative;
  padding: 20px;
  transition: var(--transition-slow);
}

.timeline-year {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
}

.timeline-card {
  position: relative;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(30px) rotateY(20deg);
  transition: var(--transition-slow);
}

.card-3d {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 300px;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-item:hover .card-3d {
  transform: rotateY(180deg);
}

/* Proyectos 3D Mejorados */
.projects-3d-container {
  perspective: 2000px;
  padding: 50px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  transform-style: preserve-3d;
}

.project-card-3d {
  height: 450px;
  transform-style: preserve-3d;
  transition: var(--transition-slow);
  perspective: 1000px;
}

/* Forzar texto blanco en el reverso de las tarjetas de proyectos */
.project-card-3d .card-back {
  color: white;
  background-color: var(--primary-dark); /* opcional, para contraste */
}

.project-card-3d .card-back * {
  color: white;
}



.project-card-3d:hover {
  transform: translateY(-10px) rotateX(5deg) scale(1.02);
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.project-card-3d:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.card-back {
  background-color: var(--white);
  transform: rotateY(180deg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-image {
  position: relative;
  height: 60%;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s;
}

.project-card-3d:hover .project-image img {
  transform: scale(1.1);
}

.project-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2;
}

.project-info {
  padding: 30px;
  height: 40%;
  background-color: var(--white);
}

.project-info h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.project-details {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-details ul {
  list-style: none;
  margin-bottom: 20px;
}

.project-details li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.project-details i {
  margin-right: 10px;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Impacto Section Mejorada */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.impact-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.impact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.impact-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.impact-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 10px 0;
}

.impact-chart {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
}

.impact-map {
  min-height: 300px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#projects-map, #impact-chart {
  width: 100%;
  height: 100%;
}

.map-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255,255,255,0.9);
  padding: 10px 15px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.map-legend span {
  display: block;
  margin: 5px 0;
}

/* Equipo Section Mejorada */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.team-card {
    perspective: 1000px;
    height: 400px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 15px;
}

.team-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.card-front {
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.card-front img {
    height: 70%;
    object-fit: cover;
}

.member-info {
    padding: 1.5rem;
    text-align: center;
    background: var(--primary-light);
    flex-grow: 1;
}

.card-back {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: rotateY(180deg);
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
}

.back-content {
    width: 100%;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.member-info {
  backface-visibility: hidden;
  user-select: none;
  background: var(--primary-light);
  color: white !important;
  text-align: center;
  padding: 1.5rem;
  border-radius: 50px;
  margin-top: 35px; 
}

.member-info h3 {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.member-info p {
  color: rgba(255,255,255,0.9) !important;
}


#impacto {
  padding-bottom: 150px !important; /* Más espacio para la ola */
}

.wave-divider {
  margin-top: 30px; /* Superponer la ola */
}
#contacto {
  padding-bottom: 0;
}



.member-role {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 20px;
}

.member-social {
  display: flex;
  gap: 15px;
}

.member-social a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.2rem;
}

.member-social a:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px) scale(1.1);
}

/* Parcelas Section */
.parcelas-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  margin-top: 60px;
}

.parcelas-map {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

#bosque-svg {
  width: 100%;
  height: 500px;
  border-radius: var(--border-radius);
}

.parcela-info {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.info-header {
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 20px;
  margin-bottom: 25px;
}

.parcela-status {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.parcela-status.available {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.parcela-status.adopted {
  background: var(--secondary);
  color: #fff;
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 5px;
}

.progress-bar {
  height: 10px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 0.5s ease;
}

.info-pricing {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 2px solid var(--primary-light);
}

.price-tag {
  margin-bottom: 25px;
  text-align: center;
}

.price-tag .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
}

.price-tag .size {
  color: var(--text-light);
}

/* NFT Certificate */
.nft-certificate {
  margin-top: 60px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.nft-preview {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nft-image {
  position: relative;
  flex: 1;
  max-width: 300px;
  border-radius: 15px;
  overflow: hidden;
}

.nft-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(46,125,50,0.3), transparent);
}

.nft-details {
  flex: 2;
}

.nft-meta {
  display: flex;
  gap: 25px;
  margin-top: 25px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-light);
  padding: 10px 20px;
  border-radius: 8px;
}

.input-group {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  border: 2px solid var(--primary-light);
  border-radius: 10px;
  overflow: hidden;
}

.input-symbol {
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  font-weight: bold;
  font-size: 1.1rem;
}

#custom-amount {
  border: none;
  flex: 1;
  padding: 12px 18px;
  font-size: 1rem;
  outline: none;
}

.custom-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: bold;
  padding: 15px 30px;
  border-radius: 10px;
  transition: var(--transition-slow);
}

.custom-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}


.custom-amount {
  display: flex;
  align-items: center;
  max-width: 400px;
  margin: 20px auto;
}

.custom-amount span {
  font-size: 1.2rem;
  margin-right: 10px;
  color: var(--primary-dark);
}

.custom-amount input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid var(--primary-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.custom-amount input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

#custom-donate-btn {
  display: block;
  margin: 0 auto;
  width: auto;
  padding: 12px 30px;
}

.payment-methods { 
    margin-top: 30px; 
} 

.payment-methods img { 
    max-width: 300px; 
    margin: 0 auto; 
    filter: grayscale(100%); 
    opacity: 0.7; 
    transition: var(--transition); 
} 

.payment-methods img:hover { 
    filter: grayscale(0%); 
    opacity: 1; 
} 

.payment-methods p { 
    margin-top: 10px; 
    font-size: 0.9rem; 
    color: var(--text-light); 
} 


.social-icons { 
    display: flex; 
    gap: 1.5rem; 
    justify-content: center; 
    margin-top: 1rem; 
} 

.social-icons a { 
    font-size: 1.8rem; 
    color: var(--primary); 
    transition: transform 0.3s; 
} 

/* Nuevo CSS para la sección de contacto */
.new-contact-section {
  padding: 80px 0;
  background: linear-gradient(to bottom right, #f8faf9, #e8f5e9);
  position: relative;
  overflow: hidden;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}

.contact-form-container {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(46, 125, 50, 0.08);
}

.modern-contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  position: relative;
}

.dual-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.input-wrapper {
  position: relative;
  margin-bottom: 15px;
}

.input-wrapper label {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-lighter);
  pointer-events: none;
  transition: all 0.3s ease;
  background: var(--white);
  padding: 0 5px;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--primary-light);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-wrapper textarea {
  resize: vertical;
  min-height: 120px;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus,
.input-wrapper input:valid,
.input-wrapper textarea:valid {
  border-color: var(--primary);
  outline: none;
}

.input-wrapper input:focus ~ label,
.input-wrapper input:valid ~ label,
.input-wrapper textarea:focus ~ label,
.input-wrapper textarea:valid ~ label {
  top: 0;
  font-size: 0.85rem;
  color: var(--primary);
}

.send-btn {
  align-self: flex-start;
  padding: 15px 35px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.send-btn i {
  transition: transform 0.3s ease;
}

.send-btn:hover i {
  transform: translateX(5px);
}

.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-card {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(46, 125, 50, 0.08);
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.info-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 5px;
  color: var(--primary-dark);
}

.info-content p {
  color: var(--text-light);
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.map-wrapper {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(46, 125, 50, 0.08);
}

#contact-map {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

@media (max-width: 992px) {
  .contact-container {
      grid-template-columns: 1fr;
  }
  
  .map-wrapper {
      height: 400px;
  }
}

@media (max-width: 576px) {
  .contact-form-container {
      padding: 25px;
  }
  
  .dual-inputs {
      grid-template-columns: 1fr;
  }
  
  .info-item {
      flex-direction: column;
      align-items: flex-start;
  }
}

/* Footer Holográfico Mejorado */
.footer {
  position: relative;
  background-color: var(--bg-footer);
  color: var(--white);
  padding: 100px 0 30px;
  overflow: hidden;
}

.footer-hologram {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(46,125,50,0.2) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-logo img {
  height: 70px;
  margin-bottom: 20px;
}

.footer-col p {
  margin-bottom: 20px;
  line-height: 1.8;
  opacity: 0.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--white);
  opacity: 0.8;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateX(5px);
}

.footer-links i {
  font-size: 0.8rem;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.2rem;
}

.footer-social a:hover {
  background-color: var(--primary);
  transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Back to Top Button Mejorado */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
  overflow: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top i {
  transition: var(--transition-slow);
}

#impacto {
  padding-bottom: 15px !important;
}

.back-to-top .hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: 0;
  transition: var(--transition-slow);
  font-weight: 600;
}

.back-to-top:hover {
  width: 60px;
  border-radius: 50%;
  background-color: var(--primary-dark);
}

.back-to-top:hover .hover-text {
  display: none; /* o directamente eliminar el span del HTML */
}

/* Añade al final de stylesfunda.css */
.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--primary-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
}


@keyframes float-up {
  0% {
      transform: translateY(0) scale(1);
      opacity: 1;
  }
  100% {
      transform: translateY(-100px) scale(0);
      opacity: 0;
  }
}

/* Animaciones Mejoradas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.wave-divider {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  color: var(--primary-light);
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
  transform: rotateY(0deg);
}

.wave-divider path {
  animation: waveAnimation linear infinite;
  transform-origin: center;
}
@keyframes waveAnimation {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}


/* Media Queries Mejoradas */
@media (max-width: 1200px) {
  .container {
    padding: 0 40px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    padding: 0 0 0 80px;
    text-align: left;
  }
  
  .timeline-progress {
    left: 40px;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .team-member {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-slow);
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-link {
    margin: 15px 0;
    font-size: 1.2rem;
    color: var(--text);
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
  }
  
  .impacto-data-viz,
  .donation-interactive {
    flex-direction: column;
  }
  
  .data-viz-container,
  .data-stats,
  .donation-visualization,
  .donation-options {
    max-width: 100%;
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .title-word {
    display: block;
    margin: 10px 0;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .data-stats {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  section {
    padding: 70px 0;
  }
}