:root {
  --fondo: #0d1017;
  --fondo-2: #151a24;
  --borde: #262d3b;
  --texto: #e9ecf2;
  --texto-suave: #a3abbb;
  --acento: #7b6cff;
  --acento-2: #a598ff;
  --verde: #3ecf8e;
  --rojo: #ff7a7a;
  --madera: #8a5a36;
  --madera-clara: #b07a4c;
  --radio: 14px;
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--fondo);
  color: var(--texto);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.contenedor { width: min(1120px, 100% - 40px); margin-inline: auto; }
.seccion { padding-block: 72px; }
.seccion__bajada { color: var(--texto-suave); margin: -12px 0 32px; max-width: 60ch; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); max-width: 18ch; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 24px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }
.h2-chico { font-size: 1.4rem; margin-bottom: 16px; }
.acento { color: var(--acento-2); }

/* Botones y enlaces */
.boton {
  display: inline-block;
  background: var(--acento);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .15s, background .15s;
}
.boton:hover { background: #6a5af0; transform: translateY(-2px); }
.boton:focus-visible, .enlace:focus-visible, .pieza--vacia:focus-visible, summary:focus-visible {
  outline: 3px solid var(--acento-2);
  outline-offset: 3px;
}
.boton--chico { padding: 9px 18px; font-size: .95rem; }
.boton--grande { padding: 18px 34px; font-size: 1.15rem; }
.enlace { color: var(--acento-2); font-weight: 600; text-decoration: none; }
.enlace:hover { text-decoration: underline; }

/* Barra superior */
.barra {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 16, 23, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}
.barra__fila { display: flex; justify-content: space-between; align-items: center; padding-block: 12px; }
.marca { font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; }

/* Portada */
.hero { padding-block: 96px 72px; }
.etiqueta {
  display: inline-block;
  color: var(--acento-2);
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .9rem;
  margin-bottom: 24px;
}
.hero__bajada { color: var(--texto-suave); font-size: 1.2rem; max-width: 58ch; margin: 24px 0 36px; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }

/* Grillas y tarjetas */
.grilla { display: grid; gap: 20px; }
.grilla--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grilla--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tarjeta {
  background: var(--fondo-2);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 28px;
}
.tarjeta p { color: var(--texto-suave); }
.remate { font-size: 1.3rem; font-weight: 650; margin-top: 36px; }

/* El estante */
.estante-seccion {
  padding-block: 80px;
  background: linear-gradient(180deg, #121722, #0f131c);
  border-block: 1px solid var(--borde);
}
.estante {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  column-gap: 28px;
  row-gap: 56px;
}
.pieza {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 22px;
}
/* La repisa: una tabla de madera debajo de cada pieza */
.pieza::after {
  content: "";
  position: absolute;
  left: -14px; right: -14px; bottom: 0;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--madera-clara), var(--madera) 60%, #5e3b22);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .45);
}
.pieza__foto {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--borde);
  border-bottom: 0;
  background: var(--fondo-2);
}
.pieza__foto img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
a.pieza__foto:hover img { transform: scale(1.03); }
.pieza__foto--icono {
  display: grid;
  place-items: center;
  font-size: 4.5rem;
  background: radial-gradient(circle at 50% 40%, #252c3d, var(--fondo-2) 70%);
}
.pieza__texto {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--fondo-2);
  border: 1px solid var(--borde);
  border-radius: 0 0 10px 10px;
  padding: 20px 22px 22px;
}
.pieza__texto p { color: var(--texto-suave); font-size: .97rem; }
.pieza__texto .enlace { margin-top: 10px; }
.pieza__sello {
  align-self: flex-start;
  color: var(--verde) !important;
  font-size: .8rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; margin-top: 10px; }
.chips li {
  font-size: .8rem;
  color: var(--texto-suave);
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 2px 10px;
}

/* El lugar vacío del estante */
.pieza--vacia {
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  grid-column: 1 / -1;
  min-height: 280px;
  padding: 32px 24px 46px;
  border: 2px dashed #3a4357;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  transition: border-color .2s, background .2s;
}
.pieza--vacia:hover { border-color: var(--acento); background: rgba(123, 108, 255, .06); }
.pieza__signo {
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 2px dashed var(--acento);
  color: var(--acento-2);
  font-size: 2.6rem;
  font-weight: 800;
}
.pieza__pregunta { font-size: 1.35rem; font-weight: 750; line-height: 1.25; max-width: 16ch; }
.pieza__invitacion { color: var(--acento-2); font-weight: 600; }

/* Método */
.pasos { counter-reset: paso; list-style: none; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.pasos li {
  counter-increment: paso;
  position: relative;
  padding: 16px 20px 16px 68px;
  background: var(--fondo-2);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  color: var(--texto-suave);
}
.pasos li strong { color: var(--texto); }
.pasos li::before {
  content: counter(paso);
  position: absolute; left: 18px; top: 50%; translate: 0 -50%;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--acento);
  color: #fff;
  font-weight: 700;
}

/* Temario y preguntas */
.temario, .faq { display: grid; gap: 12px; max-width: 820px; }
details {
  background: var(--fondo-2);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 18px 22px;
}
summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; gap: 14px; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; color: var(--acento-2); font-size: 1.3rem; }
details[open] summary::after { content: "−"; }
summary span { color: var(--acento-2); font-size: .85rem; white-space: nowrap; }
details p { color: var(--texto-suave); margin-top: 10px; }
.clases { margin-top: 12px; padding-left: 22px; color: var(--texto-suave); display: grid; gap: 4px; }
.clases li::marker { color: var(--acento-2); }

/* Para quién es */
.lista { padding: 0; list-style: none; display: grid; gap: 10px; color: var(--texto-suave); }
.lista li { padding-left: 30px; position: relative; }
.lista li::before { position: absolute; left: 0; font-weight: 800; }
.lista--si li::before { content: "✓"; color: var(--verde); }
.lista--no li::before { content: "✕"; color: var(--rojo); }

/* Cierre */
.cierre {
  text-align: center;
  padding-block: 96px;
  background: radial-gradient(ellipse at 50% 0%, rgba(123, 108, 255, .22), transparent 70%);
  border-top: 1px solid var(--borde);
}
.cierre h2 { max-width: 22ch; margin: 0 auto 32px; }
.cierre__nota { color: var(--texto-suave); font-size: .9rem; margin-top: 16px; }
.pie { padding-block: 28px; color: var(--texto-suave); font-size: .9rem; border-top: 1px solid var(--borde); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-block: 64px 48px; }
  .seccion { padding-block: 56px; }
  .pieza::after { left: -8px; right: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
