/**
 * dropi-connection.css
 * Estilos oficiales para el Paso 3 del Asistente GlobPay: Conecta tu cuenta de Dropi.
 * Reproducción visual fiel a la referencia aprobada (media_1792381090698_03bf9555.png).
 */

/* =====================================================================
   1. RESET Y BASE
   ===================================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #F8FAFC;
  color: var(--color-brand-black, #111111);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =====================================================================
   2. CONTENEDOR PRINCIPAL
   ===================================================================== */
.dropi-step-container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 16px 44px;
}

/* =====================================================================
   3. ENCABEZADO Y PROGRESO
   ===================================================================== */
.wizard-header {
  text-align: center;
  margin-bottom: 24px;
}

.brand-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}

.brand-logo-img {
  width: 130px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1024 / 853;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.step-indicator {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-brand-secondary, #6B7280);
  margin-bottom: 8px;
}

.step-progress-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}

.step-segment {
  width: 26px;
  height: 4px;
  border-radius: 9999px;
  background-color: #E5E7EB;
  transition: background-color 0.2s ease;
}

/* Pasos 1 y 2 Completados: Negro */
.step-segment.is-completed {
  background-color: var(--color-brand-black, #111111);
}

/* Paso 3 Activo: Turquesa Oficial */
.step-segment.is-active {
  background-color: var(--color-brand-primary, #00B6B5);
}

.page-title {
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--color-brand-black, #111111);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.page-subtitle {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--color-brand-secondary, #6B7280);
  margin: 0 auto;
  max-width: 400px;
}

/* =====================================================================
   4. TARJETAS (CARDS)
   ===================================================================== */
.card {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-brand-black, #111111);
  margin: 0;
}

/* =====================================================================
   5. BLOQUE 1: VIDEO TUTORIAL
   ===================================================================== */
.tutorial-card .card-title {
  margin-bottom: 14px;
}

.video-container-16-9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #E8F8F7 0%, #D8F3F1 60%, #E3F8F6 100%);
  border: 1px solid #CEF1EF;
}

.video-placeholder-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.video-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-brand-primary, #00B6B5);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 182, 181, 0.28);
  margin-bottom: 12px;
  cursor: default;
}

.play-icon-svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.video-placeholder-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-brand-black, #111111);
  margin: 0 0 4px;
}

.video-placeholder-subtitle {
  font-size: 12.5px;
  color: #4B5563;
  margin: 0;
}

.active-video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.video-footer-note {
  font-size: 12px;
  color: var(--color-brand-secondary, #6B7280);
  text-align: center;
  margin: 12px 0 0;
}

/* =====================================================================
   6. BLOQUE 2: FUTURA CONEXIÓN (DROPI)
   ===================================================================== */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.badge-upcoming {
  background-color: #F3F4F6;
  color: #4B5563;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 9999px;
  border: 1px solid #E5E7EB;
  letter-spacing: 0.01em;
}

.card-description {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--color-brand-secondary, #6B7280);
  margin: 0 0 16px;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-black, #111111);
  margin-bottom: 6px;
}

.token-input-wrapper {
  position: relative;
  width: 100%;
}

.token-input-disabled {
  width: 100%;
  padding: 10px 38px 10px 14px;
  background-color: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 13.5px;
  color: #9CA3AF;
  cursor: not-allowed;
  user-select: none;
  -webkit-user-select: none;
}

.token-input-disabled::placeholder {
  color: #9CA3AF;
  font-style: normal;
}

.token-eye-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.eye-svg {
  width: 16px;
  height: 16px;
}

.btn-verify-disabled {
  width: 100%;
  padding: 11px 16px;
  background-color: #E5E7EB;
  color: #6B7280;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: not-allowed;
  margin-bottom: 14px;
  transition: background-color 0.15s ease;
}

.security-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-brand-secondary, #6B7280);
  line-height: 1.35;
}

.lock-icon {
  color: var(--color-brand-secondary, #6B7280);
  flex-shrink: 0;
  display: inline-flex;
}

.lock-svg {
  width: 14px;
  height: 14px;
}

.notice-text {
  flex: 1;
}

/* =====================================================================
   7. ACCIÓN PRINCIPAL DE CONTINUAR
   ===================================================================== */
.action-block {
  margin-top: 8px;
  margin-bottom: 18px;
}

.btn-primary-continue {
  width: 100%;
  padding: 13px 20px;
  background-color: var(--color-brand-primary, #00B6B5);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0, 182, 181, 0.2);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-primary-continue:hover {
  background-color: #009E9D;
}

.btn-primary-continue:active {
  transform: scale(0.99);
}

.continue-note {
  font-size: 12px;
  color: var(--color-brand-secondary, #6B7280);
  text-align: center;
  margin: 8px 0 0;
}

/* =====================================================================
   8. TARJETA DE CONFIRMACIÓN DE PROGRESO GUARDADO
   ===================================================================== */
.save-confirmation-card {
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
  margin-bottom: 20px;
  animation: fadeIn 0.25s ease-out;
}

.save-confirmation-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #16A34A;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  line-height: 32px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.save-confirmation-title {
  font-size: 15px;
  font-weight: 700;
  color: #166534;
  margin: 0 0 4px;
}

.save-confirmation-text {
  font-size: 13px;
  color: #15803D;
  margin: 0 0 12px;
}

.dev-panel-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-primary, #00B6B5);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 6px;
  background-color: #FFFFFF;
  border: 1px solid #CEF1EF;
  transition: all 0.15s ease;
}

.dev-panel-link:hover {
  background-color: #E8F8F7;
  text-decoration: underline;
}

/* =====================================================================
   9. TARJETA EXPLICATIVA DE AYUDA (DESPLEGABLE / TOGGLE)
   ===================================================================== */
.help-card {
  background-color: #FFFFFF;
  border: 1px solid #CEF1EF;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(0, 182, 181, 0.08);
  animation: fadeIn 0.2s ease-out;
}

.help-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.help-card-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-brand-primary, #00B6B5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.help-close-btn {
  background: none;
  border: none;
  font-size: 14px;
  color: #9CA3AF;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.help-close-btn:hover {
  color: var(--color-brand-black, #111111);
}

.help-card-message {
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
  margin: 0;
}

/* =====================================================================
   10. PIE DE PÁGINA (VOLVER Y AYUDA)
   ===================================================================== */
.wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
}

.footer-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-brand-primary, #00B6B5);
  text-decoration: none;
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #009E9D;
  text-decoration: underline;
}

/* =====================================================================
   11. ANIMACIONES
   ===================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================================
   12. SOPORTE DE CAPTURA RESPONSIVE Y PREVIEW MODES
   ===================================================================== */
body.preview-360,
body.preview-360 .dropi-step-container {
  width: 360px !important;
  max-width: 360px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
}

body.preview-390,
body.preview-390 .dropi-step-container {
  width: 390px !important;
  max-width: 390px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
  box-sizing: border-box !important;
}

body.preview-430,
body.preview-430 .dropi-step-container {
  width: 430px !important;
  max-width: 430px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: border-box !important;
}

@media (max-width: 480px) {
  .dropi-step-container {
    padding: 24px 14px 36px;
  }

  .page-title {
    font-size: 23px;
  }

  .page-subtitle {
    font-size: 13px;
  }

  .card {
    padding: 16px;
    border-radius: 12px;
  }

  .video-play-btn {
    width: 44px;
    height: 44px;
  }

  .video-placeholder-title {
    font-size: 13.5px;
  }

  .video-placeholder-subtitle {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .dropi-step-container {
    padding: 20px 10px 28px;
  }

  .page-title {
    font-size: 19.5px;
    letter-spacing: -0.02em;
  }

  .step-segment {
    width: 18px;
    height: 3.5px;
    gap: 4px;
  }

  .card {
    padding: 14px;
  }

  .btn-primary-continue {
    font-size: 13.5px;
    padding: 12px 14px;
  }
}
