/* ═══════════════════════════════════════════════════
   BARRA DE PROGRESO
   ═══════════════════════════════════════════════════ */
.tm-progress-bar {
    position: fixed;
    top: 72px;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--tm-gold, #B8860B);
    z-index: 998;
    transition: width .1s linear;
}

/* ═══════════════════════════════════════════════════
   HERO DEL ARTÍCULO
   ═══════════════════════════════════════════════════ */
.tm-article-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    background: #111;
    overflow: hidden;
}

.tm-article-hero--no-img {
    min-height: 40vh;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
}

.tm-article-hero__img {
    position: absolute;
    inset: 0;
}

.tm-article-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .75;
}

.tm-article-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,.9) 0%,
        rgba(0,0,0,.5) 50%,
        rgba(0,0,0,.1) 100%);
}

.tm-article-hero__content {
    position: relative;
    z-index: 2;
    padding: 80px 2rem 60px;
    width: 100%;
    max-width: 860px;
}

/* Breadcrumb */
.tm-breadcrumb {
    font-size: .72rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.tm-breadcrumb a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color .25s;
}

.tm-breadcrumb a:hover { color: var(--tm-gold, #B8860B); }

.tm-breadcrumb span[aria-hidden] { opacity: .4; }

.tm-breadcrumb span[aria-current] { color: rgba(255,255,255,.85); }

/* Categoría */
.tm-article-hero__cat {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--tm-gold, #B8860B);
    margin-bottom: 1rem;
    text-decoration: none;
}

/* Título */
.tm-article-hero__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 1rem;
    max-width: 780px;
}

/* Subtítulo */
.tm-article-hero__subtitle {
    font-size: clamp(.95rem, 1.5vw, 1.15rem);
    color: rgba(255,255,255,.8);
    line-height: 1.65;
    max-width: 620px;
    margin: 0 0 1.5rem;
}

/* Meta */
.tm-article-hero__meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.tm-article-hero__author-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--tm-gold, #B8860B);
    flex-shrink: 0;
}

.tm-article-hero__meta-info {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.tm-article-hero__author {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
}

.tm-article-hero__meta-sep { color: rgba(255,255,255,.3); }

.tm-article-hero__date,
.tm-article-hero__location {
    font-size: .75rem;
    color: rgba(255,255,255,.65);
    display: flex;
    align-items: center;
    gap: .25rem;
}

.tm-article-hero__reading {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    color: rgba(255,255,255,.55);
    margin-left: auto;
}

/* ═══════════════════════════════════════════════════
   LAYOUT ARTÍCULO + SIDEBAR
   ═══════════════════════════════════════════════════ */
.tm-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tm-article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
    padding: 3rem 0 4rem;
}

/* ═══════════════════════════════════════════════════
   BOTONES DE COMPARTIR (sticky)
   ═══════════════════════════════════════════════════ */
.tm-article__share {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    position: sticky;
    top: 100px;
    float: left;
    margin-left: -72px;
    width: 44px;
}

.tm-article__share-label {
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: #999;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    margin-bottom: .3rem;
}

.tm-article__share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0efe9;
    color: #555;
    border: none;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
}

.tm-article__share-btn:hover { background: var(--tm-gold, #B8860B); color: #fff; }
.tm-article__share-btn--copy.is-copied { background: #2ecc71; color: #fff; }

/* ═══════════════════════════════════════════════════
   CUERPO DEL ARTÍCULO
   ═══════════════════════════════════════════════════ */
.tm-article { min-width: 0; }

.tm-article__body { padding-left: 2.5rem; }

/* Video embebido */
.tm-article__video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.tm-article__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contenido del artículo */
.tm-article__content {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
}

.tm-article__content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    color: #111;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.tm-article__content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: #111;
    margin: 2rem 0 .75rem;
}

.tm-article__content p { margin: 0 0 1.5rem; }

.tm-article__content img {
    width: 100%;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.tm-article__content a {
    color: var(--tm-gold, #B8860B);
    border-bottom: 1px solid rgba(184,134,11,.3);
    transition: border-color .25s;
}

.tm-article__content a:hover { border-color: var(--tm-gold, #B8860B); }

.tm-article__content blockquote {
    border-left: 4px solid var(--tm-gold, #B8860B);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #f8f8f6;
    border-radius: 0 4px 4px 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #444;
    line-height: 1.6;
}

.tm-article__content ul,
.tm-article__content ol {
    margin: 0 0 1.5rem 1.25rem;
    padding: 0;
}

.tm-article__content li { margin-bottom: .5rem; }

.tm-article__content figure { margin: 2rem 0; }

.tm-article__content figcaption {
    font-size: .78rem;
    color: #999;
    text-align: center;
    margin-top: .5rem;
    font-style: italic;
}

/* Tags */
.tm-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.5rem 0;
    padding-top: 2rem;
    border-top: 1px solid #e5e4dc;
}

.tm-article__tag {
    font-size: .72rem;
    font-weight: 600;
    color: #666;
    background: #f0efe9;
    padding: .3rem .8rem;
    border-radius: 20px;
    transition: all .25s;
    text-decoration: none;
}

.tm-article__tag:hover { background: var(--tm-gold, #B8860B); color: #fff; }

/* Bio del autor */
.tm-article__author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #f8f8f6;
    border: 1px solid #e5e4dc;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2.5rem 0;
}

.tm-article__author-box-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--tm-gold, #B8860B);
    flex-shrink: 0;
}

.tm-article__author-box-label {
    display: block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tm-gold, #B8860B);
    margin-bottom: .25rem;
}

.tm-article__author-box-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #111;
    margin-bottom: .4rem;
}

.tm-article__author-box-bio {
    font-size: .85rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Navegación prev/next */
.tm-article__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid #e5e4dc;
}

.tm-article__nav-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    padding: 1rem;
    border: 1px solid #e5e4dc;
    border-radius: 4px;
    transition: all .25s;
}

.tm-article__nav-item:hover {
    border-color: var(--tm-gold, #B8860B);
    box-shadow: 0 2px 12px rgba(184,134,11,.1);
}

.tm-article__nav-item img {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.tm-article__nav-item span {
    display: block;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--tm-gold, #B8860B);
    margin-bottom: .25rem;
}

.tm-article__nav-item strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: .9rem;
    color: #111;
    line-height: 1.3;
}

.tm-article__nav-item--next { justify-content: flex-end; text-align: right; }

/* ═══════════════════════════════════════════════════
   COMENTARIOS
   ═══════════════════════════════════════════════════ */
.tm-article__comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e5e4dc; }

.tm-article__comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tm-article__comments-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: #111;
    margin: 0;
}

.tm-article__comments-sort { font-size: .78rem; color: #999; }
.tm-article__comments-sort-opt.is-active { color: var(--tm-gold, #B8860B); font-weight: 600; }

/* Comentario individual */
.tm-comment {
    display: flex;
    gap: .85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0efe9;
}

.tm-comment img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.tm-comment__meta {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .4rem;
}

.tm-comment__meta strong { font-size: .85rem; color: #111; }
.tm-comment__meta span   { font-size: .72rem; color: #999; }

.tm-comment__body p { font-size: .88rem; color: #444; line-height: 1.65; margin: 0 0 .5rem; }

.tm-comment__actions { font-size: .72rem; }
.tm-comment__actions a { color: #999; font-weight: 600; text-decoration: none; }
.tm-comment__actions a:hover { color: var(--tm-gold, #B8860B); }

/* Formulario de comentarios */
.comment-form-comment textarea {
    width: 100%;
    min-height: 100px;
    padding: .75rem 1rem;
    border: 1px solid #e5e4dc;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    color: #333;
    resize: vertical;
    outline: none;
    transition: border-color .25s;
}

.comment-form-comment textarea:focus { border-color: var(--tm-gold, #B8860B); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: .6rem 1rem;
    border: 1px solid #e5e4dc;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    outline: none;
    transition: border-color .25s;
}

.comment-form input:focus { border-color: var(--tm-gold, #B8860B); }

.tm-btn {
    display: inline-flex;
    align-items: center;
    padding: .7rem 1.6rem;
    font-family: 'Inter', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--tm-gold, #B8860B);
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
}

.tm-btn:hover { background: #8B6508; color: #fff; }
.tm-btn--sm   { padding: .55rem 1.2rem; font-size: .65rem; }

/* ═══════════════════════════════════════════════════
   NOTAS RELACIONADAS (pie del artículo)
   ═══════════════════════════════════════════════════ */
.tm-related { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid #e5e4dc; }

.tm-related__header { margin-bottom: 1.75rem; }

.tm-related__title {
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .15em;
    color: #111;
    margin: 0;
}

.tm-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.tm-related__card { display: block; text-decoration: none; color: inherit; }

.tm-related__card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 3px;
    margin-bottom: .85rem;
    background: #e5e4dc;
}

.tm-related__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.tm-related__card:hover .tm-related__card-img img { transform: scale(1.05); }

.tm-related__card-placeholder { width: 100%; height: 100%; background: #e5e4dc; }

.tm-related__card-cat {
    display: block;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--tm-gold, #B8860B);
    margin-bottom: .35rem;
}

.tm-related__card-title {
    font-family: 'Playfair Display', serif;
    font-size: .95rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin: 0 0 .4rem;
    transition: color .25s;
}

.tm-related__card:hover .tm-related__card-title { color: var(--tm-gold, #B8860B); }

.tm-related__card-meta { font-size: .68rem; color: #999; }

/* ═══════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════ */
.tm-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tm-sidebar__section-title {
    font-family: 'Inter', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .15em;
    color: #111;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--tm-gold, #B8860B);
}

/* Publicidad sidebar */
.tm-sidebar__ad { }
.tm-sidebar__ad-label {
    font-size: .6rem;
    letter-spacing: .15em;
    color: #bbb;
    text-align: center;
    margin-bottom: .5rem;
}

.tm-sidebar__ad-placeholder {
    background: #f8f8f6;
    border: 1px dashed #ddd;
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
}

.tm-sidebar__ad-placeholder p  { font-size: .85rem; color: #999; margin: 0 0 .25rem; }
.tm-sidebar__ad-placeholder small { font-size: .72rem; color: #bbb; }

/* Notas relacionadas sidebar */
.tm-sidebar__related { }

.tm-sidebar__related-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .85rem 0;
    border-bottom: 1px solid #f0efe9;
    text-decoration: none;
    color: inherit;
    transition: opacity .25s;
}

.tm-sidebar__related-item:hover { opacity: .8; }

.tm-sidebar__related-img img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.tm-sidebar__related-cat {
    display: block;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--tm-gold, #B8860B);
    margin-bottom: .2rem;
}

.tm-sidebar__related-title {
    font-family: 'Playfair Display', serif;
    font-size: .85rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin: 0 0 .25rem;
}

.tm-sidebar__related-link {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--tm-gold, #B8860B);
}

/* Newsletter sidebar */
.tm-sidebar__newsletter {
    background: #111;
    border-radius: 6px;
    padding: 1.5rem;
    color: rgba(255,255,255,.75);
}

.tm-sidebar__newsletter .tm-sidebar__section-title { color: #fff; border-color: var(--tm-gold, #B8860B); }
.tm-sidebar__newsletter p   { font-size: .82rem; line-height: 1.6; margin: 0 0 1rem; }

.tm-sidebar__nl-form { display: flex; flex-direction: column; gap: .6rem; }

.tm-sidebar__nl-form input[type="email"] {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 3px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    padding: .6rem .85rem;
    outline: none;
    transition: border-color .25s;
    width: 100%;
}

.tm-sidebar__nl-form input[type="email"]:focus { border-color: var(--tm-gold, #B8860B); }
.tm-sidebar__nl-form input[type="email"]::placeholder { color: rgba(255,255,255,.4); }

.tm-sidebar__nl-check {
    font-size: .68rem;
    color: rgba(255,255,255,.4);
    display: flex;
    align-items: flex-start;
    gap: .35rem;
    line-height: 1.4;
}

.tm-sidebar__nl-check a { color: var(--tm-gold, #B8860B); }

.tm-nl-msg { font-size: .78rem; min-height: 1.2rem; }
.tm-nl-msg.ok  { color: #2ecc71; }
.tm-nl-msg.err { color: #e74c3c; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .tm-article-layout { grid-template-columns: 1fr 300px; gap: 2rem; }
    .tm-related__grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .tm-article-layout { grid-template-columns: 1fr; }
    .tm-sidebar { position: static; }
    .tm-article__share { display: none; }
    .tm-article__body  { padding-left: 0; }
    .tm-related__grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .tm-article-hero__content { padding: 60px 1rem 40px; }
    .tm-article-hero__title   { font-size: 1.75rem; }
    .tm-article-hero__reading { display: none; }
    .tm-article__nav { grid-template-columns: 1fr; }
    .tm-article__nav-item img { display: none; }
    .tm-related__grid { grid-template-columns: 1fr; }
    .tm-wrap { padding: 0 1rem; }
    .tm-article-layout { padding: 2rem 0; }
}
