/* estilos.css — modulo /recomendados/
   Identidad visual compartida con Doctor Electro (donde vive este modulo):
   mismos tokens de color oscuro/cian y misma tipografia (Rajdhani para
   titulares, Exo 2 para texto) que el resto de la app. Las fuentes se
   cargan via <link> en el <head> de cada pagina, no por @import aqui
   (evita la cadena render-blocking). */

:root {
  --cyan:      #00d4f0;
  --cyan-dim:  rgba(0,212,240,0.10);
  --cyan-glow: rgba(0,212,240,0.20);

  --green:     #00e676;

  --bg:    #0e1d2e;
  --card:  #16283d;

  --border: rgba(0,212,240,0.15);
  --border-strong: rgba(0,212,240,0.28);

  --text:     rgba(240,248,255,0.92);
  --text-dim: rgba(190,218,240,0.50);
  --text-mid: rgba(210,232,250,0.85);

  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

/* Foco de teclado: ver mismo comentario en css/style.css del proyecto
   principal. :focus-visible no se activa con click de ratón. */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

html { background: var(--bg); }

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  position: relative;
  min-height: 100vh;
}

/* Fondo ambiente: mismo lenguaje visual que Doctor Electro (rejilla sutil +
   halo radial), para que la tienda se sienta parte de la misma app incluso
   fuera de las tarjetas. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,240,0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,240,0.008) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  top: -10%; left: 50%; transform: translateX(-50%);
  width: 110vw; height: 45vh;
  background: radial-gradient(ellipse at center, rgba(0,100,180,0.055) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.rec-header {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 1.5rem;
  font-size: 0.85rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}
.rec-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 40%, var(--green) 60%, transparent);
  animation: recScan 3.5s linear infinite;
}
.rec-header a { color: var(--text); text-decoration: none; font-weight: 600; }
.rec-header a:hover { color: var(--cyan); }

.rec-contenedor {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 2rem auto 4rem;
  padding: 0 1.2rem;
}

/* ---------- progreso (panel de electrodomestico) ---------- */

.rec-progreso { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.6rem; }
.rec-progreso-badge {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 12px rgba(0,212,240,0.12);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: .95rem; color: var(--cyan);
}
.rec-progreso-cuerpo { flex: 1; min-width: 0; }
.rec-progreso-texto {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.4rem;
}
.rec-panel-progreso { display: flex; gap: 4px; }
.rec-segmento {
  height: 6px;
  flex: 1;
  border-radius: 3px;
  background: var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.rec-segmento--hecho { background: var(--cyan); box-shadow: 0 0 4px rgba(0,212,240,0.25); }
.rec-segmento--actual { background: var(--cyan); box-shadow: 0 0 10px var(--cyan-glow); animation: recPulse 1.6s ease-in-out infinite; }
@keyframes recPulse { 0%,100% { opacity: 1 } 50% { opacity: .55 } }

/* ---------- tarjeta de pregunta ---------- */

.rec-tarjeta-pregunta {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.03);
  padding: 1.9rem 1.7rem;
  position: relative;
  overflow: hidden;
}
.rec-tarjeta-pregunta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 40%, var(--green) 60%, transparent);
  animation: recScan 3.5s linear infinite;
}

.rec-pregunta-texto {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.28;
  color: #fff;
  margin: 0.2rem 0 0.4rem;
  text-shadow: 0 0 20px rgba(0,212,240,0.10);
}

.rec-ayuda { font-size: 0.85rem; color: var(--text-dim); margin: 0 0 0.8rem; }
.rec-error { color: #ff9d9d; min-height: 1.1em; font-size: 0.82rem; margin: 0 0 0.4rem; }

/* ---------- tarjetas seleccionables ---------- */

.rec-grid-tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}

.rec-tarjeta-opcion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.rec-tarjeta-opcion:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,212,240,0.10);
}
.rec-tarjeta-opcion:active { transform: translateY(-1px) scale(0.98); }
.rec-tarjeta-opcion:disabled { cursor: default; opacity: 0.55; }
.rec-tarjeta-opcion:disabled:hover { transform: none; box-shadow: none; }

.rec-tarjeta-seleccionada {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 0 3px rgba(0,212,240,0.12), 0 8px 20px rgba(0,212,240,0.14);
  opacity: 1 !important;
}

.rec-tarjeta-icono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,212,240,0.06);
  font-size: 1.5rem; line-height: 1;
  filter: drop-shadow(0 0 6px rgba(0,212,240,0.30));
  transition: background 0.15s ease;
}
.rec-tarjeta-seleccionada .rec-tarjeta-icono { background: rgba(0,212,240,0.14); }
.rec-tarjeta-etiqueta { font-size: 0.9rem; font-weight: 500; color: var(--text-mid); }

.rec-tarjeta-opcion--multiple { position: relative; }

/* ---------- botones grandes (si/no) ---------- */

.rec-fila-botones-grandes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.2rem 0;
}
.rec-boton-grande {
  padding: 1.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.rec-boton-grande:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,212,240,0.10); }
.rec-boton-grande:active { transform: translateY(0) scale(0.98); }
.rec-boton-grande:disabled { cursor: default; }
.rec-boton-grande--seleccionado {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 0 3px rgba(0,212,240,0.12), 0 8px 20px rgba(0,212,240,0.14);
  opacity: 1 !important;
}

/* ---------- inputs de respaldo (tipos no visuales) ---------- */

.rec-input, select {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  margin: 0.9rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}
.rec-input:focus, select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.rec-fila-botones { display: flex; gap: 0.7rem; margin-top: 0.8rem; }

.rec-boton {
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.1s ease;
}
.rec-boton-principal { background: var(--cyan); color: #032230; box-shadow: 0 6px 16px rgba(0,212,240,0.20); }
.rec-boton-principal:hover { background: #33ddf5; transform: translateY(-1px); }
.rec-boton-principal:active { transform: translateY(0) scale(0.98); }
.rec-boton-secundario { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.rec-boton-secundario:hover { color: var(--text); border-color: var(--border-strong); }

/* ---------- transicion entre pantallas ---------- */

.rec-fade-in { animation: recFadeIn 0.35s ease both; }
@keyframes recFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .rec-fade-in { animation: none; }
  .rec-tarjeta-opcion, .rec-boton-grande { transition: none; }
}
/* ---------- pantalla final (premium) ---------- */

.rec-resultado { display: flex; flex-direction: column; gap: 1.4rem; }

/* Hero */
.rec-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2.2rem 1.6rem 1.8rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.36);
}
.rec-hero-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 40%, var(--green) 60%, transparent);
  animation: recScan 3.5s linear infinite;
}
@keyframes recScan { 0%,100% { opacity: .35 } 50% { opacity: .85 } }
.rec-hero-check {
  display: inline-flex; width: 60px; height: 60px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 6px rgba(0,212,240,0.06), 0 0 22px rgba(0,212,240,0.20);
  margin-bottom: 1rem;
  animation: recPop .5s ease both;
}
@keyframes recPop { from { transform: scale(.6); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.rec-hero-titulo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.55rem; font-weight: 700; line-height: 1.15;
  color: #fff; margin: 0 0 .4rem;
}
.rec-hero-sub { color: var(--text-dim); font-size: .92rem; line-height: 1.5; margin: 0 auto; max-width: 32ch; }

/* Etiqueta de seccion */
.rec-seccion-label { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.rec-seccion-label span {
  font-family: 'Rajdhani', sans-serif; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-mid); flex-shrink: 0;
}
.rec-seccion-label i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }

/* Perfil */
.rec-perfil-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .7rem;
}
.rec-perfil-tarjeta {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .85rem 1rem .85rem .9rem; background: var(--card);
}
.rec-perfil-tarjeta::before {
  content: ''; position: absolute; left: 0; top: .85rem; bottom: .85rem; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--cyan);
}
.rec-perfil-etiqueta {
  font-family: 'Rajdhani', sans-serif; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim);
  margin: 0 0 .25rem;
}
.rec-perfil-valor { font-size: .98rem; font-weight: 600; color: var(--text); margin: 0; }
.rec-perfil-nota { font-size: .78rem; color: var(--green); margin: .3rem 0 0; }

/* Acciones */
.rec-cta-hero {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.05rem 1.15rem; border-radius: 14px; text-decoration: none;
  background: linear-gradient(135deg, #d4700e, #f08800);
  box-shadow: 0 8px 22px rgba(240,136,0,0.22);
  transition: transform .15s ease, box-shadow .15s ease;
  margin-bottom: .7rem;
}
.rec-cta-hero:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(240,136,0,0.34); }
.rec-cta-hero-ico { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.rec-cta-hero-tx { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rec-cta-hero-t { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.04rem; color: #2a1400; line-height: 1.2; }
.rec-cta-hero-s { font-size: .78rem; color: rgba(42,20,0,.72); line-height: 1.35; margin-top: .15rem; }
.rec-cta-hero-badge {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .64rem; letter-spacing: .04em;
  text-transform: uppercase; color: #2a1400; background: rgba(255,255,255,.6);
  padding: .2rem .5rem; border-radius: 999px; flex-shrink: 0;
}
.rec-cta-hero-arrow { font-size: 1.25rem; color: #2a1400; flex-shrink: 0; }

.rec-cta-sec-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.rec-cta-sec {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem .7rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--card);
  text-decoration: none; color: var(--text);
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .9rem;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.rec-cta-sec:hover { border-color: var(--cyan); transform: translateY(-1px); background: var(--cyan-dim); }
.rec-cta-sec-ico { font-size: 1.05rem; }
.rec-cta-sec-badge { color: var(--cyan); font-size: .85rem; }
.rec-acciones-off {
  padding: 1rem 1.1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text-dim); font-size: .85rem; text-align: center; line-height: 1.5;
}

/* Franja de confianza */
.rec-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
  padding: .95rem .6rem;
  background: rgba(0,212,240,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.rec-trust-item {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center;
  font-size: .72rem; color: var(--text-mid); line-height: 1.3;
}
.rec-trust-ico { font-size: 1.2rem; }

/* Aviso legal (desplegable) */
.rec-legal {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: rgba(14,29,46,0.6); padding: 0 1.1rem;
}
.rec-legal-sum {
  cursor: pointer; list-style: none; padding: .8rem 0;
  font-family: 'Rajdhani', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim);
  display: flex; align-items: center; gap: .5rem;
}
.rec-legal-sum::-webkit-details-marker { display: none; }
.rec-legal-sum::before { content: '+'; color: var(--cyan); font-weight: 700; font-size: .95rem; }
.rec-legal[open] .rec-legal-sum::before { content: '\2013'; }
.rec-legal-items { display: flex; flex-direction: column; gap: .5rem; padding: 0 0 1rem; }
.rec-legal-item { font-size: .76rem; color: var(--text-dim); line-height: 1.6; margin: 0; display: flex; gap: .45rem; }
.rec-legal-item::before { content: '\00b7'; flex-shrink: 0; color: var(--text-dim); }

@media (prefers-reduced-motion: reduce) {
  .rec-hero-accent { animation: none; }
  .rec-hero-check { animation: none; }
  .rec-cta-hero, .rec-cta-sec { transition: none; }
}
@media (max-width: 360px) {
  .rec-trust { grid-template-columns: 1fr; }
}
