/* ──────────────────────────────────────────────────────────────
   Vive tu Anillo · Estilos del blog
   Se usa en la página de índice (/blog) y en cada entrada (/blog/…)
   ────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --rose: #c08878;
    --rose-light: #f5edeb;
    --rose-dark: #9a6858;
    --off-white: #faf8f7;
    --text-dark: #2a2a2a;
    --text-mid: #5a5a5a;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.8;
}

/* ── Navegación superior ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 3rem;
    background: #fff;
    border-bottom: 1px solid rgba(176, 122, 114, 0.12);
}
.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-style: italic;
    color: var(--rose);
    text-decoration: none;
}
.nav-back {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
    text-decoration: none;
}
.nav-back:hover { color: var(--rose); }

/* ── Cabecera del blog (índice) ── */
.blog-header {
    text-align: center;
    padding: 4.5rem 1.6rem 2.5rem;
    background: var(--off-white);
    border-bottom: 1px solid rgba(176, 122, 114, 0.12);
}
.blog-tag {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: .8rem;
}
.blog-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: .8rem;
}
.blog-header p {
    max-width: 540px;
    margin: 0 auto;
    font-size: .92rem;
    color: var(--text-mid);
}

/* ── Contenedor ── */
.blog-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 4rem 1.6rem 5rem;
}

/* ── Índice de entradas (listado con extractos) ── */
.blog-list { list-style: none; margin: 0; padding: 0; }
.blog-list li {
    padding: 2.2rem 0;
    border-bottom: 1px solid rgba(176, 122, 114, 0.18);
}
.blog-list li:first-child { padding-top: 0; }
.blog-list li:last-child { border-bottom: none; }
.blog-list .idx-date {
    display: block;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: .5rem;
}
.blog-list h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: .6rem;
}
.blog-list h2 a { color: var(--text-dark); text-decoration: none; transition: color .2s ease; }
.blog-list h2 a:hover { color: var(--rose); }
.blog-list p {
    font-size: .92rem;
    color: var(--text-mid);
    margin-bottom: .8rem;
}
.blog-list .read-more {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rose);
    text-decoration: none;
}
.blog-list .read-more:hover { color: var(--rose-dark); }

/* ── Página de entrada individual ── */
.breadcrumb {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.6rem 1.6rem 0;
    font-size: .72rem;
    letter-spacing: .04em;
    color: var(--text-mid);
}
.breadcrumb a { color: var(--rose); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

article.post { padding-top: 1.5rem; }
.post-date {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: .8rem;
}
.post h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.4rem;
    color: var(--text-dark);
}
.post h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    margin: 2.2rem 0 .6rem;
    color: var(--text-dark);
}
.post h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 400;
    margin: 1.6rem 0 .5rem;
    color: var(--text-dark);
}
.post p, .post li {
    font-size: .92rem;
    color: var(--text-mid);
    margin-bottom: 1rem;
}
.post ul { margin: .6rem 0 1.2rem 1.4rem; }
.post li { margin-bottom: .35rem; }
.post a { color: var(--rose); }
.post img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
}
.post strong { color: var(--text-dark); }
.post table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    font-size: .86rem;
}
.post th, .post td {
    text-align: left;
    padding: .7rem .8rem;
    border-bottom: 1px solid rgba(176, 122, 114, 0.18);
    color: var(--text-mid);
}
.post th {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--off-white);
}
.table-wrap { overflow-x: auto; }

/* ── Caja CTA dentro de la entrada ── */
.post-cta {
    background: var(--off-white);
    border: 1px solid rgba(176, 122, 114, 0.18);
    border-radius: 8px;
    padding: 2rem 1.8rem;
    margin: 2.8rem 0 0;
    text-align: center;
}
.post-cta h2 {
    margin-top: 0;
    margin-bottom: .6rem;
}
.post-cta p { margin-bottom: 1.2rem; }
.cta-btn {
    display: inline-block;
    background: var(--rose);
    color: #fff;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: .85rem 1.8rem;
    border-radius: 4px;
    transition: background .2s ease;
}
.cta-btn:hover { background: var(--rose-dark); }

/* ── Posts relacionados ── */
.related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(176, 122, 114, 0.18);
}
.related-title {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 1rem;
}
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { margin-bottom: .7rem; }
.related a {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: color .2s ease;
}
.related a:hover { color: var(--rose); }

/* ── Pie ── */
footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, .55);
    padding: 2.2rem 2rem;
    text-align: center;
}
.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: rgba(255, 255, 255, .9);
    margin-bottom: .5rem;
}
.footer-links { font-size: .72rem; }
.footer-links a { color: rgba(255, 255, 255, .7); text-decoration: none; margin: 0 .5rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .68rem; opacity: .45; margin-top: .5rem; }

@media (max-width: 600px) {
    nav { padding: 1rem 1.3rem; }
    .blog-header { padding: 3rem 1.2rem 2rem; }
    .blog-header h1 { font-size: 2.2rem; }
    .blog-wrap { padding: 2.5rem 1.2rem 3.5rem; }
    .post h1 { font-size: 1.9rem; }
    .post h2 { font-size: 1.35rem; }
}
