/* ==========================================================================
   Erwan 3D Studios · portada (index.html)
   Solo la carga la home, detrás de style.css. Usa los mismos tokens (--surface,
   --line, --blue-ink...) para que no parezca otra web. Nada de animaciones en
   bucle: lo único que se mueve es el hover (transform) y el .reveal de siempre.
   Si tocas este archivo, sube el ?v= del <link> en index.html.

   Decisiones (repaso con la skill impeccable, 27-sep-2026): sin cejas en
   mayúsculas encima de cada sección, sin cifras gigantes tipo SaaS, sin iconos
   encima de cada título y sin cajas con raya de color a un lado. Las cifras
   van en una línea; el resto se ordena con titulares, filetes y fotos reales.
   6-oct-2026: Erwan pidió animaciones en «Lo que hago»; esa sección sí lleva
   bucles (ver su bloque), siempre con transform/opacity.
   ========================================================================== */

/* --- Cabecera de sección, alineada a la izquierda -------------------------
   .section-head centra todo con !important (style.css); aquí va aparte para
   que las secciones de la home lean de izquierda a derecha y, si hace falta,
   con el botón de «ver todo» a la derecha. */
.cab {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.cab h2 { margin: 0 0 16px; }
.cab p {
  font-size: clamp(16.5px, 1.5vw, 19px);
  color: var(--ink-muted);
  line-height: 1.6;
}
.cab p a,
.sobre__marcas a {
  color: var(--blue-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.cab p a:hover,
.sobre__marcas a:hover { color: var(--accent-hover); }

.cab--fila {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}
.cab--fila > div { max-width: 680px; }
.cab--fila > .btn { flex: none; }

/* --- Hero: la línea de cifras --------------------------------------------- */
.prueba {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  max-width: 860px;
  margin: clamp(36px, 4.5vw, 56px) 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.74);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.prueba > span { white-space: nowrap; }
.prueba > span + span::before {
  content: "·";
  margin: 0 14px;
  color: rgba(255, 255, 255, 0.35);
}
.prueba b {
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.prueba__redes {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.prueba__redes a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prueba__redes a:hover { color: #fff; text-decoration-color: currentColor; }
/* Por debajo de 1000 px la línea ya no cabe entera: dos columnas, sin puntos */
@media (max-width: 999px) {
  .prueba {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    max-width: 420px;
    font-size: 14px;
  }
  .prueba > span { white-space: normal; }
  .prueba > span + span::before { content: none; }
  .prueba b { display: block; font-size: 20px; letter-spacing: -0.01em; }
}
/* En móvil el hero va centrado (style.css): la rejilla también */
@media (max-width: 760px) {
  .prueba { margin-inline: auto; }
}

/* En móvil los botones flotantes (YouTube e Instagram) caían encima de las
   cifras. main.js pone body.con-cifras mientras se ven y aquí se apartan;
   en cuanto bajas, vuelven. */
@media (max-width: 760px) {
  .float-social {
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0s;
  }
  body.con-cifras .float-social {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
}

/* --- Lo que hago: cabecera en dos columnas y rejilla de cinco tarjetas -----
   6-oct-2026: Erwan veía la versión anterior (tarjeta + lista de texto) «muy
   sosa» y desordenada. Aquí sí hay bucles (vídeo, buscador, barrido, cinta),
   pero todos con transform/opacity, parados cuando la tarjeta no se ve
   (hago.js pone .fuera) y quietos con movimiento reducido (style.css). */
.hago-cab {
  display: grid;
  gap: 20px 64px;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
/* En escritorio el titular manda en su columna (cada línea entera) y el texto
   ocupa lo que queda a la derecha */
@media (min-width: 1000px) {
  .hago-cab { grid-template-columns: max-content minmax(0, 1fr); align-items: end; gap: 20px 72px; }
  .hago-cab__linea { white-space: nowrap; }
}
.hago-cab h2 {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hago-cab__linea { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hago-cab__linea > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out-fuerte);
}
.hago-cab__tono > span {
  background: linear-gradient(90deg, var(--blue-ink) 0%, var(--accent) 45%, var(--green-ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition-delay: 0.1s;
}
.hago-cab p {
  margin: 0;
  max-width: 560px;
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease) 0.25s, transform 0.9s var(--ease) 0.25s;
}
/* .reveal ya funde la caja entera: aquí entran las dos líneas y luego el texto */
.hago-cab.is-visible .hago-cab__linea > span,
.hago-cab.is-visible p { transform: none; opacity: 1; }

/* La rejilla: el canal ocupa dos columnas arriba y el resto va de una en una */
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__item--canal { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .bento__item--canal { grid-column: span 2; }
}

.bento__item {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
/* Entrada escalonada (--i en el HTML). Retraso solo en la entrada: el borde y
   la sombra del hover reaccionan al momento */
.bento__item.reveal {
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 0.8s var(--ease) calc(var(--i, 0) * 90ms),
    transform 0.9s var(--ease-out-fuerte) calc(var(--i, 0) * 90ms),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.bento__item.reveal.is-visible { transform: none; }

/* Foco de luz y filo que siguen al ratón (hago.js pone --mx y --my) */
.bento__item::before,
.bento__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.bento__item::before {
  z-index: 3;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(77, 184, 205, 0.10), transparent 62%);
}
.bento__item::after {
  z-index: 4;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(133, 210, 228, 0.7), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.bento__visual {
  position: relative;
  height: 210px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: #0f1419;
}
.bento__cuerpo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 26px;
}
.bento__cuerpo h3 {
  margin: 0 0 8px;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.bento__cuerpo p {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.bento__ir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--blue-ink);
}
.bento__ir::after { content: "→"; order: 1; transition: transform 0.25s var(--ease); }
.bento__n {
  order: 2;
  margin-left: 4px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(77, 184, 205, 0.12);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-ink);
  font-variant-numeric: tabular-nums;
}

/* --- 1. El canal: vídeo a sangre con el texto encima ---------------------- */
.bento__item--canal {
  min-height: 480px;
  justify-content: flex-end;
  background: #0a0d10;
}
.canal__fondo { position: absolute; inset: 0; z-index: -1; }
.canal__fondo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-out-fuerte);
}
.canal__velo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 9, 12, 0.95) 0%, rgba(7, 9, 12, 0.78) 30%, rgba(7, 9, 12, 0.15) 68%, rgba(7, 9, 12, 0.35) 100%),
    linear-gradient(to right, rgba(7, 9, 12, 0.6) 0%, transparent 65%);
}
.canal__chip {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
  background: rgba(10, 13, 17, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.canal__yt { width: 22px; height: 16px; }
.canal__nota {
  position: absolute;
  top: 26px;
  right: 22px;
  max-width: 46%;
  font-size: 12.5px;
  line-height: 1.35;
  text-align: right;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.bento__item--canal .bento__cuerpo {
  flex: none;
  max-width: 620px;
  padding: clamp(24px, 3.4vw, 44px);
}
.canal__firma {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.canal__firma img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  object-fit: cover;
}
.canal__firma b { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.canal__firma small { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.66); }
.bento__item--canal h3 {
  margin-bottom: 12px;
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
}
.bento__item--canal p {
  flex: none;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}
.canal__boton {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #0c0f13;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.canal__boton::after { content: "↗"; transition: transform 0.25s var(--ease); }
/* Barra de avance del bucle, como la de un reproductor (hago.js) */
.canal__progreso {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}
.canal__progreso span {
  display: block;
  height: 100%;
  background: #ff0033;
  transform: scaleX(0);
  transform-origin: left;
}

/* --- 2. Por escrito: el buscador que escribe solo ------------------------- */
.buscador {
  padding: 22px 22px 0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(77, 184, 205, 0.12), transparent 60%),
    #0f1419;
}
.buscador__caja {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(133, 210, 228, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 4px rgba(77, 184, 205, 0.08);
  font-size: 15px;
  color: var(--ink);
}
.buscador__caja svg { width: 17px; height: 17px; flex: none; color: var(--ink-faint); }
.buscador__cursor {
  width: 2px;
  height: 18px;
  margin-left: -8px;
  background: var(--accent);
  animation: hago-parpadeo 1s steps(1) infinite;
}
@keyframes hago-parpadeo { 50% { opacity: 0; } }
.buscador__grupo {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.buscador__grupo li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-soft);
  min-width: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease-out-fuerte);
}
.buscador__grupo.is-on li { opacity: 1; transform: none; }
.buscador__grupo.is-on li:nth-child(2) { transition-delay: 0.08s; }
.buscador__grupo.is-on li:nth-child(3) { transition-delay: 0.16s; }
.buscador__grupo li > span:last-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.buscador__tipo {
  flex: none;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 0, 51, 0.16);
  font-size: 11px;
  font-weight: 600;
  color: #ff8a9b;
}
.buscador__tipo--lectura { background: rgba(87, 177, 132, 0.18); color: var(--green-ink); }

/* --- 3. Trucos: antes y después con barrido (solo transform) --------------- */
.comparar__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.comparar__ahora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translateX(50%);
  animation: hago-barrido 7s var(--ease) infinite;
}
.comparar__ahora .comparar__img {
  transform: translateX(-50%);
  animation: hago-barrido-contra 7s var(--ease) infinite;
}
/* La línea vive en una caja del ancho de la foto con el mismo recorrido que
   la capa de «ahora»; la raya y el tirador van en su borde izquierdo */
.comparar__linea {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: translateX(50%);
  animation: hago-barrido 7s var(--ease) infinite;
}
.comparar__linea::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
}
.comparar__linea::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0f13' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
@keyframes hago-barrido {
  0%, 8%    { transform: translateX(50%); }
  32%, 46%  { transform: translateX(12%); }
  70%, 84%  { transform: translateX(86%); }
  100%      { transform: translateX(50%); }
}
@keyframes hago-barrido-contra {
  0%, 8%    { transform: translateX(-50%); }
  32%, 46%  { transform: translateX(-12%); }
  70%, 84%  { transform: translateX(-86%); }
  100%      { transform: translateX(-50%); }
}
.comparar__etq {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(10, 13, 17, 0.7);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.comparar__etq--ahora { left: auto; right: 14px; background: var(--accent); color: #062029; }
.comparar__pie {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px 14px 10px;
  background: linear-gradient(to top, rgba(7, 9, 12, 0.85), transparent);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

/* --- 4. Herramientas: los tres carteles en abanico ------------------------- */
.abanico {
  background:
    radial-gradient(70% 90% at 50% 100%, rgba(77, 184, 205, 0.16), transparent 70%),
    #0f1419;
}
.abanico__carta {
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: 136px;
  aspect-ratio: 4 / 5;
  height: auto;
  margin-left: -68px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
  transform: translateX(var(--x)) rotate(var(--r));
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease-out-fuerte);
  animation: hago-flota 5s ease-in-out infinite;
}
.abanico__carta:nth-child(1) { --x: -96px; --r: -12deg; animation-delay: -1.2s; }
.abanico__carta:nth-child(2) { --x: 0px;   --r: 0deg;   z-index: 1; width: 150px; margin-left: -75px; bottom: -18px; animation-delay: -2.6s; }
.abanico__carta:nth-child(3) { --x: 96px;  --r: 12deg;  animation-delay: -0.4s; }
@keyframes hago-flota {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}
/* Al entrar la tarjeta, las cartas se abren desde el centro */
.bento__item--herr.reveal:not(.is-visible) .abanico__carta { transform: translateX(0) rotate(0deg); }

/* --- 5. Mi taller: dos cintas de productos en sentidos contrarios ---------- */
.cinta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: #0f1419;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.cinta__fila { overflow: hidden; }
.cinta__pista {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: hago-cinta 30s linear infinite;
}
.cinta__fila--vuelta .cinta__pista { animation-direction: reverse; animation-duration: 34s; }
.cinta__pista img {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}
/* 12 px de hueco tras la última foto: así la segunda mitad empieza justo donde la primera */
.cinta__pista { padding-right: 12px; }
@keyframes hago-cinta { to { transform: translateX(-50%); } }

/* Fuera de pantalla no se mueve nada */
.bento__item.fuera *,
.bento__item.fuera *::before,
.bento__item.fuera *::after { animation-play-state: paused; }

/* --- Hover (solo con ratón) ----------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .bento__item:hover { border-color: var(--line); box-shadow: var(--shadow-md); }
  .bento__item:hover::before,
  .bento__item:hover::after { opacity: 1; }
  .bento__item:hover .bento__ir::after { transform: translateX(4px); }
  .bento__item--canal:hover .canal__fondo video { transform: scale(1.06); }
  .bento__item--canal:hover .canal__boton::after { transform: translate(2px, -2px); }
  .bento__item--herr:hover .abanico__carta:nth-child(1) { transform: translateX(-118px) rotate(-17deg); }
  .bento__item--herr:hover .abanico__carta:nth-child(2) { transform: translateY(-12px); }
  .bento__item--herr:hover .abanico__carta:nth-child(3) { transform: translateX(118px) rotate(17deg); }
  .cinta__pista img { transition: transform 0.3s var(--ease); }
  .bento__item--taller:hover .cinta__pista img { transform: scale(1.06); }
}

@media (max-width: 639px) {
  .bento__item--canal { min-height: 520px; }
  .canal__nota { display: none; }
  .bento__visual { height: 200px; }
}

/* --- Las tres impresoras -------------------------------------------------- */
.maquinas {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.maquina {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.maquina__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--grad-card);
}
.maquina__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.maquina__origen {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: rgba(10, 12, 15, 0.84);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.maquina__cuerpo {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 26px;
}
.maquina__cuerpo h3 {
  font-size: clamp(21px, 2vw, 24px);
  margin: 0 0 6px;
}
.maquina__ficha {
  margin-bottom: 14px;
  font-size: 13.5px !important;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-faint) !important;
}
.maquina__cuerpo > p:not(.maquina__ficha) {
  color: var(--ink-muted);
  font-size: 15.5px;
  flex: 1;
}
.maquina__enlaces {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 2px;
}
.maquina__enlaces a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  color: var(--blue-ink);
  font-size: 15px;
  font-weight: 500;
}
.maquina__enlaces a::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}
.maquina__enlaces a:hover { color: var(--accent-hover); }
.maquina__enlaces a:hover::after { transform: translateX(4px); }

/* --- Lo más visto: la cifra de visualizaciones en la tarjeta --------------- */
.visto .post-card__media { aspect-ratio: 16 / 9; }   /* la miniatura de YouTube entera */
.visto .post-card__body { padding: 20px 20px 22px; }
.visto .post-card__title { font-size: 17.5px; }
.visto .post-card__excerpt { font-size: 14.5px; }
.visto__vistas {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-ink);
  font-variant-numeric: tabular-nums;
}
.visto__vistas svg { width: 15px; height: 15px; flex: none; }
@media (min-width: 1100px) {
  .grid--4.visto { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- Herramientas: titular en dos tonos (como el del hero) ------------------
   Las tarjetas, los bucles y el reproductor de clips están en herramientas.css,
   que la home carga detrás de este archivo. Hasta el 28-sep aquí iban .calc-cab
   y .clips (la cabecera de la calculadora con sus tres clips). */
.cab__tono { display: block; color: var(--blue-ink); }
#herramientas-feature .cab h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }

/* --- Temas de Aprende: tarjetas con foto real ------------------------------
   Cada tarjeta es un enlace al tema dentro de /blog/. La foto (fotograma de
   un vídeo del canal) va de fondo con un velo abajo para que el texto se lea. */
.temas {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1100px) {
  .temas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tema {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 10 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.tema__foto {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-fuerte);
}
.tema::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(8, 10, 13, 0) 0%,
    rgba(8, 10, 13, 0.30) 34%,
    rgba(8, 10, 13, 0.86) 72%,
    rgba(8, 10, 13, 0.94) 100%);
}
.tema::after {                 /* el filo de la tarjeta, por encima de la foto */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.tema__cuerpo {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 18px 18px 17px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.tema__n {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--blue-ink);
  font-variant-numeric: tabular-nums;
}
.tema__titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.2;
  color: #fff;
}
.tema__titulo::after {
  content: "→";
  font-size: 0.85em;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.tema__texto {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
}
@media (hover: hover) and (pointer: fine) {
  .tema:hover .tema__foto { transform: scale(1.05); }
  .tema:hover .tema__titulo::after { opacity: 1; transform: none; }
}
.tema:focus-visible { outline-offset: 4px; }
@media (max-width: 639px) {
  .temas { gap: 12px; }
  .tema { aspect-ratio: 1 / 1; }
  .tema__cuerpo { padding: 12px 12px 11px; gap: 3px; }
  .tema__texto { display: none; }
  .tema__titulo { font-size: 16.5px; }
}

/* --- Sobre ----------------------------------------------------------------- */
#sobre .split p { margin-bottom: 16px; }
.sobre__marcas {
  font-size: 16px !important;
  color: var(--ink-muted) !important;
}
/* .hero__actions centra por defecto: aquí va a la izquierda, con su texto */
.sobre__acciones { justify-content: flex-start; }

/* --- Preguntas frecuentes ------------------------------------------------- */
.preguntas {
  display: grid;
  gap: 32px clamp(32px, 6vw, 88px);
  align-items: start;
}
@media (min-width: 960px) {
  .preguntas { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .preguntas .cab { position: sticky; top: calc(var(--nav-h, 84px) + 32px); margin-bottom: 0; }
}
.preguntas__lista .faq-item { margin-bottom: 10px; }
.preguntas__lista .faq-item summary {
  padding: 18px 22px;
  font-size: 16.5px;
  line-height: 1.35;
}
.preguntas__lista .faq-item summary:hover { color: var(--blue-ink); }
.preguntas__lista .faq-item p {
  padding: 0 22px 20px;
  font-size: 15.5px;
  line-height: 1.65;
}
.preguntas__lista .faq-item a {
  color: var(--blue-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* --- Tableta (640-1099 px): que ninguna rejilla deje una tarjeta sola ------ */
@media (min-width: 640px) and (max-width: 1099px) {
  .grid--4.visto,
  .temas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 999px) {
  /* Tres impresoras en dos columnas: la tercera ocupa la fila entera, en horizontal */
  .maquinas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .maquina:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .maquina:last-child:nth-child(odd) .maquina__media { width: 50%; flex: none; aspect-ratio: auto; min-height: 100%; }
  /* Trucos: con dos columnas el tercero se quedaba solo; están todos en Aprende */
  #trucos .grid--3 > :nth-child(3) { display: none; }
}
