/* TITULOS DE SECCIÓN */
section h2,
h2.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin: 80px auto 20px;
  color: var(--verde-oscuro);
  font-weight: 700;
  animation: fadeInUp .6s ease forwards;
}

/* CORRECCIÓN ESPACIADO ENTRE SECCIONES */
.ventajas-grid + h2 {
  margin-top: 120px !important;
}

/* ANIMACION GLOBAL */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* BOTONES */
.btn {
  display:inline-flex;
  padding:12px 26px;
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
  font-size:0.95rem;
}

.btn-primary {
  background:#ffb703;
  color:#1b1b1b;
}

.btn-outline {
  border:1px solid rgba(255,255,255,0.7);
  color:white;
}


/* CARDS */
.cards {
  display:grid;
  gap:20px;
  grid-template-columns:repeat(auto-fit, minmax(260px,1fr));
}

.card {
  background:white;
  padding:22px;
  border-radius:12px;
  box-shadow:var(--shadow);
  border-top:5px solid var(--verde);
}

.card h3 { margin-bottom:10px; }


/* VENTAJAS */
.ventajas-grid {
  display:grid;
  gap:24px;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
}

/* ITEM */
.ventaja-item {
  background: #d5deb8;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow);

  /* ANIMACION */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp .6s ease forwards;
}

.ventaja-item:nth-child(2) { animation-delay: .05s; }
.ventaja-item:nth-child(3) { animation-delay: .1s; }
.ventaja-item:nth-child(4) { animation-delay: .15s; }
.ventaja-item:nth-child(5) { animation-delay: .2s; }
.ventaja-item:nth-child(6) { animation-delay: .25s; }

/* ITEM HOVER */
.ventaja-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}


/* ICONO CORRECTO */
.ventaja-icon {
  min-width: 40px;
  min-height: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--verde-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ventaja-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'><path d='M13.485 1.929l-7.071 7.071-3.536-3.536-1.414 1.414 4.95 4.95 8.485-8.485z'/></svg>") no-repeat center center;
  background-size: contain;
}


/* STEPS (TAL CUAL + PERFIL PREMIUM) */
.steps {
  display:grid;
  gap:24px;
  grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  counter-reset:steps;
  text-align: center;
}

.step h3, 
.step strong {
  display: inline-block;
}

.step {
  background:#f8fafb;
  padding:42px 24px 24px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.1);
  position:relative;
  transition: transform .2s ease, box-shadow .2s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.step::before {
  counter-increment:steps;
  content:counter(steps);
  position:absolute;
  top:12px; right:12px;
  width:26px;height:26px;
  background:var(--verde);
  color:white;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
  .step {
    padding-top: 38px;
  }

  .step::before {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 600px) {
  .step::before {
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
  }
}


/* BLOG */
.cards-blog {
  display:grid;
  gap:30px;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
}

.blog-card img {
  border-radius:12px;
  margin-bottom:10px;
}


/* SLIDER */
.slider {
  overflow:hidden;
  margin-top:25px;
}

.slide-track {
  display:flex;
  gap:18px;
  width:max-content;
  animation:sliderScroll 30s linear infinite;
}

@keyframes sliderScroll {
  0% { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}

.slide {
  width:250px;
  height:160px;
  object-fit:cover;
  border-radius:12px;
  box-shadow:var(--shadow);
  cursor:zoom-in;
}


/* LIGHTBOX */
.lightbox {
  position:fixed;
  inset:0;
  background: #f8f9f5 !important;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999999;
}

.lightbox img {
  max-width:90%;
  max-height:90%;
  border-radius:16px;
}