/* ==========================================================================
   PÁGINAS DE PRODUCTO (/software/psicologos y /software/electricistas)
   Se cargan después de landing.css y usan sus mismos tokens y botones.
   Cada página fija su color de producto en --producto (body[data-producto]).
   ========================================================================== */

body[data-producto="aletheia"] { --producto: #0D9488; --producto-suave: rgba(13, 148, 136, 0.10); }
body[data-producto="electron"] { --producto: #0284C7; --producto-suave: rgba(2, 132, 199, 0.10); }

.sw-main { padding-top: 120px; }

/* ---------- Cabecera de producto ---------- */
.sw-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
  padding-bottom: 90px;
}

.sw-marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-pill);
  background: var(--producto-suave);
  color: var(--producto);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.sw-marca i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--producto);
  color: #FFFFFF;
  font-size: 0.8rem;
}

.sw-hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.sw-hero p.sw-sub {
  color: var(--text-body);
  font-size: 1.12rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 520px;
}

.sw-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.sw-precio-mini {
  font-size: 0.95rem;
  color: var(--text-body);
}

.sw-precio-mini b {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-pure);
}

/* ---------- Marco de navegador para las capturas ---------- */
.sw-ventana {
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 80px -30px rgba(17, 20, 30, 0.30), 0 12px 30px -16px rgba(17, 20, 30, 0.18);
}

.sw-ventana-barra {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--glass-border);
}

.sw-ventana-barra i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(17, 17, 20, 0.14);
}

.sw-ventana-barra span {
  margin-left: 12px;
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sw-ventana img {
  display: block;
  width: 100%;
  height: auto;
}

.sw-hero .sw-ventana {
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-hero .sw-ventana:hover { transform: none; }

.sw-aviso-demo {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
}

/* ---------- Ventajas en tres columnas ---------- */
.sw-ventajas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 100px;
}

.sw-ventaja {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}

.sw-ventaja i {
  font-size: 1.2rem;
  color: var(--producto);
  margin-bottom: 14px;
  display: block;
}

.sw-ventaja h3 { font-size: 1.08rem; margin-bottom: 8px; }
.sw-ventaja p { color: var(--text-body); font-size: 0.93rem; line-height: 1.55; }

/* ---------- Recorrido por pantallas (filas alternas) ---------- */
.sw-recorrido {
  display: flex;
  flex-direction: column;
  gap: 110px;
  padding-bottom: 110px;
}

.sw-fila {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}

.sw-fila.al-reves { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.sw-fila.al-reves .sw-fila-texto { order: 2; }

.sw-paso {
  font-family: var(--font-code);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--producto);
  margin-bottom: 12px;
  display: block;
}

.sw-fila h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-wrap: balance;
}

.sw-fila p { color: var(--text-body); font-size: 1rem; line-height: 1.65; margin-bottom: 16px; }

.sw-fila ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sw-fila li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-pure);
}

.sw-fila li i { color: var(--producto); margin-top: 4px; }

/* ---------- En el móvil ---------- */
.sw-movil {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
  padding: 56px;
  margin-bottom: 110px;
  border-radius: var(--radius-xl);
  background: var(--bg-subtle);
}

.sw-movil h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 14px; letter-spacing: -0.02em; }
.sw-movil p { color: var(--text-body); line-height: 1.65; max-width: 460px; }

.sw-telefono {
  width: 260px;
  max-width: 100%;
  padding: 10px;
  border-radius: 38px;
  background: #111114;
  box-shadow: 0 30px 60px -24px rgba(17, 20, 30, 0.45);
}

.sw-telefono img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 29px;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
}

/* ---------- Precio y cierre ---------- */
.sw-cierre {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 40px;
  align-items: center;
  padding: 48px;
  margin-bottom: 100px;
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--ink-contrast);
}

.sw-cierre h2 { color: var(--ink-contrast); font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 12px; text-wrap: balance; }
.sw-cierre p { color: rgba(255, 255, 255, 0.75); line-height: 1.6; }

.sw-tarifa {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sw-tarifa .cifra { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: #FFFFFF; }
.sw-tarifa .cifra span { font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
/* Si no cabe al lado de la cifra, baja entero y con su propio interlineado */
.sw-tarifa .cifra > span { display: inline-block; line-height: 1.35; }

/* Formas de pago (mensual, semestral, anual): las enseña js/precios.js si hay más de una con precio */
.sw-planes {
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sw-planes[hidden], .sw-planes button[hidden], .sw-ahorro[hidden] { display: none; }

.sw-planes button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.sw-planes button:hover { color: #FFFFFF; }
.sw-planes button[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); }
.sw-planes button:focus-visible { outline: 2px solid #5EEAD4; outline-offset: 2px; }

.sw-ahorro { margin-top: -4px; font-size: 0.88rem; font-weight: 600; color: #5EEAD4; }
.sw-ahorro i { margin-right: 4px; }

.sw-tarifa .cifra.cambia { animation: sw-cifra 0.32s ease; }

@keyframes sw-cifra {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sw-tarifa .cifra.cambia { animation: none; }
}
.sw-tarifa ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); }
.sw-tarifa li { display: flex; gap: 10px; }
.sw-tarifa li i { color: #5EEAD4; margin-top: 4px; }

.sw-tarifa .btn {
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid #FFFFFF;
  width: 100%;
}

.sw-tarifa .btn:hover { background: #E9E9EC; transform: translateY(-2px); }

.sw-volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 60px;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.92rem;
}

.sw-volver:hover { color: var(--text-pure); }

/* Pie sencillo de las páginas de producto */
.sw-pie {
  padding: 40px 0 50px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sw-pie .container { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
.sw-pie a { color: var(--text-body); text-decoration: none; }
.sw-pie a:hover { color: var(--text-pure); }
.sw-pie nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Pantallas medianas y móvil ---------- */
@media (max-width: 1024px) {
  .sw-hero, .sw-fila, .sw-fila.al-reves, .sw-cierre { grid-template-columns: 1fr; gap: 36px; }
  .sw-fila.al-reves .sw-fila-texto { order: 0; }
  .sw-hero .sw-ventana { transform: none; }
  .sw-ventajas { grid-template-columns: 1fr; }
  .sw-movil { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sw-movil p { margin: 0 auto; }
}

@media (max-width: 768px) {
  .sw-main { padding-top: 96px; }
  .sw-hero { padding-bottom: 60px; }
  .sw-recorrido { gap: 70px; padding-bottom: 70px; }
  .sw-movil, .sw-cierre { padding: 28px 22px; margin-bottom: 70px; }
  .sw-acciones .btn { width: 100%; }
  .sw-aviso-demo { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .sw-hero .sw-ventana { transform: none; transition: none; }
}
