/* ORDEN 0212 (etapa 4) — los seis bloques de confianza de la ficha.
   Prefijo hcy- para no chocar con el tema de la tienda.
   Móvil primero: todo se lee en un teléfono y se usa con el teclado. */

.hcy-w-emocional,
.hcy-w-comparativa,
.hcy-w-lifestyle,
.hcy-w-pestanas,
.hcy-w-faq,
.hcy-w-resenas {
    margin: 28px 0;
}

/* El texto que sólo lee el lector de pantalla (no ocupa lugar en pantalla). */
.hcy-solo-lector {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* -------------------------------------------------------------------------
   W15 — bloque emocional
   ------------------------------------------------------------------------- */
.hcy-w-emocional {
    display: grid;
    gap: 16px;
    align-items: center;
    padding: 20px;
    border-radius: 18px;
    background: #f7f5f2;
}
.hcy-w-emocional--con-imagen { grid-template-columns: 1fr; }
.hcy-w-emocional-titulo { margin: 0 0 10px; font-size: 24px; line-height: 1.2; font-weight: 800; }
.hcy-w-emocional-lineas { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hcy-w-emocional-lineas li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.45; }
.hcy-w-emocional-lineas li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    color: #16a34a; font-weight: 800;
}
.hcy-w-emocional-img {
    width: 100%; height: auto;
    border-radius: 14px;
    display: block;
}

/* -------------------------------------------------------------------------
   W16 — tabla comparativa de versiones
   ------------------------------------------------------------------------- */
.hcy-w-comparativa-titulo { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.hcy-cmp-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .08);
}
.hcy-cmp-scroll:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.hcy-cmp {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    font-size: 14px;
}
.hcy-cmp th,
.hcy-cmp td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.hcy-cmp thead th {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: #f3f4f6;
    color: #374151;
}
.hcy-cmp-item {
    text-align: left;
    font-weight: 600;
    white-space: normal;
}
.hcy-cmp-celda-vacia { width: 40%; }

/* La versión destacada: color fuerte y tildes blancos. */
.hcy-cmp .is-destacada {
    background: #111;
    color: #fff;
    font-weight: 800;
}
.hcy-cmp .is-destacada.is-no { color: rgba(255, 255, 255, .65); }
.hcy-cmp .is-base { color: #6b7280; }
.hcy-cmp-tilde { font-size: 16px; font-weight: 900; color: #16a34a; }
.hcy-cmp .is-destacada .hcy-cmp-tilde { color: #fff; }
.hcy-cmp-x { font-size: 14px; font-weight: 700; color: #9ca3af; }
.hcy-cmp .is-destacada .hcy-cmp-x { color: rgba(255, 255, 255, .55); }

/* En el celular la columna destacada queda FIJA al desplazar de costado. */
@media (max-width: 640px) {
    .hcy-cmp thead th.is-destacada {
        position: sticky;
        right: 0;
        z-index: 3;
        box-shadow: -6px 0 8px -6px rgba(0, 0, 0, .35);
    }
    .hcy-cmp td.is-destacada {
        position: sticky;
        right: 0;
        z-index: 2;
        box-shadow: -6px 0 8px -6px rgba(0, 0, 0, .25);
    }
    .hcy-cmp { min-width: 520px; }
}

/* -------------------------------------------------------------------------
   W17 — bloque lifestyle
   ------------------------------------------------------------------------- */
.hcy-lifestyle-bloque { margin: 0 0 18px; }
.hcy-lifestyle-bloque:last-child { margin-bottom: 0; }
.hcy-lifestyle-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}
.hcy-lifestyle-pie { padding: 12px 2px 0; }
.hcy-lifestyle-titulo { margin: 0 0 6px; font-size: 20px; font-weight: 800; line-height: 1.25; }
.hcy-lifestyle-texto { margin: 0; font-size: 15px; line-height: 1.55; opacity: .85; max-width: 62ch; }
@media (min-width: 768px) {
    .hcy-w-lifestyle--dos .hcy-lifestyle-bloque,
    .hcy-lifestyle-bloque--segundo {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        gap: 20px;
        align-items: center;
    }
}

/* -------------------------------------------------------------------------
   W18 — pestañas informativas
   ------------------------------------------------------------------------- */
.hcy-pestanas-barra {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    margin-bottom: 14px;
}
.hcy-pestanas-boton {
    flex: 0 0 auto;
    min-height: 44px;                /* dedo y teclado: 44 px como pide la guía */
    padding: 10px 14px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.hcy-pestanas-boton.is-activa { color: #111; border-bottom-color: #111; }
.hcy-pestanas-boton:focus-visible { outline: 3px solid #111; outline-offset: -3px; }
.hcy-pestanas-panel { font-size: 15px; line-height: 1.6; white-space: pre-line; }
.hcy-pestanas-panel[hidden] { display: none; }

/* -------------------------------------------------------------------------
   W19 — preguntas frecuentes
   ------------------------------------------------------------------------- */
.hcy-w-faq-titulo { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.hcy-faq-lista { border-top: 1px solid rgba(0, 0, 0, .1); }
.hcy-faq-item { border-bottom: 1px solid rgba(0, 0, 0, .1); }
.hcy-faq-pregunta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 2px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.hcy-faq-pregunta::-webkit-details-marker { display: none; }   /* Safari: sin flechita */
.hcy-faq-pregunta:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.hcy-faq-texto { flex: 1 1 auto; }

/* El + y el − del documento, dibujados con dos barras. */
.hcy-faq-signo {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}
.hcy-faq-signo::before,
.hcy-faq-signo::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}
.hcy-faq-signo::before { width: 14px; height: 2px; }
.hcy-faq-signo::after { width: 2px; height: 14px; transition: transform .18s ease; }
.hcy-faq-item[open] .hcy-faq-signo::after { transform: translate(-50%, -50%) scaleY(0); }
.hcy-faq-respuesta { padding: 0 2px 14px; font-size: 15px; line-height: 1.6; opacity: .85; }

/* -------------------------------------------------------------------------
   W20 — reseñas
   ------------------------------------------------------------------------- */
.hcy-resenas-cabeza { margin-bottom: 12px; }
.hcy-resenas-titulo { margin: 0 0 10px; font-size: 22px; font-weight: 800; line-height: 1.25; }
.hcy-resenas-resumen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.hcy-resenas-promedio { font-size: 28px; font-weight: 800; line-height: 1; }
.hcy-resenas-cantidad { opacity: .7; }

.hcy-estrellas { display: inline-flex; gap: 1px; line-height: 1; }
.hcy-estrella { font-size: 15px; color: #d1d5db; }
.hcy-estrella.is-llena { color: #f5a623; }
.hcy-estrella.is-media { color: #f5a623; opacity: .55; }

.hcy-resenas-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hcy-resenas-filtro {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .18);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.hcy-resenas-filtro[aria-pressed="true"] { background: #111; color: #fff; border-color: #111; }
.hcy-resenas-filtro:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.hcy-resenas-filtro-num { opacity: .6; }

.hcy-resenas-grilla { display: grid; gap: 12px; grid-template-columns: 1fr; }
.hcy-resena {
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}
.hcy-resena-cabeza { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.hcy-resena-nombre { font-weight: 800; font-size: 14px; }
.hcy-resena-sello {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #047857;
    background: #ecfdf5;
    border-radius: 999px;
    padding: 2px 8px;
}
.hcy-resena-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hcy-resena-fecha { font-size: 12px; opacity: .6; }
.hcy-resena-texto { margin: 0; font-size: 15px; line-height: 1.55; }
.hcy-resena-fotos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hcy-resena-foto { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; display: block; }

.hcy-resenas-vacio { margin: 0 0 14px; font-size: 15px; opacity: .75; }
.hcy-resenas-nota { margin: 0; font-size: 14px; opacity: .8; }
.hcy-resenas-enlace { text-decoration: underline; font-weight: 700; }

.hcy-resenas-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}
.hcy-resenas-boton::-webkit-details-marker { display: none; }
.hcy-resenas-boton:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.hcy-resenas-form-cuerpo { display: grid; gap: 10px; margin-top: 12px; max-width: 520px; }
.hcy-resenas-campo { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.hcy-resenas-campo input,
.hcy-resenas-campo select,
.hcy-resenas-campo textarea {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 400;
}
.hcy-resenas-senuelo { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hcy-resenas-enviar {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}
.hcy-resenas-enviar:focus-visible { outline: 3px solid #111; outline-offset: 3px; }

/* ORDEN 0380 — las mismas reseñas, en carrusel: una fila que se corre de costado,
   con el imán de scroll para que cada tarjeta quede alineada. En el celular se
   arrastra con el dedo y no hay flechas: el teclado y el trackpad también sirven. */
.hcy-resenas-carrusel {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 82%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}
.hcy-resenas-carrusel > .hcy-resena { scroll-snap-align: start; }
.hcy-resenas-carrusel:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
@media (min-width: 768px) {
    .hcy-resenas-carrusel { grid-auto-columns: minmax(300px, 46%); }
}

/* Dos columnas de reseñas en pantalla grande (el documento las pide 2). */
@media (min-width: 768px) {
    .hcy-resenas-grilla:not(.hcy-resenas-carrusel) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hcy-w-emocional--con-imagen { grid-template-columns: 1.1fr 1fr; }
    .hcy-w-emocional { padding: 28px; }
}

/* Quien pidió ver menos movimiento, no lo recibe. */
@media (prefers-reduced-motion: reduce) {
    .hcy-faq-signo::after { transition: none; }
}
