/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors - Manteniendo los colores originales */
  --primary-color: #6dd130;
  --primary-dark: #53b927;
  --primary-light: #e2f4d5;
  --secondary-color: #4caf50;
  --text-dark: #2b2b2b;
  --text-light: #666;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);

  /* Typography */
  --font-family: "Inter", sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  box-shadow: var(--shadow-light);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn--secondary {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--gray-300);
}

.btn--secondary:hover {
  background: var(--gray-100);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn--outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn--outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn--large {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-lg);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-light);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
}

.nav__logo .logo {
  height: 40px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav__list {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav__link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-base);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-base);
}

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

.nav__link:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  font-size: var(--font-size-xl);
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.hero__title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--text-dark), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title--accent {
  color: var(--primary-color);
  -webkit-text-fill-color: var(--primary-color);
}

.hero__description {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
}

.hero__image-container {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform var(--transition-slow);
}

.hero__image-container:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__floating-card {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: var(--shadow-light);
  animation: float 3s ease-in-out infinite;
}

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

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  font-size: var(--font-size-xl);
  animation: bounce 2s infinite;
  cursor: pointer;
}

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

/* Video Section */
.video {
  padding: var(--spacing-2xl) 0;
  background: var(--white);
}

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

.video__wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.video__player {
  width: 100%;
  height: auto;
  display: block;
}

.video__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.video__wrapper:hover .video__overlay {
  opacity: 1;
}

.video__play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: var(--white);
  font-size: var(--font-size-2xl);
  cursor: pointer;
  transition: all var(--transition-base);
}

.video__play-btn:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

/* Stats Section */
.stats-section {
  padding: var(--spacing-2xl) 0;
  background: var(--gray-100);
}

.stats-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.stats-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

/* Stat Card */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

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

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-xl);
  margin: 0 auto var(--spacing-lg);
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: var(--shadow-light);
}

/* Semicircle Container */
.semicircle-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.semicircle {
  position: relative;
  width: 200px;
  height: 100px;
  overflow: hidden;
}

.semicircle-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 15px solid var(--gray-200);
  border-bottom-color: var(--primary-color);
  border-right-color: var(--primary-color);
  transform: rotate(-45deg);
  transition: all var(--transition-slow);
}

.semicircle-mask {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--white);
}

.semicircle-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 2px;
}

.stat-period {
  display: block;
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Stat Footer */
.stat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--gray-200);
}

.stat-change {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 600;
  font-size: 0.875rem;
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--danger);
}

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

/* Gradientes para diferentes porcentajes */
.semicircle[data-percentage="75"] .semicircle-fill {
  border-bottom-color: var(--primary-color);
  border-right-color: var(--primary-color);
}

.semicircle[data-percentage="85"] .semicircle-fill {
  border-bottom-color: var(--success);
  border-right-color: var(--success);
}

.semicircle[data-percentage="92"] .semicircle-fill {
  border-bottom-color: var(--secondary-color);
  border-right-color: var(--secondary-color);
}

/* Section Titles */
.section__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  color: var(--text-dark);
}

/* Partners Section */
.partners {
  padding: var(--spacing-2xl) 0;
  background: var(--white);
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.partner__card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-base);
}

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

.partner__logo {
  max-width: 150px;
  height: auto;
  filter: grayscale(100%);
  transition: filter var(--transition-base);
}

.partner__card:hover .partner__logo {
  filter: grayscale(0%);
}

/* Team Section */
.team {
  padding: var(--spacing-2xl) 0;
  background: var(--gray-100);
}

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

.team__image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.team__image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.team__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: var(--spacing-xl);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.team__image-wrapper:hover .team__overlay {
  transform: translateY(0);
}

.team__image-wrapper:hover .team__image {
  transform: scale(1.05);
}

.team__stats {
  display: flex;
  justify-content: space-around;
  gap: var(--spacing-md);
}

.stat {
  text-align: center;
  color: var(--white);
}

.stat__number {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary-color);
}

.stat__label {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

/* Solutions Section */
.solutions {
  padding: var(--spacing-2xl) 0;
  background: var(--white);
}

.solutions__grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.solution__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  padding: var(--spacing-xl);
  background: var(--gray-100);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-base);
}

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

.solution__card--reverse {
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.solution__card--reverse .solution__content {
  order: 2;
}

.solution__card--reverse .solution__image {
  order: 1;
}

.solution__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.solution__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--font-size-xl);
}

.solution__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-dark);
}

.solution__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.solution__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 500;
}

.solution__item i {
  color: var(--primary-color);
  font-size: var(--font-size-lg);
}

.solution__image {
  position: relative;
}

.solution__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-medium);
}

/* CTA Section */
.cta {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  text-align: center;
}

.cta__title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.cta__description {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.cta .btn--primary {
  background: var(--white);
  color: var(--primary-color);
}

.cta .btn--outline {
  border-color: var(--white);
  color: var(--white);
}

.cta .btn--outline:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
}

.footer__logo .logo {
  height: 40px;
  margin-bottom: var(--spacing-sm);
}

.footer__description {
  opacity: 0.8;
  line-height: 1.6;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.footer__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__social {
  display: flex;
  gap: var(--spacing-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all var(--transition-base);
}

.footer__social-link:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--spacing-xl);
    transition: left var(--transition-base);
  }

  .nav__menu.active {
    left: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: var(--spacing-lg);
    width: 100%;
  }

  .nav__toggle {
    display: block;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }

  .hero__title {
    font-size: var(--font-size-4xl);
  }

  .hero__buttons {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .stat-card {
    padding: var(--spacing-lg);
  }

  .semicircle {
    width: 180px;
    height: 90px;
  }

  .semicircle-fill {
    width: 180px;
    height: 180px;
    border-width: 12px;
  }

  .semicircle-mask {
    top: 12px;
    left: 12px;
    width: 156px;
    height: 156px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .solution__card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .solution__card--reverse .solution__content {
    order: 1;
  }

  .solution__card--reverse .solution__image {
    order: 2;
  }

  .partners__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team__stats {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__links {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

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

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

  .hero__title {
    font-size: var(--font-size-3xl);
  }

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

  .btn--large {
    width: 100%;
    justify-content: center;
  }

  .semicircle {
    width: 160px;
    height: 80px;
  }

  .semicircle-fill {
    width: 160px;
    height: 160px;
    border-width: 10px;
  }

  .semicircle-mask {
    top: 10px;
    left: 10px;
    width: 140px;
    height: 140px;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-footer {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }

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

  .section__title {
    font-size: var(--font-size-2xl);
  }

  .cta__title {
    font-size: var(--font-size-3xl);
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Estados de carga */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loaded {
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--transition-base);
}

/* Efectos adicionales */
.stat-card.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: var(--shadow-medium);
  }
  50% {
    box-shadow: var(--shadow-heavy);
  }
  100% {
    box-shadow: var(--shadow-medium);
  }
}
