/* 
 * Landing Page - Huella de Carbono
 * Estilos minimalistas inspirados en Apple
 * Con animaciones elegantes y diseño responsive
 */

:root {
  --primary-color: #29e775;
  --primary-dark: #21c463;
  --primary-light: #7aeea8;
  --secondary-color: #2c3e50;
  --accent-color: #3498db;
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #ffffff;
  --bg-alt: #f8f9fa;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-color);
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Animación de fondo */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, rgba(41, 231, 117, 0.03) 0%, rgba(255, 255, 255, 0) 50%, rgba(52, 152, 219, 0.03) 100%);
  animation: bg-shift 15s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

.main-nav a.nav-cta {
  color: var(--primary-color);
  font-weight: 600;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

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

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.hero-content .highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero-content .highlight::after {
  content: '';
  position: absolute;
  height: 8px;
  width: 100%;
  bottom: 5px;
  left: 0;
  background-color: rgba(41, 231, 117, 0.2);
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 5px 15px rgba(41, 231, 117, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(41, 231, 117, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-color);
  transform: translateY(-2px);
}

.btn-large {
  padding: 15px 35px;
  font-size: 1.1rem;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.dashboard-preview {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: var(--transition);
}

.dashboard-preview:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: -1;
}

.floating-element-1 {
  background-color: var(--primary-light);
  width: 300px;
  height: 300px;
  top: -50px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.floating-element-2 {
  background-color: var(--accent-color);
  width: 200px;
  height: 200px;
  bottom: -30px;
  left: 50px;
  animation: float 10s ease-in-out infinite reverse;
}

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

/* Stats Section */
.stats-section {
  background-color: var(--bg-alt);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.stat-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 15px;
}

.percentage {
  font-size: 2rem;
}

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

/* Benefits Section */
.benefits-section {
  padding: 100px 0;
}

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

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

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px 30px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-medium);
}

.benefit-icon {
  margin-bottom: 25px;
  background-color: rgba(41, 231, 117, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.benefit-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background-color: var(--bg-alt);
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-block.reverse {
  grid-template-columns: 1fr 1fr;
}

.feature-block.reverse .feature-content {
  order: 2;
}

.feature-block.reverse .feature-image {
  order: 1;
}

.feature-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.feature-content p {
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.feature-list {
  padding-left: 20px;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-color);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  opacity: 0.2;
}

.feature-list li::after {
  content: '✓';
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.feature-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.feature-image img:hover {
  transform: scale(1.02);
}

/* Demo Section */
.demo-section {
  padding: 100px 0;
  text-align: center;
}

.demo-content {
  max-width: 800px;
  margin: 0 auto 50px;
}

.demo-description {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.video-container {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  max-width: 900px;
  margin: 0 auto;
  background-color: #000;
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.video-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-placeholder:hover img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Testimonials Section */
.testimonials-section {
  padding: 100px 0;
  background-color: var(--bg-alt);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto 30px;
  position: relative;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide:first-child {
  display: block;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.testimonial-quote {
  font-size: 1.2rem;
  color: var(--text-color);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 30px;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  color: rgba(41, 231, 117, 0.2);
  position: absolute;
  top: -20px;
  left: -15px;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.testimonial-name {
  font-weight: 600;
  color: var(--secondary-color);
}

.testimonial-position {
  font-size: 0.9rem;
  color: var(--text-light);
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.testimonial-nav-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 5px;
  transition: var(--transition);
}

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

.testimonial-indicators {
  display: flex;
  gap: 10px;
}

.testimonial-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-indicator.active {
  background-color: var(--primary-color);
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(120deg, var(--primary-color) 0%, #21c463 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-section .btn-primary {
  background-color: white;
  color: var(--primary-dark);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-section .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
.main-footer {
  background-color: #1a2a36;
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  margin-bottom: 20px;
}

.logo-image-footer {
  height: 35px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-description {
  font-size: 0.95rem;
  opacity: 0.7;
  max-width: 300px;
}

.footer-heading {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a, .footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover, .footer-contact a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.copyright {
  opacity: 0.7;
}

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

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

/* Animaciones con IntersectionObserver */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll[data-delay="0.1"] {
  transition-delay: 0.1s;
}

.reveal-on-scroll[data-delay="0.2"] {
  transition-delay: 0.2s;
}

.reveal-on-scroll[data-delay="0.3"] {
  transition-delay: 0.3s;
}

.reveal-on-scroll[data-delay="0.4"] {
  transition-delay: 0.4s;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .feature-block {
    gap: 30px;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-subtitle, .hero-buttons {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-image {
    order: 1;
    margin-bottom: 40px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-block, .feature-block.reverse {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .feature-block .feature-content, .feature-block.reverse .feature-content {
    order: 2;
  }
  
  .feature-block .feature-image, .feature-block.reverse .feature-image {
    order: 1;
  }
  
  .feature-list li {
    padding-left: 25px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 100px 40px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 20px;
  }
  
  .main-nav a {
    display: block;
    font-size: 1.2rem;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .testimonial-card {
    padding: 30px 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-legal-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    padding: 10px 20px;
  }
  
  .btn-large {
    padding: 12px 28px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
} 