/* Stratous Blog v1.2 — Stratous Brand */
:root {
    --sb-font: 'Quicksand', sans-serif;
    --sb-heading: 'Righteous', sans-serif; /* sustituye Joy Maker hasta tener el archivo */
    --sb-blue: #009EE2;
    --sb-purple: #662482;
    --sb-gray: #6F6F6E;
    --sb-dark: #1a1a2e;
}

.sb-section {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 32px;
    font-family: var(--sb-font);
}
.sb-header { text-align: center; margin-bottom: 48px; }
.sb-header-title {
    font-family: var(--sb-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    color: var(--sb-dark);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 10px;
}
.sb-header-sub { font-size: 1rem; color: #666; margin: 0; }

/* LAYOUT */
.sb-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: start;
}

/* FEATURED */
.sb-featured { position: relative; }
.sb-featured-deco {
    position: absolute;
    top: -20px; left: -20px;
    width: 180px; height: 180px;
    background: rgba(0,158,226,.12);
    border-radius: 0 70px 0 0;
    z-index: 0;
}
.sb-featured-link {
    display: block;
    position: relative;
    z-index: 1;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    transition: transform .4s, box-shadow .4s;
}
.sb-featured-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,.16);
}
.sb-featured-img {
    width: 100%;
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e8edf2;
    transition: transform .6s;
}
.sb-featured-link:hover .sb-featured-img { transform: scale(1.03); }

.sb-featured-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 36px 30px 28px;
    background: linear-gradient(135deg, rgba(0,158,226,.92), rgba(102,36,130,.88));
    transition: opacity .4s;
}
.sb-featured-cat {
    display: inline-block;
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: rgba(255,255,255,.6);
    margin-bottom: 8px;
}
.sb-featured-title {
    font-family: var(--sb-heading);
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.15;
    transition: opacity .3s;
}
.sb-featured-arrows {
    font-size: 1.5rem; font-weight: 700;
    color: rgba(255,255,255,.3);
    letter-spacing: -2px;
}

/* CARDS */
.sb-cards-area { position: relative; }
.sb-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.sb-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 28px 22px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    min-height: 190px;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}
.sb-card::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(255,255,255,0);
    transition: background .25s;
    border-radius: 16px;
}
.sb-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.sb-card:hover::before { background: rgba(255,255,255,.08); }
.sb-card.sb-active {
    outline: 3px solid #fff;
    outline-offset: -3px;
    box-shadow: 0 0 0 6px rgba(0,158,226,.3);
}
.sb-card-title {
    font-family: var(--sb-heading);
    font-size: .95rem; font-weight: 400;
    text-transform: uppercase; letter-spacing: .03em;
    margin: 0 0 10px; line-height: 1.3;
    position: relative; z-index: 1;
}
.sb-card-excerpt {
    font-size: .8rem; font-weight: 400;
    line-height: 1.55; margin: 0; opacity: .9;
    position: relative; z-index: 1;
}

/* NAV */
.sb-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    left: -20px; right: -20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 5;
}
.sb-nav-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--sb-dark);
    color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    transition: all .25s;
}
.sb-nav-btn:hover { background: #333; transform: scale(1.08); }
.sb-nav-btn:disabled { opacity: .25; cursor: not-allowed; transform: none; }

/* SINGLE POST */
.sb-single { font-family: var(--sb-font); color: #333; }
.sb-single-hero { position: relative; width: 100%; height: 65vh; min-height: 400px; max-height: 600px; overflow: hidden; }
.sb-single-hero-img { width: 100%; height: 100%; object-fit: cover; }
.sb-single-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.65)); display: flex; flex-direction: column; justify-content: flex-end; padding: 60px; }
.sb-single-hero-cat { display: inline-flex; background: rgba(0,158,226,.85); color: #fff; padding: 6px 18px; border-radius: 30px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; width: fit-content; backdrop-filter: blur(8px); }
.sb-single-hero-title { font-family: var(--sb-heading); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: #fff; margin: 0 0 14px; line-height: 1.1; max-width: 750px; }
.sb-single-hero-meta { display: flex; align-items: center; gap: 20px; color: rgba(255,255,255,.75); font-size: .85rem; }

.sb-single-body { max-width: 780px; margin: 0 auto; padding: 50px 32px 40px; line-height: 1.85; font-size: 1.05rem; color: #444; }
.sb-single-body h2, .sb-single-body h3 { font-family: var(--sb-heading); color: var(--sb-dark); margin: 2em 0 .6em; font-weight: 400; text-transform: uppercase; letter-spacing: .03em; }
.sb-single-body h2 { font-size: 1.7rem; }
.sb-single-body h3 { font-size: 1.35rem; }
.sb-single-body p { margin: 0 0 1.4em; }
.sb-single-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.5em 0; }
.sb-single-body blockquote { border-left: 4px solid var(--sb-blue); margin: 2em 0; padding: 20px 28px; background: #f0f9ff; border-radius: 0 12px 12px 0; font-style: italic; color: #555; }
.sb-single-body a { color: var(--sb-blue); text-decoration: underline; text-underline-offset: 3px; }
.sb-single-body ul, .sb-single-body ol { margin: 1em 0; padding-left: 1.5em; }

.sb-single-share { max-width: 780px; margin: 0 auto; padding: 0 32px 30px; display: flex; align-items: center; gap: 12px; }
.sb-single-share-label { font-size: .85rem; font-weight: 600; color: #999; }
.sb-single-share-btn { width: 40px; height: 40px; border-radius: 50%; background: #f0f4f8; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .25s; color: #666; text-decoration: none; }
.sb-single-share-btn:hover { background: var(--sb-blue); color: #fff; }

.sb-single-tags { max-width: 780px; margin: 0 auto; padding: 0 32px 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.sb-single-tag { display: inline-block; padding: 6px 16px; background: #f0f4f8; border-radius: 30px; font-size: .8rem; font-weight: 500; color: #555; text-decoration: none; transition: all .25s; }
.sb-single-tag:hover { background: var(--sb-blue); color: #fff; }

.sb-single-author { max-width: 780px; margin: 0 auto 40px; padding: 0 32px; }
.sb-single-author-box { display: flex; align-items: center; gap: 20px; padding: 28px; background: #f8f9fb; border-radius: 16px; border: 1px solid #eee; }
.sb-single-author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.sb-single-author-info h4 { font-family: var(--sb-heading); font-size: 1rem; font-weight: 400; text-transform: uppercase; letter-spacing: .03em; color: var(--sb-dark); margin: 0 0 4px; }
.sb-single-author-info p { font-size: .85rem; color: #888; margin: 0; }
.sb-single-back { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--sb-blue); text-decoration: none; margin-bottom: 20px; }

.sb-related { max-width: 1200px; margin: 0 auto; padding: 40px 32px 80px; }
.sb-related-title { font-family: var(--sb-heading); font-size: 1.5rem; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: var(--sb-dark); margin: 0 0 28px; }
.sb-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sb-related-card { text-decoration: none; color: inherit; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .35s, box-shadow .35s; }
.sb-related-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.sb-related-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.sb-related-card-body { padding: 18px 20px; }
.sb-related-card-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--sb-blue); letter-spacing: .06em; margin-bottom: 6px; }
.sb-related-card-title { font-family: var(--sb-heading); font-size: .95rem; font-weight: 700; color: var(--sb-dark); margin: 0; line-height: 1.3; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .sb-layout { grid-template-columns: 1fr; gap: 28px; }
    .sb-featured-img { aspect-ratio: 16/10; }
    .sb-nav { left: -10px; right: -10px; }
}
@media (max-width: 640px) {
    .sb-section { padding: 40px 16px; }
    .sb-cards-grid { grid-template-columns: 1fr; gap: 10px; }
    .sb-card { min-height: 120px; padding: 20px 18px; }
    .sb-single-hero { height: 50vh; min-height: 300px; }
    .sb-single-hero-overlay { padding: 30px 24px; }
    .sb-single-body { padding: 30px 20px 60px; font-size: .95rem; }
    .sb-related-grid { grid-template-columns: 1fr; }
}
