/* Como Empezar Page Specific Styles */

/* Prevent horizontal scroll on mobile only */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
  }
  
  /* Ensure all containers respect viewport width */
  .como-empezar-hero,
  .como-empezar-hero-content,
  .como-empezar-section,
  .pasos-section,
  .glossary-section,
  .main-footer {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Fix any elements that might cause horizontal overflow */
  .como-empezar-hero-content .hero-desc,
  .hero-cta-buttons,
  .hero-btn {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Import main variables */
@import url('./variables.css');

/* Hero Section Modifications */
.como-empezar-hero {
  background-image: url('/assets/como_empezar_hero.jpg');
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: var(--hero-visible-height);
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
}

.como-empezar-hero-content {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  margin-top: auto;
  margin-bottom: 80px;
  padding-left: var(--margin-text-x);
  padding-right: var(--margin-text-x);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.como-empezar-hero-content h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5em 0;
  color: #ffffff;
}

.como-empezar-hero-content .hero-desc {
  font-size: var(--font-size-desc-hero);
  font-weight: 300;
  line-height: 1.5;
  margin: 0 auto 2em auto;
  color: #ffffff;
  opacity: 0.9;
  max-width: 800px;
  text-align: center;
}

.hero-cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.hero-btn {
  border: none;
  border-radius: var(--radius);
  height: var(--btn-primary-height);
  font-size: var(--font-size-btn-cta);
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2em;
  min-width: 200px;
}

.white-btn {
  background: var(--color-white);
  color: var(--color-primary-green);
  border: 2px solid var(--color-white);
}

.white-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-green);
}

.transparent-btn {
  background: transparent;
  color: #1B3A00;
  border: 2px solid var(--color-white);
}

.transparent-btn:hover {
  background: var(--color-white);
  color: var(--color-primary-green);
}

/* Remove the hero texture overlay completely */
.hero-texture-overlay {
  display: none;
}

/* Remove all texture pattern styles */
.texture-pattern,
.texture-pattern-1,
.texture-pattern-2,
.texture-pattern-3 {
  display: none;
}

/* Remove the float animation */
@keyframes float {
  /* Remove this animation */
}

/* Steps Intro Section */
.steps-intro-section {
  background-color: var(--page-bg-color);
  padding: var(--section-spacing) var(--margin-text-x) var(--spacing-xl) var(--margin-text-x);
  text-align: left;
}

.steps-intro-content h2 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  color: #333333;
  max-width: 800px;
}

/* Export Steps Section */
.export-steps-section {
  background-color: var(--page-bg-color);
  padding: 0 var(--margin-text-x) var(--section-spacing) var(--margin-text-x);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  width: 100%;
  margin-bottom: var(--spacing-xl);
}

.step-item {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
  padding: var(--spacing-xl) var(--spacing-lg);
  background: transparent;
  border-bottom: 1px solid #ddd;
  transition: transform 0.2s ease;
}

.step-number {
  flex-shrink: 0;
  width: auto;
  height: auto;
  background: transparent;
  color: var(--color-primary-green);
  border-radius: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  margin-right: var(--spacing-md);
}

.step-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 var(--spacing-sm) 0;
  color: #333333;
}

.step-content p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
  color: #666666;
}

/* Steps Help Section */
.steps-help-section {
  padding: 0;
  margin-top: var(--spacing-xl);
}

.full-width-help-btn {
  background: var(--color-primary-green);
  color: #1B3A00;
  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;
  display: block;
  width: 100%;
  text-align: center;
}

.full-width-help-btn:hover {
  background: #7bb820;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 214, 36, 0.3);
  transition: all 0.3s ease;
}

/* Remove old help styles */
.help-text,
.help-btn {
  display: none;
}

/* Checklist Download Section */
.checklist-download-section {
  background: var(--color-primary-green);
  padding: var(--section-spacing) var(--margin-text-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}


.checklist-content {
  position: relative;
  z-index: 2;
}

.checklist-content h2 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 var(--spacing-xl) 0;
  color: #1B3A00;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Documents Cards Styles */
.documents-cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.document-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: var(--spacing-xl);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.document-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary-green);
}

.document-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1B3A00;
  margin: 0 0 var(--spacing-sm) 0;
  font-family: var(--font-main);
}

.document-card p {
  font-size: 16px;
  font-weight: 400;
  color: #666666;
  margin: 0;
  line-height: 1.5;
  font-family: var(--font-paragraph);
}

.download-btn {
  background: var(--color-white);
  color: var(--color-primary-green);
  border: none;
  border-radius: var(--radius);
  padding: 0 var(--spacing-xxxl);
  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.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.download-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* Glossary Section */
.glossary-section {
  background-color: var(--page-bg-color);
  padding: var(--section-spacing) var(--margin-text-x);
  text-align: center;
}

.glossary-content h2 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 var(--spacing-xl) 0;
  color: #333333;
}

.glossary-search {
  margin-bottom: var(--spacing-xl);
  display: flex;
  justify-content: center;
}

.search-input-container {
  position: relative;
  max-width: 500px;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666666;
  pointer-events: none;
}

#glossary-search-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 1px solid #cccccc;
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font-main);
  background-color: var(--color-white);
  box-sizing: border-box;
}

#glossary-search-input:focus {
  outline: none;
  border-color: var(--color-primary-green);
  box-shadow: 0 0 0 2px rgba(27, 58, 0, 0.2);
}

.alphabet-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--spacing-xl);
}

.alphabet-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius);
  background-color: var(--color-white);
  color: #333333;
  font-size: 16px;
  font-weight: 400;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alphabet-btn:hover {
  background-color: #f0f0f0;
}

.alphabet-btn.active {
  background-color: var(--color-primary-green);
  color: #1B3A00;
}

.glossary-terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.glossary-term {
  text-align: left;
  padding: var(--spacing-lg);
  background-color: transparent; /* Remove background */
  border-radius: 0; /* Remove border radius */
  box-shadow: none; /* Remove shadow */
  border-right: 1px solid #ddd; /* Add right border */
  transition: transform 0.2s ease;
}

.glossary-term:hover {
  transform: translateY(-2px);
  box-shadow: none; /* Keep no shadow on hover */
}

.glossary-term h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 var(--spacing-sm) 0;
  color: #333333;
}

.glossary-term p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
  color: #666666;
}

.no-results {
  text-align: center;
  padding: var(--spacing-xl);
  color: #666666;
  font-size: 16px;
}



/* Ensure content is above texture overlays */
.como-empezar-hero-content,
.checklist-content {
  position: relative;
  z-index: 2;
}

/* Back to Top Button - Ensure it's above footer */
.back-to-top {
  z-index: 3000;
}

/* Footer styles are now handled by the main styles.css file */


/* Responsive Design */
@media (max-width: 1000px) {
  .como-empezar-hero-content h1 {
    font-size: 42px;
  }

  /* Remove padding from hero content in mobile */
  .como-empezar-hero-content {
    padding-left: 0;
    padding-right: 0;
  }

  .steps-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .steps-intro-content h2 {
    font-size: 32px;
  }

  .checklist-content h2 {
    font-size: 36px;
  }



  .glossary-content h2 {
    font-size: 36px;
  }

  .glossary-terms {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }



}

@media (max-width: 768px) {
  .como-empezar-hero-content h1 {
    font-size: 36px;
  }

  .como-empezar-hero-content .hero-desc {
    white-space: normal;
  }

  /* Remove padding from hero content in mobile */
  .como-empezar-hero-content {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-buttons .hero-btn {
    width: 100%;
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .steps-intro-content h2 {
    font-size: 28px;
  }

  .step-item {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .step-number {
    font-size: 36px;
  }

  .step-content h3 {
    font-size: 18px;
  }

  .step-content p {
    font-size: 15px;
  }

  .checklist-content h2 {
    font-size: 32px;
  }

  .documents-cards-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .document-card {
    padding: var(--spacing-lg);
  }

  .document-card h3 {
    font-size: 18px;
  }

  .document-card p {
    font-size: 15px;
  }





  .glossary-content h2 {
    font-size: 32px;
  }

  .glossary-terms {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .alphabet-navigation {
    gap: 6px;
  }

  .alphabet-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

}

@media (max-width: 480px) {
  .como-empezar-hero-content h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .como-empezar-hero-content .hero-desc {
    white-space: normal;
  }

  /* Remove padding from hero content in mobile */
  .como-empezar-hero-content {
    padding-left: 0;
    padding-right: 0;
  }

  .steps-intro-content h2 {
    font-size: 24px;
  }

  .step-item {
    flex-direction: column;
    text-align: left;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .step-number {
    align-self: flex-start;
    font-size: 32px;
  }

  .checklist-content h2 {
    font-size: 28px;
  }

  .documents-cards-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .document-card {
    padding: var(--spacing-md);
  }

  .document-card h3 {
    font-size: 16px;
  }

  .document-card p {
    font-size: 14px;
  }





  .glossary-content h2 {
    font-size: 28px;
  }

  .alphabet-navigation {
    gap: 4px;
  }

  .alphabet-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .glossary-term {
    padding: var(--spacing-md);
  }

  .glossary-term h3 {
    font-size: 16px;
  }

  .glossary-term p {
    font-size: 13px;
  }
  
  /* Additional mobile fixes for horizontal scroll */
  .como-empezar-hero-content {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .steps-grid {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .glossary-container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Ensure no element exceeds viewport width */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

}
