/* Aliantha · blog independiente de Divi
   Shell propio: cabecera, rejilla y artículo. Sin estilos del tema padre. */

@font-face {
    font-family: 'Aliantha';
    src: url('https://aliantha.es/wp-content/uploads/2024/02/Aliantha-Regular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Aliantha';
    src: url('https://aliantha.es/wp-content/uploads/2024/02/Aliantha-Extrabold.otf') format('opentype');
    font-weight: 800;
    font-display: swap;
}

:root {
    --bg: #faf7f2;
    --paper: #ffffff;
    --ink: #1e1b26;
    --plum: #2b0f3a;
    --coral: #f8485c;
    --muted: #6e6a7b;
    --line: #e6e0d6;
    --display: 'Aliantha', Georgia, 'Times New Roman', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body.aliantha-shop {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.aliantha-shop a { color: inherit; }

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

/* ---------- cabecera ---------- */
.ab-top {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
}

.ab-top-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 74px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.ab-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}

.ab-logo img {
    display: block;
    height: 26px;
    width: auto;
}

.ab-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.ab-nav a {
    white-space: nowrap;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.ab-nav a:hover { border-bottom-color: var(--coral); }

.ab-nav a.is-current { border-bottom-color: var(--plum); }

.ab-search { position: relative; }

.ab-search summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.ab-search summary::-webkit-details-marker { display: none; }

.ab-search svg { width: 17px; height: 17px; stroke: var(--plum); fill: none; stroke-width: 1.8; }

.ab-search form {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(30, 27, 38, .12);
    padding: 8px;
    display: flex;
}

.ab-search input {
    border: 0;
    outline: none;
    font: inherit;
    font-size: 15px;
    padding: 8px 10px;
    width: 240px;
}

/* ---------- portada del blog ---------- */
.ab-intro { padding: 56px 0 32px; max-width: 820px; }

.ab-kicker {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 10px;
}

.ab-claim {
    font-family: var(--display);
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--plum);
    margin: 0;
    font-weight: 800;
}

.ab-hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    padding: 32px 0 40px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.ab-hero-title {
    font-family: var(--display);
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    font-weight: 800;
}

.ab-hero-title a { text-decoration: none; }

.ab-hero-title a:hover { color: var(--coral); }

.ab-hero-excerpt { font-size: 17.5px; color: #4a4656; margin: 0 0 18px; }

.ab-meta { font-size: 13px; color: var(--muted); margin: 0; }

.ab-hero-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.ab-minis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 32px 0 44px;
    border-bottom: 1px solid var(--line);
}

.ab-mini { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }

.ab-mini img { width: 96px; height: 72px; object-fit: cover; display: block; }

.ab-mini h3 {
    font-family: var(--display);
    font-size: 17.5px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}

.ab-mini h3 a { text-decoration: none; }

.ab-mini h3 a:hover { color: var(--coral); }

.ab-section {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 48px 0 22px;
}

.ab-section h2 {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    letter-spacing: -0.01em;
}

.ab-section a { font-size: 14px; color: var(--coral); text-decoration: none; }

.ab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px 30px;
    padding-bottom: 56px;
}

.ab-card {
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ab-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(30, 27, 38, .09); }

.ab-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

.ab-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }

.ab-chip {
    align-self: flex-start;
    background: var(--plum);
    color: #ffffff !important;
    font-size: 10.5px;
    letter-spacing: .09em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 9px;
    text-decoration: none;
}

.ab-card h3 {
    font-family: var(--display);
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin: 0;
}

.ab-card h3 a { text-decoration: none; }

.ab-card h3 a:hover { color: var(--coral); }

.ab-card p { margin: 0; font-size: 14.5px; color: #5b5666; }

.ab-pager { display: flex; gap: 8px; justify-content: center; padding: 0 0 64px; }

.ab-pager a, .ab-pager span {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 14px;
    text-decoration: none;
}

.ab-pager .is-current { background: var(--plum); color: #fff; border-color: var(--plum); }

/* ---------- artículo ---------- */
.ab-post-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding: 48px 0 64px; }

.ab-post { max-width: 760px; }

.ab-post h1 {
    font-family: var(--display);
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 800;
    color: var(--plum);
    margin: 0 0 18px;
}

.ab-post .ab-meta { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }

.ab-body { font-size: 18px; line-height: 1.72; color: #2a2733; }

.ab-body > p:first-of-type,
.aliantha-shop .ab-body > p:first-child {
    font-size: 21px !important;
    line-height: 1.55 !important;
    color: var(--plum) !important;
    margin-top: 0;
    font-weight: 400;
}

.ab-body h2 {
    font-family: var(--display);
    font-size: 28px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--plum);
    margin: 46px 0 14px;
}

.ab-body h3 { font-size: 21px; line-height: 1.3; margin: 32px 0 10px; color: var(--plum); }

.ab-body p { margin: 0 0 20px; }

.ab-body a { color: var(--plum); text-decoration: underline; text-decoration-color: rgba(248, 72, 92, .45); text-underline-offset: 3px; }

.ab-body a:hover { color: var(--coral); }

.ab-body strong { color: var(--plum); }

.ab-body ul, .ab-body ol { margin: 0 0 22px; padding-left: 22px; }

.ab-body li { margin-bottom: 10px; }

.ab-body blockquote {
    margin: 28px 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--coral);
    color: #4a4656;
    font-style: italic;
}

.ab-body figure { margin: 32px 0; }

.ab-body figure img { width: 100%; height: auto; display: block; border: 1px solid var(--line); background: #f3efe7; }

.ab-body figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

.ab-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 16px; }

.ab-body th { background: #efe9df; text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--plum); }

.ab-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }

.ab-tags {
    margin: 40px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}

.ab-tags span {
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-right: 12px;
    color: var(--muted);
}

.ab-tags a {
    text-decoration: none;
    color: var(--plum);
    border-bottom: 1px solid transparent;
    margin-right: 14px;
}

.ab-tags a:hover { border-bottom-color: var(--coral); }

/* ---------- barra lateral ---------- */
.ab-side { position: sticky; top: 100px; align-self: start; }

.ab-side-box { border: 1px solid var(--line); background: #fff; padding: 22px; margin-bottom: 28px; }

.ab-side-box h3 { font-family: var(--display); font-size: 18px; font-weight: 400; margin: 0 0 10px; }

.ab-side-box p { font-size: 14.5px; color: #5b5666; margin: 0 0 14px; }

.ab-side-box a { font-size: 14px; color: var(--coral); text-decoration: none; }

.ab-side h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

.ab-side-sep { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }

.ab-side-temas { list-style: none; margin: 0; padding: 0; }

.ab-side-temas li { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }

.ab-side-temas a { font-size: 15px; text-decoration: none; color: var(--ink); }

.ab-side-temas a:hover { color: var(--coral); }

.ab-side-temas span { font-size: 12px; color: var(--muted); }

.ab-side-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; margin-bottom: 16px; }

.ab-side-item img { width: 64px; height: 48px; object-fit: cover; }

.ab-side-item a { font-family: var(--display); font-size: 15.5px; line-height: 1.3; text-decoration: none; }

.ab-author {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.ab-author-mark {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--plum);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-weight: 800;
    font-size: 20px;
}

.ab-author-kicker {
    display: block;
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}

.ab-author-text strong {
    display: block;
    font-family: var(--display);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.01em;
    color: var(--plum);
    margin-bottom: 6px;
}

.ab-author-text p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; color: #5b5666; max-width: 60ch; }

.ab-author-text a { font-size: 14px; color: var(--coral); text-decoration: none; font-weight: 500; }

.ab-author-text a:hover { text-decoration: underline; }

/* ---------- pie ---------- */
.ab-foot { background: #fff; border-top: 1px solid var(--line); padding: 44px 0 32px; margin-top: 24px; }

.ab-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }

.ab-foot h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

.ab-foot a { display: block; font-size: 14.5px; text-decoration: none; margin-bottom: 8px; color: #3d3948; }

.ab-foot a:hover { color: var(--coral); }

.ab-foot p { font-size: 13px; color: var(--muted); margin: 24px 0 0; }

/* ---------- adaptación ---------- */
@media (max-width: 1000px) {
    .ab-post-wrap { grid-template-columns: 1fr; gap: 40px; }
    .ab-side { position: static; }
    .ab-grid, .ab-minis { grid-template-columns: 1fr 1fr; }
    .ab-hero { grid-template-columns: 1fr; gap: 24px; }
    .ab-foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .ab-top-in { height: auto; flex-wrap: wrap; gap: 10px; padding: 12px 18px; }
    .ab-nav { width: 100%; gap: 18px; overflow-x: auto; padding-bottom: 6px; }
    .ab-search { display: none; }
    .ab-grid, .ab-minis { grid-template-columns: 1fr; }
    .ab-shell { padding: 0 18px; }
    .ab-intro { padding: 32px 0 20px; }
    .ab-post h1 { font-size: 30px; }
    .ab-body { font-size: 17px; }
    .ab-foot-grid { grid-template-columns: 1fr; }
}
