*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-image: url('images/Fondo.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #f3f7ff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}

/* Contenedores centrados */
header, .destacados, .contenido {
    width: 100%;
    max-width: 600px;
    padding: 15px;
    color: #f3f7ff;
}

/* Header */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 60px;
}

.titulo {
    margin: 0;
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding: 0 12px 18px;
    font-size: clamp(2rem, 6.5vw, 3.15rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    /* Brillo suave rosa / violeta (sin recortar texto) */
    text-shadow:
        0 0 20px rgba(255, 140, 190, 0.55),
        0 0 42px rgba(180, 130, 255, 0.35),
        0 2px 3px rgba(40, 10, 30, 0.5),
        0 4px 22px rgba(0, 0, 0, 0.4);
}

/* Línea principal bajo el título */
.titulo::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    width: min(260px, 88%);
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 110, 170, 0.35) 10%,
        rgba(255, 140, 195, 1) 38%,
        rgba(200, 160, 255, 0.95) 62%,
        rgba(160, 120, 230, 0.35) 90%,
        transparent
    );
    box-shadow:
        0 0 18px rgba(255, 130, 180, 0.55),
        0 0 28px rgba(160, 100, 220, 0.35);
}

/* Halo fino debajo */
.titulo::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(300px, 94%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    opacity: 0.9;
}

h2 {
    margin: 0;
    font-size: 2rem;
    color: #e5f4ff;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.destacados h2,
.contenido h2 {
    margin-bottom: 28px;
}

.header-busqueda-lang {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.header-busqueda-lang .buscador {
    flex: 1 1 180px;
    min-width: 0;
    width: auto;
}

.lang-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
}

.lang-field-label {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.9);
}

.selector-idioma {
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    min-width: 7.5rem;
    backdrop-filter: blur(8px);
}

.selector-idioma option {
    color: #1a1a2e;
    background: #fff;
}

.header-lang-only {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    padding-top: 4px;
}

.buscador {
    width: 100%;
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.18);
    color: #fff;
    outline: none;
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.buscador::placeholder {
    color: rgba(255,255,255,0.7);
}

.filtros {
    background: rgba(255,255,255,0.12);
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.18);
}

.filtros-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-start;
}

.sidebar {
    width: 100%;
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

.tarjeta-destacado {
    min-height: 240px;
}

.carousel-slide .tarjeta {
    padding: 22px;
}

.carousel-slide .tag {
    margin-bottom: 10px;
}

.carousel-slide p {
    margin-top: 14px;
    color: #ffffff;
    line-height: 1.6;
}

.filtro-boton {
        background: #ff8fa8;
        border: 1px solid #ff6b8c;
        color: #fff;
        border-radius: 999px;
        padding: 10px 16px;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    .filtro-boton:hover,
    .filtro-boton.selected {
        background: #ff5c7f;
        border-color: #ff3a63;
        color: white;
        transform: translateY(-1px);
    }

/* Tarjetas */
.lista-destacados, .lista-juegos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tarjeta {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(30, 144, 255, 0.65);
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(12px);
}

.tarjeta:hover,
.tarjeta:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.22);
    border-color: rgba(30, 144, 255, 0.9);
}

.game-image {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    margin-bottom: 14px;
    max-height: 170px;
}

.detalle-cabecera-juego {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 6px;
}

.detalle-titulo-juego {
    width: 100%;
    max-width: min(100%, 640px);
    margin: 0 0 14px;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: center;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    line-height: 1.25;
    letter-spacing: 0.03em;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.detalle-imagen {
    display: block;
    width: 100%;
    max-width: min(100%, 640px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
    border-radius: 14px;
    object-fit: cover;
    max-height: 320px;
}

.detalle-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detalle-principal,
.detalle-lateral {
    width: 100%;
}

.detalle-bloque {
    margin-top: 14px;
    margin-bottom: 16px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.detalle-bloque h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.detalle-bloque p {
    margin: 0;
    line-height: 1.6;
}

.detalle-bloque ul {
    margin: 0;
    padding-left: 20px;
}

.detalle-bloque li {
    margin-bottom: 8px;
}

.tabla-caracteristicas {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.fila-caracteristica {
    display: grid;
    grid-template-columns: 38% 62%;
}

.fila-caracteristica + .fila-caracteristica {
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.celda-etiqueta,
.celda-valor {
    padding: 12px 14px;
}

.celda-etiqueta {
    font-weight: 700;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.celda-valor {
    color: #f5f9ff;
}
.galeria {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
}

.galeria img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 200px;
}

.modal-zoom {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-zoom .modal-imagen {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

.modal-zoom .cerrar-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.modal-zoom .cerrar-modal:hover,
.modal-zoom .cerrar-modal:focus {
    color: #ff7a95;
}

/* Modal instalador (plataforma → idioma → enlaces) */
.modal-instalador {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3500;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.modal-instalador.modal-instalador-visible {
    display: flex;
    position: relative;
}

.modal-instalador-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.modal-instalador-card {
    position: relative;
    z-index: 1;
    margin: auto;
    width: 100%;
    max-width: 440px;
    max-height: min(90vh, 560px);
    overflow: auto;
    padding: 26px 22px 22px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(40, 28, 52, 0.96), rgba(22, 18, 38, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    color: #f3f7ff;
}

.modal-instalador-titulo {
    margin: 0 32px 14px 0;
    font-size: 1.35rem;
    color: #fff;
}

.modal-instalador-cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.modal-instalador-cerrar:hover,
.modal-instalador-cerrar:focus {
    background: rgba(255, 120, 150, 0.35);
}

.modal-instalador-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detalle-descargas {
    padding: 22px 20px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.detalle-descargas-titulo {
    margin: 0 0 20px;
    text-align: center;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    letter-spacing: 0.02em;
}

.instalador-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-bottom: 20px;
}

.instalador-intro {
    margin: 0;
    max-width: 34rem;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    text-align: center;
    font-size: 1rem;
    line-height: 1.65;
    letter-spacing: 0.015em;
    white-space: pre-line;
    color: rgba(255, 255, 255, 0.94);
}

.btn-instalador {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: min(100%, 300px);
    min-height: 52px;
    padding: 16px 28px;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(145deg, #f06292 0%, #d63384 45%, #ad1457 100%);
    box-shadow:
        0 4px 0 rgba(0, 0, 0, 0.2),
        0 14px 36px rgba(214, 51, 132, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-instalador:hover,
.btn-instalador:focus {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow:
        0 4px 0 rgba(0, 0, 0, 0.18),
        0 18px 42px rgba(214, 51, 132, 0.5);
}

.btn-instalador:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25), 0 8px 20px rgba(214, 51, 132, 0.35);
}

.descargas-total-bloque {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.descargas-total-label {
    opacity: 0.92;
}

.descargas-valor-num {
    display: inline-block;
    min-width: 2ch;
    padding: 4px 12px;
    margin-left: 6px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.instalador-paso-label {
    margin: 0;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.instalador-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.instalador-opcion {
    flex: 1 1 140px;
    min-height: 48px;
    padding: 10px 14px;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.instalador-opcion:hover:not(:disabled),
.instalador-opcion:focus:not(:disabled) {
    background: rgba(255, 255, 255, 0.22);
}

.instalador-opcion:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.instalador-opcion.instalador-opcion-sugerida {
    border-color: rgba(255, 180, 200, 0.7);
    box-shadow: 0 0 0 2px rgba(255, 120, 150, 0.25);
}

.instalador-enlaces {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.instalador-enlaces .download-link {
    display: block;
    text-align: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.instalador-enlaces .download-link:hover {
    background: rgba(255, 255, 255, 0.22);
}

.descarga-atajos {
    margin-top: 18px;
    margin-bottom: 4px;
}

.descarga-atajos > summary {
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.88;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.tag {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: #fff;
    padding: 5px 10px;
    border-radius: 999px;
    margin-right: 5px;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,0.2);
}

.paginacion {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 15px 0;
}

.paginacion button {
    background: white;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-weight: 500;
}

.paginacion button:hover {
    background: #e8f0ff;
    border-color: #1e90ff;
}

.paginacion button.activa {
    background: #1e90ff;
    color: white;
    border-color: #1e90ff;
}

.lista-enlaces {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.lista-descargas {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.descarga-item {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.descarga-item summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 700;
}

.descarga-item summary::-webkit-details-marker {
    display: none;
}

.descarga-item summary::after {
    content: "▼";
    float: right;
    font-size: 12px;
    opacity: 0.9;
}

.descarga-item[open] summary::after {
    content: "▲";
}

.descarga-opciones {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.descarga-opciones p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
}

.descargas-total {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
    font-size: 1.05rem;
}

.download-link {
    display: inline-block;
    background: #1e90ff;
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 10px;
}

.download-link:hover {
    background: #1565c0;
}

.interaccion-bloque h3 {
    margin-bottom: 12px;
}

.like-button,
.comentario-btn {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 600;
}

.comentario-btn {
    align-self: center;
}

.like-button:hover,
.comentario-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.like-button.like-active {
    background: rgba(86, 200, 255, 0.35);
    border-color: rgba(118, 216, 255, 0.7);
}

.likes-total {
    margin-top: 10px;
    margin-bottom: 0;
}

.comentarios-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.comentarios-form input,
.comentarios-form textarea {
    width: min(100%, 400px);
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 10px;
    font-family: inherit;
}

.comentarios-form textarea {
    resize: vertical;
    max-height: 8.5em;
}

.comentarios-form input::placeholder,
.comentarios-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.comentarios-error {
    margin: 0;
    min-height: 18px;
    font-size: 13px;
    color: #ffd0d8;
    width: 100%;
    text-align: center;
}

.comentarios-lista {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comentario-item {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    line-height: 1.45;
}

.comentario-item p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.comentario-usuario {
    margin-bottom: 6px !important;
    font-weight: 700;
    color: #e7f6ff;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.comentarios-vacio {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.volver-link {
    display: inline-block;
    margin-top: 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}

.volver-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.55);
}

/* Menú navegación — mismo tono rosa/rosado transparente que filtros de género */
.menu-inferior {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    z-index: 40;
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background: rgba(255, 120, 150, 0.14);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 107, 140, 0.45);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 28px rgba(80, 10, 30, 0.35);
}

.menu-inferior-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(60, 0, 20, 0.45);
    border: 1px solid rgba(255, 107, 140, 0.65);
    background: rgba(255, 143, 168, 0.42);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.menu-inferior-link:hover,
.menu-inferior-link:focus-visible {
    background: rgba(255, 92, 127, 0.55);
    border-color: rgba(255, 58, 99, 0.85);
    box-shadow: 0 4px 16px rgba(255, 58, 99, 0.25);
    transform: translateY(-1px);
    outline: none;
}

.page-grid {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 80px;
}

@media (max-width: 799px) {
    .carousel-slide {
        padding: 0;
    }
}

.main-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 800px) {
    body {
        background-attachment: fixed;
    }

    .page-grid-detalle {
        max-width: 1080px;
    }

    .page-grid-detalle .contenido {
        flex: 1;
        min-width: 0;
    }

    #detalle-juego.contenido {
        max-width: 1080px;
    }

    .detalle-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }

    .detalle-principal {
        flex: 1;
        min-width: 0;
    }

    .detalle-lateral {
        width: 320px;
        position: sticky;
        top: 14px;
    }

    .detalle-lateral .detalle-bloque {
        background: rgba(10, 20, 34, 0.72);
        border: 1px solid rgba(170, 225, 255, 0.38);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }

    .detalle-lateral .interaccion-bloque h3,
    .detalle-lateral .likes-total,
    .detalle-lateral .comentarios-vacio {
        color: #f4fbff;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
    }

    .detalle-lateral .comentarios-form input,
    .detalle-lateral .comentarios-form textarea {
        background: rgba(8, 14, 24, 0.65);
        border-color: rgba(160, 216, 255, 0.42);
        color: #ffffff;
    }

    .detalle-lateral .comentarios-form input::placeholder,
    .detalle-lateral .comentarios-form textarea::placeholder {
        color: rgba(228, 243, 255, 0.84);
    }

    .detalle-lateral .comentario-item {
        background: rgba(4, 8, 16, 0.58);
        border-color: rgba(170, 225, 255, 0.3);
    }

    .detalle-lateral .comentario-usuario {
        color: #cfeeff;
    }

    .detalle-lateral .comentario-item p {
        color: #f8fcff;
    }

    .page-grid {
        max-width: 1080px;
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        padding-bottom: 20px;
    }

    .main-sections {
        flex: 1;
        min-width: 0;
    }

    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 240px;
        flex-shrink: 0;
    }

    .filtros {
        margin: 0;
    }

    /* Menú pegado al borde derecho de la pantalla (solo PC) */
    .menu-inferior {
        position: fixed;
        top: 50%;
        left: auto;
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: auto;
        transform: translateY(-50%);
        margin: 0;
        width: 112px;
        max-width: none;
        flex-direction: column;
        padding: 12px 10px;
        gap: 10px;
        border-radius: 16px;
        border: 1px solid rgba(255, 107, 140, 0.45);
        border-bottom: 1px solid rgba(255, 107, 140, 0.45);
        background: rgba(255, 120, 150, 0.14);
        box-shadow: 0 10px 28px rgba(80, 10, 30, 0.28);
        backdrop-filter: blur(14px);
        z-index: 50;
    }

    .menu-inferior-link {
        flex: none;
        width: 100%;
        padding: 14px 8px;
    }
}

.pagina-simple {
    width: 100%;
    max-width: 600px;
    padding: 10px 15px 48px;
    box-sizing: border-box;
}

.pagina-simple-bloque {
    margin-top: 0;
}

/* Página VIP — suscripción */
.pagina-vip {
    max-width: 920px;
    padding-bottom: 56px;
}

.vip-checkout-notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
    color: rgba(255, 250, 245, 0.95);
    background: rgba(255, 200, 120, 0.16);
    border: 1px solid rgba(255, 200, 140, 0.35);
    border-radius: 14px;
}

.vip-checkout-notice--ok {
    background: rgba(120, 220, 160, 0.2);
    border-color: rgba(160, 240, 190, 0.4);
}

.vip-checkout-error {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(255, 245, 245, 0.98);
    background: rgba(200, 60, 80, 0.22);
    border: 1px solid rgba(255, 140, 150, 0.45);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.vip-checkout-error-main {
    margin: 0 0 8px;
    font-weight: 700;
}

.vip-checkout-error-detail {
    margin: 0 0 10px;
    font-size: 0.88rem;
    word-break: break-word;
    opacity: 0.95;
}

.vip-checkout-error-hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 220, 220, 0.88);
    opacity: 0.95;
}

.vip-lead {
    margin: 0 0 22px;
    padding: 16px 18px;
    font-size: 1.02rem;
    line-height: 1.55;
    text-align: center;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.vip-plans-heading {
    margin: 0 0 16px;
    font-size: 1.35rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.vip-plans {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

@media (min-width: 720px) {
    .vip-plans {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

.vip-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 22px 20px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.vip-plan-card-featured {
    border-color: rgba(255, 130, 170, 0.55);
    background: linear-gradient(165deg, rgba(255, 100, 150, 0.18), rgba(40, 22, 40, 0.55));
    box-shadow:
        0 0 0 1px rgba(255, 160, 190, 0.25),
        0 16px 40px rgba(120, 20, 60, 0.25);
}

.vip-plan-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a0a12;
    background: linear-gradient(135deg, #ffe082, #ffb74d);
    border-radius: 999px;
}

.vip-plan-name {
    margin: 0 0 4px;
    font-size: 1.25rem;
    color: #fff;
}

.vip-plan-card-featured .vip-plan-name {
    padding-right: 100px;
}

.vip-plan-tagline {
    margin: 0 0 14px;
    font-size: 0.9rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.82);
}

.vip-plan-price {
    margin: auto 0 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.vip-plan-card-featured .vip-plan-price {
    color: #ffe6ef;
}

.vip-plan-features {
    margin: 0;
    padding-left: 1.15rem;
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
    font-size: 0.95rem;
}

.vip-plan-features li {
    margin-bottom: 8px;
}

.vip-plan-features li:last-child {
    margin-bottom: 0;
}

.vip-plan-cta {
    display: block;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    text-align: center;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: #fff;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.vip-plan-cta:hover,
.vip-plan-cta:focus {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.vip-plan-cta-primary {
    border: none;
    background: linear-gradient(145deg, #f06292 0%, #c2185b 100%);
    box-shadow: 0 8px 24px rgba(194, 24, 91, 0.4);
}

.vip-plan-cta-primary:hover,
.vip-plan-cta-primary:focus {
    filter: brightness(1.06);
    background: linear-gradient(145deg, #f48fb1 0%, #d81b60 100%);
}

.vip-payment-note {
    margin: 0 0 20px;
    padding: 12px 14px;
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagina-vip .volver-link {
    display: inline-block;
    margin-top: 4px;
}

/* Registro / perfil → cuenta */
.pagina-registro {
    max-width: 440px;
    padding-bottom: 56px;
}

.registro-subtitle {
    margin: 0 0 18px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.registro-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.registro-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.registro-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.registro-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
}

.registro-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.registro-input:focus {
    border-color: rgba(255, 180, 200, 0.85);
    box-shadow: 0 0 0 2px rgba(255, 120, 150, 0.25);
}

.registro-error {
    margin: 0;
    font-size: 0.9rem;
    color: #ffcdd2;
    text-align: center;
}

.registro-submit {
    margin-top: 6px;
    padding: 14px 18px;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(145deg, #f06292 0%, #c2185b 100%);
    box-shadow: 0 8px 22px rgba(194, 24, 91, 0.35);
}

.registro-submit:hover,
.registro-submit:focus {
    filter: brightness(1.06);
}

.registro-demo-note {
    margin: 0 0 18px;
    font-size: 0.85rem;
    line-height: 1.45;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Cuenta: tarjeta y cambio registro ↔ login */
.cuenta-card {
    margin: 0 auto 20px;
    padding: 22px 20px 18px;
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(30, 18, 35, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.cuenta-panels {
    position: relative;
    min-height: 500px;
}

.cuenta-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.38s ease,
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.42s;
    pointer-events: none;
}

.cuenta-panel--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
}

.cuenta-panel-lead {
    margin: 0 0 16px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}

.cuenta-panel .registro-form {
    margin-bottom: 12px;
}

.cuenta-switch-line {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
}

.cuenta-switch-line span {
    margin-right: 6px;
}

.cuenta-switch-btn {
    display: inline;
    margin: 0;
    padding: 0;
    font: inherit;
    font-weight: 700;
    color: #ffb7c8;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 150, 180, 0.5);
}

.cuenta-switch-btn:hover,
.cuenta-switch-btn:focus {
    color: #ffe0e8;
    text-decoration-color: rgba(255, 200, 215, 0.85);
}

.cuenta-forgot-wrap {
    margin: 4px 0 0;
    text-align: center;
}

.cuenta-forgot-link {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cuenta-forgot-link:hover,
.cuenta-forgot-link:focus {
    color: rgba(255, 200, 215, 0.95);
    border-bottom-color: rgba(255, 180, 200, 0.55);
}

.cuenta-page-title {
    transition: opacity 0.25s ease;
}

/* Página cuenta: bloque centrado en viewport */
body.body-cuenta {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: stretch;
}

body.body-cuenta .cuenta-layout {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 8px 15px 92px;
    box-sizing: border-box;
}

body.body-cuenta .cuenta-header {
    padding: 4px 15px 8px;
    flex-shrink: 0;
}

body.body-cuenta .pagina-cuenta-main {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 0 4px;
    flex-shrink: 0;
}

/* Campos con icono (píldora) */
.cuenta-input-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.cuenta-input-wrap:focus-within .cuenta-input-icon {
    color: rgba(255, 210, 225, 0.95);
}

.cuenta-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.72);
    pointer-events: none;
    transition: color 0.2s ease;
}

.cuenta-input-icon svg {
    display: block;
}

.registro-input.cuenta-input-has-icon {
    padding-left: 46px;
    padding-right: 16px;
    border-radius: 999px;
}

.cuenta-panels--compact {
    min-height: 300px;
}

@media (max-width: 480px) {
    .cuenta-panels {
        min-height: 540px;
    }

    .cuenta-panels--compact {
        min-height: 280px;
    }

    .cuenta-card {
        padding: 18px 14px 14px;
    }

    body.body-cuenta .cuenta-layout {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ——— Perfil (página dedicada) ——— */
body.body-perfil {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: stretch;
}

body.perfil-auth-checking {
    overflow-x: hidden;
}

.perfil-app-root[hidden] {
    display: none !important;
}

.perfil-auth-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 55vh;
    min-height: 55dvh;
    padding: 24px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.perfil-auth-spinner {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: rgba(255, 160, 200, 0.95);
    animation: perfil-auth-spin 0.75s linear infinite;
}

@keyframes perfil-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

body.perfil-auth-ready .perfil-auth-loading {
    display: none;
}

.perfil-page-wrap {
    flex: 1 1 auto;
    width: 100%;
    max-width: min(1120px, 100%);
    margin: 0 auto;
    padding: 8px 18px 96px;
    box-sizing: border-box;
}

.pagina-perfil-main {
    max-width: 100%;
    padding-bottom: 8px;
}

.perfil-card {
    padding: 0 0 8px;
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.11), rgba(25, 15, 35, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.perfil-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
}

@media (min-width: 900px) {
    .perfil-grid {
        grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
        gap: 0 28px;
    }

    .perfil-col-hero {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .perfil-col-forms .perfil-seccion:first-of-type {
        padding-top: 22px;
    }

    .perfil-avatar-img,
    .perfil-avatar-fallback {
        width: 112px;
        height: 112px;
    }
}

.perfil-hero {
    text-align: center;
    padding: 22px 18px 18px;
    background: linear-gradient(180deg, rgba(255, 130, 170, 0.12), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.perfil-avatar-block {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.perfil-avatar-img,
.perfil-avatar-fallback {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.perfil-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(145deg, rgba(255, 120, 160, 0.5), rgba(140, 100, 200, 0.45));
}

.perfil-alias-badge {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.perfil-hero-hint {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

/* Nivel de suscripción + insignia (placeholder CSS hasta assets) */
.perfil-seccion-tier {
    padding-top: 20px;
}

.perfil-tier-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 8px;
}

.perfil-tier-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.perfil-tier-label {
    font-size: 0.98rem;
    font-weight: 600;
    color: rgba(230, 235, 245, 0.92);
    letter-spacing: 0.02em;
}

.perfil-tier-help {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
}

.perfil-tier-help:hover,
.perfil-tier-help:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.perfil-tier-badge-wrap {
    flex-shrink: 0;
}

.perfil-insignia {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto;
}

.perfil-insignia-ring {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 4px solid rgba(200, 210, 220, 0.55);
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.35),
        0 4px 14px rgba(0, 0, 0, 0.35);
    background: linear-gradient(160deg, rgba(180, 190, 205, 0.45), rgba(90, 95, 110, 0.35));
}

.perfil-insignia-gem {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 26px;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 4px;
    background: linear-gradient(135deg, #c4a8ff 0%, #7b4fd9 45%, #4a2d8a 100%);
    box-shadow:
        0 0 12px rgba(160, 100, 255, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.perfil-insignia-wing {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 22px;
    margin-top: -11px;
    background: linear-gradient(180deg, rgba(210, 215, 225, 0.75), rgba(120, 125, 140, 0.45));
    border-radius: 60% 20% 40% 10%;
    opacity: 0.9;
}

.perfil-insignia-wing-l {
    left: -2px;
    transform: scaleX(-1) rotate(-12deg);
}

.perfil-insignia-wing-r {
    right: -2px;
    transform: rotate(-12deg);
}

.perfil-insignia--vip1 .perfil-insignia-gem {
    background: linear-gradient(135deg, #ffd88a 0%, #e8a020 50%, #a86a10 100%);
    box-shadow:
        0 0 14px rgba(255, 200, 80, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.perfil-insignia--vip2 .perfil-insignia-gem {
    background: linear-gradient(135deg, #a8f0ff 0%, #40c4e8 45%, #2060a0 100%);
    box-shadow:
        0 0 16px rgba(80, 200, 255, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.perfil-tier-value {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
}

.perfil-tier-future {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.58);
}

.perfil-tier-sync {
    margin: 0 0 8px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(160, 230, 255, 0.92);
}

.perfil-cooldown-hint {
    margin: -4px 0 10px;
    font-size: 0.8rem;
    color: rgba(255, 220, 160, 0.9);
    line-height: 1.4;
}

.perfil-avatar-policy {
    margin: 0 0 10px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
}

.perfil-pending-banner {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: rgba(255, 245, 220, 0.95);
    background: rgba(255, 180, 80, 0.18);
    border: 1px solid rgba(255, 200, 120, 0.35);
}

.perfil-migrate-banner {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 250, 245, 0.98);
    background: rgba(220, 60, 80, 0.22);
    border: 1px solid rgba(255, 120, 140, 0.45);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.perfil-seccion {
    padding: 18px 18px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.perfil-seccion:last-of-type {
    border-bottom: none;
}

.perfil-seccion-titulo {
    margin: 0 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 200, 220, 0.95);
}

.perfil-datos {
    margin: 0;
}

.perfil-dato-fila {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: baseline;
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.perfil-dato-fila dt {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

.perfil-dato-fila dd {
    margin: 0;
    color: #fff;
    word-break: break-all;
}

.perfil-nota-mail {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
}

.perfil-seg-text {
    margin: 0 0 12px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.perfil-btn-sec {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 100, 150, 0.45), rgba(120, 80, 180, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(80, 20, 60, 0.25);
}

.perfil-btn-sec:hover,
.perfil-btn-sec:focus {
    filter: brightness(1.08);
}

.perfil-actions {
    margin: 0;
    padding: 16px 18px 8px;
    text-align: center;
}

.perfil-btn-logout {
    padding: 10px 20px;
    border-radius: 12px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.perfil-btn-logout:hover {
    background: rgba(255, 255, 255, 0.08);
}

.perfil-card .registro-form {
    margin-bottom: 0;
}

/* Comentarios: solo registrados + avatar */
.comentarios-logged-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.comentario-bar-av {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.comentario-bar-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comentario-bar-av-ph {
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 130, 170, 0.55), rgba(130, 100, 200, 0.5));
}

.comentarios-logged-alias {
    font-weight: 700;
    color: rgba(255, 240, 250, 0.95);
    font-size: 0.95rem;
}

.comentarios-form-logged {
    width: 100%;
}

.comentarios-login-wall {
    text-align: center;
    padding: 14px 12px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.comentarios-login-text {
    margin: 0 0 10px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.comentarios-login-cta {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(145deg, #f06292 0%, #c2185b 100%);
    box-shadow: 0 4px 14px rgba(194, 24, 91, 0.35);
}

.comentarios-login-cta:hover {
    filter: brightness(1.06);
}

.comentario-fila {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.comentario-avatar-wrap {
    flex-shrink: 0;
}

.comentario-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: block;
}

.comentario-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 140, 180, 0.45), rgba(120, 90, 180, 0.45));
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.comentario-textos {
    flex: 1;
    min-width: 0;
}

.comentario-cuerpo {
    margin: 4px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.comentario-item .comentario-usuario {
    margin-bottom: 2px !important;
}
