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

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #504b3a;
  background-color: #fff;
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
  max-width: 100vw;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(62, 170, 57, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #3eaa39;
  flex-shrink: 0;
}

.logo i {
  font-size: 1.5rem;
  color: #97bf1e;
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 2rem;
  flex-shrink: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #504b3a;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: #3eaa39;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #504b3a;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 120px 20px 80px;
  background: linear-gradient(135deg, #3eaa39 0%, #97bf1e 100%);
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: #fecc1f;
  color: #504b3a;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(254, 204, 31, 0.3);
  white-space: nowrap;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(254, 204, 31, 0.4);
  background: #f0c000;
}

.hero-placeholder {
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.hero-placeholder i {
  font-size: clamp(2rem, 8vw, 4rem);
  opacity: 0.7;
}

/* Sections */
.section {
  padding: clamp(40px, 8vw, 80px) 0;
  width: 100%;
  box-sizing: border-box;
}

.bg-light {
  background-color: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

.section-header h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #3eaa39;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0 20px;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3eaa39, #97bf1e);
  margin: 0 auto;
  border-radius: 2px;
}

/* Project Info */
.project-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

.info-card {
  background: white;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(62, 170, 57, 0.1);
  border: 1px solid #e9ecef;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(62, 170, 57, 0.15);
  border-color: #97bf1e;
}

.info-card h3 {
  color: #3eaa39;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  width: 100%;
}

.result-card {
  background: white;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(62, 170, 57, 0.1);
  border: 1px solid #e9ecef;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(62, 170, 57, 0.15);
}

.result-icon {
  width: clamp(60px, 15vw, 80px);
  height: clamp(60px, 15vw, 80px);
  background: linear-gradient(135deg, #3eaa39, #97bf1e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.result-icon i {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: white;
}

.result-number {
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 700;
  color: #3eaa39;
  margin-bottom: 0.5rem;
}

/* Media Section */
.media-section {
  margin-top: 3rem;
}

.media-section h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: #3eaa39;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

.media-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(62, 170, 57, 0.1);
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.media-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(62, 170, 57, 0.15);
}

.media-item.large {
  grid-column: 1 / -1;
}

.media-placeholder {
  background: #f8f9fa;
  border: 2px dashed #97bf1e;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-height: 200px;
  width: 100%;
  box-sizing: border-box;
}

.media-placeholder i {
  font-size: clamp(2rem, 6vw, 3rem);
  color: #97bf1e;
}

/* Municipios Info */
.municipios-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  width: 100%;
}

.municipio-card {
  background: white;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(62, 170, 57, 0.1);
  border: 1px solid #e9ecef;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.municipio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(62, 170, 57, 0.15);
}

.municipio-card h3 {
  color: #3eaa39;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.municipio-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.stat {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 10px;
  flex-wrap: wrap;
  border-left: 4px solid #97bf1e;
}

.stat-label {
  font-weight: 500;
  color: #504b3a;
  margin-right: 1rem;
}

.stat-value {
  font-weight: 600;
  color: #3eaa39;
}

/* Process Timeline */
.process-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
}

.timeline-icon {
  width: clamp(50px, 12vw, 60px);
  height: clamp(50px, 12vw, 60px);
  background: linear-gradient(135deg, #3eaa39, #97bf1e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-icon i {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: white;
}

.timeline-content h3 {
  color: #3eaa39;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Bionegocios Grid */
.bionegocios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  width: 100%;
}

.bionegocio-card {
  background: white;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(62, 170, 57, 0.1);
  border: 1px solid #e9ecef;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.bionegocio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(62, 170, 57, 0.15);
}

.bionegocio-icon {
  width: clamp(60px, 15vw, 80px);
  height: clamp(60px, 15vw, 80px);
  background: linear-gradient(135deg, #3eaa39, #97bf1e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.bionegocio-icon i {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: white;
}

.bionegocio-card h3 {
  color: #3eaa39;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Success Stories */
.success-stories {
  margin-top: 3rem;
}

.success-stories h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: #3eaa39;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

.story-card {
  background: white;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(62, 170, 57, 0.1);
  border: 1px solid #e9ecef;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(62, 170, 57, 0.15);
}

.story-image {
  width: clamp(60px, 15vw, 80px);
  height: clamp(60px, 15vw, 80px);
  background: linear-gradient(135deg, #be5f73, #fecc1f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.story-image i {
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: white;
}

.story-card h4 {
  color: #3eaa39;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Sectors Grid */
.sectors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

.sector-card {
  background: white;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(62, 170, 57, 0.1);
  border: 1px solid #e9ecef;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(62, 170, 57, 0.15);
}

.sector-icon {
  width: clamp(60px, 15vw, 80px);
  height: clamp(60px, 15vw, 80px);
  background: linear-gradient(135deg, #3eaa39, #97bf1e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.sector-icon i {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: white;
}

.sector-card h3 {
  color: #3eaa39;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 1rem;
  font-weight: 600;
}

.sector-products {
  list-style: none;
  margin-top: 1rem;
}

.sector-products li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  color: #504b3a;
  transition: all 0.3s ease;
}

.sector-products li:hover {
  color: #3eaa39;
  padding-left: 0.5rem;
}

.sector-products li:last-child {
  border-bottom: none;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  width: 100%;
}

.contact-info h3,
.contact-form h3 {
  color: #3eaa39;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-bottom-color: #97bf1e;
}

.contact-item i {
  color: #97bf1e;
  font-size: 1.25rem;
  width: 20px;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 1.5rem;
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3eaa39;
  box-shadow: 0 0 0 3px rgba(62, 170, 57, 0.1);
}

.submit-button {
  background: linear-gradient(135deg, #3eaa39, #97bf1e);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 170, 57, 0.3);
  background: linear-gradient(135deg, #97bf1e, #3eaa39);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #504b3a, #3eaa39);
  color: white;
  padding: 3rem 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo i {
  color: #fecc1f;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(254, 204, 31, 0.2);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.social-links a:hover {
  background: #fecc1f;
  color: #504b3a;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(254, 204, 31, 0.2);
  opacity: 0.9;
}

/* Responsive Design */
@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: clamp(2.5rem, 6vw, 3rem);
  }

  .project-info {
    grid-template-columns: repeat(3, 1fr);
  }

  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .bionegocios-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .sectors-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .nav-menu {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: clamp(3rem, 7vw, 3.5rem);
  }

  .section-header h2 {
    font-size: clamp(2.5rem, 6vw, 3rem);
  }

  .container {
    padding: 0 40px;
  }
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(62, 170, 57, 0.1);
    border-top: 1px solid #97bf1e;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-menu.active li {
    margin: 1rem 0;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    padding: 0 10px;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
    padding: 0 10px;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    padding: 0 15px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 100px 15px 60px;
  }

  .section {
    padding: 40px 0;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    padding: 0 5px;
  }

  .section-header h2 {
    font-size: clamp(1.3rem, 5vw, 2rem);
    padding: 0 10px;
  }

  .info-card,
  .result-card,
  .bionegocio-card,
  .sector-card,
  .story-card,
  .municipio-card {
    padding: 1.5rem;
  }
}

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

.section {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
  scroll-padding-top: 100px;
}

/* Prevent horizontal overflow on all elements */
img,
video,
iframe,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

/* Ensure text doesn't overflow */
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
div {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Custom color accents for special elements */
.highlight {
  color: #fecc1f;
}

.accent {
  color: #be5f73;
}

.secondary {
  color: #97bf1e;
}

.primary {
  color: #3eaa39;
}

.dark {
  color: #504b3a;
}
