/* Blog styles — NOIR Invita */

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.conteinerGral {
    overflow-x: hidden;
}

.blog-hero {
    padding: 0rem 1.5rem 2rem;
    text-align: center;
    width: 100%;
    max-width: 860px;
    align-self: center;
    box-sizing: border-box;
}

.blog-hero h1 {
    color: #f62a6e;
    font-family: "Open Sans";
    font-size: 46px;
    font-weight: 800;
    line-height: 56px;
    text-align: center;
    text-transform: capitalize;
    margin-bottom: 0.75rem;
}

.blog-hero p {
    color: #888;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.blog-swiper-wrap {
    display: block;
    width: 100%;
    padding: 0 1.5rem;
    margin: 2rem 0 1rem;
    box-sizing: border-box;
}

.blog-swiper {
    width: 100%;
    padding-bottom: 2.5rem;
}

.blog-swiper .swiper-wrapper {
    height: auto !important;
}

.blog-swiper .swiper-slide {
    height: auto !important;
}

.blog-swiper .blog-card {
    display: block;
    width: 100%;
}

.blog-swiper .blog-card-body {
    display: block;
}

.blog-swiper .swiper-button-next,
.blog-swiper .swiper-button-prev {
    color: #de5c9d;
}

.blog-swiper .swiper-pagination-bullet-active {
    background: #de5c9d;
}

.blog-card {
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.25s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: #de5c9d;
}

.blog-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.blog-card-category {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #de5c9d;
}

.blog-card h2 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
}

.blog-card p {
    font-size: 0.9rem;
    color: #999;
    margin: 0;
    line-height: 1.55;
}

.blog-card-date {
    font-size: 0.75rem;
    color: #666;
    margin-top: auto;
    padding-top: 0.8rem;
}

/* Article page */
.article-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.article-category {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #de5c9d;
    margin-bottom: 0.75rem;
}

.article-wrap h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.article-wrap h2 {
    font-size: 1.3rem;
    margin: 2rem 0 0.75rem;
    color: #e8e8e8;
}

.article-wrap h3 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.5rem;
    color: #de5c9d;
}

.article-wrap p {
    font-size: 0.97rem;
    line-height: 1.75;
    color: #bbb;
    margin-bottom: 1rem;
}

.article-wrap ul,
.article-wrap ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-wrap li {
    font-size: 0.97rem;
    line-height: 1.7;
    color: #bbb;
    margin-bottom: 0.35rem;
}

.article-cta {
    margin-top: 3rem;
    padding: 2rem;
    border: 1px solid #de5c9d;
    border-radius: 8px;
    text-align: center;
}

.article-cta h3 {
    color: #e8e8e8;
    margin-bottom: 0.5rem;
}

.article-cta p {
    color: #999;
    margin-bottom: 1.25rem;
}

.blog-breadcrumb {
    font-size: 0.8rem;
    color: #666;
    padding: 1rem 1.5rem 0;
    max-width: 760px;
    margin: 0 auto;
}

.blog-breadcrumb a {
    color: #de5c9d;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
}


/* ========================
   COMUNIDAD — CONSEJOS & COMENTARIOS
========================= */
.comunidad-section {
    width: 100%;
    max-width: 560px;
    align-self: center;
    padding: 2rem 1.5rem 3rem;
    border-top: 1px solid #2a2a2a;
    box-sizing: border-box;
}

.comunidad-section--comentarios {
    padding-top: 2rem;
}

.comunidad-header {
    margin-bottom: 1.5rem;
}

.comunidad-titulo {
    font-size: 1.5rem;
    font-weight: 500;
    color: #f62a6e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.4rem;
    letter-spacing: 0.03em;
    text-transform: capitalize;
}

.comunidad-titulo i {
    color: #de5c9d;
    font-size: 1rem;
}

.comunidad-subtitulo {
    font-size: 0.88rem;
    color: #666;
    margin: 0;
}

.com-count {
    background: #2a2a2a;
    color: #aaa;
    font-size: 0.75rem;
    border-radius: 20px;
    padding: 0.1rem 0.55rem;
    font-weight: normal;
}

/* Avisos */
.com-aviso {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.com-aviso--ok {
    background: rgba(126, 200, 126, 0.08);
    border: 1px solid rgba(126, 200, 126, 0.3);
    color: #7ec87e;
}

.com-aviso--err {
    background: rgba(224, 112, 112, 0.08);
    border: 1px solid rgba(224, 112, 112, 0.3);
    color: #e07070;
}

/* Consejos */
.consejos-lista {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.consejo-card {
    display: flex;
    gap: 0.75rem;
    background: rgba(201, 169, 110, 0.06);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 8px;
    padding: 1rem 1.1rem;
}

.consejo-icon {
    color: #de5c9d;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.consejo-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.consejo-texto {
    font-size: 0.93rem;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

.consejo-autor {
    font-size: 0.78rem;
    color: #666;
}

/* Comentarios */
.comentarios-lista {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.comentario-item {
    display: flex;
    gap: 0.9rem;
}

.comentario-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #de5c9d;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comentario-body {
    flex: 1;
    border-bottom: 1px solid #1e1e1e;
    padding-bottom: 1rem;
}

.comentario-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.comentario-meta strong {
    font-size: 0.88rem;
    color: #e8e8e8;
}

.comentario-meta span {
    font-size: 0.75rem;
    color: #555;
}

.comentario-body p {
    font-size: 0.93rem;
    color: #bbb;
    line-height: 1.65;
    margin: 0;
}

.com-vacio {
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 2rem;
}

/* Formularios */
.com-form-wrap {
    border-top: 1px solid #222;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.com-form-titulo {
    font-size: 1rem;
    color: #e8e8e8;
    margin: 0 0 1.1rem;
}

.com-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.com-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.com-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.com-field label {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.03em;
}

.com-opcional {
    color: #555;
    font-size: 0.75rem;
}

.com-field input,
.com-field textarea {
    background: transparent;
    border: 1px solid #444;
    border-radius: 2rem;
    padding: 0.55rem 1rem;
    color: #ddd;
    font-size: 0.88rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.com-field input:focus,
.com-field textarea:focus {
    outline: none;
    border-color: #de5c9d;
    box-shadow: 0 0 0 2px rgba(222, 92, 157, 0.15);
}

.com-field input::placeholder,
.com-field textarea::placeholder {
    color: #555;
}

.com-field textarea {
    border-radius: 1rem;
}

.com-btn {
    --color: #de5c9d;
    align-self: flex-start;
    position: relative;
    background: var(--color);
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.88rem;
    font-family: inherit;
    font-weight: bold;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.2s, transform 0.15s;
}

.com-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* Consejo trigger (fake input) */
.consejo-trigger-wrap {
    margin: 0.5rem 0 1.5rem;
}

.consejo-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: 1px solid #333;
    border-radius: 2rem;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: #555;
    font-size: 0.9rem;
    user-select: none;
}

.consejo-trigger:hover {
    border-color: #de5c9d;
    background: rgba(222, 92, 157, 0.04);
    color: #888;
}

.consejo-trigger i {
    color: #de5c9d;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Modal overlay */
.consejo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.consejo-modal {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.consejo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #ebebeb;
}

.consejo-modal-header h3 {
    font-size: 1rem;
    color: #111;
    margin: 0;
}

.consejo-modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.2rem;
    transition: color 0.2s;
}

.consejo-modal-close:hover {
    color: #333;
}

.consejo-modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
}

.consejo-modal-form .com-field input,
.consejo-modal-form .com-field textarea {
    background: #f7f7f7;
    border: 1px solid #ddd;
    color: #111;
}

.consejo-modal-form .com-field input::placeholder,
.consejo-modal-form .com-field textarea::placeholder {
    color: #aaa;
}

.consejo-modal-form .com-field input:focus,
.consejo-modal-form .com-field textarea:focus {
    border-color: #de5c9d;
    box-shadow: 0 0 0 2px rgba(222, 92, 157, 0.15);
    background: #fff;
}

.consejo-modal-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #ebebeb;
    flex-wrap: wrap;
}

.consejo-img-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 0.83rem;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 2rem;
    padding: 0.4rem 0.9rem;
    transition: border-color 0.2s, color 0.2s;
    user-select: none;
    flex-shrink: 0;
}

.consejo-img-label:hover {
    border-color: #de5c9d;
    color: #de5c9d;
}

.consejo-img-label i {
    font-size: 1rem;
}

.consejo-img-nombre {
    font-size: 0.75rem;
    color: #999;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.consejo-modal-footer .com-btn {
    margin-left: auto;
}

/* Consejo image */
.consejo-img {
    max-width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0.6rem 0;
}

.consejo-fecha {
    color: #555;
}

/* Replies (nested under consejo) */
.replies-lista {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.75rem 0 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid #2a2a2a;
}

.reply-item {
    display: flex;
    gap: 0.65rem;
}

.reply-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #de5c9d;
    font-size: 0.78rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reply-body {
    flex: 1;
}

.reply-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.reply-meta strong {
    font-size: 0.83rem;
    color: #e8e8e8;
}

.reply-meta span {
    font-size: 0.72rem;
    color: #555;
}

.reply-body p {
    font-size: 0.88rem;
    color: #bbb;
    line-height: 1.6;
    margin: 0;
}

.reply-img {
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 0.5rem;
}

/* Comentar toggle button */
.reply-toggle-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.35rem 0;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: inherit;
    transition: color 0.2s;
}

.reply-toggle-btn:hover {
    color: #de5c9d;
}

/* Inline reply form */
.reply-form-wrap {
    margin-top: 0.75rem;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

.reply-form {
    gap: 0.65rem;
}

/* File input */
.com-file-input {
    font-size: 0.8rem;
    color: #888;
    cursor: pointer;
    padding: 0.3rem 0;
}

.com-file-input::file-selector-button {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 20px;
    color: #ccc;
    font-size: 0.78rem;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    margin-right: 0.6rem;
    font-family: inherit;
    transition: background 0.2s;
}

.com-file-input::file-selector-button:hover {
    background: #333;
}

@media (max-width: 600px) {
    .blog-swiper-wrap,
    .comunidad-section {
        width: 100%;
        max-width: 100%;
        align-self: stretch;
        box-sizing: border-box;
    }

    .comunidad-section {
        padding: 1.5rem 1rem 2.5rem;
    }

    .blog-swiper-wrap {
        padding: 0 1rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .consejo-modal {
        max-width: 88%;
        border-radius: 12px;
    }

    .com-form-row {
        grid-template-columns: 1fr;
    }

    .com-btn {
        width: 100%;
        justify-content: center;
    }

    .consejo-modal-footer .com-btn {
        width: auto;
    }
}
