/* Estilos para el Muro de Especialistas (v8.4 - Asegurando Cambios Visuales) */

/* --- Contenedor para Muro Global (Fondo celeste claro transparente) --- */
.muro-global-wrapper {
    /* Fondo celeste claro con baja opacidad */
    background: rgba(173, 216, 230, 0.3); /* lightblue con 30% de opacidad */
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}
/* El paginador dentro del wrapper */
.muro-global-wrapper .muro-pagination {
     margin-top: 20px;
     margin-bottom: 0;
}
/* Ajuste para que el .muro-container anidado no tenga ancho máximo */
.muro-global-wrapper .muro-container {
    max-width: 100%;
}
/* ------------------------------------- */

.muro-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Quicksand', sans-serif;
}

/* --- Tarjeta del Post (Esquinas redondeadas) --- */
.muro-post-card {
    background: #ffffff;
    border: 1px solid #dddfe2;
    border-radius: 16px; /* 4 esquinas redondeadas */
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    font-family: 'Quicksand', sans-serif;
}

/* --- Encabezado --- */
.muro-card-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
}
.muro-card-avatar {
    margin-right: 10px;
    position: relative; 
}

/* --- Foto del especialista redonda (AJUSTE CLAVE) --- */
/* Targetea el elemento IMG directamente dentro del contenedor del avatar. */
.muro-card-avatar img, 
.muro-avatar-img, /* Targetea la clase del img/div */
.muro-card-avatar .avatar { /* Targetea el div/img que pueda generar get_avatar() */
    border-radius: 30% !important; /* !! FORZADO a ser circular !! */
    width: 48px !important;
    height: 48px !important;
    object-fit: cover;
    display: block; 
}

/* --- Insignia de verificación --- */
.muro-verified-badge {
    position: absolute;
    bottom: -2px; 
    right: -2px;
    width: 18px; 
    height: 18px;
    border-radius: 50%;
    background: #fff; 
    padding: 2px;
    box-shadow: 0 0 0 2px #fff; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.muro-verified-badge svg {
    width: 100%;
    height: 100%;
    fill: #1DA1F2; /* Color de verificación */
}

.muro-card-author-info {
    display: flex;
    flex-direction: column;
}
.muro-author-link {
    text-decoration: none;
}
.muro-author-link:hover .muro-author-name {
    text-decoration: underline;
}
.muro-author-name {
    font-weight: 600;
    color: #050505;
    font-size: 15px;
}
.muro-author-meta {
    font-size: 13px;
    color: #65676b;
    margin-top: 2px;
}

/* --- Cuerpo --- */
.muro-card-body {
    padding: 0 16px 16px 16px;
}
.muro-post-title { display: none; }
.muro-post-content-excerpt,
.muro-post-content-full {
    font-size: 15px;
    color: #1c1e21;
    line-height: 1.4;
    margin: 0;
}
.muro-card-body p { margin: 0 0 1em 0; }
.muro-card-body p:last-child { margin-bottom: 0; }
.muro-expand-link,
.muro-collapse-link {
    font-weight: 600;
    color: #385898;
    cursor: pointer;
    font-size: 14px;
}
.muro-expand-link:hover,
.muro-collapse-link:hover { text-decoration: underline; }
.muro-collapse-link { display: block; margin-top: 8px; }

/* --- Pie de página --- */
.muro-card-footer {
    padding: 12px 16px;
    border-top: 1px solid #e9ebee;
    background: #f9f9f9;
    border-bottom-left-radius: 16px; 
    border-bottom-right-radius: 16px;
}
.muro-action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
}

/* Botones de Compartir */
.muro-share-buttons a {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 8px;
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: center center;
    text-indent: -9999px;
    overflow: hidden;
}
.muro-share-buttons a span { display: none; }
.muro-share-fb { 
    background-color: #1877f2;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z"/></svg>');
}
.muro-share-wa { 
    background-color: #25d366;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19.7 4.3c-1.9-1.9-4.4-2.9-7.1-2.9c-5.5 0-9.9 4.4-9.9 9.9c0 1.8.5 3.5 1.3 4.9L2 22l5.3-1.4c1.4.8 2.9 1.2 4.5 1.2h.1c5.5 0 9.9-4.4 9.9-9.9c0-2.7-1-5.2-2.9-7.1zM12.1 20.1c-1.6 0-3.1-.5-4.4-1.3l-.3-.2l-3.3.9l.9-3.2l-.2-.3c-.9-1.3-1.4-2.9-1.4-4.5c0-4.4 3.6-8 8-8s8 3.6 8 8c0 4.4-3.6 8-8 8zM17.5 14c-.2-.1-1.3-.6-1.5-.7c-.2-.1-.4-.1-.5.1c-.2.2-.6.7-.7.8c-.1.1-.3.2-.5.1c-.3-.1-1.1-.4-2.1-1.3c-.8-.7-1.3-1.5-1.4-1.8c-.1-.3 0-.4.1-.5c.1-.1.2-.3.3-.4c.1-.1.1-.2.2-.4c.1-.1.1-.3 0-.4c0-.1-.5-1.3-.7-1.8c-.2-.5-.4-.4-.5-.4h-.5c-.1 0-.3.1-.5.3c-.2.2-.6.6-.6 1.5c0 .9.6 1.7.7 1.8c.1.1 1.3 2 3.1 3.7c1.8 1.7 2.4 1.8 2.8 1.8c.4 0 1.2-.5 1.4-.9c.2-.5.2-.9.1-1c-.1-.1-.2-.2-.4-.3z"/></svg>');
}

/* Botón de Like */
.muro-like-button {
    display: flex;
    align-items: center;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0;
    margin-right: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    transition: color 0.2s;
}
.muro-like-button:hover {
    color: #65676b;
}
.muro-like-button:focus,
.muro-like-button:active {
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}
.muro-like-text { display: none; }
.muro-like-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 4px;
}
.muro-like-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: currentColor;
    transition: all 0.2s;
}
.muro-like-button.liked { color: #e0245e; }
.muro-share-buttons { margin-left: auto; }

/* --- Modal de Login (Sin cambios) --- */
.me-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99998;
    overflow-y: auto;
    padding: 40px;
    font-family: 'Quicksand', sans-serif;
}
.me-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 400px;
    margin: 40px auto 0 auto;
    padding: 30px 30px 30px 30px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    text-align: center;
}
.me-modal-icon {
    margin: 0 auto 15px auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.me-modal-icon svg {
    width: 32px;
    height: 32px;
    stroke: #e0245e;
    stroke-width: 1.5;
    fill: #e0245e;
}
.me-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #000000 !important;
    font-family: 'Arial', sans-serif;
    text-decoration: none;
    background: none !important;
    border: none !important;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    outline: none !important;
    box-shadow: none !important;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.me-modal-close:hover { 
    opacity: 0.5;
    color: #000000 !important; 
    background: none !important;
}
.me-modal-close:focus, .me-modal-close:active {
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
    opacity: 1;
}
.me-modal-content h4 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    color: #1c1e21;
}
.me-modal-content p {
    font-size: 15px;
    margin-bottom: 25px;
    color: #65676b;
    line-height: 1.5;
}
.me-modal-shortcode-wrapper {
    border-top: 1px solid #eee;
    padding-top: 25px;
}
.me-modal-shortcode-wrapper .nsl-container {
    padding: 0 !important;
    display: flex;
    justify-content: center;
}
.me-modal-shortcode-wrapper .nsl-container-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.me-modal-shortcode-wrapper .nsl-button {
    width: 100%;
    max-width: 250px;
    margin-bottom: 10px;
}

/* --- Estilos de Paginación (Sin cambios) --- */
.muro-pagination {
    margin: 30px 0 10px 0;
    text-align: center;
    font-family: 'Quicksand', sans-serif;
}
.muro-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 2px;
    border-radius: 8px;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}
.muro-pagination .page-numbers:hover {
    background: #e0e0e0;
    color: #111;
}
.muro-pagination .page-numbers.current {
    background: #385898;
    color: #fff;
    cursor: default;
}
.muro-pagination .page-numbers.dots {
    background: none;
    padding: 8px 4px;
}