/* ============================================
   PLUMA THEME — SINGLE POST STYLES
   Diseño editorial plano (flat), sin cards.
   Clases actualizadas para coincidir con single.php
   ============================================ */

html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

/* --------------------------------------------------
   BARRA DE PROGRESO DE LECTURA
-------------------------------------------------- */
#ps-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ps-primary), var(--ps-secondary));
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    pointer-events: none;
}

/* --------------------------------------------------
   MAIN — fondo blanco, sin body gris (evita efecto card)
-------------------------------------------------- */
body.single,
body.single-post {
    background: #fff;
}

.ps-main {
    background: #fff;
    min-height: 80vh;
}

/* --------------------------------------------------
   LAYOUT — contenedor + grid con/sin sidebar
-------------------------------------------------- */
.ps-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 30px 80px;
}

/* Sin sidebar: el artículo se centra en 820px para que
   el texto no quede perdido a la izquierda */
.ps-layout:not(.ps-layout--sidebar) .ps-articulo {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* Con sidebar: grid de dos columnas */
.ps-layout--sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.ps-articulo {
    min-width: 0; /* Previene overflow en grid */
}

/* --------------------------------------------------
   HERO (modo "destacada")
-------------------------------------------------- */
.ps-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.ps-hero__overlay {
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    padding: 80px 30px 60px;
}

.ps-hero__contenido {
    max-width: 960px;
    margin: 0 auto;
    color: #fff;
}

.ps-hero__titulo {
    font-size: clamp(28px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin: 16px 0 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: -0.5px;
}

.ps-hero__subtitulo {
    font-size: 20px;
    opacity: 0.88;
    margin: 0;
    line-height: 1.6;
    color: rgba(255,255,255,.9);
}

/* --------------------------------------------------
   CABECERA EDITORIAL DEL ARTÍCULO
-------------------------------------------------- */
.ps-cabecera-articulo {
    margin-bottom: 32px;
}

/* Categorías */
.ps-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ps-cats .pluma-categoria,
.ps-cats a {
    display: inline-block;
    background: var(--ps-primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: opacity 0.2s ease;
}

.ps-cats .pluma-categoria:hover,
.ps-cats a:hover { opacity: 0.82; }

/* Título */
.ps-titulo {
    font-size: clamp(26px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

/* Subtítulo opcional */
.ps-subtitulo {
    font-size: 19px;
    color: #555;
    font-weight: 400;
    margin: 0 0 20px;
    line-height: 1.65;
}

/* --------------------------------------------------
   META ROW — avatar + autor + fecha + lectura
-------------------------------------------------- */
.ps-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    font-size: 13px;
    color: #777;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8eaed;
}

/* Avatar del autor */
.ps-meta__avatar-link {
    flex-shrink: 0;
    display: block;
    line-height: 0;
    text-decoration: none;
}

/* El avatar generado por get_avatar() */
.ps-meta__avatar,
.ps-meta__avatar-link img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: 2px solid var(--ps-primary) !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Info del autor */
.ps-meta__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.ps-meta__autor {
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.ps-meta__autor:hover { color: var(--ps-primary); }

.ps-meta__detalles {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
}

.ps-meta__sep { color: #ddd; }

.ps-meta__lectura {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ps-meta time { color: #999; }

.ps-meta .pluma-categoria,
.ps-meta .ps-cat-badge {
    background: var(--ps-primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* --------------------------------------------------
   BOTONES COMPARTIR MINI (junto al meta, solo iconos)
-------------------------------------------------- */
.ps-compartir-mini {
    margin-left: auto;
    flex-shrink: 0;
}

.ps-compartir-mini .pluma-compartir {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    gap: 6px;
}

.ps-compartir-mini .pluma-compartir__etiqueta {
    display: none;
}

.ps-compartir-mini .pluma-compartir__botones {
    gap: 6px;
}

.ps-compartir-mini .pluma-compartir__btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.ps-compartir-mini .pluma-compartir__btn span {
    display: none; /* Solo iconos */
}

/* --------------------------------------------------
   IMAGEN DESTACADA
-------------------------------------------------- */
.ps-imagen-destacada {
    margin: 32px 0 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.ps-imagen-destacada img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    transition: transform 0.6s ease;
}

.ps-imagen-destacada:hover img { transform: scale(1.02); }

/* --------------------------------------------------
   CONTENT — area de contenido del artículo
-------------------------------------------------- */
.ps-contenido {
    margin: 0 0 48px;
    line-height: 1.9;
    color: var(--ps-text, #2c3e50);
    font-size: 18px;
}

/* Headings */
.ps-contenido h1,
.ps-contenido h2,
.ps-contenido h3,
.ps-contenido h4,
.ps-contenido h5,
.ps-contenido h6 {
    font-weight: 800;
    color: #1a1a1a;
    margin-top: 2.5em;
    margin-bottom: 0.8em;
    line-height: 1.25;
    letter-spacing: -0.4px;
}

.ps-contenido h2 {
    font-size: clamp(22px, 3vw, 34px);
    position: relative;
    padding-bottom: 16px;
    margin-top: 3em;
}

.ps-contenido h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--ps-primary) 0%, var(--ps-secondary) 100%);
    border-radius: 3px;
}

.ps-contenido h3 {
    font-size: clamp(19px, 2.5vw, 26px);
    color: var(--ps-secondary);
}

.ps-contenido h4 {
    font-size: clamp(17px, 2vw, 22px);
    color: #2c3e50;
}

.ps-contenido p { margin-bottom: 1.6em; }

/* Links */
.ps-contenido a {
    color: var(--ps-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease, opacity 0.25s ease;
    padding-bottom: 2px;
}

.ps-contenido a:hover {
    border-bottom-color: var(--ps-primary);
    opacity: 0.8;
}

/* Lists */
.ps-contenido ul,
.ps-contenido ol {
    margin: 2em 0;
    padding-left: 40px;
}

.ps-contenido li {
    margin-bottom: 1em;
    line-height: 1.8;
    font-size: 18px;
}

.ps-contenido ul li::marker {
    color: var(--ps-primary);
    font-size: 1.2em;
}

.ps-contenido ol li::marker {
    color: var(--ps-secondary);
    font-weight: 700;
}

/* Blockquote */
.ps-contenido blockquote {
    margin: 3em 0;
    padding: 32px 36px 32px 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 6px solid var(--ps-primary);
    border-radius: 10px;
    font-style: italic;
    position: relative;
    color: #2c3e50;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.ps-contenido blockquote::before {
    content: '\201C';
    position: absolute;
    left: 20px;
    top: 12px;
    font-size: 72px;
    font-family: Georgia, serif;
    color: var(--ps-primary);
    opacity: 0.15;
    line-height: 1;
}

/* Images inside content */
.ps-contenido img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    margin: 2.5em auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ps-contenido img:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.ps-contenido .wp-block-image { margin: 2.5em 0; }

/* Tables */
.ps-contenido table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5em 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    border-radius: 10px;
    overflow: hidden;
    font-size: 15px;
}

.ps-contenido table th {
    background: linear-gradient(135deg, var(--ps-secondary) 0%, var(--ps-primary) 100%);
    color: #fff;
    padding: 16px 18px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ps-contenido table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
}

.ps-contenido table tr:nth-child(even) { background: #f9fafb; }
.ps-contenido table tr:hover { background: rgba(0,0,0,0.02); }

/* Shortcodes (su-note) */
.ps-contenido .su-note.moteles {
    max-width: 100% !important;
    border: none !important;
    border-radius: 14px !important;
    margin: 2.5em 0 !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07) !important;
}

/* Page links */
.ps-paginacion-post {
    margin: 0 0 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ps-paginacion-post span { font-weight: 700; color: #666; }

.ps-paginacion-post a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--ps-secondary);
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    border: none;
    transition: opacity 0.2s ease;
}

.ps-paginacion-post a:hover { opacity: 0.8; }

/* --------------------------------------------------
   TABLE OF CONTENTS (TOC)
   Inyectado DENTRO del contenido, antes del primer H2
-------------------------------------------------- */
.ps-toc {
    margin: 0 0 40px;
    padding: 0 20px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--ps-primary);
    border-radius: 10px;
    overflow: hidden;
}

.ps-toc__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--ps-secondary);
    font-family: inherit;
    text-align: left;
    transition: color 0.2s ease;
}

.ps-toc__toggle:hover { color: var(--ps-primary); }

.ps-toc__toggle > span { flex: 1; }

.ps-toc__chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ps-toc__toggle--cerrado .ps-toc__chevron {
    transform: rotate(-90deg);
}

#ps-toc-nav {
    padding-bottom: 16px;
}

#ps-toc-nav ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ps-toc__item {
    margin: 0;
}

.ps-toc__enlace {
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    line-height: 1.4;
    border: none;
}

.ps-toc__enlace:hover,
.ps-toc__enlace--activo {
    color: var(--ps-primary);
    background: rgba(0, 0, 0, 0.04);
    padding-left: 16px;
    border-bottom: none;
    opacity: 1;
}

.ps-toc__enlace--activo {
    font-weight: 700;
}

/* H3 indentados */
.ps-toc__item--h3 .ps-toc__enlace {
    padding-left: 24px;
    font-size: 13px;
    color: #777;
}

.ps-toc__item--h3 .ps-toc__enlace:hover,
.ps-toc__item--h3 .ps-toc__enlace.ps-toc__enlace--activo {
    padding-left: 30px;
}

/* --------------------------------------------------
   ETIQUETAS (tags)
-------------------------------------------------- */
.ps-etiquetas {
    margin: 0 0 40px;
    padding: 28px 0 0;
    border-top: 1px solid #e8eaed;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ps-etiquetas a {
    display: inline-block;
    padding: 7px 16px;
    background: rgba(0,0,0,0.04);
    color: var(--ps-secondary);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all 0.25s ease;
}

.ps-etiquetas a:hover {
    background: var(--ps-primary);
    color: #fff;
    border-color: var(--ps-primary);
    transform: translateY(-2px);
    border-bottom: 1px solid var(--ps-primary);
    opacity: 1;
}

/* --------------------------------------------------
   BOTONES DE COMPARTIR — versión completa (pie)
-------------------------------------------------- */
.ps-compartir-pie {
    margin: 0 0 48px;
}

.ps-compartir-pie .pluma-compartir,
.ps-compartir-mini .pluma-compartir {
    margin: 0;
}

/* --------------------------------------------------
   BOTONES DE COMPARTIR EN REDES SOCIALES (base)
-------------------------------------------------- */
.pluma-compartir {
    margin: 0 0 32px;
    padding: 24px 26px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pluma-compartir__etiqueta {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
    white-space: nowrap;
    flex-shrink: 0;
}

.pluma-compartir__botones {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pluma-compartir__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    line-height: 1;
    color: #fff;
}

.pluma-compartir__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    border-bottom: 2px solid transparent;
    opacity: 1;
}

.pluma-compartir__btn--twitter  { background: #000; }
.pluma-compartir__btn--twitter:hover  { background: #111; }

.pluma-compartir__btn--facebook { background: #1877f2; }
.pluma-compartir__btn--facebook:hover { background: #0d65d8; }

.pluma-compartir__btn--whatsapp { background: #25d366; }
.pluma-compartir__btn--whatsapp:hover { background: #1ab75a; }

.pluma-compartir__btn--telegram { background: #0088cc; }
.pluma-compartir__btn--telegram:hover { background: #0077b5; }

.pluma-compartir__btn--pinterest { background: #e60023; }
.pluma-compartir__btn--pinterest:hover { background: #c0001d; }

/* --------------------------------------------------
   AUTHOR BOX — caja del autor
-------------------------------------------------- */
.ps-autor {
    margin: 0 0 48px;
    padding: 32px 28px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: box-shadow 0.3s ease;
}

.ps-autor:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.ps-autor__avatar-link {
    flex-shrink: 0;
    display: block;
    line-height: 0;
}

.ps-autor__avatar-link img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ps-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    margin: 0;
    display: block;
    transition: none;
}

.ps-autor__info {
    flex: 1;
    min-width: 0;
}

.ps-autor__badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ps-primary);
    margin-bottom: 4px;
}

.ps-autor__nombre {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}

.ps-autor__nombre a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.25s ease;
    border: none;
    font-weight: 800;
    padding: 0;
}

.ps-autor__nombre a:hover {
    color: var(--ps-primary);
    opacity: 1;
    border: none;
}

.ps-autor__bio {
    color: #666;
    line-height: 1.75;
    margin: 0 0 12px;
    font-size: 15px;
}

.ps-autor__ver-mas {
    display: inline-block;
    padding: 8px 18px;
    background: transparent;
    border: 2px solid var(--ps-primary);
    color: var(--ps-primary);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.ps-autor__ver-mas:hover {
    background: var(--ps-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    border-color: var(--ps-primary);
    border-bottom-color: var(--ps-primary);
    opacity: 1;
}

/* --------------------------------------------------
   NAVEGACIÓN ENTRE ENTRADAS (anterior / siguiente)
-------------------------------------------------- */
.ps-nav-entradas {
    margin: 0 0 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ps-nav-entradas__prev,
.ps-nav-entradas__next {
    display: block;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 22px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ps-nav-entradas__prev:hover,
.ps-nav-entradas__next:hover {
    border-color: var(--ps-primary);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.ps-nav-entradas__next { text-align: right; }

.ps-nav-entradas__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ps-primary);
    margin-bottom: 8px;
}

.ps-nav-entradas__titulo {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    transition: color 0.25s ease;
}

.ps-nav-entradas__prev:hover .ps-nav-entradas__titulo,
.ps-nav-entradas__next:hover .ps-nav-entradas__titulo {
    color: var(--ps-primary);
}

/* --------------------------------------------------
   RELATED POSTS
-------------------------------------------------- */
.pluma-relacionadas {
    margin: 0 0 56px;
}

.pluma-relacionadas__titulo {
    color: var(--ps-secondary);
    font-size: 24px;
    margin-bottom: 28px;
    font-weight: 800;
    position: relative;
    padding-bottom: 14px;
}

.pluma-relacionadas__titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--ps-primary);
    border-radius: 3px;
}

/* --------------------------------------------------
   COMENTARIOS
-------------------------------------------------- */
.ps-comentarios {
    margin: 0 0 60px;
    padding: 40px 32px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.ps-comentarios .comments-title {
    color: var(--ps-secondary);
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 800;
    position: relative;
    padding-bottom: 14px;
}

.ps-comentarios .comments-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--ps-primary);
    border-radius: 3px;
}

.ps-comentarios .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.ps-comentarios .comment {
    padding: 24px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid var(--ps-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.ps-comentarios .comment:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.ps-comentarios .comment-author b {
    font-weight: 800;
    color: var(--ps-secondary);
    font-size: 15px;
}

.ps-comentarios .comment-reply-link {
    display: inline-block;
    margin-top: 12px;
    padding: 7px 16px;
    background: var(--ps-secondary);
    color: #fff !important;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    border: none;
}

.ps-comentarios .comment-reply-link:hover {
    background: var(--ps-primary);
    transform: translateY(-2px);
}

.ps-comentarios .comment-form input[type="text"],
.ps-comentarios .comment-form input[type="email"],
.ps-comentarios .comment-form input[type="url"],
.ps-comentarios .comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 14px;
    box-sizing: border-box;
    background: #fff;
}

.ps-comentarios .comment-form input[type="text"]:focus,
.ps-comentarios .comment-form input[type="email"]:focus,
.ps-comentarios .comment-form input[type="url"]:focus,
.ps-comentarios .comment-form textarea:focus {
    outline: none;
    border-color: var(--ps-secondary);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

.ps-comentarios .comment-form input[type="submit"],
.ps-comentarios .comment-form .submit {
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-secondary) 100%);
    color: #fff;
    padding: 14px 36px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ps-comentarios .comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 1200px) {
    html { scroll-padding-top: 90px; }

    .ps-layout--sidebar {
        grid-template-columns: 1fr 280px;
        gap: 40px;
    }

    .ps-layout { padding: 40px 24px 60px; }
}

@media (max-width: 1024px) {
    .ps-layout--sidebar {
        grid-template-columns: 1fr;
    }

    /* Con sidebar apilado, el artículo también se centra */
    .ps-layout--sidebar .ps-articulo {
        max-width: 820px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 80px; }

    .ps-layout { padding: 32px 16px 48px; }

    .ps-contenido { font-size: 17px; }
    .ps-contenido h2 { font-size: 22px; }
    .ps-contenido h3 { font-size: 19px; }
    .ps-contenido h4 { font-size: 17px; }
    .ps-contenido blockquote { padding: 24px 18px 24px 56px; font-size: 17px; }

    .ps-hero { min-height: 50vh; }
    .ps-hero__overlay { padding: 32px 16px 40px; }

    .ps-autor {
        flex-direction: column;
        gap: 16px;
    }

    .ps-nav-entradas { grid-template-columns: 1fr; }
    .ps-nav-entradas__next { text-align: left; }

    .ps-compartir-mini {
        margin-left: 0;
    }

    .pluma-compartir {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .ps-contenido { font-size: 16px; }
    .ps-hero__titulo { font-size: 24px; }
    .ps-autor__avatar-link img { width: 64px !important; height: 64px !important; }

    .pluma-compartir__btn span { display: none; }
    .pluma-compartir__btn { padding: 10px; }

    .ps-compartir-mini .pluma-compartir__btn {
        width: 34px;
        height: 34px;
        padding: 0;
        justify-content: center;
        align-items: center;
    }
}
