/* ============ ESTILOS PARA CÓMO EMPEZAR ============ */

/* Hero */
.empezar-hero {
  padding: 150px 0 40px;
  position: relative;
  background: radial-gradient(800px 400px at 50% 0%, rgba(255, 140, 20, 0.06), transparent 70%);
}

.empezar-hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.empezar-hero-content h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  margin-bottom: 12px;
}

.empezar-hero-content p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--gray);
  line-height: 1.7;
}

/* ============ TIMELINE ============ */
.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 10px 0;
}

/* Línea vertical con degradado */
.steps-timeline::before {
  content: '';
  position: absolute;
  left: 55px;
  top: 50px;
  bottom: 50px;
  width: 3px;
  background: var(--grad);
  opacity: 0.25;
  border-radius: 3px;
}

/* Step Item */
.step-item {
  display: flex;
  gap: 30px;
  padding: 0;
  position: relative;
}

/* Connector (círculo + línea) */
.step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.step-dot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--bg), 0 8px 30px rgba(255, 140, 20, 0.3);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover .step-dot {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px var(--bg), 0 12px 40px rgba(255, 140, 20, 0.5);
}

.step-number {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  color: #1a0e00;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
}

.step-line {
  width: 3px;
  flex: 1;
  background: var(--line);
  margin-top: 8px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  min-height: 40px;
}

.step-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.step-item:hover .step-line::after {
  opacity: 1;
}

/* Step Block (contenido + imagen) */
.step-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step-block:hover {
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}

/* Contenido */
.step-content {
  padding: 28px 30px 20px 30px;
}

.step-content h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
  font-family: 'Sora', sans-serif;
}

.step-content p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0;
}

.step-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.step-content a:hover {
  color: var(--yellow);
}

.step-content .btn i {
  font-size: 16px;
}

.step-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--orange);
  letter-spacing: 0.5px;
}

.step-code::before {
  content: '▶';
  font-size: 12px;
  opacity: 0.5;
}

/* ============ IMAGEN ============ */
.step-image {
  width: 100%;
  display: block;
  background: var(--panel-2);
  overflow: hidden;
  margin-top: 0;
}

.step-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.step-block:hover .step-image img {
  transform: scale(1.02);
}

/* ============ CTA FINAL ============ */
.cta-final {
  margin-top: 60px;
  padding: 48px 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Sora', sans-serif;
}

.cta-final p {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-buttons .btn i {
  font-size: 16px;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 992px) {
  .step-connector {
    width: 80px;
    flex-shrink: 0;
  }
  
  .step-dot {
    width: 50px;
    height: 50px;
  }
  
  .step-number {
    font-size: 16px;
  }
  
  .steps-timeline::before {
    left: 40px;
  }
  
  .step-content {
    padding: 22px 24px 16px 24px;
  }
  
  .step-content h3 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .empezar-hero {
    padding: 120px 0 30px;
  }
  
  .empezar-hero-content h1 {
    font-size: 28px;
  }
  
  .steps-timeline {
    gap: 30px;
  }
  
  .step-item {
    flex-direction: column;
    gap: 12px;
    padding: 0;
    align-items: center;
  }
  
  .steps-timeline::before {
    left: 50%;
    top: 40px;
    bottom: 40px;
    transform: translateX(-50%);
  }
  
  .step-connector {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }
  
  .step-dot {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
  }
  
  .step-number {
    font-size: 14px;
  }
  
  .step-line {
    width: 50px;
    height: 3px;
    flex: none;
    margin-top: 0;
    min-height: auto;
  }
  
  .step-block {
    width: 100%;
  }
  
  .step-content {
    padding: 20px 22px 14px 22px;
  }
  
  .step-content h3 {
    font-size: 17px;
  }
  
  .step-content p {
    font-size: 14px;
  }
  
  .step-code {
    font-size: 13px;
    padding: 6px 14px;
  }
  
  .cta-final {
    padding: 32px 24px;
    margin-top: 40px;
  }
  
  .cta-final h3 {
    font-size: 20px;
  }
  
  .cta-final p {
    font-size: 14px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .empezar-hero {
    padding: 100px 0 20px;
  }
  
  .empezar-hero-content h1 {
    font-size: 24px;
  }
  
  .empezar-hero-content p {
    font-size: 14px;
  }
  
  .steps-timeline {
    gap: 24px;
  }
  
  .steps-timeline::before {
    display: none;
  }
  
  .step-item {
    gap: 10px;
  }
  
  .step-connector {
    gap: 12px;
  }
  
  .step-dot {
    width: 40px;
    height: 40px;
  }
  
  .step-number {
    font-size: 13px;
  }
  
  .step-line {
    width: 35px;
  }
  
  .step-block {
    border-radius: 12px;
  }
  
  .step-content {
    padding: 16px 18px 12px 18px;
  }
  
  .step-content h3 {
    font-size: 16px;
  }
  
  .step-content p {
    font-size: 13.5px;
  }
  
  .step-code {
    font-size: 12px;
    padding: 5px 12px;
  }
  
  .cta-final {
    padding: 24px 18px;
    margin-top: 30px;
    border-radius: 16px;
  }
  
  .cta-final h3 {
    font-size: 18px;
  }
  
  .cta-final p {
    font-size: 13px;
  }
  
  .cta-buttons .btn {
    font-size: 13px;
    padding: 10px 16px;
    max-width: 100%;
  }
}