/* =====================================================================
   AH-E03 — "Home Comfort Notes"  ·  Rediseño estética CARTA CÁLIDA
   Crema cálida + verde salvia + serif Lora grande y mucho espacio.
   Máxima legibilidad para tercera edad (cuerpo 19–20px, interlineado
   amplio, botones grandes) y formato de "carta" largo y honesto.
   Cumple expectativas Taboola: etiqueta advertorial visible, jerarquía
   editorial real, comentarios sin fotos falsas, pie legal completo.
   ===================================================================== */

:root {
    --paper: #f7f2e9;
    --card: #ffffff;
    --ink: #2b2822;
    --muted: #6f675c;
    --sage: #4c6a52;
    --sage-dark: #38513e;
    --sage-soft: #eaf0ea;
    --terra: #b5654a;
    --cream-dark: #e6ddcd;
    --line: #e7e0d3;
    --highlight: #f6e4b8;
    --font-serif: "Lora", Georgia, "Times New Roman", serif;
    --font-sans: "Inter", -apple-system, Helvetica, Arial, sans-serif;
    --max-width: 760px;
    --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-serif);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.85;
    font-size: 19px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a:focus-visible,
button:focus-visible,
.brand-masthead__brand:focus-visible {
    outline: 3px solid var(--sage);
    outline-offset: 2px;
}

.scroll-progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px; width: 0%;
    background: var(--sage);
    z-index: 9999;
}

/* ── Masthead ── */
.brand-masthead {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.brand-masthead__advertorial-bar {
    background: var(--sage-dark);
    color: #f4efe6;
    text-align: center;
    padding: 8px 14px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.brand-masthead__logo-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card);
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.brand-masthead__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}
.brand-masthead__brand:hover { color: var(--ink); }

.brand-masthead__brand::before {
    content: "";
    width: 12px; height: 12px;
    border-radius: 3px;
    background: var(--terra);
}

.brand-masthead__wordmark {
    font-family: var(--font-serif);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--ink);
}

.header-content { max-width: var(--max-width); margin: 0 auto; }
.header-right, .header-social { display: none; }

/* ── Contenedor del artículo ── */
.editorial-layout {
    max-width: var(--max-width);
    margin: 28px auto 40px;
    padding: 0 20px;
}

.main-column {
    min-width: 0;
    background: var(--card);
    padding: 48px 52px 52px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(43, 40, 34, 0.06);
}

.main-column article { width: 100%; max-width: 100%; }

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.breadcrumb-mark {
    width: 11px; height: 11px;
    flex-shrink: 0;
    border-radius: 3px;
    background: var(--sage);
}

.breadcrumb-trail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted);
}

.breadcrumb-link { color: var(--sage-dark); text-decoration: none; font-weight: 600; }
.breadcrumb-link:hover { text-decoration: underline; }
.breadcrumb-sep { color: #b6ac99; font-size: 12px; }
.breadcrumb-text { color: var(--muted); }
.breadcrumb-text--muted { color: #948a79; font-style: italic; }

/* ── Titular ── */
.main-headline {
    font-family: var(--font-serif);
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 22px;
    color: var(--ink);
}

.article-subtitle {
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    line-height: 1.7;
    color: #4f4a41;
    margin: 0 0 26px;
    padding-left: 18px;
    border-left: 3px solid var(--terra);
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 34px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.byline-author { color: var(--ink); font-weight: 700; }
.byline-separator { color: #c3b9a5; }
.byline-date { color: var(--muted); }

/* ── Imagen principal ── */
.video-hero {
    width: 100%;
    margin-bottom: 40px;
    border-radius: var(--radius);
    overflow: hidden;
}
.video-hero a { display: block; text-decoration: none; }
.video-hero .article-hero-img,
.video-hero .thumb-img { width: 100%; height: auto; display: block; }

.article-body .article-inline-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 32px 0 12px;
    border-radius: var(--radius);
}

.video-caption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted);
    font-style: italic;
}

.image-placeholder {
    width: 100%;
    min-height: 260px;
    background: var(--sage-soft);
    border: 2px dashed #c7d2c6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--sage-dark);
    text-align: center;
    padding: 32px 20px;
}
.image-placeholder--compact { min-height: 190px; }

.image-desc {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
    margin: 10px 0 34px;
    font-style: italic;
}

/* ── Cuerpo ── */
.article-body { margin-bottom: 48px; }

.article-body p {
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.9;
    margin: 0 0 20px;
    color: #322e27;
}

.article-body strong { font-weight: 700; color: var(--ink); }
.article-body em { font-style: italic; }

.highlight {
    background: linear-gradient(to bottom, transparent 55%, var(--highlight) 55%, var(--highlight) 92%, transparent 92%);
    padding: 0 3px;
}

.article-body ul {
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.8;
    color: #322e27;
    margin: 0 0 22px;
    padding-left: 1.4em;
    list-style: none;
}
.article-body li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 1.4em;
}
.article-body li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--sage);
    font-weight: 700;
    font-family: var(--font-sans);
}

.article-body h2 {
    font-family: var(--font-serif);
    font-size: 29px;
    font-weight: 700;
    color: var(--ink);
    margin: 54px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sage-soft);
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.article-body h2 strong { font-weight: 700; }

.article-body .image-placeholder { margin: 28px 0 0; }
.article-body .image-desc { margin-top: 10px; margin-bottom: 36px; }

/* ── Tarjeta de producto ── */
.product-card {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 30px;
    margin: 48px 0;
    padding: 32px;
    background: var(--sage-soft);
    border: 1px solid #d7e0d6;
    border-radius: var(--radius);
    align-items: center;
}

.product-card-img { width: 100%; }
.product-card-offer-frame { width: 100%; }

.product-card-badge {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 14px;
    padding: 8px 18px;
    background: var(--sage-dark);
    color: #f4efe6;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    border-radius: 999px;
}

.product-card-photo-wrap {
    background: var(--card);
    border: 1px solid #d7e0d6;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.product-card-photo-wrap .product-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

.product-card-info { display: flex; flex-direction: column; gap: 10px; }

.product-card-label {
    font-family: var(--font-serif);
    font-size: 27px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.22;
    max-width: 20ch;
}

.product-card-detail {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--muted);
    line-height: 1.55;
}

.product-card-stock {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--sage-dark);
    font-weight: 600;
    margin: 4px 0 10px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    padding: 18px 26px;
    background: var(--sage);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(76, 106, 82, 0.28);
    transition: background 0.2s ease, transform 0.1s ease;
}
.cta-btn:hover { background: var(--sage-dark); }
.cta-btn:active { transform: translateY(1px); }

/* ── Comentarios (estilo red social, sin fotos reales) ── */
.comments-section {
    margin: 48px 0 0;
    border-top: 1px solid var(--line);
    padding: 30px 0 0;
}

.comments-feed {
    position: relative;
    background: var(--card);
    border-radius: var(--radius);
    padding: 18px 20px 20px;
    border: 1px solid var(--line);
}

.comments-svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.comment-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.comment-item:last-child { margin-bottom: 0; }
.comment-item.reply { margin-left: 48px; }

.comment-avatar--empty {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sage-soft);
}
.comment-avatar-svg { display: block; width: 36px; height: 36px; }

.comment-content { min-width: 0; flex: 1; }

.comment-bubble-stack {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding-right: 28px;
    margin-bottom: 2px;
}

.comment-bubble {
    background: #f2f0ea;
    border-radius: 18px;
    padding: 9px 14px;
    display: inline-block;
    max-width: 100%;
}

.comment-line {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink);
}

.comment-author { font-weight: 700; color: var(--sage-dark); }
.comment-author::after { content: " "; }
.comment-text { font-weight: 400; color: var(--ink); }

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 3px;
    padding-left: 12px;
    font-family: var(--font-sans);
}

.comment-action {
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    color: var(--sage-dark);
    cursor: pointer;
    padding: 0;
}
.comment-action:hover { text-decoration: underline; }

.comment-meta-dot { color: #b6ac99; font-size: 12px; font-weight: 600; padding: 0 5px; }
.comment-time { font-size: 12px; color: var(--muted); }

.comment-reactions {
    position: absolute;
    right: 0; bottom: -2px;
    transform: translateY(50%);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1px 8px 2px;
    line-height: 1.25;
    text-align: center;
}

.comments-disclaimer {
    margin-top: 16px;
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
}

/* ── Pie ── */
.main-footer {
    background: var(--card);
    padding: 48px 24px 60px;
    margin-top: 0;
    border-top: 1px solid var(--line);
}

.footer-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }

.footer-disclaimer {
    font-family: var(--font-sans);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.footer-additional-info { margin: 28px 0; text-align: left; }
.footer-additional-info p {
    font-family: var(--font-sans);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 14px;
}
.footer-additional-info strong { color: var(--ink); }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font-family: var(--font-sans);
    font-size: 14px;
    margin-top: 24px;
}
.footer-links a { color: var(--sage-dark); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-links span { color: #c3b9a5; }

img { max-width: 100%; height: auto; display: block; }

/* ── Responsive ── */
@media (max-width: 900px) {
    body { font-size: 18px; }
    .editorial-layout { padding: 0 14px; margin: 20px auto 28px; }
    .main-column { padding: 30px 22px 36px; border-radius: 12px; }
    .main-headline { font-size: clamp(22px, 5.5vw, 26px); }
    .article-subtitle { font-size: 18px; }
    .article-body p, .article-body ul { font-size: 18px; }
    .product-card { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
    .product-card-label { font-size: 24px; max-width: none; }
    .cta-btn { max-width: none; }
    .comment-item.reply { margin-left: 20px; }
    .brand-masthead__wordmark { font-size: 23px; }
}
