/* Main Styles - Import modular CSS */
@import url("./variables.css");
@import url("./base.css");
@import url("./components.css");

/* Reset scroll to normal */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Prevent horizontal scroll on mobile only */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto;
    width: 100vw;
    max-width: 100vw;
  }
  
  *, *::before, *::after {
    box-sizing: border-box;
  }
  
  /* Prevent any element from causing horizontal scroll */
  body > * {
    overflow-x: hidden;
  }
  
  /* Ensure containers don't overflow */
  .hero-header,
  .consultation-section,
  .logistics-solutions,
  .footer,
  .logo-carousel-container {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Fix potential width issues with images and videos */
  img, video {
    max-width: 100%;
    height: auto;
  }
}

/* Font loading and fallback optimization */
body {
  font-family: var(--font-main);
  font-display: swap;
}

/* Ensure fonts load with proper fallbacks */
* {
  font-family: inherit;
}

/* Lazy loading optimizations */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Reduce motion for better performance on mobile */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Normal container behavior restored */

/* Normal scroll behavior restored */

/* Layout Styles */
.hero-header {
  background-color: #1a1a1a;
  border-radius: 12px;
  margin: var(--margin-box-x);
  margin-bottom: var(--margin-box-x);
  min-height: var(--hero-visible-height);
  max-height: none; /* Removed height restriction to prevent content overlap */
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
}

/* Video Background - Optimized for performance */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  z-index: 1;
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Video fallback image */
.hero-fallback-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: var(--radius);
}

/* Video Overlay with progressive blur effect */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
  backdrop-filter: blur(3px);
  mask: linear-gradient(to right, black 0%, black 40%, transparent 100%);
  -webkit-mask: linear-gradient(to right, black 0%, black 40%, transparent 100%);
  border-radius: var(--radius);
  z-index: 2;
  pointer-events: none;
}

/* Ensure content stays above video */
.hero-nav,
.hero-content {
  position: relative;
  z-index: 3;
}

/* Navigation Styles */
.hero-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--margin-text-x) var(--spacing-xl) var(--margin-text-x);
  width: 100%;
  box-sizing: border-box;
  min-height: 80px;
  position: relative;
  flex-shrink: 0;
  background-color: #ffffff;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 40px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-actions .nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-actions .nav-list li a {
  color: #333333;
  text-decoration: none;
  font-weight: 400;
  font-size: var(--font-size-nav);
  transition: font-weight 0.3s ease, color 0.2s;
  padding: 0.25em 0.5em;
  position: relative;
  display: inline-block;
}

.nav-actions .nav-list li a:hover,
.nav-actions .nav-list li a.active {
  color: #333333;
  font-weight: 600;
}

/* Pseudo-elemento para el icono de hoja en desktop */
.nav-actions .nav-list li a::after {
  content: "";
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 25px;
  height: 25px;
  background: url('/assets/leaf_icon_nav.svg') no-repeat center/contain;
  background-color: transparent;
}

.nav-actions .nav-list li a:hover::after,
.nav-actions .nav-list li a.active::after {
  opacity: 1;
}

/* Ocultar iconos de hoja en mobile */
@media (max-width: 1200px) {
  .nav-actions .nav-list li a::after {
    display: none;
  }
}

/* Ocultar iconos de hoja en el menú móvil */
.mobile-menu .nav-list li a::after {
  display: none;
}

.nav-actions .contact-btn {
  background: #90d624;
  color: #1B3A00;
  border: none;
  border-radius: 4px;
  padding: 0.6em 1.2em;
  font-weight: 400;
  font-size: var(--font-size-nav);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.nav-actions .contact-btn:hover {
  background-color: #7bb520;
}

/* Social Icons Styles */
.social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: #90d624;
  transform: translateY(-2px);
}

.social-icon img {
  filter: brightness(0) invert(0);
  transition: filter 0.3s ease;
}

.social-icon:hover img {
  filter: brightness(0) invert(1);
}

/* Mobile Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  gap: 6px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--hamburger-bar-color);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.mobile-menu {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--mobile-menu-bg);
  padding: var(--spacing-lg) var(--spacing-md);
  box-sizing: border-box;
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  visibility: hidden;
}

.mobile-menu.active {
  transform: translateY(0);
  visibility: visible;
  background-color: var(--color-primary-green);
}

.mobile-menu .nav-list {
  flex-direction: column;
  gap: var(--spacing-lg);
  width: 100%;
  text-align: center;
  padding: 0;
  margin: 0 0 2.5rem 0;
  list-style: none;
}

.mobile-menu .nav-list li a {
  font-size: 1.5rem;
  padding: 0.5em;
  color: var(--mobile-menu-text);
  text-decoration: none;
  font-weight: 400;
  display: block;
  position: relative;
}

.mobile-menu.active .nav-list li a {
  color: #1B3A00;
}

.mobile-menu .nav-list li a.active,
.mobile-menu .nav-list li a:hover {
  color: #1B3A00;
  opacity: 0.8;
}

.mobile-menu .contact-btn {
  background: var(--color-btn-text);
  color: var(--mobile-menu-bg);
  padding: 0.8em 2em;
  font-size: 1.1rem;
  border: none;
  border-radius: 4px;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: background-color var(--transition-fast);
  cursor: pointer;
  min-width: 180px;
  justify-content: center;
  white-space: nowrap;
}

.mobile-menu.active .contact-btn {
  background: var(--color-white);
  color: #333333;
}

.mobile-menu .contact-btn:hover {
  opacity: 0.9;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #1B3A00;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1002;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.mobile-menu-close:active {
  transform: scale(0.95);
}

/* Hero Content */
  .hero-content {
    margin-top: auto;
    margin-bottom: var(--hero-content-margin-bottom);
    padding-left: var(--margin-text-x);
    padding-right: var(--margin-text-x);
    color: #ffffff;
  }

  @media (max-width: 768px) {
    .hero-content {
      text-align: center;
      padding-left: var(--margin-text-x);
      padding-right: var(--margin-text-x);
    }
  }

.hero-content h1 {
  font-size: var(--font-size-h1-hero);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.2em 0;
}

.hero-content .hero-desc {
  font-size: var(--font-size-desc-hero);
  font-weight: 200;
  line-height: 1.5;
  margin: 0 0 1.5em 0;
  max-width: 580px;
}

.hero-content .cta-btn {
  background: #ffffff;
  color: #1B3A00;
  border: none;
  border-radius: var(--radius);
  width: var(--btn-primary-width);
  max-width: 100%;
  height: var(--btn-primary-height);
  font-size: var(--font-size-btn-cta);
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
  white-space: nowrap;
}

.hero-content .cta-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Hero Image Placeholder */
.hero-image-placeholder {
  position: absolute;
  top: 1rem;
  right: var(--margin-text-x);
  z-index: 3;
}

.placeholder-circle {
  width: 90px;
  height: 90px;
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.placeholder-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.placeholder-text {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

/* Logo Carousel */
.logo-carousel-section {
  background-color: #ececec;
  height: var(--carousel-fixed-height);
  display: flex;
  align-items: center;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 0rem var(--margin-text-x);
  overflow: hidden;
  margin-top: 0;
}

.logo-carousel-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow-x: hidden;
}

.logo-carousel-track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
}

.logo-item {
  flex-shrink: 0;
  width: var(--logo-item-width);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.logo-item img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity var(--transition-normal);
}

.logo-item img:hover {
  opacity: 1;
}

/* Section Styles */
.como-empezar-section {
  background-color: var(--page-bg-color);
  padding-top: var(--como-empezar-section-top-margin, 80px);
  padding-bottom: var(--section-spacing);
  padding-left: var(--margin-text-x);
  padding-right: var(--margin-text-x);
  color: var(--color-btn-text);
  margin-bottom: var(--section-spacing);
}

.como-empezar-content {
  max-width: 700px;
  text-align: left;
  margin-bottom: var(--spacing-lg);
}

.como-empezar-content h2 {
  font-size: var(--font-size-como-empezar-h2);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.5em 0;
  color: #333333;
}

.como-empezar-content p {
  font-size: var(--font-size-desc-hero);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
  color: #555555;
}

.btn-start-exporting {
  background-color: var(--color-primary-green);
  color: #1B3A00;
  margin-bottom: var(--spacing-xl);
  font-weight: 400;
  transition: all 0.3s ease;
}

.btn-start-exporting:hover {
  background-color: #7bb820;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 214, 36, 0.3);
  transition: all 0.3s ease;
}

.steps-carousel-container {
  width: 100%;
}

.steps-carousel-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  width: 100%;
}

.step-card {
  width: 100%;
  height: 100%;
  background-color: var(--page-bg-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--card-text-color);
}

.card-image-placeholder {
  width: 100%;
  height: var(--card-image-placeholder-height);
  background-color: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-text-content {
  padding: var(--spacing-md) 0;
  flex-grow: 1;
}

.card-text-content p {
  font-size: var(--font-size-btn-cta);
  line-height: 1.5;
  margin: 0;
  color: #555;
}

.card-text-content p strong {
  font-weight: 600;
  color: #333;
}

/* Consultation Section */
.consultation-section {
  background-color: var(--consultation-bg-color);
  background-repeat: repeat;
  background-size: 100px 100px;
  padding-top: var(--consultation-section-padding-top);
  padding-bottom: var(--consultation-section-padding-bottom);
  padding-left: var(--margin-text-x);
  padding-right: var(--margin-text-x);
  text-align: center;
  color: #1B3A00;
  margin-bottom: var(--section-spacing);
  position: relative;
}


.consultation-content {
  position: relative;
  z-index: 2;
}

.consultation-content h2 {
  font-size: var(--font-size-como-empezar-h2);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 var(--spacing-sm) 0;
  color: #1B3A00;
}

.consultation-cards-container {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.consultation-card {
  width: var(--consultation-card-width);
  height: var(--consultation-card-height);
  background-color: var(--consultation-card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  border: 2px solid var(--consultation-border-color);
  transition: transform var(--transition-normal);
}

.consultation-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consultation-card:hover {
  transform: scale(1.05);
}

.consultation-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.consultation-name {
  color: #1B3A00;
  padding: 0.5rem 0;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  margin: 0;
  font-family: var(--font-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.consultation-description {
  font-size: var(--font-size-desc-hero);
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 var(--spacing-xl) 0;
  color: #1B3A00;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-consultation {
  background-color: var(--color-white);
  color: #1B3A00;
  border: none;
  border-radius: var(--radius);
  padding: 0 5em;
  height: var(--btn-primary-height);
  font-family: var(--font-main);
  font-size: var(--font-size-btn-cta);
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin-top: var(--spacing-sm);
}

.btn-consultation:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Logistics Solutions Section */
.logistics-solutions-section {
  position: relative;
  /* background-color eliminado para que solo se vea la textura */
  margin-top: 10rem;
  margin-bottom: 7rem;
}


.logistics-solutions-section::after {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  width: 30vw;
  height: 60%;
  background: url('/assets/blanco_pattern.png') left bottom repeat-x;
  background-size: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.logistics-solutions-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--margin-text-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: start;
  position: relative;
  z-index: 2;
}

.logistics-header {
  position: static;
  align-self: start;
  z-index: 10;
}

.logistics-header h2 {
  font-size: var(--font-size-como-empezar-h2);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.5em 0;
  color: var(--logistics-title-color);
  max-width: 100%;
}

.logistics-subtitle {
  font-size: var(--font-size-desc-hero);
  font-weight: 300;
  line-height: 1.5;
  margin: 0 0 1.5em 0;
  color: var(--logistics-subtitle-color);
  max-width: 100%;
}

.logistics-cta-btn {
  background-color: var(--logistics-btn-bg);
  color: var(--logistics-btn-text);
  border: none;
  border-radius: var(--radius);
  padding: 0 5rem;
  height: var(--btn-primary-height);
  font-family: var(--font-main);
  font-size: var(--font-size-btn-cta);
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  white-space: nowrap;
}

.logistics-cta-btn:hover {
  background-color: #7bb820;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 214, 36, 0.3);
  transition: all 0.3s ease;
}

.logistics-services {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  padding-top: var(--spacing-lg);
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-image-placeholder {
  width: 100%;
  height: var(--logistics-image-height);
  background-color: var(--logistics-image-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: var(--spacing-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.service-content h3 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  color: var(--logistics-service-title-color);
}

.service-content p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
  color: var(--logistics-service-text-color);
  flex-grow: 1;
}

.service-btn {
  background-color: var(--logistics-btn-bg);
  color: var(--logistics-btn-text);
  border: none;
  border-radius: var(--radius);
  padding: 0 var(--spacing-lg);
  height: var(--btn-primary-height);
  font-family: var(--font-main);
  font-size: var(--font-size-btn-cta);
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  white-space: nowrap;
}

.service-btn:hover {
  background-color: #7bb820;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 214, 36, 0.3);
  transition: all 0.3s ease;
}

/* Footer */
.main-footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
  margin-top: auto;
  position: relative;
  overflow: visible;
}

.main-footer::after {
  content: none;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xxxl) var(--margin-text-x);
  position: relative;
  z-index: 3;
  overflow: visible;
}

.footer-content::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40vw;
  height: 100%;
  background: url('/assets/footer_verde_pattern.png') right top repeat-y;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
  transform: translateX(30%);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  align-items: flex-start;
  text-align: left;
  padding: 0;
  margin: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}

.footer-logo-icon {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  padding: 0;
}

.footer-logo-img {
  height: 70px;
  width: auto;
}

.footer-cta h3 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 var(--spacing-xs) 0;
  color: var(--footer-text-color);
  text-align: left;
}

.footer-cta p {
  font-size: var(--font-size-desc-hero);
  font-weight: 300;
  line-height: 1.5;
  margin: 0 0 var(--spacing-lg) 0;
  color: var(--footer-text-color);
  text-align: left;
}

.footer-btn {
  background-color: var(--footer-btn-bg);
  color: var(--footer-btn-text);
  border: none;
  border-radius: var(--radius);
  padding: 0 var(--spacing-lg);
  height: var(--btn-primary-height);
  font-family: var(--font-main);
  font-size: var(--font-size-btn-cta);
  font-weight: 400;
  cursor: pointer;
  transition: background-color var(--transition-fast), opacity var(--transition-fast);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 300px;
  white-space: nowrap;
}

.footer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.footer-right {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  margin: 0;
}

.footer-nav {
  text-align: left;
}

.main-footer .footer-nav h4 {
  font-size: 18px;
  margin: 0 0 var(--spacing-md) 0;
  color: var(--footer-text-color);
  text-align: left;
  text-transform: uppercase;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  text-align: left;
}

.footer-nav-list li a {
  color: var(--footer-text-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  transition: opacity var(--transition-fast);
  text-align: left;
}

.footer-nav-list li a:hover {
  opacity: 0.8;
}

.footer-bottom {
  background-color: var(--footer-bottom-bg-color);
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: var(--footer-bottom-text-color);
  font-weight: 300;
}

/* Contact Modal */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  opacity: 0;
  transition: visibility var(--transition-normal), opacity var(--transition-normal);
  z-index: 1000;
}

.contact-modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 450px;
  max-width: 90%;
  max-height: 100vh;
  background-color: var(--modal-bg-color);
  color: var(--modal-text-color);
  padding: var(--spacing-xxl) var(--spacing-lg);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  /* Asegurar que el modal tenga scroll interno */
  height: auto;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.contact-modal.active .modal-content {
  transform: translateX(0);
}

/* Modal scrollbar styling */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(144, 214, 36, 0.6);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(144, 214, 36, 0.8);
}

/* Bloquear scroll del body cuando el modal está activo */
body.modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* También bloquear scroll en html para mayor compatibilidad */
html.modal-open {
  overflow: hidden !important;
}

/* Bloquear scroll en mobile específicamente */
@media (max-width: 768px) {
  body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100vw !important;
    height: 100vh !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  html.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
  }
}

.close-modal-btn {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--modal-close-btn-color);
  font-size: 1.5rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.close-modal-btn:hover {
  color: var(--modal-close-btn-hover-color);
}

.modal-content h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
  color: var(--modal-header-color);
}

.modal-content p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: var(--spacing-lg);
  font-weight: 400;
}

.form-toggle-buttons {
  display: flex;
  gap: 0;
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--modal-toggle-btn-active-bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.toggle-btn {
  flex: 1;
  padding: 0.8em 1.2em;
  border: none;
  background-color: var(--modal-toggle-btn-bg);
  color: var(--modal-toggle-btn-text);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  border-radius: 0;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
}

.toggle-btn.active {
  background-color: var(--modal-toggle-btn-active-bg);
  color: var(--modal-toggle-btn-active-text);
}

/* Asegurar que los botones de toggle siempre sean visibles */
.form-toggle-buttons {
  display: flex;
  visibility: visible;
  opacity: 1;
  position: relative;
  z-index: 10;
  width: 100%;
  height: auto;
  min-height: 48px;
}

.form-toggle-buttons .toggle-btn {
  display: flex;
  visibility: visible;
  opacity: 1;
  position: relative;
  z-index: 11;
  width: 50%;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
}


.form-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--modal-text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 1em 1em;
  border: 1px solid var(--modal-input-border);
  border-radius: var(--radius);
  background-color: var(--modal-input-bg);
  color: var(--modal-text-color);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--modal-input-focus-border);
  box-shadow: 0 0 0 2px rgba(27, 58, 0, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 1em 1.5em;
  border: none;
  border-radius: var(--radius);
  background-color: var(--modal-submit-btn-bg);
  color: var(--modal-submit-btn-text);
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: var(--spacing-md);
}

.submit-btn:hover {
  background: #7bb820;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 214, 36, 0.3);
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
  :root {
    --hero-visible-height: 85vh;
    --font-size-como-empezar-h2: 36px;
    --card-image-placeholder-height: 250px;
    --como-empezar-section-top-margin: 60px;
    --consultation-card-width: 180px;
    --consultation-card-height: 220px;
    --spacing-xxxl: 4rem;
    --logistics-image-height: 280px;
    --consultation-section-padding-top: 7rem;
    --consultation-section-padding-bottom: 7rem;
    --section-spacing: 3rem;
  }

  /* Normal scroll behavior restored */

  .nav-actions {
    display: none;
  }

  /* Remove padding from nav bar in mobile */
  .hero-nav {
    padding: 0;
  }

  /* Fix close button visibility in mobile */
  .close-modal-btn {
    top: 10px;
    right: 10px;
    font-size: 1.8rem;
    padding: 0.8rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  /* Mobile video optimizations */
  .hero-video {
    /* Reduce video quality on mobile for better performance */
    filter: brightness(0.95);
  }

  /* Hero Image Placeholder - Responsive */
  .hero-image-placeholder {
    top: -8rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: auto;
  }
  
  .placeholder-circle {
    width: 100px;
    height: 100px;
    background-color: transparent;
  }
  
  .iata-logo {
    height: 100px;
    width: 100px;
    object-fit: contain;
  }

  /* Hero Content - Centered in Mobile */
  .hero-content h1 {
    text-align: center;
  }

  .hero-content .hero-desc {
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content .cta-btn {
    margin: 0 auto;
    display: block;
  }

  /* Video Overlay - Mobile (bottom to top) */
  .hero-video-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    mask: linear-gradient(to top, black 0%, black 40%, transparent 100%);
    -webkit-mask: linear-gradient(to top, black 0%, black 40%, transparent 100%);
  }

  .social-icons {
    margin: 0 0.5rem;
    gap: 0.5rem;
  }

  .social-icon {
    width: 36px;
    height: 36px;
  }

  .hamburger {
    display: flex;
  }

  .steps-carousel-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .consultation-cards-container {
    gap: var(--spacing-md);
  }

  .consultation-name {
    font-size: 13px;
    padding: 0.4rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .footer-right {
    justify-content: flex-start;
  }

  .footer-cta h3 {
    font-size: 28px;
  }

  .modal-content {
    width: 80%;
  }

  .logistics-header h2 {
    font-size: 36px;
  }

  .service-content h3 {
    font-size: 22px;
  }

  .logistics-solutions-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .logistics-header {
    position: static;
    margin-bottom: var(--spacing-lg);
  }

  .logistics-services {
    padding-top: 0;
  }

  .logistics-solutions-section::before {
    width: 60%;
    height: 40%;
    opacity: 0.3;
    top: 15%;
  }

  .main-footer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 50%;
    background-image: var(--texture-triangle-pattern);
    background-repeat: repeat;
    background-size: 100px 100px;
    z-index: 0;
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-h1-hero: 40px;
    --font-size-desc-hero: 18px;
    --margin-text-x: 20px;
    --hero-content-margin-bottom: 60px;
    --hero-visible-height: 80vh;
    --carousel-fixed-height: 150px;
    --logo-item-width: 120px;
    --font-size-como-empezar-h2: 32px;
    --card-image-placeholder-height: 200px;
    --font-size-card-text: 18px;
    --como-empezar-section-top-margin: 40px;
    --consultation-card-width: 150px;
    --consultation-card-height: 180px;
    --spacing-xxxl: 3rem;
    --logistics-image-height: 240px;
    --consultation-section-padding-top: 6rem;
    --consultation-section-padding-bottom: 6rem;
    --section-spacing: 2.5rem;
  }


  /* Remove padding from nav bar in mobile */
  .hero-nav {
    padding: 0;
  }

  /* Fix close button visibility in mobile */
  .close-modal-btn {
    top: 10px;
    right: 10px;
    font-size: 1.8rem;
    padding: 0.8rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .hero-content h1 {
    line-height: 1.25;
    text-align: center;
  }

  .hero-content .hero-desc {
    line-height: 1.4;
    margin-bottom: 1.2em;
    text-align: center;
  }

  .hero-content .cta-btn {
    width: 100%;
    height: 50px;
    font-size: 15px;
    margin: 0 auto;
    display: block;
  }

  .steps-carousel-track {
    grid-template-columns: 1fr;
  }

  .consultation-cards-container {
    gap: var(--spacing-lg);
    flex-direction: column;
    align-items: center;
  }

  .consultation-card {
    width: 100%;
    max-width: 400px;
    height: var(--consultation-mobile-card-height);
    margin-bottom: var(--spacing-md);
  }

  .consultation-name {
    font-size: 12px;
    padding: 0.3rem 0;
  }

  .footer-content {
    padding: var(--spacing-xl) var(--margin-text-x);
  }

  .footer-left {
    gap: var(--spacing-md);
    align-items: center;
    text-align: center;
  }

  .footer-cta h3 {
    font-size: 24px;
    text-align: center;
  }

  .footer-cta p {
    text-align: center;
  }

  .footer-btn {
    width: 100%;
    max-width: none;
  }

  .footer-right {
    justify-content: center;
    align-items: center;
  }

  .footer-nav {
    text-align: center;
  }

  .main-footer .footer-nav h4 {
    text-align: center;
  }

  .footer-nav-list {
    text-align: center;
    align-items: center;
  }

  .footer-nav-list li a {
    text-align: center;
  }

  .modal-content {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-md);
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
  }

  .modal-content p {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
  }

  .toggle-btn {
    font-size: 0.9rem;
    padding: 0.6em 1em;
  }

  .form-group {
    margin-bottom: var(--spacing-sm);
  }

  .form-group label {
    font-size: 0.8rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 0.9rem;
    padding: 0.8em;
  }

  .form-group textarea {
    min-height: 80px;
  }

  .submit-btn {
    font-size: 1rem;
    padding: 0.8em 1.2em;
    margin-top: var(--spacing-sm);
    position: sticky;
    bottom: 0;
    background-color: var(--modal-submit-btn-bg);
    z-index: 10;
  }

  .logistics-header h2 {
    font-size: 32px;
    max-width: 100%;
  }

  .logistics-subtitle {
    font-size: 18px;
    max-width: 100%;
  }

  .service-content {
    padding: var(--spacing-md) 0;
  }

  .service-content h3 {
    font-size: 20px;
  }

  .service-content p {
    font-size: 15px;
  }

  .logistics-services {
    gap: var(--spacing-lg);
  }

  .logistics-solutions-section {
    padding: var(--spacing-xl) 0;
    min-height: auto;
    margin-top: 7rem;
  }

  .logistics-solutions-content {
    padding: 0 var(--margin-text-x);
  }

  .logistics-header {
    position: static;
    margin-bottom: var(--spacing-md);
  }

  .logistics-cta-btn {
    width: 100%;
    margin-bottom: var(--spacing-lg);
  }

  .logistics-solutions-section::before {
    height: 25%;
  }

  .main-footer::after {
    height: 30%;
  }
}

@media (max-width: 600px) {
  .modal-content {
    padding: var(--spacing-md) var(--spacing-sm);
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
  }

  .modal-content p {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
  }

  .form-group {
    margin-bottom: var(--spacing-xs);
  }

  .form-group label {
    font-size: 0.75rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 0.85rem;
    padding: 0.7em;
  }

  .form-group textarea {
    min-height: 60px;
  }

  .submit-btn {
    font-size: 0.9rem;
    padding: 0.7em 1em;
    margin-top: var(--spacing-xs);
    position: sticky;
    bottom: 0;
    background-color: var(--modal-submit-btn-bg);
    z-index: 10;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  .toggle-btn {
    font-size: 0.8rem;
    padding: 0.5em 0.8em;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-h1-hero: 32px;
    --font-size-desc-hero: 16px;
    --margin-text-x: 16px;
    --margin-box-x: 8px;
    --hero-content-margin-bottom: 40px;
    --hero-visible-height: 75vh;
    --carousel-fixed-height: auto;
    --logo-item-width: 80px;
    --font-size-como-empezar-h2: 28px;
    --card-image-placeholder-height: 180px;
    --font-size-card-text: 16px;
    --como-empezar-section-top-margin: 30px;
    --consultation-card-width: 100%;
    --consultation-card-height: 200px;
    --spacing-xxxl: 2.5rem;
    --logistics-image-height: 200px;
    --consultation-section-padding-top: 5rem;
    --consultation-section-padding-bottom: 5rem;
    --section-spacing: 2rem;
  }


  /* Remove padding from nav bar in mobile */
  .hero-nav {
    padding: 0;
  }

  /* Fix close button visibility in mobile */
  .close-modal-btn {
    top: 10px;
    right: 10px;
    font-size: 1.8rem;
    padding: 0.8rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .hero-header {
    margin: var(--margin-box-x);
    border-radius: 8px;
  }

  .hero-content h1 {
    line-height: 1.3;
    text-align: center;
  }

  .hero-content .hero-desc {
    line-height: 1.45;
    max-width: 100%;
    text-align: center;
  }

  .hero-content .cta-btn {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: block;
  }
  
  
  .placeholder-text {
    font-size: 0.75rem;
  }

  .logo-carousel-section {
    padding: 0.5rem var(--margin-text-x);
  }

  .logo-carousel-track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .consultation-card {
    max-width: 300px;
  }

  .consultation-name {
    font-size: 11px;
    padding: 0.25rem 0;
  }

  .consultation-content h2 {
    margin-bottom: var(--spacing-lg);
  }

  .footer-content {
    padding: 100px var(--margin-text-x);
  }

  .footer-cta h3 {
    font-size: 20px;
  }

  .footer-logo-icon {
    height: 60px;
  }

  .footer-logo-img {
    height: 60px;
    width: auto;
  }

  .logistics-header h2 {
    font-size: 28px;
  }

  .logistics-subtitle {
    font-size: 16px;
  }

  .service-content {
    padding: var(--spacing-md) 0;
  }

  .service-content h3 {
    font-size: 18px;
  }

  .service-content p {
    font-size: 14px;
  }

  .service-btn {
    font-size: 13px;
    height: 44px;
  }

  .logistics-solutions-section {
    padding: var(--spacing-lg) 0;
    margin-top: 5rem;
  }

  .logistics-solutions-section::before {
    height: 15%;
  }

  .main-footer::after {
    height: 20%;
  }
}

/* Dispositivos con poca altura (menos de 600px) */
@media (max-height: 600px) {
  .modal-content {
    width: 80%;
    max-width: 80%;
    padding: 20px;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .modal-content h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    height: auto;
    min-height: 30px;
  }

  .modal-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    height: auto;
    min-height: 20px;
  }

  .form-toggle-buttons {
    margin-bottom: 15px;
    height: auto;
    min-height: 40px;
    display: flex;
    visibility: visible;
    opacity: 1;
  }

  .toggle-btn {
    font-size: 0.9rem;
    padding: 0.6em 1em;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    box-sizing: border-box;
    line-height: 1;
    visibility: visible;
    opacity: 1;
  }

  .form-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .form-group {
    margin-bottom: 0;
    height: auto;
    min-height: 60px;
  }

  .form-group label {
    font-size: 0.8rem;
    height: 20px;
    display: block;
    margin-bottom: 5px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 0.9rem;
    padding: 8px;
    height: 35px;
    width: 100%;
    box-sizing: border-box;
  }

  .form-group textarea {
    height: 60px;
    resize: vertical;
    min-height: 60px;
  }

  .submit-btn {
    font-size: 1rem;
    padding: 12px 20px;
    height: 45px;
    margin-top: 15px;
    width: 100%;
  }
}

/* Dispositivos con poca altura (menos de 500px) */
@media (max-height: 500px) {
  .modal-content {
    width: 85%;
    max-width: 85%;
    padding: 15px;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .modal-content h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    height: 25px;
  }

  .modal-content p {
    font-size: 0.8rem;
    margin-bottom: 12px;
    height: 18px;
  }

  .form-toggle-buttons {
    margin-bottom: 12px;
    height: auto;
    min-height: 35px;
    display: flex;
    visibility: visible;
    opacity: 1;
  }

  .toggle-btn {
    font-size: 0.8rem;
    padding: 0.5em 0.8em;
    height: 35px;
    min-height: 35px;
    max-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    box-sizing: border-box;
    line-height: 1;
    visibility: visible;
    opacity: 1;
  }

  .form-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .form-group {
    margin-bottom: 0;
    height: 50px;
  }

  .form-group label {
    font-size: 0.7rem;
    height: 16px;
    display: block;
    margin-bottom: 4px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 0.8rem;
    padding: 6px;
    height: 30px;
    width: 100%;
    box-sizing: border-box;
  }

  .form-group textarea {
    height: 50px;
    resize: vertical;
    min-height: 50px;
  }

  .submit-btn {
    font-size: 0.9rem;
    padding: 10px 16px;
    height: 40px;
    margin-top: 12px;
    width: 100%;
  }
}

/* Dispositivos con muy poca altura (menos de 400px) */
@media (max-height: 400px) {
  .modal-content {
    width: 90%;
    max-width: 90%;
    padding: 12px;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .modal-content h2 {
    font-size: 1rem;
    margin-bottom: 6px;
    height: 20px;
  }

  .modal-content p {
    font-size: 0.7rem;
    margin-bottom: 10px;
    height: 16px;
  }

  .form-toggle-buttons {
    margin-bottom: 10px;
    height: auto;
    min-height: 30px;
    display: flex;
    visibility: visible;
    opacity: 1;
  }

  .toggle-btn {
    font-size: 0.7rem;
    padding: 0.4em 0.6em;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    box-sizing: border-box;
    line-height: 1;
    visibility: visible;
    opacity: 1;
  }

  .form-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .form-group {
    margin-bottom: 0;
    height: 40px;
  }

  .form-group label {
    font-size: 0.6rem;
    height: 14px;
    display: block;
    margin-bottom: 3px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 0.7rem;
    padding: 4px;
    height: 25px;
    width: 100%;
    box-sizing: border-box;
  }

  .form-group textarea {
    height: 40px;
    resize: vertical;
    min-height: 40px;
  }

  .submit-btn {
    font-size: 0.8rem;
    padding: 8px 12px;
    height: 35px;
    margin-top: 10px;
    width: 100%;
  }
}

/* --- Scroll to Top Button --- */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  background: #fff;
  color: #1a1a1a;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s, background 0.2s;
}
.scroll-to-top:hover, .scroll-to-top:focus {
  background: #e0e0e0;
  opacity: 1;
  outline: 2px solid #0077ff;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 3000;
  background: #90d624;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 12px rgba(27, 58, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover, .back-to-top:focus {
  background: #7bb820;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(144, 214, 36, 0.4);
  outline: none;
  border-color: #fff;
}

.back-to-top:active {
  transform: scale(0.95);
  background: #6a9a1c;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Mobile optimizations for back-to-top button */
@media (max-width: 768px) {
  .back-to-top {
    width: 56px;
    height: 56px;
    bottom: 24px;
    right: 24px;
  }
  
  .back-to-top svg {
    width: 24px;
    height: 24px;
  }
  
  .back-to-top:active {
    transform: scale(0.9);
  }
}

/* Icono de hoja en navegación: blanco en inicio y como empezar */
.hero-header .nav-actions .nav-list li a::after,
.hero-header .mobile-menu .nav-list li a::after,
.como-empezar-hero .nav-actions .nav-list li a::after,
.como-empezar-hero .mobile-menu .nav-list li a::after {
  filter: none;
}

/* Icono de hoja en navegación: negro para todas las páginas */
.hero-header .nav-actions .nav-list li a::after,
.hero-header .mobile-menu .nav-list li a::after {
  filter: brightness(0);
}

/* Icono de hoja en navegación: configuración base para todas las páginas */
.hero-header .nav-actions .nav-list li a::after,
.hero-header .mobile-menu .nav-list li a::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background-image: url('/assets/leaf_icon_nav.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: brightness(0);
}

.hero-header .nav-actions .nav-list li a:hover::after,
.hero-header .nav-actions .nav-list li a.active::after,
.hero-header .mobile-menu .nav-list li a:hover::after,
.hero-header .mobile-menu .nav-list li a.active::after {
  opacity: 1;
}



.main-footer::after {
  content: none;
}

.footer-content::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40vw;
  height: 100%;
  background: url('/assets/footer_verde_pattern.png') right top repeat-y;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
  transform: translateX(30%);
}

.footer-content {
  position: relative;
  z-index: 3;
}

.footer-content > * {
  position: relative;
  z-index: 3;
}

@media (max-width: 600px) {
  .footer-content::after {
    opacity: 0.3;
  }
}
