.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.pestanas {
    display: flex;
    gap: 4px;
    margin-left: 24px;
    margin-right: auto;
}

.pestana {
    padding: 8px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .75);
    font-weight: 600;
    text-decoration: none;
}

.pestana:hover,
.pestana:focus-visible {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    outline: none;
}

.pestana[aria-current="page"] {
    background: var(--verde);
    color: var(--navy);
}

.k-panel {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px);
    min-height: 420px;
    padding: 0;
}

.k-hilo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    padding: 20px;
}

.k-bienvenida {
    max-width: 640px;
    margin: auto;
    color: var(--texto-suave);
    text-align: center;
}

.k-bienvenida h2 {
    margin: 0 0 8px;
    color: var(--texto);
    font-size: 20px;
}

.k-bienvenida p {
    margin: 0 0 12px;
}

.k-aviso {
    padding: 10px 14px;
    border-left: 3px solid var(--verde);
    border-radius: 6px;
    background: var(--verde-claro);
    color: var(--texto);
    text-align: left;
}

.k-sugerencias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.k-sugerencia {
    padding: 8px 12px;
    border: 1px solid var(--borde);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--texto);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.k-sugerencia:hover,
.k-sugerencia:focus-visible {
    border-color: var(--azul);
    color: var(--azul);
    outline: none;
}

.k-msg {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.k-de {
    margin-bottom: 6px;
    color: var(--texto-suave);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.k-yo .k-de {
    color: var(--azul);
}

.k-cuerpo {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}

.k-yo .k-cuerpo {
    padding: 10px 14px;
    border-radius: 10px;
    background: #e3f2fd;
}

.k-error .k-cuerpo {
    padding-left: 12px;
    border-left: 3px solid var(--rojo);
    color: var(--rojo);
}

.k-puntos {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 1.4em;
}

.k-puntos i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--texto-suave);
    animation: k-late 1.2s infinite ease-in-out;
}

.k-puntos i:nth-child(2) {
    animation-delay: .18s;
}

.k-puntos i:nth-child(3) {
    animation-delay: .36s;
}

@keyframes k-late {
    0%, 60%, 100% {
        opacity: .25;
    }

    30% {
        opacity: 1;
    }
}

.k-calificacion {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.k-votos {
    display: flex;
    align-items: center;
    gap: 6px;
}

.k-voto {
    width: 36px;
    height: 32px;
    border: 1px solid var(--borde);
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
}

.k-voto[aria-pressed="true"] {
    border-color: var(--azul);
    background: #e3f2fd;
}

.k-voto:disabled {
    cursor: default;
}

.k-eco {
    margin-left: 4px;
    color: var(--texto-suave);
    font-size: 12px;
}

.k-abrir {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: var(--texto-suave);
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.k-abrir:hover {
    color: var(--azul);
}

.k-caja {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-left: 3px solid var(--azul);
    border-radius: 6px;
    background: #f8fafc;
}

.k-etiqueta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--texto-suave);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.k-caja textarea {
    min-height: 70px;
    padding: 8px 10px;
    border: 1px solid var(--borde);
    border-radius: 8px;
    color: var(--texto);
    font: inherit;
    font-size: 14px;
    text-transform: none;
    resize: vertical;
}

.k-tipo {
    display: flex;
    gap: 6px;
}

.k-tipo button {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--borde);
    border-radius: 8px;
    background: #fff;
    color: var(--texto-suave);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.k-tipo button[aria-pressed="true"] {
    border-color: var(--azul);
    background: #e3f2fd;
    color: var(--azul);
}

.k-fila {
    display: flex;
    gap: 8px;
}

.k-gracias {
    color: #4d6300;
    font-size: 13px;
    font-weight: 600;
}

.k-error-texto {
    margin: 0;
    color: var(--rojo);
    font-size: 13px;
    font-weight: 600;
}

.k-barra {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--borde);
}

.k-barra textarea {
    flex: 1;
    max-height: 160px;
    padding: 9px 12px;
    border: 1px solid var(--borde);
    border-radius: 8px;
    color: var(--texto);
    font: inherit;
    resize: none;
}

@media (prefers-reduced-motion: reduce) {
    .k-puntos i {
        animation: none;
        opacity: .5;
    }
}

@media (max-width: 640px) {
    .pestanas {
        margin-left: 8px;
    }

    .pestana {
        padding: 6px 10px;
    }

    .k-panel {
        height: calc(100vh - 140px);
    }

    .k-tipo {
        flex-direction: column;
    }
}
