/* =========================================
   ESTILOS BLOG NEHORAY (GOLD FINAL)
   ========================================= */

/* --- PALETA DE COLORES --- */
:root {
    --neho-dark: #111111;
    /* Negro Principal */
    --neho-gold: #c5a059;
    /* Dorado Nehoray */
    --neho-slate: #334155;
    /* Texto secundario */
    --neho-white: #ffffff;
    /* Blanco puro */
    --bg-dark: #1a202c;
    /* Fondo oscuro seguridad */

    --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.06);
    --shadow-gold: 0 15px 40px rgba(197, 160, 89, 0.2);
}

/* Tipografía y Layout Base */
/* .blog-container,
.single-container {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--neho-slate);
    width: 100%;
    max-width: 1200px;

    margin: 0 auto 60px;
 
    padding: 0 30px;
    box-sizing: border-box;
} */

.reviews-section {
    padding: 100px 5%;
    background: #f8fafc;
}

/* =========================================
   1. HERO SECTION (El problema anterior)
   ========================================= */

.hero-blog {
    background: linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.9)),
        url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?ixlib=rb-4.0.3&auto=format&fit=crop&w=2400&q=80');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 60px;
}


/* =========================================
   2. SECTION HEADERS (Latest Articles)
   ========================================= */

.section-header-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--neho-dark);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

/* .section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: var(--neho-gold);
    margin: 10px auto 0;
} */

.section-subtitle {
    font-size: 1.1rem;
    color: var(--neho-slate);
    margin-top: 15px;
}

.reviews-section {
    padding: 100px 5%;
    background: #f8fafc;
}

/* =========================================
   3. REJILLA RESPONSIVE (Grid)
   ========================================= */

.blog-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    /* Móvil: 1 columna */
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Tablet: 2 columnas */
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Escritorio: 3 columnas */
    }
}

/* =========================================
   4. TARJETA DE ARTÍCULO (Card Design)
   ========================================= */

.blog-card {
    background: var(--neho-white);
    border-top: 4px solid var(--neho-gold);
    /* Techo dorado */
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--neho-gold);
    box-shadow: var(--shadow-gold);
}

.blog-card-image {
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.75rem;
    color: var(--neho-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.blog-card-title {
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.blog-card-title a {
    text-decoration: none;
    color: var(--neho-dark);
    font-size: 1.4rem;
    font-weight: 700;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: var(--neho-gold);
}

.blog-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--neho-slate);
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    color: var(--neho-dark);
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--neho-gold);
    padding-bottom: 4px;
    align-self: flex-start;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background: var(--neho-gold);
    color: var(--neho-white);
    padding: 4px 12px;
    border-bottom-color: transparent;
}

/* =========================================
   5. ESTILOS FALTANTES PARA SINGLE (ARTÍCULO)
   ========================================= */

/* Contenedor específico para el artículo (ya que el global está comentado) */
.single-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    /* Restricciones solo para el artículo para que no se desparrame */
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 30px;
    box-sizing: border-box;
}

/* --- Columna Izquierda (Contenido) --- */
.single-main {
    flex: 3;
    /* Ocupa el 75% del espacio */
    min-width: 0;
    /* Evita desbordes */
}

.entry-title-large {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--neho-dark);
    margin-bottom: 20px;
    font-weight: 900;
}

.single-thumbnail img {
    border-bottom: 5px solid var(--neho-gold);
    margin-bottom: 40px;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Tipografía del cuerpo del texto */
.entry-content {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--neho-slate);
    font-family: Georgia, 'Times New Roman', serif;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content h2,
.entry-content h3 {
    color: var(--neho-dark);
    font-family: 'Helvetica Neue', sans-serif;
    margin-top: 50px;
    font-weight: 800;
}

.entry-content h2 {
    font-size: 2rem;
    border-left: 4px solid var(--neho-gold);
    padding-left: 20px;
}

/* Citas legales (Blockquotes) */
.entry-content blockquote {
    margin: 40px 0;
    padding: 25px;
    border-left: 4px solid var(--neho-gold);
    background: #f9f9f9;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--neho-dark);
    font-family: Georgia, serif;
}

/* --- Columna Derecha (Sidebar) --- */
.single-sidebar {
    flex: 1;
    /* Ocupa el 25% del espacio */
    min-width: 280px;
    border-left: none;
    padding-left: 0;
}

/* Títulos de Widgets */
.widget-area h3,
.widget-area .widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neho-dark);
    border-bottom: 3px solid var(--neho-gold);
    padding-bottom: 10px;
    margin-bottom: 25px;
    display: block;
}

/* Listas de Widgets */
.widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-area ul li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.widget-area ul li a {
    text-decoration: none;
    color: var(--neho-slate);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.widget-area ul li a:hover {
    color: var(--neho-gold);
    padding-left: 5px;
}

/* Buscador Sidebar */
.widget_search form {
    position: relative;
    display: flex;
    gap: 10px;
    width: 100%;
}

/* Hide the "Search" text label since the user doesn't want it */
.widget_search label {
    flex-grow: 1;
    width: auto;
    margin: 0;
    font-size: 0;
    /* Hide text */
    visibility: hidden;
    /* Ensure it's not visible */
}

/* But make the input visible again */
.widget_search label input {
    visibility: visible;
    font-size: 1rem;
    /* Restore font size for input */
}

.widget_search input[type="search"] {
    width: 100%;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: var(--neho-dark);
    padding: 12px 15px;
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 1rem;
    height: 50px;
}

.widget_search button,
.widget_search input[type="submit"] {
    background: var(--neho-gold);
    color: #fff;
    border: none;
    padding: 0 25px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    height: 50px;
    flex-shrink: 0;
}

.widget_search button:hover,
.widget_search input[type="submit"]:hover {
    background: #b08d4b;
}

.widget_search input[type="search"]:focus {
    border-color: var(--neho-gold);
    outline: none;
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.1);
}

/* Recent Comments Widget Fix */
.widget_recent_comments ul li {
    background: transparent !important;
    color: var(--neho-slate);
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.widget_recent_comments ul li a {
    color: var(--neho-dark);
    font-weight: 600;
    background: transparent !important;
}

.widget_recent_comments ul li .comment-author-link,
.widget_recent_comments ul li .comment-author-link a {
    background-color: transparent !important;
    color: var(--neho-gold) !important;
}

/* Specific fix for the black block */
.widget_recent_comments .recentcomments {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    color: var(--neho-slate);
    font-size: 0.95rem;
}

/* --- Responsive para Single --- */
@media (max-width: 900px) {
    .single-wrapper {
        flex-direction: column;
    }

    .single-sidebar {
        width: 100%;
        margin-top: 50px;
        padding-top: 40px;
        border-top: 1px solid #eee;
    }
}

/* =========================================
   6. COMMENTS SECTION
   ========================================= */

.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.comments-title {
    font-size: 1.8rem;
    color: var(--neho-dark);
    margin-bottom: 30px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 800;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual Comment Card */
.comment-list li.comment {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* Fix: Force removal of any black/dark backgrounds inherited from theme */
.comment-list li.comment article,
.comment-list li.comment .comment-body,
.comment-list li.comment .comment-meta,
.comment-list li.comment header,
.comment-list li.comment footer {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Fix: Ensure text is visible (not light on light) */
.comment-list li.comment,
.comment-list li.comment p,
.comment-list li.comment span,
.comment-list li.comment .comment-author,
.comment-list li.comment .comment-meta {
    color: var(--neho-slate);
}

.comment-list li.comment a {
    color: var(--neho-gold);
}

/* Meta Data (Author, Date, Avatar) */
.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9 !important;
    /* Keep our separator */
    padding-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: var(--neho-dark);
    font-size: 1.1rem;
    gap: 10px;
}

.comment-author img.avatar {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: 2px solid var(--neho-gold);
}

.comment-metadata {
    margin-left: auto;
    font-size: 0.85rem;
    color: #94a3b8;
}

.comment-metadata a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.comment-metadata a:hover {
    color: var(--neho-gold);
}

/* Comment Text */
.comment-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Reply Button */
.reply {
    text-align: right;
}

.reply a {
    display: inline-block;
    color: var(--neho-gold);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: 2px solid var(--neho-gold);
    padding: 6px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.reply a:hover {
    background: var(--neho-gold);
    color: #fff;
}

/* Nested Comments */
.comment-list .children {
    list-style: none;
    padding-left: 30px;
    margin-top: 25px;
    border-left: 2px solid #e2e8f0;
}

/* Comment Form (Leave a Reply) */
.comment-respond {
    background: #f8fafc;
    padding: 40px;
    border-radius: 8px;
    margin-top: 50px;
    border: 1px solid #e2e8f0;
}

.comment-reply-title {
    font-size: 1.6rem;
    color: var(--neho-dark);
    margin-bottom: 25px;
    display: block;
    font-weight: 800;
}

.comment-reply-title small a {
    font-size: 1rem;
    color: var(--neho-slate);
    font-weight: normal;
    float: right;
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-notes {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
}

.comment-form p {
    margin-bottom: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--neho-dark);
    font-size: 0.95rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    background: #fff;
    color: var(--neho-dark);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--neho-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form-cookies-consent input {
    width: auto !important;
    margin: 0;
}

/* Submit Button */
.form-submit {
    margin-top: 10px;
}

.form-submit .submit {
    background: var(--neho-gold);
    color: #fff;
    border: none;
    padding: 16px 35px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    border-radius: 4px;
    width: auto;
}

.form-submit .submit:hover {
    background: #b08d4b;
    transform: translateY(-2px);
}