/* ==========================================================================
   PathSoft Elementor Widgets — Estilos globales
   ========================================================================== */

/* ==========================================================================
   Widget: Timeline Vertical
   ========================================================================== */

.ps-timeline {
  position: relative;
  padding: 40px;
  background-color: transparent;
  box-sizing: border-box;
  font-family: inherit;
}

/* ── Línea vertical ── */

.ps-timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #d4d4d4;
}

/* Posición izquierda */
.ps-timeline--left .ps-timeline__line {
  left: calc(40px + 7px); /* padding + mitad del dot */
}

/* Posición centro */
.ps-timeline--center .ps-timeline__line {
  left: 50%;
  transform: translateX(-50%);
}

/* ── Contenedor de ítems ── */

.ps-timeline__items {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Ítem individual ── */

.ps-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
}

.ps-item + .ps-item {
  margin-top: 36px;
}

/* ── Conector (columna con el punto) ── */

.ps-item__connector {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 2px; /* alinear visualmente con la primera línea del texto */
}

/* ── Dot / Marcador ── */

.ps-item__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #3ecfbe;
  background-color: transparent;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.ps-item__dot::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--xpt-dot-inner, #3ecfbe);
  transition: transform 0.25s ease;
}

/* Hover suave */
.ps-item:hover .ps-item__dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(62, 207, 190, 0.15);
}

/* ── Cuerpo del ítem ── */

.ps-item__body {
  flex: 1;
  min-width: 0;
}

/* ── Meta: año + sublabel ── */

.ps-item__meta {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
}

.ps-item__year {
  color: #3ecfbe;
}

.ps-item__sep {
  color: #d4d4d4;
  opacity: 0.6;
}

.ps-item__sublabel {
  color: #a0aab8;
}

/* ── Descripción ── */

.ps-item__desc {
  color: #8892a0;
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

.ps-item__desc p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   2. Layout: posición CENTRO (alternado izquierda/derecha)
   -------------------------------------------------------------------------- */

.ps-timeline--center .ps-timeline__items {
  position: relative;
}

.ps-timeline--center .ps-item {
  width: calc(50% - 24px);
}

.ps-timeline--center .ps-item:nth-child(odd) {
  align-self: flex-end;
  flex-direction: row-reverse;
  text-align: right;
}

.ps-timeline--center .ps-item:nth-child(even) {
  align-self: flex-start;
  margin-left: calc(50% + 24px);
}

.ps-timeline--center .ps-item__meta {
  justify-content: flex-start;
}

.ps-timeline--center .ps-item:nth-child(odd) .ps-item__meta {
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   3. Animaciones de entrada (scroll)
   -------------------------------------------------------------------------- */

.ps-timeline--animate .ps-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.ps-timeline--animate .ps-item.ps-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger visual: cada ítem espera un poco más */
.ps-timeline--animate .ps-item:nth-child(1) {
  transition-delay: 0s;
}
.ps-timeline--animate .ps-item:nth-child(2) {
  transition-delay: 0.08s;
}
.ps-timeline--animate .ps-item:nth-child(3) {
  transition-delay: 0.16s;
}
.ps-timeline--animate .ps-item:nth-child(4) {
  transition-delay: 0.24s;
}
.ps-timeline--animate .ps-item:nth-child(5) {
  transition-delay: 0.32s;
}
.ps-timeline--animate .ps-item:nth-child(6) {
  transition-delay: 0.4s;
}
.ps-timeline--animate .ps-item:nth-child(7) {
  transition-delay: 0.48s;
}
.ps-timeline--animate .ps-item:nth-child(8) {
  transition-delay: 0.56s;
}
.ps-timeline--animate .ps-item:nth-child(9) {
  transition-delay: 0.64s;
}
.ps-timeline--animate .ps-item:nth-child(10) {
  transition-delay: 0.72s;
}

/* --------------------------------------------------------------------------
   4. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  /* En móvil, forzar layout izquierda incluso si se eligió "centro" */
  .ps-timeline--center .ps-item {
    width: 100%;
    margin-left: 0 !important;
    align-self: auto !important;
    flex-direction: row !important;
    text-align: left !important;
  }

  .ps-timeline--center .ps-timeline__line {
    left: calc(40px + 7px);
    transform: none;
  }

  .ps-timeline--center .ps-item__meta {
    justify-content: flex-start !important;
  }

  .ps-timeline {
    padding: 24px 20px;
  }

  .ps-timeline--left .ps-timeline__line {
    left: calc(20px + 7px);
  }
}

/* ==========================================================================
   Widget: Pasos de Proceso (Process Steps)
   ========================================================================== */

/* ── Contenedor principal ── */

.ps-steps {
  background-color: #ffffff;
  padding: 40px;
  box-sizing: border-box;
  font-family: inherit;
}

/* ── Grid interno ── */

.ps-steps__inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

/* ── Cada paso ── */

.ps-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ── Track: línea — círculo — línea ── */

.ps-step__track {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

/* Líneas laterales (antes y después del círculo) */
.ps-step__line {
  flex: 1;
  height: 2px;
  background-color: #cccccc;
  display: block;
}

.ps-step__line--hidden {
  visibility: hidden; /* ocupa espacio pero no se ve → alinea círculos */
}

/* ── Círculo numerado ── */

.ps-step__circle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #1a73e8;
  color: #ffffff;
  font-size: calc(56px * 0.38);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
  z-index: 1;
}

.ps-step:hover .ps-step__circle {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ── Número dentro del círculo ── */

.ps-step__number {
  font-weight: 700;
  line-height: 1;
}

/* ── Cuerpo de texto ── */

.ps-step__body {
  text-align: center;
  padding: 0 4px;
}

.ps-step__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.ps-step__desc {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.ps-step__desc p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Layout: VERTICAL
   -------------------------------------------------------------------------- */

.ps-steps--vertical .ps-steps__inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.ps-steps--vertical .ps-step {
  flex: none;
  width: 100%;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}

.ps-steps--vertical .ps-step__track {
  flex-direction: column;
  width: auto;
  flex-shrink: 0;
  margin-bottom: 0;
}

.ps-steps--vertical .ps-step__line {
  width: 2px;
  height: 28px;
  flex: none;
}

.ps-steps--vertical .ps-step__body {
  text-align: left;
  padding: 0;
  padding-top: 6px;
  padding-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Animación de entrada (scroll)
   -------------------------------------------------------------------------- */

.ps-steps--animate .ps-step {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.ps-steps--animate .ps-step.ps-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger por paso */
.ps-steps--animate .ps-step:nth-child(1) {
  transition-delay: 0s;
}
.ps-steps--animate .ps-step:nth-child(2) {
  transition-delay: 0.1s;
}
.ps-steps--animate .ps-step:nth-child(3) {
  transition-delay: 0.2s;
}
.ps-steps--animate .ps-step:nth-child(4) {
  transition-delay: 0.3s;
}
.ps-steps--animate .ps-step:nth-child(5) {
  transition-delay: 0.4s;
}
.ps-steps--animate .ps-step:nth-child(6) {
  transition-delay: 0.5s;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  /* Forzar vertical en móvil */
  .ps-steps--horizontal .ps-steps__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .ps-steps--horizontal .ps-step {
    flex: none;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .ps-steps--horizontal .ps-step__track {
    flex-direction: column;
    width: auto;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .ps-steps--horizontal .ps-step__line {
    width: 2px;
    height: 24px;
    flex: none;
  }

  .ps-steps--horizontal .ps-step__body {
    text-align: left;
    padding: 0;
    padding-top: 6px;
    padding-bottom: 16px;
  }

  .ps-steps {
    padding: 24px 20px;
  }
}

/* --- CONTENEDOR GENERAL --- */
.ps-steps-container {
  width: 100%;
  font-family: sans-serif;
}

/* --- ESTILO 1: GRID (MODERNO) --- */
.ps-steps-grid {
  display: grid;
  gap: 0; /* Sin espacio para que los bordes se toquen como en la imagen */
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
}

.ps-step-card {
  padding: 30px;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ps-step-card:last-child {
  border-right: none;
}

.ps-step-icon {
  font-size: 24px;
  margin-bottom: 15px;
}

.ps-step-badge {
  padding: 4px 12px;
  border-radius: 20px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* --- ESTILO 2: LÍNEA (CONECTORES) --- */
.ps-steps-line-wrapper {
  display: flex;
  justify-content: space-between;
  padding: 40px 0;
}

.ps-step-line-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ps-step-track {
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.ps-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  z-index: 2;
  flex-shrink: 0;
}

.ps-line {
  flex-grow: 1;
  height: 2px;
  background-color: #e5e7eb;
}

.ps-hidden {
  visibility: hidden;
}

/* --- COMÚN --- */
.ps-step-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #111827;
}

.ps-step-desc {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
  .ps-steps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .ps-steps-line-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .ps-line {
    display: none;
  }
}

@media (max-width: 767px) {
  .ps-steps-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Widget: checklist
   ========================================================================== */
.ps-checklist-grid {
  display: grid;
  gap: 15px;
  width: 100%;
}

.ps-checklist-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.ps-checklist-item:hover {
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.ps-checklist-icon {
  flex-shrink: 0;
  margin-right: 15px;
  font-size: 24px; /* Tamaño del icono similar a la caja de la imagen */
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-checklist-text {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

/* Ajuste responsive para móviles si se selecciona 2 columnas */
@media (max-width: 767px) {
  .ps-checklist-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Widget: simple-table
   ========================================================================== */
.ps-table-wrapper {
  width: 100%;
  overflow-x: auto;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.ps-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.ps-table thead th {
  text-align: left;
  padding: 20px 25px;
  font-size: 14px;
  font-weight: 700;
  text-transform: capitalize;
  border-bottom: 2px solid #e5e7eb;
}

.ps-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.ps-table tbody tr:last-child td {
  border-bottom: none;
}

.ps-table tbody tr:hover {
  background-color: #f9fafb;
}

.ps-table tbody td {
  padding: 18px 25px;
  font-size: 14px;
  line-height: 1.5;
  vertical-align: top;
}

/* Ajustes responsivos básicos */
@media (max-width: 767px) {
  .ps-table tbody td,
  .ps-table thead th {
    padding: 15px;
  }
}
