/* Variables de colores - Compatible con admin (fondo blanco) */
:root {
    --primary-color: #92ff64;
    --primary-dark: #7DFF61;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-light: #e9ecef;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Header mejorado */
.blog-header-enhanced {
    position: relative;
    margin-bottom: 60px;
}

.blog-image-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.blog-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.blog-content-header {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 0;
    color: white;
}

.hero-content {
    text-align: left;
}

.post-category {
    margin-bottom: 20px;
}

.category-badge {
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 30px;
    color: white;
}

.post-meta-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    font-size: 40px;
    color: var(--primary-color);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

.post-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transform: translateX(-5px);
}

/* Contenido principal */
.post-content-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.post-body {
    margin-bottom: 40px;
}

/* Sun Editor - Respetar completamente el contenido del editor */
.sun-editor-editable {
    /* Solo establecer propiedades base, no sobreescribir las del editor */
    font-family: 'Muli', sans-serif;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Remover todas las restricciones del sun-editor para respetar el contenido */
.sun-editor-editable * {
    /* NO forzar propiedades, dejar que el editor maneje todo */
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Asegurar que las tablas no rompan el layout */
.sun-editor-editable table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
    overflow-x: auto !important;
    display: block !important;
    white-space: nowrap !important;
}

.sun-editor-editable table tbody,
.sun-editor-editable table thead,
.sun-editor-editable table tfoot {
    display: table !important;
    width: 100% !important;
}

.sun-editor-editable table tr {
    display: table-row !important;
}

.sun-editor-editable table td,
.sun-editor-editable table th {
    display: table-cell !important;
    word-break: break-word !important;
}

/* Contenedor con scroll horizontal seguro para móviles */
.post-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Asegurar que imágenes grandes no rompan el layout */
.sun-editor-editable img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 1rem auto !important;
}

/* Contenido amplio en desktop, seguro en móvil */
@media (min-width: 1200px) {
    .post-content-section .container-xl {
        max-width: 1400px;
    }
}

@media (max-width: 768px) {
    .sun-editor-editable {
        font-size: 16px;
        padding: 0 10px;
    }

    .sun-editor-editable table {
        font-size: 14px;
        white-space: normal !important;
    }

    .post-body {
        overflow-x: auto;
        padding-right: 15px;
        margin-right: -15px;
    }
}

/* Controles de texto a voz mejorados con interacciones */
.text-to-speech-enhanced {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border-light);
}

.tts-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.tts-left-section {
    flex: 1;
    min-width: 300px;
}

.tts-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-rounded {
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 500;
}

/* Botón flotante para compartir */
.floating-share-btn {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.share-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.share-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(146, 255, 100, 0.4);
}

.share-toggle-btn.active {
    background: var(--text-dark);
    color: var(--primary-color);
    transform: rotate(45deg) scale(1.1);
}

.floating-share-menu {
    position: absolute;
    bottom: 70px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-share-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    color: white;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.floating-share-item:hover {
    transform: scale(1.1);
    text-decoration: none;
    color: white;
}

.floating-share-item.facebook {
    background: #3b5998;
}

.floating-share-item.twitter {
    background: #1da1f2;
}

.floating-share-item.whatsapp {
    background: #25D366;
}

.floating-share-item.copy-link {
    background: var(--text-dark);
}

/* Contadores de interacciones - Diseño llamativo */
.post-interactions {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 20px 0;
    justify-content: center;
}

.interaction-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid transparent;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 80px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.interaction-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(146, 255, 100, 0.2), transparent);
    transition: left 0.6s;
}

.interaction-item:hover::before {
    left: 100%;
}

.interaction-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(146, 255, 100, 0.3);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0fff0 100%);
}

.interaction-item.like-item:hover {
    border-color: #e74c3c;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.interaction-item.comment-item:hover {
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.interaction-item.views-item:hover {
    border-color: #9b59b6;
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f8f5ff 100%);
}

.interaction-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    position: relative;
}

.interaction-btn i {
    font-size: 16px;
    color: var(--text-light);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.interaction-btn:hover i {
    transform: scale(1.3);
}

.like-btn i {
    color: #e74c3c;
    filter: drop-shadow(0 0 5px rgba(231, 76, 60, 0.3));
}

.like-btn:hover i {
    color: #c0392b;
    filter: drop-shadow(0 0 8px rgba(231, 76, 60, 0.5));
}

.comment-btn i {
    color: #3498db;
    filter: drop-shadow(0 0 5px rgba(52, 152, 219, 0.3));
}

.comment-btn:hover i {
    color: #2980b9;
    filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.5));
}

.views-indicator {
    cursor: default;
}

.views-indicator i {
    color: #9b59b6;
    filter: drop-shadow(0 0 5px rgba(155, 89, 182, 0.3));
}

.interaction-count {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Estados activos */
.like-btn.active i {
    color: #e74c3c;
    animation: heartBeat 0.6s ease-in-out;
}

.like-btn.active+.interaction-count {
    color: #e74c3c;
    font-weight: 700;
}

/* Animaciones */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(146, 255, 100, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(146, 255, 100, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(146, 255, 100, 0);
    }
}

.interaction-item.active {
    animation: pulse 2s infinite;
}

/* Efecto de brillo en hover */
.interaction-item:hover .interaction-count {
    color: var(--text-dark);
    text-shadow: 0 0 10px rgba(146, 255, 100, 0.5);
}

/* Biografía del autor */
.author-bio-section {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 40px 0;
}

.author-bio-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-light);
}

.author-bio-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.author-avatar-large {
    font-size: 60px;
    color: var(--primary-color);
}

.author-info-bio h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 500;
}

.author-title {
    color: var(--text-light);
    margin: 5px 0 0 0;
    font-size: 16px;
}

.author-bio-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Responsive para botón flotante */
@media (max-width: 1024px) {
    .floating-share-btn {
        left: 20px;
    }

    .share-toggle-btn {
        width: 55px;
        height: 55px;
        font-size: 18px;
    }

    .floating-share-item {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .floating-share-btn {
        left: 15px;
        top: auto;
        bottom: 30px;
        transform: none;
    }

    .floating-share-menu {
        bottom: auto;
        top: -200px;
        flex-direction: row;
        gap: 15px;
    }

    .share-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .floating-share-item {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Podcast */
.podcast-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.podcast-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-light);
    text-align: center;
}

.podcast-title {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 30px;
}

/* Artículos relacionados */
.related-posts-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    color: var(--text-dark);
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 18px;
    margin: 0;
}

.related-post-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.related-post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.post-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.post-category-badge {
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.related-post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-post-title {
    color: var(--text-dark);
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.related-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.related-post-summary {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.related-post-card:hover .read-more i {
    transform: translateX(5px);
}

/* Newsletter */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--text-dark) 0%, #333333 100%);
}

.newsletter-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.newsletter-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.newsletter-title {
    color: var(--text-dark);
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 15px;
}

.newsletter-subtitle {
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.newsletter-form {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.input-group .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    flex: 1;
}

.input-group .btn {
    border-radius: 0;
    padding: 15px 25px;
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    font-weight: 500;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 25px;
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    font-weight: 500;
}

.newsletter-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.benefit i {
    color: var(--primary-color);
}

/* Animaciones */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .blog-image-container {
        height: 300px;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-meta-enhanced {
        flex-direction: column;
        align-items: flex-start;
    }

    .tts-container {
        flex-direction: column;
        align-items: stretch;
    }

    .tts-left-section {
        min-width: auto;
    }

    .tts-buttons {
        justify-content: center;
    }

    .post-interactions {
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .interaction-item {
        min-width: 70px;
        padding: 10px 15px;
        gap: 8px;
    }

    .interaction-btn {
        width: 28px;
        height: 28px;
    }

    .interaction-btn i {
        font-size: 14px;
    }

    .interaction-count {
        font-size: 14px;
    }

    .interaction-item:hover {
        transform: translateY(-2px) scale(1.02);
    }

    .author-bio-header {
        flex-direction: column;
        text-align: center;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }

    .share-btn {
        width: 200px;
        justify-content: center;
    }

    .newsletter-card {
        padding: 30px 20px;
    }

    .newsletter-title {
        font-size: 24px;
    }

    .newsletter-benefits {
        flex-direction: column;
        align-items: center;
    }

    .input-group {
        flex-direction: column;
        border-radius: 10px;
    }

    .input-group .form-control,
    .input-group .btn {
        border-radius: 10px;
    }

    .section-title {
        font-size: 28px;
    }

    .podcast-card {
        padding: 25px 15px;
    }

    .podcast-title {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .post-title {
        font-size: 1.75rem;
    }

    .blog-content-header {
        padding: 20px 0;
    }

    .newsletter-card {
        padding: 25px 15px;
    }

    .related-post-content {
        padding: 20px;
    }
}

/* Modal de comentarios - Estilo Hipertrofit */
.comments-modal .modal-dialog {
    max-width: 60%;
}

.comments-modal .modal-content {
    background-color: #1a1a1a !important;
    border: 1px solid #333333 !important;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.comments-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #1a1a1a;
    border-radius: 16px 16px 0 0;
    padding: 20px 25px;
    border-bottom: 1px solid #333333;
    position: relative;
    overflow: hidden;
}

.comments-modal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.comments-modal .modal-header:hover::before {
    left: 100%;
}

.comments-modal .modal-title {
    font-weight: 500;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a1a1a;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.comments-modal .btn-close {
    filter: brightness(0);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.comments-modal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.comments-modal .modal-body {
    background-color: #1a1a1a !important;
    padding: 25px;
    max-height: 90vh;
    overflow-y: auto;
    color: #ffffff;
}

/* Scrollbar personalizado */
.comments-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.comments-modal .modal-body::-webkit-scrollbar-track {
    background: #333333;
    border-radius: 4px;
}

.comments-modal .modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.comments-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Sección de escribir comentario */
.write-comment-section {
    background: linear-gradient(135deg, #333333 0%, #404040 100%);
    border: 1px solid #666666;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.write-comment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(146, 255, 100, 0.05) 0%, rgba(125, 255, 97, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.write-comment-section:hover::before {
    opacity: 1;
}

.write-comment-section h6 {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 15px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-textarea {
    background-color: #333333 !important;
    border: 2px solid #666666 !important;
    border-radius: 10px;
    padding: 15px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    background-color: #404040 !important;
    box-shadow: 0 0 0 3px rgba(146, 255, 100, 0.25) !important;
}

.comment-textarea::placeholder {
    color: #999999 !important;
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-info {
    font-size: 12px;
    color: #cccccc;
}

.btn-comment {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: #1a1a1a !important;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-comment::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-comment:hover::before {
    left: 100%;
}

.btn-comment:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(146, 255, 100, 0.3);
    color: #1a1a1a !important;
}

.btn-comment:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #666666 0%, #777777 100%) !important;
}

.btn-comment:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Lista de comentarios */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background-color: #333333 !important;
    border: 1px solid #666666 !important;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.comment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(146, 255, 100, 0.05) 0%, rgba(125, 255, 97, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.comment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(146, 255, 100, 0.15);
    border-color: var(--primary-color);
}

.comment-item:hover::before {
    opacity: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.comment-author-info {
    display: flex;
    flex-direction: column;
}

.comment-author-name {
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: #cccccc;
}

.comment-actions-btn {
    display: flex;
    gap: 8px;
}

.comment-like-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.comment-like-btn:hover {
    background: rgba(146, 255, 100, 0.2);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.comment-like-btn.active {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.2);
}

.comment-reply-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.comment-reply-btn:hover {
    background: rgba(146, 255, 100, 0.2);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.comment-reply-btn i {
    font-size: 10px;
}

.comment-delete-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.comment-delete-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    transform: translateY(-1px);
}

.comment-delete-btn i {
    font-size: 10px;
}

.comment-content {
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

/* Respuestas a comentarios */
.comment-replies {
    margin-top: 20px;
    padding-left: 25px;
    border-left: 3px solid var(--primary-color);
    position: relative;
}

.comment-replies::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color) 0%, transparent 100%);
}

.comment-reply {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #404040 0%, #4a4a4a 100%);
    border: 1px solid #666666;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.comment-reply::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(146, 255, 100, 0.03) 0%, rgba(125, 255, 97, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.comment-reply:hover::before {
    opacity: 1;
}

/* Preview de respuesta */
.reply-preview {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #404040 0%, #4a4a4a 100%);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.reply-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(146, 255, 100, 0.05) 0%, rgba(125, 255, 97, 0.05) 100%);
    opacity: 1;
    pointer-events: none;
}

.reply-preview-content {
    padding: 15px;
    position: relative;
    z-index: 1;
}

.reply-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reply-preview-header i {
    color: var(--primary-color);
    margin-right: 8px;
}

.reply-preview-header span {
    color: #ffffff;
    font-size: 14px;
    flex: 1;
}

.reply-preview-header strong {
    color: var(--primary-color);
}

.cancel-reply-btn {
    background: none;
    border: none;
    color: var(--text-light);
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-reply-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.reply-preview-text {
    color: #cccccc;
    font-size: 13px;
    font-style: italic;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

/* Estado vacío */
.comments-empty {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #333333 0%, #404040 100%);
    border: 1px solid #666666;
    border-radius: 12px;
    color: #cccccc;
}

.comments-empty i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.8;
}

.comments-empty h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Restricciones para usuarios no registrados */
.login-required {
    text-align: center;
    padding: 40px 25px;
    background: linear-gradient(135deg, #333333 0%, #404040 100%);
    border-radius: 12px;
    border: 2px dashed var(--primary-color);
    position: relative;
    overflow: hidden;
}

.login-required::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(146, 255, 100, 0.05) 0%, rgba(125, 255, 97, 0.05) 100%);
    opacity: 1;
    pointer-events: none;
}

.login-required i {
    font-size: 25px;
    color: #000;
    margin-bottom: 5px;
}

.login-required h5 {
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.login-required p {
    color: #cccccc;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: #1a1a1a !important;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-block;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
    color: #1a1a1a !important;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(146, 255, 100, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .comments-modal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .comments-modal .modal-body {
        padding: 20px 15px;
    }

    .write-comment-section {
        padding: 15px;
    }

    .comment-item {
        padding: 15px;
    }

    .comment-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .comment-actions-btn {
        align-self: flex-end;
    }

    .reply-preview {
        margin-bottom: 15px;
    }

    .reply-preview-content {
        padding: 12px;
    }

    .reply-preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cancel-reply-btn {
        align-self: flex-end;
        margin-top: -30px;
    }

    .comment-reply-btn {
        font-size: 11px;
        padding: 3px 6px;
    }
}

b {
    font-weight: inherit;
}

strong {
    font-weight: 500;
}