/* SECCION 1 HERO */
.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  max-width: 620px;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 30px;
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-visual {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-tag {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  color: var(--text);
  z-index: 3;
}

.tag-1 {
  top: 90px;
  right: 20px;
}

.tag-2 {
  bottom: 30px;
  left: 20px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 20px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-card {
    max-width: 320px;
    margin: auto;
    transform: scale(0.95);
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: 500px;
    margin-top: 10px;
  }

  .tag-1 {
    right: 20px;
    top: 10px;
  }

  .tag-2 {
    left: 20px;
    bottom: -10px;
  }
}

@media (max-width: 640px) {
  .hero-wrapper {
    padding-top: 18px;
  }

  .topbar {
    width: calc(100% - 24px);
    margin-bottom: 20px;
  }

  .hero {
    width: calc(100% - 24px);
    gap: 10px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
    letter-spacing: -1.5px;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-visual {
    min-height: 390px;
    transform: scale(0.82);
  }
}

/* SECCION HOW IT WORKS */
.how-it-works {
  padding: 100px 0;
  background: #f9fbfa;
}

.hiw-container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.hiw-header {
  text-align: center;
  margin-bottom: 60px;
}

.hiw-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 10px;
}

.hiw-header p {
  color: var(--text-soft);
}

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

.hiw-step {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border);
  text-align: center;
  transition: 0.25s ease;
}

.hiw-step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.hiw-step p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.hiw-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.hiw-step-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .hiw-steps {
    grid-template-columns: 1fr;
  }
}

/* SECCION ULTIMAS DAK CARDS */
.showcase {
  padding: 100px 0;
}

.showcase-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.showcase-header {
  text-align: center;
  margin-bottom: 50px;
}

.showcase-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.showcase-header p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.card-item {
  display: block;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: 0.3s ease;
  position: relative;
}

.card-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-item:hover img {
  transform: scale(1.05);
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.6),
    transparent
  );
  color: #fff;
}

.card-overlay small {
  font-size: 12px;
  opacity: 0.9;
}

.card-overlay p {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* SECCION FEATURES */
.features {
  padding: 100px 0;
  background: #ffffff;
}

.features-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.features-header p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

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

.feature-item {
  background: #f9fbfa;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  transition: 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background: #ffffff;
}

.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* SECCION CALL TO ACTION */
.cta-final {
  padding: 70px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7f8 100%);
}

.cta-container {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}

.cta-box {
  background: #ffffff;
  border-radius: 28px;
  padding: 60px 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: -100px;
  background: radial-gradient(circle, rgba(11, 143, 31, 0.15), transparent 60%);
  z-index: 0;
}

.cta-box * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.cta-actions {
  margin-bottom: 16px;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--text-soft);
}