/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #e1e1e1;
  min-height: 100vh;
}

/* ===== Page Container ===== */
.page {
  width: 100%;
  min-height: 100vh;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.paso-header {
  background-color: #e1e1e1;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.paso-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
}

.door-icon {
  width: 32px;
  height: 46px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.door-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.support-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(83, 54, 209, 0.5);
  border-radius: 10px;
  text-decoration: none;
  height: 36px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.support-btn:hover {
  background-color: rgba(83, 54, 209, 0.05);
}

.support-icon {
  width: 23px;
  height: 23px;
  display: block;
}

.support-btn span {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #060606;
  display: none;
}

@media (min-width: 480px) {
  .support-btn span {
    display: inline;
  }
}

.save-exit-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #050505;
  text-decoration: none;
  white-space: nowrap;
}

.save-exit-link:hover {
  text-decoration: underline;
}

/* ===== Main Content ===== */
.paso-content {
  flex: 1;
  padding: 30px;
}

.paso-content-inner {
  max-width: 900px;
  margin: 0 auto;
}

.paso-img-placeholder {
  width: 100%;
  max-width: 340px;
  height: 320px;
  background-color: #d9d9d9;
  border-radius: 11px;
  margin-bottom: 24px;
}

/* Intro image (pantallas de intro de cada paso) */
.paso-intro-img {
  width: 100%;
  max-width: 340px;
  height: 320px;
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.paso-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Progress header (label + percent row) */
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-step-label {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #5336d1;
}

.paso-text {
  max-width: 340px;
}

.paso-label {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #5336d1;
  margin-bottom: 8px;
}

.paso-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 25px;
  color: #000;
  line-height: normal;
  margin-bottom: 16px;
}

.paso-desc {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #777;
  line-height: normal;
}

/* ===== Footer ===== */
.paso-footer {
  background-color: #e1e1e1;
  padding: 20px 30px 30px;
  position: sticky;
  bottom: 0;
  z-index: 100;
}

.paso-footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Progress Bar */
.progress-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.progress-segment {
  height: 10px;
  background-color: #fff;
  border-radius: 100px;
}

.progress-segment.active {
  background-color: #6968c9;
}

.progress-percent {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #5336d1;
  min-width: 30px;
  text-align: right;
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-atras {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #050505;
  text-decoration: none;
  padding: 10px 0;
}

.btn-atras:hover {
  text-decoration: underline;
}

.btn-siguiente {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 40px;
  background-color: #5336d1;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-siguiente:hover {
  opacity: 0.9;
}

.btn-siguiente:active {
  transform: scale(0.98);
}

.btn-publicar {
  background-color: #04d9b2;
  color: #000;
}

/* ===== Desktop (768px+) ===== */
@media (min-width: 768px) {
  .paso-header {
    padding: 16px 60px;
  }

  .door-icon {
    width: 42px;
    height: 60px;
  }

  .paso-content {
    padding: 50px 60px;
  }

  .paso-content-inner {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 60px;
  }

  .paso-img-placeholder {
    max-width: none;
    flex: 1;
    height: 380px;
    margin-bottom: 0;
  }

  .paso-intro-img {
    max-width: none;
    flex: 1;
    height: 380px;
    margin-bottom: 0;
  }

  .paso-text {
    flex: 1;
    max-width: none;
  }

  .paso-label {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .paso-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .paso-desc {
    font-size: 14px;
    line-height: 1.6;
  }

  .paso-footer {
    padding: 20px 60px 30px;
  }

  .support-btn span {
    font-size: 13px;
  }

  .save-exit-link {
    font-size: 13px;
  }

  .btn-atras {
    font-size: 14px;
  }

  .btn-siguiente {
    width: 180px;
    height: 46px;
    font-size: 14px;
  }
}

/* ===== Toast Notifications ===== */
.ligo-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #333;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 90%;
  text-align: center;
}
.ligo-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.ligo-toast.error { background: #d32f2f; }
.ligo-toast.success { background: #2e7d32; }

/* ===== Exit Confirmation Modal ===== */
.exit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.exit-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.exit-modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 320px;
  width: 85%;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.exit-modal-overlay.visible .exit-modal-card {
  transform: scale(1);
}

.exit-modal-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.exit-modal-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #000;
  margin: 0 0 8px 0;
  line-height: normal;
}

.exit-modal-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #777;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.exit-modal-actions {
  display: flex;
  gap: 12px;
}

.exit-modal-btn {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.exit-modal-btn:hover {
  opacity: 0.85;
}

.exit-modal-btn-cancel {
  background: #e1e1e1;
  color: #333;
}

.exit-modal-btn-confirm {
  background: #5336d1;
  color: #fff;
}

/* ===== Large Desktop (1024px+) ===== */
@media (min-width: 1024px) {
  .paso-header-inner {
    max-width: 1100px;
  }

  .paso-content {
    padding: 60px 80px;
  }

  .paso-content-inner {
    max-width: 1100px;
    gap: 80px;
  }

  .paso-img-placeholder {
    height: 420px;
  }

  .paso-title {
    font-size: 36px;
  }

  .paso-desc {
    font-size: 15px;
  }

  .paso-footer-inner {
    max-width: 1100px;
  }
}
