/* Blog post (php/single.php). The cards ("Más artículos") and .blogButton are in blog.css, loaded too.
   Side padding uses --gutter (header.css), so everything lines up with the header. */

.postPage {
    font-variant-numeric: lining-nums; /* Baskervville's default digits hang below the line ("en 5 pasos") */
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
}

/* ---------- Hero: photo + back link, date and title ---------- */

.postHero {
    position: relative;
    height: 60vh;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 0 var(--gutter) 60px;
    box-sizing: border-box;
    background-color: black;
    overflow: hidden;
}

.postHeroImg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.postHeroText {
    position: relative;
    max-width: 900px;
}

.postBack {
    font-family: 'Calibri';
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    font-size: 0.95em;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.postBack:hover {
    color: #caab77;
}

.postDate {
    font-family: 'Calibri';
    color: #caab77;
    letter-spacing: 2px;
    font-size: 0.95em;
    margin: 28px 0 10px;
}

.postHero h1 {
    font-family: 'Baskervville';
    font-weight: 600;
    color: white;
    font-size: 3em;
    line-height: 1.15;
    margin: 0;
}


/* ---------- Article: whatever the WordPress editor produces ---------- */

.postBody {
    padding: 70px var(--gutter) 30px;
}

.postContent {
    max-width: 800px;
    margin: 0 auto;
}

.postContent p,
.postContent li {
    font-family: 'Baskervville';
    color: #333333;
    font-size: 1.2em;
    line-height: 1.65;
}

.postContent p {
    margin: 0 0 1.2em;
}

.postContent h2,
.postContent h3,
.postContent h4 {
    font-family: 'Baskervville';
    font-weight: 600;
    color: black;
    line-height: 1.25;
    margin: 1.6em 0 0.6em;
}

.postContent h2 {
    font-size: 1.9em;
}

.postContent h3 {
    font-size: 1.5em;
}

.postContent h4 {
    font-size: 1.25em;
}

.postContent ul,
.postContent ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.postContent li {
    margin-bottom: 0.4em;
}

.postContent a {
    color: #caab77;
    text-decoration: underline;
    word-wrap: break-word;
}

.postContent a:hover {
    color: black;
}

.postContent strong {
    color: black;
}

.postContent blockquote {
    border-left: 3px solid #caab77;
    margin: 1.6em 0;
    padding: 0.2em 0 0.2em 1.4em;
}

.postContent blockquote p {
    font-style: italic;
    font-size: 1.35em;
    color: black;
}

.postContent img,
.postContent figure {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.postContent figure {
    margin: 1.8em 0;
}

.postContent figcaption {
    font-family: 'Calibri';
    color: #888888;
    font-size: 0.9em;
    text-align: center;
    margin-top: 8px;
}

.postContent iframe,
.postContent video {
    max-width: 100%;
}


/* ---------- Call to action ---------- */

.postCta {
    padding: 40px var(--gutter) 20px;
}

.postCtaBox {
    max-width: 800px;
    margin: 0 auto;
    background-color: black;
    border-radius: 16px;
    padding: 45px 50px;
    box-sizing: border-box;
    text-align: center;
}

.postCtaBox h2 {
    font-family: 'Baskervville';
    font-weight: 600;
    color: #caab77;
    font-size: 1.6em;
    line-height: 1.25;
    margin: 0 0 12px;
}

.postCtaBox p {
    font-family: 'Baskervville';
    color: white;
    font-size: 1.15em;
    margin: 0 0 28px;
}

.postCtaBox .blogButton:hover {
    background-color: white;
    color: #caab77;
}


/* "Más artículos" uses the blog grid (blog.css), with less space above */
.postMore {
    padding-top: 70px;
}


@media (max-width:1600px){

.postHero h1 {
    font-size: 2.4em;
}

.postContent p,
.postContent li {
    font-size: 1.1em;
}

.postContent h2 {
    font-size: 1.6em;
}

.postContent h3 {
    font-size: 1.3em;
}

}


@media (max-width:1150px){

.postHero {
    height: 50vh;
    min-height: 360px;
    padding-bottom: 45px;
}

.postBody {
    padding-top: 50px;
}

}


@media (max-width:600px){

.postHero {
    height: auto;
    min-height: 340px;
    padding-bottom: 35px;
}

.postHero h1 {
    font-size: 1.6em;
}

.postDate {
    font-size: 0.8em;
    margin-top: 20px;
}

.postBack {
    font-size: 0.85em;
}

.postBody {
    padding-top: 35px;
}

.postContent p,
.postContent li {
    font-size: 1em;
    line-height: 1.6;
}

.postContent h2 {
    font-size: 1.35em;
}

.postContent h3 {
    font-size: 1.15em;
}

.postContent blockquote p {
    font-size: 1.1em;
}

.postCtaBox {
    padding: 30px 22px;
}

.postCtaBox h2 {
    font-size: 1.2em;
}

.postCtaBox p {
    font-size: 1em;
}

.postMore {
    padding-top: 45px;
}

}
