/* ==========================================================================
   COMUNIDAD ENDURE — ESTILOS EDITORIALES Y COMPONENTES VISUALES
   ==========================================================================
   Diseño de alta gama, editorial, responsive y adaptado a la identidad de Endure.
   ========================================================================== */

:root {
    --comm-bg: #090e1a;
    --comm-card-bg: rgba(17, 34, 80, 0.45);
    --comm-card-border: rgba(224, 197, 143, 0.16);
    --comm-card-hover: rgba(224, 197, 143, 0.28);
    --comm-gold: #E0C58F;
    --comm-gold-glow: rgba(224, 197, 143, 0.35);
    --comm-blue: #112250;
    --comm-sapphire: #3C507D;
    --comm-text-light: #F5F0E9;
    --comm-text-muted: #9AA5B8;
    --comm-surface: #0e1526;
    --comm-surface-elevated: #151f38;
    --comm-radius-sm: 8px;
    --comm-radius-md: 14px;
    --comm-radius-lg: 20px;
    --comm-radius-full: 9999px;
    --comm-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   LAYOUT PRINCIPAL Y CABECERA
   ========================================================================== */

.community-page-wrapper {
    min-height: 100vh;
    background: radial-gradient(ellipse 74% 410px at 50% 0, #172541, transparent), var(--comm-bg);
    color: var(--comm-text-light);
    padding-top: calc(var(--header-height, 80px) + clamp(36px, 5vw, 66px));
    padding-bottom: clamp(48px, 8vw, 80px);
}

.community-header,
.comm-feed-container {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: clamp(16px, 3.5vw, 32px);
}

.community-header {
    margin-bottom: clamp(20px, 3vw, 36px);
}

.community-header-main {
    display: grid;
    justify-items: center;
    gap: 20px;
    text-align: center;
}

.community-brand {
    max-width: 36rem;
}

.community-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(224, 197, 143, 0.1);
    border: 1px solid rgba(224, 197, 143, 0.25);
    border-radius: var(--comm-radius-full);
    color: var(--comm-gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.community-title {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: clamp(1.95rem, 5vw, 3.65rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--comm-text-light);
    margin: 0 0 8px;
}

.community-subtitle {
    font-size: clamp(.92rem, 2vw, 1.06rem);
    color: var(--comm-text-muted);
    line-height: 1.6;
    margin: 0;
}

.community-header-actions,
.community-member-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.community-header-actions {
    gap: 10px;
}

/* Botones principales */
.btn-comm-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--comm-gold) 0%, #C4A264 100%);
    color: var(--comm-bg);
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--comm-radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--comm-gold-glow);
    transition: var(--comm-transition);
}

.btn-comm-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(224, 197, 143, 0.5);
    color: var(--comm-bg);
}

.btn-comm-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--comm-text-light);
    border-radius: var(--comm-radius-full);
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--comm-transition);
}

.btn-comm-secondary:hover {
    background: rgba(224, 197, 143, 0.15);
    border-color: var(--comm-gold);
    color: var(--comm-gold);
}

.user-pill-btn {
    width: auto;
    padding: 4px 16px 4px 6px;
    gap: 8px;
}

.user-pill-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--comm-gold);
}

.user-pill-name {
    font-size: 0.88rem;
    font-weight: 600;
}

/* Pestañas de navegación de Comunidad */
.community-nav-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 24px;
    padding-block: 12px;
    border-block: 1px solid var(--comm-card-border);
}

.nav-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px clamp(8px, 1.9vw, 18px);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--comm-radius-full);
    color: var(--comm-text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--comm-transition);
    white-space: nowrap;
}

.nav-tab-btn:hover {
    color: var(--comm-text-light);
    background: rgba(255, 255, 255, 0.04);
}

.nav-tab-btn.active {
    background: rgba(224, 197, 143, 0.12);
    border-color: rgba(224, 197, 143, 0.35);
    color: var(--comm-gold);
}

/* ==========================================================================
   FEED LAYOUT Y TARJETA DE PUBLICACIÓN
   ========================================================================== */

.comm-feed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    max-width: 740px;
    margin-inline: auto;
}

@media (min-width: 993px) {
    .comm-feed-layout.has-sidebar {
        max-width: none;
        grid-template-columns: minmax(0, 1fr) clamp(230px, 25%, 290px);
    }
}

.comm-feed-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.comm-post-card {
    background: var(--comm-card-bg);
    border: 1px solid var(--comm-card-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--comm-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: var(--comm-transition);
}

.comm-post-card:hover {
    border-color: var(--comm-card-hover);
}

/* Cabecera del post */
.comm-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.comm-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.comm-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
}

.comm-author-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(224, 197, 143, 0.4);
}

.comm-verified-check {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: var(--comm-gold);
    color: var(--comm-bg);
    border-radius: 50%;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.comm-author-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.comm-author-name {
    font-weight: 700;
    font-size: 0.96rem;
    color: var(--comm-text-light);
}

.comm-tier-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--comm-radius-full);
}

.comm-tier-pill.tier-essential { background: rgba(142, 155, 174, 0.2); color: #BAC6D6; border: 1px solid rgba(142, 155, 174, 0.3); }
.comm-tier-pill.tier-select { background: rgba(91, 127, 165, 0.2); color: #8AAECF; border: 1px solid rgba(91, 127, 165, 0.4); }
.comm-tier-pill.tier-signature { background: rgba(224, 197, 143, 0.2); color: var(--comm-gold); border: 1px solid var(--comm-gold); }
.comm-tier-pill.tier-elite { background: linear-gradient(135deg, rgba(224, 197, 143, 0.3), rgba(196, 162, 100, 0.3)); color: #F5E5C9; border: 1px solid #E0C58F; }
.comm-tier-pill.tier-prestige { background: #000; color: #E0C58F; border: 1px solid #E0C58F; }

.comm-post-subtext {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--comm-text-muted);
}

.comm-post-header-menu {
    position: relative;
}

.comm-menu-trigger {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--comm-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--comm-transition);
}

.comm-menu-trigger:hover {
    color: var(--comm-text-light);
    background: rgba(255, 255, 255, 0.08);
}

.comm-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--comm-surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--comm-radius-md);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    padding: 6px;
    display: none;
    z-index: 50;
}

.comm-dropdown-menu.active {
    display: block;
    animation: fadeDown 0.2s ease-out;
}

.comm-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    color: var(--comm-text-light);
    font-size: 0.86rem;
    border-radius: var(--comm-radius-sm);
    cursor: pointer;
    text-align: left;
    transition: var(--comm-transition);
}

.comm-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.comm-dropdown-item.comm-danger-item {
    color: #f87171;
}

.comm-dropdown-item.comm-danger-item:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   CARRUSEL MULTIMEDIA Y MARCADORES INTERACTIVOS (TAG PINS)
   ========================================================================== */

.comm-media-container {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    user-select: none;
}

.comm-slides-wrapper {
    position: relative;
    width: 100%;
    min-height: 480px;
    background: #050810;
}

.comm-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.comm-slide.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.comm-slide-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comm-slide-img {
    width: 100%;
    height: auto;
    max-height: 640px;
    object-fit: contain;
    display: block;
}

/* Marcadores interactivos sobre la prenda */
.comm-product-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.pin-marker-btn {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pin-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(224, 197, 143, 0.6);
    animation: pinPulse 2s infinite ease-out;
}

.pin-core {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--comm-gold);
    color: var(--comm-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    transition: var(--comm-transition);
}

.pin-marker-btn:hover .pin-core,
.comm-product-pin:hover .pin-core {
    transform: scale(1.2);
    background: #ffffff;
}

/* Popover flotante del producto al hacer hover o clic */
.comm-pin-popover {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 220px;
    background: rgba(14, 21, 38, 0.95);
    border: 1px solid var(--comm-card-border);
    backdrop-filter: blur(12px);
    border-radius: var(--comm-radius-md);
    padding: 10px;
    display: flex;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 30;
}

.comm-product-pin:hover .comm-pin-popover,
.comm-product-pin.active .comm-pin-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.pin-popover-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--comm-radius-sm);
    object-fit: cover;
    background: #000;
}

.pin-popover-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pin-popover-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--comm-text-light);
    line-height: 1.2;
}

.pin-popover-price {
    font-size: 0.84rem;
    color: var(--comm-gold);
    font-weight: 700;
}

.pin-popover-badge {
    font-size: 0.68rem;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pin-popover-link {
    font-size: 0.74rem;
    color: var(--comm-text-muted);
    text-decoration: none;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pin-popover-link:hover {
    color: var(--comm-gold);
}

/* Controles de carrusel */
.comm-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--comm-transition);
    z-index: 20;
}

.comm-slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--comm-gold);
    color: var(--comm-gold);
}

.comm-slider-btn.prev { left: 14px; }
.comm-slider-btn.next { right: 14px; }

.comm-slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 20;
}

.comm-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--comm-transition);
}

.comm-slider-dot.active {
    width: 18px;
    border-radius: var(--comm-radius-full);
    background: var(--comm-gold);
}

.comm-photo-counter {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--comm-radius-full);
    padding: 3px 10px;
    font-size: 0.75rem;
    color: var(--comm-text-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 20;
}

.comm-media-expand-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.78rem;
    z-index: 20;
    transition: var(--comm-transition);
}

.comm-media-expand-btn:hover {
    color: var(--comm-gold);
    border-color: var(--comm-gold);
}

/* ==========================================================================
   BARRA DE ACCIONES Y CUERPO DEL POST
   ========================================================================== */

.comm-post-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px 8px 20px;
}

.comm-actions-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.comm-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--comm-text-light);
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--comm-transition);
    padding: 6px;
}

.comm-action-btn:hover {
    color: var(--comm-gold);
    transform: translateY(-1px);
}

.comm-action-btn.btn-like-post.active {
    color: #ef4444;
}

.comm-action-btn.btn-like-post.active i {
    animation: heartBeat 0.35s ease-in-out;
}

.comm-action-btn.btn-save-post.active {
    color: var(--comm-gold);
}

.comm-action-btn span {
    font-size: 0.88rem;
    font-weight: 600;
}

.comm-post-body {
    padding: 0 20px 14px 20px;
}

.comm-caption {
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--comm-text-light);
}

.comm-caption-author {
    font-weight: 700;
    color: var(--comm-gold);
    margin-right: 6px;
    text-decoration: none;
}

.comm-tag-link {
    color: #8AAECF;
    text-decoration: none;
    font-weight: 600;
}

.comm-tag-link:hover {
    color: var(--comm-gold);
    text-decoration: underline;
}

.comm-mention-link {
    color: var(--comm-gold);
    text-decoration: none;
    font-weight: 600;
}

/* ==========================================================================
   TIRA "PRENDAS DE ESTE LOOK"
   ========================================================================== */

.comm-look-products-strip {
    margin: 8px 20px 16px 20px;
    padding: 14px 16px;
    background: rgba(14, 21, 38, 0.6);
    border: 1px solid rgba(224, 197, 143, 0.12);
    border-radius: var(--comm-radius-md);
}

.look-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.look-products-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--comm-gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.look-products-count {
    font-size: 0.78rem;
    color: var(--comm-text-muted);
}

.look-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.look-product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--comm-radius-sm);
    text-decoration: none;
    color: inherit;
    transition: var(--comm-transition);
}

.look-product-card:hover {
    background: rgba(224, 197, 143, 0.08);
    border-color: rgba(224, 197, 143, 0.25);
    transform: translateX(2px);
}

.look-product-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--comm-radius-sm);
    object-fit: cover;
    background: #000;
}

.look-product-details {
    flex: 1;
    min-width: 0;
}

.look-product-name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.look-product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.look-product-price {
    font-size: 0.82rem;
    color: var(--comm-gold);
    font-weight: 700;
}

.verified-purchase-badge {
    font-size: 0.66rem;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.look-product-arrow {
    color: var(--comm-text-muted);
    font-size: 0.75rem;
}

/* ==========================================================================
   SECCIÓN DE COMENTARIOS
   ========================================================================== */

.comm-comments-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 20px;
}

.comm-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comm-comment-item {
    font-size: 0.88rem;
    line-height: 1.4;
}

.comm-comment-author {
    font-weight: 700;
    color: var(--comm-text-light);
    margin-right: 6px;
}

.comm-comment-text {
    color: #d1d5db;
}

.comm-comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    font-size: 0.74rem;
    color: var(--comm-text-muted);
}

.comm-comment-action-btn {
    background: none;
    border: none;
    color: var(--comm-text-muted);
    font-size: 0.74rem;
    cursor: pointer;
    padding: 0;
}

.comm-comment-action-btn:hover {
    color: var(--comm-text-light);
}

.comm-comment-action-btn.btn-like-comment.active {
    color: #ef4444;
}

.comm-comment-replies {
    margin-left: 20px;
    padding-left: 12px;
    border-left: 1.5px solid rgba(224, 197, 143, 0.2);
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-load-more-comments {
    display: inline-block;
    background: none;
    border: none;
    color: var(--comm-text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    margin: 10px 0;
    padding: 0;
}

.btn-load-more-comments:hover {
    color: var(--comm-gold);
}

.comm-comment-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.comm-comment-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--comm-radius-full);
    padding: 10px 18px;
    color: var(--comm-text-light);
    font-size: 0.88rem;
    outline: none;
    transition: var(--comm-transition);
}

.comm-comment-input:focus {
    border-color: var(--comm-gold);
    background: rgba(255, 255, 255, 0.08);
}

.btn-send-comment {
    background: none;
    border: none;
    color: var(--comm-gold);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 8px 12px;
    transition: var(--comm-transition);
}

.btn-send-comment:hover {
    color: #ffffff;
}

/* ==========================================================================
   SIDEBAR COMPLEMENTARIO
   ========================================================================== */

.comm-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: calc(var(--header-height, 80px) + 24px);
}

.comm-sidebar-card {
    background: var(--comm-card-bg);
    border: 1px solid var(--comm-card-border);
    backdrop-filter: blur(12px);
    border-radius: var(--comm-radius-lg);
    padding: 20px;
}

.sidebar-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--comm-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-tags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trending-tag-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--comm-radius-sm);
    color: var(--comm-text-light);
    font-size: 0.86rem;
    cursor: pointer;
    text-align: left;
    transition: var(--comm-transition);
}

.trending-tag-btn:hover {
    background: rgba(224, 197, 143, 0.1);
    border-color: var(--comm-gold);
    color: var(--comm-gold);
}

.sidebar-creators-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-creator-row {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 6px;
    border-radius: var(--comm-radius-sm);
    transition: var(--comm-transition);
}

.sidebar-creator-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-creator-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--comm-gold);
}

.sidebar-creator-info {
    display: flex;
    flex-direction: column;
}

.sidebar-creator-name {
    font-size: 0.88rem;
    font-weight: 600;
}

.sidebar-creator-tier {
    font-size: 0.72rem;
    color: var(--comm-gold);
}

/* ==========================================================================
   VISTA EXPLORAR & MASONRY GRID
   ========================================================================== */

.comm-explore-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.community-explore-controls {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 740px;
    margin-inline: auto;
}

.community-explore-controls > label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--comm-text-muted);
    font-size: .86rem;
    font-weight: 600;
}

.comm-search-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.comm-search-input-box .search-icon {
    position: absolute;
    left: 14px;
    color: var(--comm-text-muted);
}

.comm-search-input {
    width: 100%;
    height: 44px;
    padding: 0 42px;
    background: var(--comm-surface-elevated);
    border: 1px solid var(--comm-card-border);
    border-radius: 10px;
    color: var(--comm-text-light);
    font-size: 0.96rem;
    outline: none;
    transition: var(--comm-transition);
}

.comm-search-input:focus {
    border-color: var(--comm-gold);
    box-shadow: 0 0 0 2px var(--comm-gold-glow);
}

.comm-search-input::-webkit-search-cancel-button {
    appearance: none;
}

.btn-clear-search {
    position: absolute;
    inset-inline-end: 2px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    color: var(--comm-text-muted);
    cursor: pointer;
}

.comm-style-categories-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.style-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--comm-radius-full);
    color: var(--comm-text-muted);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--comm-transition);
}

.style-category-chip:hover {
    color: var(--comm-text-light);
    border-color: rgba(224, 197, 143, 0.3);
}

.style-category-chip.active {
    background: rgba(224, 197, 143, 0.15);
    border-color: var(--comm-gold);
    color: var(--comm-gold);
}

.comm-trending-tags-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.86rem;
}

.trending-label {
    color: var(--comm-gold);
    font-weight: 600;
}

.trending-tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.trending-tags-list .trending-tag-btn {
    padding: 5px 12px;
    border-radius: var(--comm-radius-full);
    font-size: 0.82rem;
}

/* Grid Editorial Masonry */
.comm-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 18px;
}

.comm-grid-item {
    position: relative;
    border-radius: var(--comm-radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #000;
    cursor: pointer;
}

.comm-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.comm-grid-item:hover img {
    transform: scale(1.05);
}

.comm-grid-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    transition: opacity 0.25s ease;
}

.comm-grid-item:hover .comm-grid-overlay {
    opacity: 1;
}

.grid-overlay-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
}

.grid-overlay-bottom {
    display: flex;
    gap: 14px;
    font-size: 0.86rem;
    font-weight: 600;
}

.grid-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   VISTA DE PERFIL PÚBLICO
   ========================================================================== */

.comm-profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.comm-profile-header {
    display: flex;
    gap: 32px;
    align-items: center;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comm-profile-avatar-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.comm-profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--comm-gold);
    box-shadow: 0 0 20px var(--comm-gold-glow);
}

.profile-verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--comm-gold);
    color: var(--comm-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.comm-profile-details {
    flex: 1;
}

.profile-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-fullname {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 1.6rem;
    font-weight: 700;
}

.profile-username {
    display: block;
    color: var(--comm-gold);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-bio {
    font-size: 0.92rem;
    color: var(--comm-text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.profile-stats-row {
    display: flex;
    gap: 24px;
    margin-bottom: 18px;
}

.profile-stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--comm-text-light);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--comm-text-muted);
}

.profile-actions-row {
    display: flex;
    gap: 12px;
}

.btn-profile-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: var(--comm-gold);
    color: var(--comm-bg);
    border-radius: var(--comm-radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    transition: var(--comm-transition);
}

.btn-profile-primary.following {
    background: rgba(255, 255, 255, 0.1);
    color: var(--comm-text-light);
}

.btn-profile-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--comm-text-light);
    border-radius: var(--comm-radius-full);
    font-size: 0.88rem;
    cursor: pointer;
}

.comm-profile-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

.profile-tab-btn {
    background: none;
    border: none;
    color: var(--comm-text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--comm-radius-full);
    transition: var(--comm-transition);
}

.profile-tab-btn.active {
    background: rgba(224, 197, 143, 0.15);
    color: var(--comm-gold);
}

/* ==========================================================================
   VISTA DE COLECCIONES Y GUARDADOS
   ========================================================================== */

.comm-collections-container {
    max-width: 1040px;
    margin: 0 auto;
}

.collections-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.collections-title {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 1.8rem;
    font-weight: 700;
}

.collections-subtitle {
    color: var(--comm-text-muted);
    font-size: 0.92rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.collection-folder-card {
    background: var(--comm-card-bg);
    border: 1px solid var(--comm-card-border);
    border-radius: var(--comm-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--comm-transition);
}

.collection-folder-card:hover {
    border-color: var(--comm-gold);
    transform: translateY(-2px);
}

.collection-cover-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.collection-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-count-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--comm-radius-full);
    padding: 2px 8px;
    font-size: 0.72rem;
}

.collection-lock-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--comm-gold);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.collection-info {
    padding: 14px;
}

.collection-name {
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.collection-desc {
    font-size: 0.8rem;
    color: var(--comm-text-muted);
}

.saved-posts-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
}

.saved-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--comm-gold);
}

/* ==========================================================================
   MODALES (EDITOR, VISOR SPLIT, BUSCADOR DE TAGS, REPORTE)
   ========================================================================== */

.comm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 16, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.comm-modal-card {
    background: var(--comm-surface);
    border: 1px solid var(--comm-card-border);
    border-radius: var(--comm-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.comm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-heading {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--comm-gold);
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--comm-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--comm-transition);
}

.btn-close-modal:hover {
    color: var(--comm-text-light);
}

.comm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-comm-cancel {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--comm-text-light);
    border-radius: var(--comm-radius-full);
    cursor: pointer;
    font-size: 0.9rem;
}

/* Modal del Editor */
.editor-modal-card {
    max-width: 680px;
}

.comm-editor-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.editor-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editor-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--comm-text-light);
}

.comm-dropzone {
    border: 2px dashed rgba(224, 197, 143, 0.35);
    border-radius: var(--comm-radius-md);
    padding: 36px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: var(--comm-transition);
}

.comm-dropzone.drag-active,
.comm-dropzone:hover {
    border-color: var(--comm-gold);
    background: rgba(224, 197, 143, 0.06);
}

.dropzone-icon {
    font-size: 2.5rem;
    color: var(--comm-gold);
    margin-bottom: 10px;
}

.dropzone-text {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.dropzone-subtext {
    font-size: 0.78rem;
    color: var(--comm-text-muted);
}

.dropzone-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.btn-dropzone {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--comm-radius-full);
    color: var(--comm-text-light);
    font-size: 0.84rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.editor-thumbnails-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0;
}

.editor-thumb-box {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: var(--comm-radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.editor-thumb-box.active {
    border-color: var(--comm-gold);
}

.editor-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-thumb {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    border: none;
    font-size: 0.6rem;
    cursor: pointer;
}

.thumb-tags-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--comm-gold);
    color: var(--comm-bg);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-more-thumb {
    width: 68px;
    height: 68px;
    border-radius: var(--comm-radius-sm);
    border: 1.5px dashed rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--comm-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-canvas-preview-wrap {
    margin-top: 12px;
}

.editor-tag-instruction {
    background: rgba(224, 197, 143, 0.1);
    border: 1px solid rgba(224, 197, 143, 0.25);
    border-radius: var(--comm-radius-sm);
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--comm-gold);
    margin-bottom: 8px;
}

.editor-active-image-container {
    position: relative;
    max-height: 380px;
    background: #000;
    border-radius: var(--comm-radius-md);
    overflow: hidden;
    cursor: crosshair;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-active-image-container img {
    max-width: 100%;
    max-height: 380px;
    display: block;
    object-fit: contain;
}

.editor-pins-layer {
    position: absolute;
    inset: 0;
    pointer-events: auto;
}

.editor-pin-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 21, 38, 0.95);
    border: 1px solid var(--comm-gold);
    padding: 4px 8px;
    border-radius: var(--comm-radius-full);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.editor-pin-dot {
    color: var(--comm-gold);
    font-size: 0.7rem;
}

.editor-pin-label {
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}

.btn-remove-pin {
    background: none;
    border: none;
    color: #f87171;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0;
}

.editor-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--comm-radius-md);
    padding: 12px 16px;
    color: var(--comm-text-light);
    font-family: inherit;
    font-size: 0.92rem;
    resize: vertical;
    outline: none;
}

.editor-textarea:focus {
    border-color: var(--comm-gold);
}

.editor-caption-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--comm-text-muted);
}

.editor-tag-shortcuts {
    display: flex;
    gap: 6px;
}

.tag-shortcut {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--comm-radius-full);
    color: var(--comm-gold);
    font-size: 0.74rem;
    padding: 3px 8px;
    cursor: pointer;
}

.editor-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.editor-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--comm-radius-sm);
    padding: 10px 14px;
    color: var(--comm-text-light);
    font-size: 0.88rem;
    outline: none;
}

/* Modal del Buscador de Etiquetas de Productos */
.tag-picker-modal {
    max-width: 460px;
}

.tag-picker-body {
    padding: 16px 20px;
}

.tag-picker-search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.tag-picker-search-box i {
    position: absolute;
    left: 14px;
    color: var(--comm-text-muted);
}

.tag-picker-search-box input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--comm-radius-full);
    color: var(--comm-text-light);
    outline: none;
}

.tag-products-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.tag-product-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--comm-radius-sm);
    cursor: pointer;
    transition: var(--comm-transition);
}

.tag-product-option:hover {
    background: rgba(224, 197, 143, 0.1);
    border-color: var(--comm-gold);
}

.tag-option-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--comm-radius-sm);
    object-fit: cover;
    background: #000;
}

.tag-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tag-option-title {
    font-size: 0.84rem;
    font-weight: 700;
}

.tag-option-category {
    font-size: 0.72rem;
    color: var(--comm-text-muted);
}

.tag-option-price {
    font-size: 0.82rem;
    color: var(--comm-gold);
    font-weight: 700;
}

.btn-select-tag-prod {
    padding: 6px 12px;
    background: rgba(224, 197, 143, 0.15);
    border: 1px solid var(--comm-gold);
    border-radius: var(--comm-radius-full);
    color: var(--comm-gold);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

/* Modal Visor Detalle (Split Layout) */
.post-detail-modal {
    max-width: 1040px;
    height: 85vh;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.floating-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 50;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-split-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    height: 100%;
}

.detail-media-column {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-media .comm-slides-wrapper {
    height: 100%;
    min-height: 100%;
}

.modal-media .comm-slide-img {
    max-height: 85vh;
}

.detail-info-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--comm-surface);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-caption-box {
    padding: 16px 20px 8px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-comments-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.detail-actions-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--comm-surface-elevated);
    padding: 10px 20px 16px 20px;
}

/* Modal Reportar */
.report-modal {
    max-width: 480px;
}

.comm-modal-body {
    padding: 16px 24px;
}

.report-intro {
    font-size: 0.88rem;
    color: var(--comm-text-muted);
    margin-bottom: 14px;
}

.report-reasons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-reason-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--comm-radius-sm);
    cursor: pointer;
}

/* ==========================================================================
   WIDGET PÁGINA DE PRODUCTO ("ASÍ LO LLEVA NUESTRA COMUNIDAD")
   ========================================================================== */

.product-community-section {
    margin-top: 60px;
    padding: 40px 24px;
    background: rgba(17, 34, 80, 0.25);
    border: 1px solid var(--comm-card-border);
    border-radius: var(--comm-radius-lg);
    text-align: center;
}

.product-comm-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(224, 197, 143, 0.1);
    color: var(--comm-gold);
    border: 1px solid rgba(224, 197, 143, 0.25);
    border-radius: var(--comm-radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.product-comm-title {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 700;
    color: var(--comm-text-light);
    margin-bottom: 6px;
}

.product-comm-subtitle {
    font-size: 0.92rem;
    color: var(--comm-text-muted);
    margin-bottom: 28px;
}

.product-comm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.product-comm-card {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--comm-radius-md);
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.product-comm-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-comm-card:hover .product-comm-img {
    transform: scale(1.05);
}

.product-comm-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff;
}

.btn-product-comm-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: transparent;
    border: 1px solid var(--comm-gold);
    color: var(--comm-gold);
    border-radius: var(--comm-radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--comm-transition);
}

.btn-product-comm-all:hover {
    background: var(--comm-gold);
    color: var(--comm-bg);
}

/* ==========================================================================
   TOAST DE NOTIFICACIONES VISUALES
   ========================================================================== */

.comm-toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: rgba(14, 21, 38, 0.95);
    border: 1px solid var(--comm-gold);
    color: var(--comm-text-light);
    padding: 12px 24px;
    border-radius: var(--comm-radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
}

.comm-toast-notification.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   ESTADOS VACÍOS, DE CARGA Y ANIMACIONES
   ========================================================================== */

.comm-empty-state {
    text-align: center;
    width: 100%;
    max-width: 740px;
    margin-inline: auto;
    padding: clamp(28px, 5vw, 50px) 20px;
    background: linear-gradient(160deg, var(--comm-surface-elevated), var(--comm-surface));
    border: 1px solid var(--comm-card-border);
    border-radius: var(--comm-radius-lg);
}

.comm-empty-state .empty-icon {
    font-size: 2.8rem;
    color: var(--comm-gold);
    margin-bottom: 14px;
}

.comm-empty-state :is(h2, h3) {
    font-size: clamp(1.06rem, 2.6vw, 1.33rem);
    margin: 0 0 6px;
}

.comm-empty-state p {
    font-size: 0.88rem;
    color: var(--comm-text-muted);
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto;
}

.comm-empty-state button,
.comm-empty-state a { margin-top: 14px; }

.comm-feed-loading {
    text-align: center;
    padding: 40px;
    color: var(--comm-text-muted);
    font-size: 0.95rem;
}

.loading-spinner {
    font-size: 2rem;
    color: var(--comm-gold);
    margin-bottom: 12px;
    display: block;
}

.comm-error-state {
    text-align: center;
    padding: 40px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--comm-radius-lg);
    color: #fca5a5;
}

.error-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

@keyframes pinPulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    70% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(0.9); opacity: 0; }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.35); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

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

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MÓVILES Y TABLETS)
   ========================================================================== */

@media (max-width: 992px) {
    .comm-sidebar {
        display: none;
    }

    .detail-split-layout {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .post-detail-modal {
        max-height: 95vh;
    }

    .modal-media .comm-slide-img {
        max-height: 50vh;
    }
}

@media (max-width: 600px) {
    .community-explore-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .comm-post-card {
        border-radius: var(--comm-radius-md);
    }

    .comm-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .profile-title-row {
        justify-content: center;
    }

    .profile-stats-row {
        justify-content: center;
    }

    .profile-actions-row {
        justify-content: center;
    }

    .editor-row-split {
        grid-template-columns: 1fr;
    }

    .look-products-grid {
        grid-template-columns: 1fr;
    }
}

.community-native-dialog {
    position: fixed;
    inset: 0;
    margin: 0;
    border: 0;
    padding: 0;
    max-width: none;
    max-height: none;
    width: 100vw;
    height: 100dvh;
    background: transparent;
    color: var(--comm-text-light);
}
.community-native-dialog::backdrop { background: transparent; }
.community-native-dialog .comm-modal-backdrop { padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.community-native-dialog .comm-modal-card { max-height: 100%; }
.community-native-dialog .comm-toast-notification { z-index: 10001; }
.community-page-wrapper :focus-visible,
.community-native-dialog :focus-visible { outline: 2px solid var(--comm-gold); outline-offset: 3px; }
.community-page-wrapper [hidden],
.community-native-dialog [hidden] { display: none !important; }
.community-native-dialog :where(button, input, select),
.community-page-wrapper :where(.btn-comm-primary, .btn-comm-secondary, .nav-tab-btn) { min-height: 44px; }
.community-form-card { width: min(100%, 570px); }
.community-form-fields {
    padding: clamp(16px, 4vw, 26px);
    display: grid;
    gap: 15px;
    overflow-y: auto;
}
.community-form-fields label { display: grid; gap: 6px; }
.community-form-fields .community-inline-label { display: flex; align-items: center; gap: 8px; }
.community-form-status { padding: 10px 18px; color: var(--comm-text-light); }
.community-form-status:empty { padding: 0; }
.community-search-links, .community-pager { display: flex; gap: 12px; flex-wrap: wrap; margin: 15px 0; }
.community-search-links, .community-pager { justify-content: center; }
.community-pager:empty { display: none; }
.community-moderation { max-width: 740px; margin-inline: auto; }
.community-moderation > label {
    display: grid;
    gap: 6px;
    max-width: 260px;
    margin-block: 12px;
    color: var(--comm-text-muted);
    font-size: .9rem;
}
.community-pager { justify-content: center; }
.community-blocked-list { list-style: none; display: grid; gap: 12px; }
.community-blocked-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.community-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.community-evidence img { width: 100%; border-radius: 8px; }
.community-moderation .comm-sidebar-card { margin: 16px 0; }
.community-moderation p { overflow-wrap: anywhere; }
.community-collection-entry { break-inside: avoid; margin-bottom: 15px; }
.community-collection-entry button { max-width: 100%; }
.comm-grid-item, .collection-folder-card { font: inherit; color: inherit; text-align: start; }
.comm-grid-item { border: 0; padding: 0; width: 100%; display: block; }
.collection-folder-card { width: 100%; }
.tag-product-option { width: 100%; font: inherit; color: inherit; text-align: start; }
.community-thumb-select { display: block; padding: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.community-thumb-select img { width: 100%; height: 100%; object-fit: cover; }
.comm-slide-image-wrapper, .editor-active-image-container {
    width: min(100%, calc(var(--community-image-height, 640px) * var(--community-image-ratio, 1)));
    aspect-ratio: var(--community-image-ratio, 1);
    margin-inline: auto;
}
.modal-media .comm-slide-image-wrapper { --community-image-height: 70dvh; }
.editor-active-image-container { --community-image-height: 380px; }
.comm-slide-image-wrapper .comm-slide-img,
.editor-active-image-container img { width: 100%; height: 100%; max-height: none; max-width: none; object-fit: contain; }
.editor-pins-layer { pointer-events: none; }
.editor-pins-layer .btn-remove-pin { pointer-events: auto; }
#communityKeyboardTag { margin-bottom: 10px; }
.comm-slide-image-wrapper > .comm-product-pin { max-width: 100%; }
.comm-feed-loading { min-height: 120px; }
@media (prefers-reduced-motion: reduce) {
    .community-page-wrapper *, .community-native-dialog *, .product-community-section * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

.comm-pin-popover { visibility: hidden; }
.comm-product-pin:is(:hover, .active) .comm-pin-popover { visibility: visible; }
.comm-product-pin[data-pin-height="below"] .comm-pin-popover { bottom: auto; top: calc(100% + 6px); }
.comm-product-pin[data-pin-edge="start"] .comm-pin-popover { left: 0; transform: none; }
.comm-product-pin[data-pin-edge="end"] .comm-pin-popover { left: auto; right: 0; transform: none; }

.btn-comm-secondary {
    width: auto;
    min-width: 44px;
    min-height: 44px;
    height: auto;
    padding: 8px 14px;
    font-size: .9rem;
    line-height: 1.3;
}
.user-pill-btn { padding-inline: 6px 14px; }
.community-member-links .btn-comm-secondary { gap: 7px; }
.community-native-dialog .btn-remove-thumb,
.community-native-dialog .btn-remove-pin { width: 26px; min-height: 26px; height: 26px; font-size: .9rem; }
.community-thread-more { align-self: flex-start; }
@media (max-width: 600px) {
    .modal-media .comm-slide-image-wrapper { --community-image-height: 48dvh; }
}
