/* ============================================================
   OGCLEAN · SECCIONES NUEVAS DEL INICIO (versión WordPress)
   Franja de confianza y «Sobre OGCLEAN + Preguntas frecuentes».
   Mismos tokens, letras y líneas del sitio; íconos de trazo 1.7 como el resto.
   ============================================================ */

/* ---------------- Franja de confianza ---------------- */
.confianza {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.confianza__lista {
  list-style: none;
  display: grid;
  /* Cuatro puntos bajo el hero (5-nov, referencia del dueño): 2×2 en celular, 4 en fila en pantallas anchas */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 0;
  padding-block: clamp(1.2rem, 3vw, 1.9rem);
}
.confianza.is-dark { background: var(--ink); border-bottom-color: color-mix(in srgb, var(--bone) 12%, transparent); }
.confianza__item:nth-child(odd) { border-left: 0; padding-left: 0; }
@media (min-width: 900px) {
  .confianza__lista { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .confianza__item:nth-child(odd) { border-left: 1px solid var(--line); padding-left: clamp(0.8rem, 2vw, 1.6rem); }
  .confianza__item:first-child { border-left: 0; padding-left: 0; }
}
.confianza__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-inline: clamp(0.8rem, 2vw, 1.6rem);
  border-left: 1px solid var(--line);
}
.confianza__item:first-child { border-left: 0; padding-left: 0; }
.confianza__item svg { width: 30px; height: 30px; flex: 0 0 auto; color: var(--red); }
.confianza__titulo {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
  line-height: 1.1;
}
.confianza__texto {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.confianza__texto a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.confianza__texto a:hover { color: var(--red); }

@media (max-width: 479.98px) {
  .confianza__item { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
  .confianza__item svg { width: 26px; height: 26px; }
}

/* ---------------- Preguntas frecuentes ----------------
   El bloque «Sobre OGCLEAN» se quitó (dueño, 10-nov). En escritorio el título queda a la izquierda
   y la lista a la derecha, con las mismas proporciones de antes. */
.preguntas__grid { display: grid; }
@media (min-width: 960px) {
  .faq {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(2.6rem, 6vw, 5rem);
  }
  .faq > .eyebrow, .faq > .h2 { grid-column: 1; }
  .faq > .h2 { align-self: start; }
  .faq > .faq__lista { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}

.sobre { display: grid; gap: 1.1rem; align-content: start; }
.sobre > p:not(.eyebrow):not(.lead) { color: var(--muted); line-height: 1.6; max-width: 52ch; }
.sobre b { color: var(--fg); font-weight: 700; }

.faq { display: grid; gap: 1.1rem; align-content: start; }
.faq__lista { margin-top: 0.6rem; border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem);
  line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--red);
}
.faq__item[open] summary::after { content: '−'; }
.faq__item summary:hover { color: var(--red); }
.faq__item summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.faq__resp { padding: 0 0 1.25rem; max-width: 62ch; }
.faq__resp p { color: var(--muted); line-height: 1.6; }
.faq__resp a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.faq__resp a:hover { color: var(--red); }

/* ---------------- Reseñas (inicio) ----------------
   Comentarios de WordPress que el dueño aprueba (plugin → inc/resenas.php). Lista de tarjetas y,
   al lado en escritorio, el formulario para dejar la tuya. */
.resenas { border-top: 1px solid var(--line); }
.resenas__grid { display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); }
.resenas__cabeza .h2 { margin-top: 0.4rem; }
.resenas__resumen { margin-top: 0.9rem; color: var(--muted); }
.resenas__resumen b { color: var(--fg); font-size: 1.1rem; }
.estrellas { color: var(--red); letter-spacing: 0.12em; font-size: 1.05rem; line-height: 1; }
.resenas__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; align-content: start; }
.resena {
  display: grid;
  gap: 0.7rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface, #fff);
}
.resena__texto { line-height: 1.55; overflow-wrap: anywhere; }
.resena__autor { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.5rem; font-size: 0.92rem; color: var(--muted); }
.resena__autor b { color: var(--fg); }
.resena__autor span { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; }
.resenas__vacio { color: var(--muted); max-width: 46ch; align-self: start; }

.resena-form {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface, #fff);
}
.resena-form__titulo { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 1.15rem; }
.resena-form__gracias { padding: 0.8rem 1rem; border-radius: 10px; background: color-mix(in srgb, #2e7d4f 12%, transparent); color: #1f5c38; font-weight: 600; }
.resena-form__estrellas { border: 0; margin: 0; padding: 0; }
.resena-form__estrellas legend { margin-bottom: 0.4rem; font-size: 0.92rem; color: var(--muted); }
/* 5 → 1 en el código y de derecha a izquierda en pantalla: al pasar o elegir una se pintan también las de su izquierda */
.resena-form__fila { display: inline-flex; flex-direction: row-reverse; gap: 0.15rem; }
.resena-form__fila input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.resena-form__fila label { display: grid; place-content: center; width: 44px; height: 44px; font-size: 1.9rem; line-height: 1; color: var(--line-strong); cursor: pointer; transition: color 0.15s ease, transform 0.15s ease; }
.resena-form__fila input:checked ~ label,
.resena-form__fila label:hover,
.resena-form__fila label:hover ~ label { color: var(--red); }
.resena-form__fila input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.resena-form__campo { display: grid; gap: 0.35rem; font-size: 0.92rem; color: var(--muted); }
.resena-form__campo small { font-size: inherit; opacity: 0.8; }
.resena-form__campo input,
.resena-form__campo textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 1rem; /* 16 px: el celular no hace zoom al escribir */
}
.resena-form__campo textarea { resize: vertical; min-height: 110px; }
.resena-form__campo input:focus,
.resena-form__campo textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.resena-form__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.resena-form .btn { justify-self: start; }
.resena-form__nota { font-size: 0.85rem; color: var(--muted); }

/* Fotos de la reseña (10-nov): miniaturas en la tarjeta, campo para subirlas y visor */
.resena__fotos { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.resena__foto { display: block; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.resena__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.resena__foto:hover img { transform: scale(1.05); }
.resena__foto:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.resena-form__subir { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; justify-self: start; min-height: 46px; padding: 0.6rem 1.1rem; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--fg); font-size: 0.95rem; cursor: pointer; }
.resena-form__subir:hover { border-color: var(--red); }
.resena-form__subir:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.resena-form__subir span { color: var(--red); font-size: 1.25rem; line-height: 1; }
.resena-form__campo .resena-form__subir input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.resena-form__previas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.resena-form__previas:empty { display: none; }
.resena-form__previa { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.resena-form__previa img { width: 100%; height: 100%; object-fit: cover; }
.resena-form__quitar { position: absolute; top: 3px; right: 3px; display: grid; place-content: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(12, 10, 9, 0.72); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.resena-form__aviso { font-size: 0.85rem; color: var(--red); }
.resena-form__aviso:empty { display: none; }
.resena-visor { padding: 0; border: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.resena-visor::backdrop { background: rgba(12, 10, 9, 0.86); }
.resena-visor img { display: block; max-width: min(92vw, 900px); max-height: 86vh; width: auto; height: auto; border-radius: 10px; }
.resena-visor__cerrar { position: fixed; top: 14px; right: 14px; display: grid; place-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bone); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }

@media (min-width: 960px) {
  .resenas__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); align-items: start; column-gap: clamp(2rem, 4vw, 3.5rem); }
  .resenas__cabeza { grid-column: 1 / -1; }
  .resenas__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resena-form { position: sticky; top: 6rem; }
}
