/* ============================================
   LOVING LATHER BLOG - STYLES
   Brand color: #43A4FB
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --brand: #43A4FB;
    --brand-dark: #2f8ee0;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f6f9fc;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header (identico al de la home) ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(0px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: 'League Spartan', sans-serif;
    font-size: 15px;
}
.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}
.site-header .logo {
    display: flex;
    align-items: center;
}
.site-header .logo a { display: flex; align-items: center; }
.site-header .logo-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    transition: color 0.3s ease;
    cursor: pointer;
    font-size: 15px;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.cta-button {
    background: #43A4FB;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(67,164,251,.3); }
.mobile-menu { display: none; flex-direction: column; cursor: pointer; }
.mobile-menu span { width: 25px; height: 3px; background: #374151; margin: 3px 0; transition: 0.3s; }
.desktop-only { display: none; }
@media (min-width: 769px) {
    .desktop-only { display: inline-block; }
    .site-header .logo-img { width: 150px; height: 150px; }
}

/* ---------- Blog hero / heading ---------- */
.blog-main { padding-top: 185px; padding-bottom: 60px; }
.blog-heading { text-align: center; margin-bottom: 40px; }
.blog-heading h1 { font-size: 3rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.blog-heading h1 span { color: var(--brand); }
.blog-heading p { color: var(--muted); font-size: 14px; max-width: 620px; margin: 0 auto; }

/* ---------- Category pills ---------- */
.category-pills {
    display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center;
    margin-bottom: 45px;
}
.pill {
    display: inline-block; padding: 9px 22px; border-radius: 30px;
    background: #fff; color: #374151; font-weight: 500; font-size: .9rem;
    text-decoration: none; border: 1px solid var(--line);
    transition: all .25s ease;
}
.pill:hover { border-color: var(--brand); color: var(--brand); }
.pill.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 8px 20px rgba(67,164,251,.3); }

/* ---------- Featured article ---------- */
.featured-card {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
    background: #fff; border-radius: 22px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.08); margin-bottom: 55px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 20px 55px rgba(0,0,0,.12); }
.featured-media { position: relative; min-height: 340px; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: 1.9rem; line-height: 1.25; margin: 16px 0 14px; color: var(--ink); }
.featured-body h2 a { color: inherit; text-decoration: none; font-size: 18px; }
.featured-body h2 a:hover { color: var(--brand); }
.featured-body .excerpt { color: var(--muted); margin-bottom: 22px; font-size: 14px; }

/* ---------- Category badge ---------- */
.cat-badge {
    display: inline-block; background: rgba(67,164,251,.12); color: var(--brand);
    font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 20px;
}
.cat-badge.on-image {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    background: #fff; color: var(--brand); box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* ---------- Meta row (author + date) ---------- */
.meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar {
    width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
    background: var(--brand); color: #fff; display: flex; align-items: center;
    justify-content: center; font-weight: 600; font-size: .95rem; flex-shrink: 0;
}
.meta-text { display: flex; flex-direction: column; line-height: 1.25; }
.meta-text .author { font-weight: 600; font-size: .9rem; color: var(--ink); }
.meta-text .date { font-size: .8rem; color: var(--muted); }

/* ---------- Article grid ---------- */
.article-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.article-card {
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 8px 26px rgba(0,0,0,.07); display: flex; flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.article-card:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(0,0,0,.12); }
.card-media { position: relative; height: 210px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.2rem; line-height: 1.35; margin: 12px 0 10px; }
.card-body h3 a { color: var(--ink); text-decoration: none; font-size: 18px }
.card-body h3 a:hover { color: var(--brand); }
.card-body .excerpt {
    color: var(--muted); font-size: 14px; margin-bottom: 18px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Card footer: stats + like + read more ---------- */
.card-footer {
    margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-stats { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .82rem; }
.card-stats .stat { display: inline-flex; align-items: center; gap: 5px; }
.card-stats i { color: var(--brand); }

.like-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: #f3f6fa; border: 1px solid var(--line); color: #4b5563;
    padding: 8px 14px; border-radius: 22px; cursor: pointer;
    font-size: .82rem; font-weight: 600; font-family: inherit;
    transition: all .25s ease;
}
.like-btn:hover { border-color: var(--brand); color: var(--brand); }
.like-btn.liked { background: var(--brand); border-color: var(--brand); color: #fff; }
.like-btn.liked i { color: #fff; }
.like-btn i { color: #ef4444; transition: transform .2s ease; }
.like-btn.pop i { transform: scale(1.35); }

.read-more {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--brand); font-weight: 600; font-size: .85rem; text-decoration: none;
}
.read-more:hover { gap: 10px; }

/* ---------- Empty state ---------- */
.empty-state {
    background: #fff; border-radius: 20px; padding: 60px; text-align: center;
    color: var(--muted); box-shadow: 0 8px 26px rgba(0,0,0,.06);
}

/* ============================================
   SINGLE ARTICLE PAGE
   ============================================ */
.article-page { padding-top: 185px; padding-bottom: 70px; }

.article-hero {
    position: relative; border-radius: 24px; overflow: hidden;
    max-width: 1000px; margin: 0 auto 0; box-shadow: 0 20px 50px rgba(0,0,0,.15);
    min-height: 420px; display: flex; align-items: flex-end;
}
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%);
}
.article-hero-content { position: relative; z-index: 2; padding: 45px; color: #fff; width: 100%; }
.article-hero-content .cat-badge { background: rgba(255,255,255,.95); color: var(--brand); margin-bottom: 16px; }
.article-hero-content h1 { font-size: 2.6rem; line-height: 1.2; font-weight: 700; max-width: 800px; }

.article-shell { max-width: 820px; margin: -30px auto 0; position: relative; z-index: 5; }
.article-meta-bar {
    background: #fff; border-radius: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.08);
    padding: 18px 26px; display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.article-meta-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.article-meta-left .divider { width: 1px; height: 30px; background: var(--line); }
.article-meta-left .meta-info { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.article-meta-left .meta-info i { color: var(--brand); }

.share-icons { display: flex; align-items: center; gap: 10px; }
.share-icons span { color: var(--muted); font-size: .82rem; margin-right: 4px; }
.share-icons a {
    width: 36px; height: 36px; border-radius: 50%; background: #f3f6fa;
    display: flex; align-items: center; justify-content: center; color: #4b5563;
    text-decoration: none; transition: all .25s ease;
}
.share-icons a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

.article-body {
    background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.06);
    padding: 55px 60px; margin-top: 26px;
}
.article-body p { color: #374151; font-size: 1.05rem; line-height: 1.9; margin-bottom: 22px; }
.article-body h2 { font-size: 18px; color: var(--ink); margin: 38px 0 16px; line-height: 1.3; }
.article-body h3 { font-size: 16px; color: var(--ink); margin: 28px 0 12px; }
.article-body img { width: 100%; border-radius: 16px; margin: 26px 0; box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.article-body blockquote {
    border-left: 5px solid var(--brand); background: #f0f7ff;
    padding: 22px 28px; margin: 28px 0; border-radius: 0 14px 14px 0;
    font-style: italic; color: #2c3e50; font-size: 14px; line-height: 1.7;
}
.article-body ul, .article-body ol { margin: 0 0 24px 26px; }
.article-body li { color: #374151; font-size: 14px; line-height: 1.8; margin-bottom: 10px; }
.article-body li::marker { color: var(--brand); }

.article-actions {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line);
}
.article-actions .like-btn { font-size: .95rem; padding: 12px 26px; }

.back-link {
    display: inline-flex; align-items: center; gap: 8px; color: var(--brand);
    font-weight: 600; text-decoration: none; margin-top: 30px;
}
.back-link:hover { gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: #1f2937; color: #fff; padding: 3rem 0 1rem; margin-top: 40px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section { min-width: 0; }
.footer-section h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.footer-section h4 { font-size: .95rem; margin-bottom: .5rem; }
.footer-section p, .footer-section a { color: #9ca3af; text-decoration: none; line-height: 1.6; font-size: .9rem; overflow-wrap: anywhere; word-break: break-word; }
.footer-section a:hover { color: var(--brand); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: .5rem; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-link {
    width: 40px; height: 40px; background: #374151; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff;
    text-decoration: none; transition: all .3s ease;
}
.social-link:hover { background: var(--brand); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1rem; text-align: center; color: #9ca3af; font-size: .88rem; }

/* ---------- Responsive ---------- */
/* Rango intermedio: el menu completo no cabe, se compacta para que el
   boton Book Now no se rompa en varias lineas */
@media (min-width: 769px) and (max-width: 900px) {
    .site-header .logo-img { width: 120px; height: 120px; }
    .site-header .nav-links { gap: 1rem; }
    .site-header .nav-links a { font-size: 13.5px; }
    .site-header .cta-button { padding: 10px 16px; font-size: 13.5px; }
}
@media (max-width: 992px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-card { grid-template-columns: 1fr; }
    .featured-media { min-height: 260px; }
    .article-hero-content h1 { font-size: 2rem; }
    .article-body { padding: 40px 35px; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: #fff; flex-direction: column; padding: 1rem; gap: .5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,.1); text-align: center;
    }
    .nav-links.active { display: flex; }
    .mobile-menu { display: flex; }
    .desktop-only { display: none; }
    /* Book Now visible tambien en movil (version compacta) */
    .site-header .cta-button {
        display: inline-block;
        padding: 11px 11px;
        font-size: 14.4px;
        border-radius: 22px;
        white-space: nowrap;
        line-height: 1.2;
    }
    .site-header .logo-img { width: 120px; height: 90px; }
    .nav-links li { margin: 0.5rem 0; }
    .blog-main { padding-top: 125px; }
    .article-page { padding-top: 125px; }
    .blog-heading h1 { font-size: 2.1rem; }
    .article-grid { grid-template-columns: 1fr; }
    .article-hero { min-height: 320px; border-radius: 18px; }
    .article-hero-content { padding: 28px; }
    .article-hero-content h1 { font-size: 1.6rem; }
    .article-body { padding: 30px 22px; }
    .article-meta-bar { padding: 16px; }
    .article-shell { margin-top: 18px; }
    .featured-body { padding: 12px; }
    .featured-body h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .blog-heading h1 { font-size: 1.8rem; }
    .pill { padding: 8px 16px; font-size: .82rem; }
    .article-hero-content h1 { font-size: 1.35rem; }
    .article-body p { font-size: 14px; }
}
