/* Variables y configuración base */
:root {
  --primary: #00a650;          /* Verde mexicano */
  --primary-light: #4dd67c;
  --primary-dark: #007538;
  --accent: #00b9b4;           /* Turquesa */
  --accent-light: #56ebe7;
  --accent-dark: #008681;
  --dark: #212121;
  --light: #f8f8f8;
  --gray: #757575;
  --gray-light: #eeeeee;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* Reset y configuraciones generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.4rem;
  color: var(--accent-dark);
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
}

/* Enlaces y botones */
a {
  text-decoration: none;
  color: var(--accent);
  transition: var(--transition);
}

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

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

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 166, 80, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 166, 80, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--accent);
  color: white;
}

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

/* Header y navegación */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.logo-ai {
  font-weight: bold;
  font-size: 16px;
  fill: var(--primary);
}

.main-nav {
  display: flex;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  width: 30px;
  cursor: pointer;
}

.nav-toggle-label span {
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  border-radius: 10px;
  transition: var(--transition);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-list a {
  color: var(--dark);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

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

.nav-list a:hover {
  color: var(--primary);
}

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

/* Sección hero */
.hero {
  padding: 80px 0 60px;
  background-image: linear-gradient(135deg, rgba(0, 166, 80, 0.05) 0%, rgba(0, 185, 180, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.hero-content {
  width: 50%;
  padding-right: 20px;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.hero-visual {
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.cta-group {
  display: flex;
  gap: 15px;
}

/* Features highlight */
.features-highlight {
  padding: 80px 0;
  background-color: var(--white);
}

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

.feature-item {
  text-align: center;
  padding: 30px;
  border-radius: var(--radius);
  background-color: var(--light);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: var(--accent);
}

/* How it works */
.how-it-works {
  padding: 100px 0;
  background-color: var(--light);
}

.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-subheading {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.step-number {
  background: var(--gradient);
  color: white;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.action-center {
  text-align: center;
  margin-top: 60px;
}

/* Features */
.key-features {
  padding: 100px 0;
  background: var(--gradient);
  color: white;
}

.light h2 {
  color: white;
}

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

.feature-col {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: var(--radius);
  backdrop-filter: blur(5px);
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background-color: var(--white);
}

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

.testimonial {
  padding: 30px;
  border-radius: var(--radius);
  background-color: var(--light);
  box-shadow: var(--shadow);
}

.quote {
  font-style: italic;
  margin-bottom: 15px;
}

.author {
  font-weight: 600;
  color: var(--accent);
}

/* CTA Banner */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
  text-align: center;
  color: white;
}

.cta-banner h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About */
.about {
  padding: 80px 0;
  background-color: var(--light);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Keywords */
.keyword-tags {
  padding: 60px 0;
  background-color: var(--white);
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.tag {
  padding: 8px 16px;
  background-color: var(--light);
  border-radius: 30px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.tag:hover {
  background-color: var(--accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 80px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo-text {
  color: white;
  margin-bottom: 15px;
  display: block;
}

.footer-links h4, .footer-legal h4 {
  color: white;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-icon {
  width: 30px;
  height: 30px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content, .hero-visual {
    width: 100%;
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 40px;
    padding-right: 0;
  }
  
  .cta-group {
    justify-content: center;
  }
  
  .features-columns {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-toggle-label {
    display: flex;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 99;
  }
  
  .nav-toggle:checked ~ .nav-list {
    right: 0;
  }
  
  .step-item {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin: 0 auto 15px;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .cta-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}
