/*
Theme Name: La Caligrafía Theme
Theme URI: https://lacaligrafia.info
Author: La Caligrafía
Author URI: https://lacaligrafia.info
Description: Tema ultraligero y de máxima velocidad (100 PageSpeed) inspirado en el diseño artesanal clásico para La Caligrafía.
Version: 1.6.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: lacaligrafia
*/

/* CSS Reset & Variables */
:root {
    --bg-page: #f8f5ee;
    --bg-cream: #faf7f2;
    --bg-card: #ffffff;
    --bg-accent-soft: #f2efe7;
    --text-primary: #1a1a1a;
    --text-secondary: #4a453e;
    --text-muted: #726b61;
    --accent-garnet: #6b1029;
    --accent-garnet-hover: #4e0b1d;
    --accent-garnet-light: rgba(107, 16, 41, 0.08);
    --border-light: #dcd3c4;
    --border-strong: #c8bdab;
    --border-subtle: #eae3d7;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-italic-quote: "Playfair Display", Georgia, italic, serif;
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
.site-header {
    background-color: var(--bg-page);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo-img {
    height: 38px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: #383430;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent-garnet);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #4a453e;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.header-search-btn:hover {
    color: var(--accent-garnet);
}

.btn-primary-garnet {
    background-color: var(--accent-garnet);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-garnet);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary-garnet:hover {
    background-color: var(--accent-garnet-hover);
    border-color: var(--accent-garnet-hover);
}

.btn-outline {
    background-color: transparent;
    color: #383430 !important;
    border: 1px solid #7d776f;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.03);
}

/* HERO SECTION */
.hero-section {
    background-color: var(--bg-page);
    border-bottom: 1px solid var(--border-light);
    padding: 48px 0;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.hero-tagline {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-tagline::after {
    content: "";
    display: inline-block;
    width: 32px;
    height: 1px;
    background-color: #beb7ac;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 52px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #12100e;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: #4a453e;
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 440px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-hero {
    padding: 11px 24px;
    font-size: 14px;
    border-radius: 24px;
}

.hero-image-wrap {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
}

.hero-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* SECTION COMMON */
.content-section {
    padding: 64px 0;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 12px;
}

.section-head-title-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: #151311;
    white-space: nowrap;
}

.section-head-line {
    flex: 1;
    height: 1px;
    background-color: var(--border-light);
    margin-right: 24px;
}

.section-subtitle-italic {
    font-family: var(--font-italic-quote);
    font-style: italic;
    font-size: 15px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* CARDS GRID 5 COLUMNS */
.cards-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.card-item {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border-color: var(--border-strong);
}

.card-thumb {
    width: 100%;
    aspect-ratio: 16 / 13;
    overflow: hidden;
    background-color: #eee;
    border-bottom: 1px solid var(--border-subtle);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-item:hover .card-thumb img {
    transform: scale(1.03);
}

.card-content {
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 14px;
    flex: 1;
}

.card-link {
    font-size: 12.5px;
    color: #383430;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-link:hover {
    color: var(--accent-garnet);
}

/* GUIDES SECTION 3 COLUMNS */
.section-guides {
    background-color: var(--bg-accent-soft);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.guides-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.guide-item {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--border-strong);
}

.guide-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #eee;
    border-bottom: 1px solid var(--border-subtle);
}

.guide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guide-item:hover .guide-thumb img {
    transform: scale(1.03);
}

.guide-content {
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.guide-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-garnet);
    margin-bottom: 8px;
}

.guide-title {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.guide-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
}

.guide-link {
    font-size: 13px;
    color: #383430;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.guide-link:hover {
    color: var(--accent-garnet);
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumbs-trail {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs-trail a {
    color: var(--text-secondary);
}

.breadcrumbs-trail a:hover {
    color: var(--accent-garnet);
}

.breadcrumbs-trail .sep {
    color: #b0a89c;
}

.breadcrumbs-trail .current-crumb {
    color: var(--text-primary);
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   ARCHIVE / CATEGORY STYLES (ALTO CONTRASTE Y DISTINCIÓN)
   ========================================================= */
.archive-header-banner {
    background-color: var(--bg-cream);
    border-bottom: 1px solid var(--border-light);
    padding: 44px 0 36px;
    text-align: left;
}

.archive-tagline {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-garnet);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.archive-main-title {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 700;
    color: #12100e;
    line-height: 1.15;
    margin-bottom: 14px;
}

.archive-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 780px;
}

.site-main-archive {
    padding: 50px 0 80px;
}

.archive-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
}

.archive-count-badge {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--accent-garnet);
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.archive-sort-note {
    font-family: var(--font-italic-quote);
    font-style: italic;
    font-size: 14.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* GRID DE ARTÍCULOS */
.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* TARJETA INDIVIDUAL CLARAMENTE DELIMITADA */
.archive-post-card {
    background-color: #ffffff !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.archive-post-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
    border-color: var(--accent-garnet) !important;
}

/* CONTENEDOR DE LA MINIATURA */
.archive-card-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #f0ebe1;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.archive-card-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.archive-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.archive-post-card:hover .archive-card-img {
    transform: scale(1.04);
}

.archive-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5efe4 0%, #e8decb 100%);
    gap: 8px;
}

.placeholder-caption {
    font-family: var(--font-serif);
    font-size: 13px;
    font-style: italic;
    color: #6a645c;
}

/* CUERPO DE LA TARJETA */
.archive-card-body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #ffffff;
}

.archive-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.archive-card-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    background-color: transparent;
    border: none;
    padding: 0;
}

.archive-card-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.archive-card-title {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #151311;
}

.archive-card-title a {
    color: #151311;
}

.archive-card-title a:hover {
    color: var(--accent-garnet);
}

.archive-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.archive-card-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.archive-card-btn {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-garnet);
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: #faf5f6;
    border: 1px solid #ebd4d9;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.archive-post-card:hover .archive-card-btn {
    background-color: var(--accent-garnet);
    color: #ffffff;
    border-color: var(--accent-garnet);
}

/* PAGINACIÓN */
.archive-pagination {
    margin-top: 50px;
    text-align: center;
}

.archive-pagination ul.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #3e3831;
    background-color: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.archive-pagination .page-numbers.current {
    background-color: var(--accent-garnet);
    color: #ffffff;
    border-color: var(--accent-garnet);
}

.archive-pagination a.page-numbers:hover {
    background-color: var(--accent-garnet);
    color: #ffffff;
    border-color: var(--accent-garnet);
}

.archive-empty {
    text-align: center;
    padding: 60px 0;
}

.archive-empty p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* =========================================================
   SINGLE POST & PAGE STYLES
   ========================================================= */
.single-post-wrapper, .single-page-wrapper {
    background-color: var(--bg-page);
}

.single-post-header {
    background-color: var(--bg-cream);
    border-bottom: 1px solid var(--border-light);
    padding: 44px 0 36px;
}

.single-header-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

.single-category-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-garnet);
    background-color: #f7ebee;
    border: 1px solid #ebd4d9;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.single-post-headline {
    font-family: var(--font-serif);
    font-size: 44px;
    line-height: 1.18;
    font-weight: 700;
    color: #12100e;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.single-meta-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.author-name {
    font-weight: 600;
    color: #383430;
}

.meta-sep {
    color: #beb7ac;
}

/* Imagen destacada */
.single-featured-image-wrap {
    padding: 40px 0 10px;
}

.single-featured-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.single-hero-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--border-light);
}

/* Contenido del post */
.single-post-content-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 24px 70px;
}

.single-entry-body {
    font-size: 18px;
    line-height: 1.8;
    color: #2b2723;
}

.single-entry-body p {
    margin-bottom: 26px;
}

.single-entry-body p:first-of-type::first-letter {
    font-family: var(--font-serif);
    font-size: 48px;
    line-height: 0.9;
    float: left;
    margin: 4px 10px 0 0;
    font-weight: 700;
    color: var(--accent-garnet);
}

.single-entry-body h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 44px 0 18px;
    color: #151311;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.single-entry-body h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 32px 0 14px;
    color: #1a1a1a;
}

.single-entry-body h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.single-entry-body ul, .single-entry-body ol {
    margin: 0 0 28px 24px;
    padding: 0;
}

.single-entry-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.single-entry-body strong {
    font-weight: 600;
    color: #111;
}

.single-entry-body a {
    color: var(--accent-garnet);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.single-entry-body a:hover {
    color: var(--accent-garnet-hover);
}

.single-entry-body blockquote {
    border-left: 3px solid var(--accent-garnet);
    padding: 16px 24px;
    margin: 32px 0;
    background-color: var(--bg-cream);
    border-radius: 0 4px 4px 0;
    font-family: var(--font-italic-quote);
    font-style: italic;
    font-size: 19px;
    line-height: 1.6;
    color: #3e3831;
}

.single-entry-body img {
    margin: 32px auto;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.single-entry-body figcaption {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.single-entry-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
}

.single-entry-body th, .single-entry-body td {
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    text-align: left;
}

.single-entry-body th {
    background-color: var(--bg-cream);
    font-weight: 600;
}

/* Tags al pie del post */
.single-tags-wrap {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 4px;
}

.tag-pill {
    font-size: 12.5px;
    padding: 5px 14px;
    background-color: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    color: #4a453e;
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background-color: var(--accent-garnet);
    color: #ffffff;
    border-color: var(--accent-garnet);
}

/* Navegación anterior / siguiente */
.post-navigation-card {
    margin-top: 48px;
    padding: 24px;
    background-color: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.nav-prev, .nav-next {
    display: flex;
    flex-direction: column;
}

.nav-next {
    text-align: right;
}

.nav-sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-garnet);
    margin-bottom: 6px;
}

.nav-title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
}

.nav-title:hover {
    color: var(--accent-garnet);
}

.nav-divider {
    width: 1px;
    height: 48px;
    background-color: var(--border-light);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background-color: var(--bg-page);
    padding: 40px 0 30px;
    border-top: 1px solid var(--border-light);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    gap: 20px;
}

.footer-brand img {
    height: 32px;
    width: auto;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-nav a {
    font-size: 13px;
    color: #555049;
}

.footer-nav a:hover {
    color: var(--accent-garnet);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social a {
    color: #555049;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: var(--accent-garnet);
}

.footer-quote-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.footer-quote-wrap::before,
.footer-quote-wrap::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background-color: #c9c2b7;
}

.footer-quote {
    font-family: var(--font-italic-quote);
    font-style: italic;
    font-size: 13.5px;
    color: #6a645c;
    text-align: center;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .cards-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .guides-grid-3 {
        grid-template-columns: 1fr;
    }
    .archive-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    .hero-title {
        font-size: 36px;
    }
    .archive-main-title {
        font-size: 30px;
    }
    .single-post-headline {
        font-size: 30px;
    }
    .cards-grid-5 {
        grid-template-columns: 1fr;
    }
    .archive-posts-grid {
        grid-template-columns: 1fr;
    }
    .post-navigation-card {
        grid-template-columns: 1fr;
    }
    .nav-divider {
        display: none;
    }
    .nav-next {
        text-align: left;
    }
}

/* =========================================================
   EDITORIAL POST LAYOUT (CARD + SIDEBAR)
   ========================================================= */
.post-page-bg {
    background-color: var(--bg-page);
    padding: 40px 0 70px;
}

.post-container-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    align-items: start;
}

/* TARJETA PRINCIPAL DEL POST */
.single-article-card {
    background-color: #ffffff !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    padding: 44px 48px;
    overflow: hidden;
}

.single-article-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.single-category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--accent-garnet);
    background-color: transparent;
    border: none;
    padding: 0;
    margin-bottom: 14px;
}

.single-article-title {
    font-family: var(--font-serif);
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    color: #12100e;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.single-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.single-article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-article-meta .meta-dot {
    color: #c0b8ac;
}

.single-article-meta strong {
    color: #2b2723;
}

/* HERO IMAGE DEL POST */
.single-post-featured-thumb {
    margin: 0 0 32px 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background-color: #f5efe4;
}

.single-post-hero-image {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* CUERPO DEL POST */
.single-post-body-content {
    font-size: 18px;
    line-height: 1.85;
    color: #2b2723;
}

.single-post-body-content p {
    margin-bottom: 24px;
}

.single-post-body-content h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 40px 0 16px;
    color: #151311;
    padding-bottom: 8px;
    border-bottom: 2px solid #ebd4d9;
}

.single-post-body-content h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin: 30px 0 14px;
    color: #1a1a1a;
}

.single-post-body-content ul, .single-post-body-content ol {
    margin: 0 0 26px 24px;
}

.single-post-body-content li {
    margin-bottom: 8px;
}

.single-post-body-content strong {
    font-weight: 700;
    color: #111;
}

.single-post-body-content a {
    color: var(--accent-garnet);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.single-post-body-content a:hover {
    color: var(--accent-garnet-hover);
}

.single-post-body-content img {
    max-width: 100% !important;
    height: auto !important;
    margin: 28px auto !important;
    border-radius: 6px !important;
    border: 1px solid var(--border-strong) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    display: block !important;
}

.single-post-body-content blockquote {
    border-left: 4px solid var(--accent-garnet);
    padding: 16px 24px;
    margin: 30px 0;
    background-color: var(--bg-cream);
    border-radius: 0 6px 6px 0;
    font-family: var(--font-italic-quote);
    font-style: italic;
    font-size: 19px;
    color: #383430;
}

/* ETIQUETAS */
.single-tags-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.single-tags-section .tags-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-tags-section .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.single-tags-section .tag-pill {
    font-size: 13px;
    padding: 4px 14px;
    background-color: #faf7f2;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    color: #3e3831;
    transition: all 0.2s ease;
}

.single-tags-section .tag-pill:hover {
    background-color: var(--accent-garnet);
    color: #ffffff;
    border-color: var(--accent-garnet);
}

/* NAVEGACIÓN ANTERIOR / SIGUIENTE */
.single-navigation-box {
    margin-top: 40px;
    padding: 24px;
    background-color: #faf7f2;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.single-navigation-box .nav-direction {
    display: flex;
    flex-direction: column;
}

.single-navigation-box .nav-direction.next {
    text-align: right;
}

.single-navigation-box .nav-sub-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-garnet);
    margin-bottom: 6px;
}

.single-navigation-box .nav-post-link {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
}

.single-navigation-box .nav-post-link:hover {
    color: var(--accent-garnet);
}

.single-navigation-box .nav-box-separator {
    width: 1px;
    height: 48px;
    background-color: var(--border-light);
}

/* SIDEBAR EDITORIAL */
.single-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: sticky;
    top: 24px;
}

.sidebar-widget-card {
    background-color: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 26px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.sidebar-widget-card.about-widget {
    background: linear-gradient(180deg, #ffffff 0%, #faf6ee 100%);
    border-top: 4px solid var(--accent-garnet);
}

.sidebar-widget-card .widget-heading {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
    color: #12100e;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-widget-card .widget-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.sidebar-widget-card .widget-btn-garnet {
    display: block;
    text-align: center;
    background-color: var(--accent-garnet);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.sidebar-widget-card .widget-btn-garnet:hover {
    background-color: var(--accent-garnet-hover);
}

.widget-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-category-list li {
    border-bottom: 1px solid var(--border-subtle);
}

.widget-category-list li:last-child {
    border-bottom: none;
}

.widget-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: #383430;
    transition: color 0.15s ease, padding 0.15s ease;
}

.widget-category-list a:hover {
    color: var(--accent-garnet);
    padding-left: 4px;
}

.widget-category-list .arrow {
    color: #c0b8ac;
    transition: transform 0.2s ease;
}

.widget-category-list a:hover .arrow {
    transform: translateX(3px);
    color: var(--accent-garnet);
}

.widget-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-mini-post {
    display: block;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-mini-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-mini-post .mini-post-title {
    font-family: var(--font-serif);
    font-size: 14.5px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    margin-bottom: 4px;
    transition: color 0.15s ease;
}

.sidebar-mini-post:hover .mini-post-title {
    color: var(--accent-garnet);
}

.sidebar-mini-post .mini-post-date {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* RESPONSIVE POST LAYOUT */
@media (max-width: 992px) {
    .post-container-wrapper {
        grid-template-columns: 1fr;
    }
    .single-article-card {
        padding: 32px 24px;
    }
    .single-sidebar-column {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 600px) {
    .single-article-title {
        font-size: 28px;
    }
    .single-navigation-box {
        grid-template-columns: 1fr;
    }
    .single-navigation-box .nav-box-separator {
        display: none;
    }
    .single-navigation-box .nav-direction.next {
        text-align: left;
    }
}

.card-title a, .guide-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
.card-title a:hover, .guide-title a:hover {
    color: var(--accent-garnet);
}
.archive-card-title a {
    color: #151311;
    text-decoration: none;
    display: inline-block;
    transition: color 0.15s ease;
}
.archive-card-title a:hover {
    color: var(--accent-garnet);
}

/* =========================================================
   STORE BANNER AZAHARA LETRAS
   ========================================================= */
.store-banner-wrapper {
    background-color: var(--bg-page);
    padding: 0 0 60px;
}

.store-banner-box {
    background: linear-gradient(135deg, #2b1118 0%, #15080c 100%);
    border: 1px solid #4a1f2b;
    border-radius: 8px;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    color: #ffffff;
}

.store-banner-icon {
    flex-shrink: 0;
    color: #e5b382;
    background-color: rgba(229, 179, 130, 0.1);
    border: 1px solid rgba(229, 179, 130, 0.25);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-banner-text {
    flex: 1;
}

.store-banner-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e5b382;
    display: block;
    margin-bottom: 6px;
}

.store-banner-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 8px;
}

.store-banner-desc {
    font-size: 14.5px;
    color: #d1c5b8;
    line-height: 1.55;
    max-width: 640px;
}

.store-banner-action {
    flex-shrink: 0;
}

.store-banner-btn {
    display: inline-flex;
    align-items: center;
    background-color: #e5b382;
    color: #1a0a0f !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 13px 26px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(229, 179, 130, 0.25);
}

.store-banner-btn:hover {
    background-color: #f3cca4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 179, 130, 0.4);
}

@media (max-width: 860px) {
    .store-banner-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 24px;
    }
    .store-banner-desc {
        margin: 0 auto;
    }
}
