/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #DCAC3A;
  --primary-color-dark: #B8942A;
  --secondary-color: #333333;
  --text-primary: #282F3B;
  --text-light: #FFFFFF;
  --text-dark: #000000;
  --background-primary: #FFFFFF;
  --background-dark: #282F3B;
  --background-secondary: #333333;
  --whatsapp-green: #25d366;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, rgba(6,147,227,1) 0%, rgb(155,81,224) 100%);
  --gradient-secondary: linear-gradient(135deg, rgba(123,220,181,1) 0%, rgba(0,208,132,1) 100%);
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  --font-size-h1: 3.5rem;
  --font-size-h2: 2.5rem;
  --font-size-h3: 1.75rem;
  --font-size-h4: 1.25rem;
  --font-size-normal: 1rem;
  --font-size-small: 0.875rem;
  
  /* Spacing */
  --header-height: 5rem;
  --section-padding: 5rem 0;
  --container-padding: 0 1rem;
  
  /* Border radius */
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-normal);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-primary);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.grid {
  display: grid;
  gap: 2rem;
}

.section {
  padding: var(--section-padding);
}

.section__title {
  font-size: var(--font-size-h2);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section__subtitle {
  font-size: var(--font-size-normal);
  text-align: center;
  color: var(--text-primary);
  opacity: 0.8;
  margin-bottom: 3rem;
}

/* ===== BUTTONS ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: var(--font-size-normal);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  min-width: 200px;
}

.button--primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.button--primary:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.button--outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.button--whatsapp {
  background-color: var(--whatsapp-green);
  color: var(--text-light);
}

.button--whatsapp:hover {
  background-color: #1ea952;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--background-primary);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo-img {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
}

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

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

.nav__link {
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--primary-color);
  font-weight: 600;
}

.nav__link.active-link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 1px;
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: calc(var(--header-height) + 2rem);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__container {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero__subtitle {
  display: block;
  font-size: var(--font-size-normal);
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.hero__title {
  font-size: var(--font-size-h1);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero__description {
  font-size: 1.125rem;
  color: var(--text-primary);
  opacity: 0.8;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__img {
  max-width: 100%;
  height: auto;
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: var(--background-primary);
}

.about__container {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.about__description {
  font-size: 1.125rem;
  color: var(--text-primary);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.about__stat {
  text-align: center;
}

.about__stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.about__stat-description {
  font-size: var(--font-size-small);
  color: var(--text-primary);
  opacity: 0.8;
}

.about__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__img {
  max-width: 100%;
  height: auto;
}

/* ===== SERVICES SECTION ===== */
.services {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.services__card {
  background-color: var(--background-primary);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(220, 172, 58, 0.1);
}

.services__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.services__icon {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: var(--text-light);
}

.services__title {
  font-size: var(--font-size-h4);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.services__description {
  color: var(--text-primary);
  opacity: 0.8;
  line-height: 1.6;
}

/* ===== SOLUTIONS SECTION ===== */
.solutions {
  background-color: var(--background-primary);
}

.solutions__container {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.solutions__item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.solutions__icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-light);
  flex-shrink: 0;
}

.solutions__title {
  font-size: var(--font-size-h4);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.solutions__description {
  color: var(--text-primary);
  opacity: 0.8;
  line-height: 1.6;
}

.solutions__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.solutions__img {
  max-width: 100%;
  height: auto;
}

/* ===== ECOSYSTEM SECTION ===== */
.ecosystem {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ecosystem__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.ecosystem__feature {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: var(--background-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(220, 172, 58, 0.1);
  transition: var(--transition);
}

.ecosystem__feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.ecosystem__icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-light);
  flex-shrink: 0;
}

.ecosystem__title {
  font-size: var(--font-size-h4);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.ecosystem__description {
  color: var(--text-primary);
  opacity: 0.8;
  line-height: 1.6;
}

.ecosystem__diagram {
  width: 100%;
  background-color: #000000;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ecosystem__img {
  width: 100%;
  height: auto;
  max-width: 1200px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.ecosystem__img:hover {
  transform: scale(1.01);
}

.ecosystem__cta {
  text-align: center;
  margin-top: 2rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background-color: #f8f9fa;
}

.contact__container {
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact__icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-light);
  flex-shrink: 0;
}

.contact__title {
  font-size: var(--font-size-h4);
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.contact__description {
  color: var(--text-primary);
  opacity: 0.8;
}

.contact__cta {
  margin-top: 2rem;
}

/* ===== FORM ===== */
.form {
  background-color: var(--background-primary);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: var(--font-size-normal);
  transition: var(--transition);
  background-color: var(--background-primary);
}

.form__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(220, 172, 58, 0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__button {
  width: 100%;
  margin-top: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer__container {
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer__logo-img {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer__description {
  color: var(--text-light);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer__title {
  font-size: var(--font-size-h4);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

.footer__link {
  color: var(--text-light);
  opacity: 0.8;
  transition: var(--transition);
}

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

.footer__news-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer__news-img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.footer__news-title {
  font-size: var(--font-size-small);
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-light);
  line-height: 1.4;
}

.footer__news-date {
  font-size: 0.75rem;
  color: var(--text-light);
  opacity: 0.6;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
}

.footer__copy {
  color: var(--text-light);
  opacity: 0.8;
  font-size: var(--font-size-small);
}

/* ===== SCROLL UP ===== */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 1.25rem;
  transition: var(--transition);
  z-index: 1000;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrollup:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-0.25rem);
}

.scrollup.show-scroll {
  bottom: 5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  .hero__container,
  .about__container,
  .solutions__container,
  .contact__container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero__title {
    font-size: 3rem;
  }
  
  .section__title {
    font-size: 2.25rem;
  }
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: calc(100vh - var(--header-height));
    background-color: var(--background-primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 3rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }
  
  .nav__menu.show-menu {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav__toggle,
  .nav__close {
    display: block;
  }
  
  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
  
  .section__title {
    font-size: 2rem;
  }
  
  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .about__stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services__container {
    grid-template-columns: 1fr;
  }
  
  .footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .ecosystem__features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .ecosystem__diagram {
    padding: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero__title {
    font-size: 2rem;
  }
  
  .section__title {
    font-size: 1.75rem;
  }
  
  .button {
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size-small);
  }
  
  .form {
    padding: 1.5rem;
  }
  
  .services__card {
    padding: 2rem 1.5rem;
  }
  
  .ecosystem__diagram {
    padding: 0.5rem;
  }
  
  .ecosystem__img {
    max-width: 100%;
  }
  
  .ecosystem__features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

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

.hero__content,
.hero__image,
.about__content,
.about__image,
.services__card,
.solutions__item,
.contact__content,
.contact__form {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }
