/* ═══════════════════════════════════════════════════════════
   STYLE.CSS — Carlos Sánchez Donate
   Restyling 2026 · Mantiene identidad, mejora eficiencia
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. CUSTOM PROPERTIES ───────────────────────────────── */
:root {
    /* Colores de marca */
    --main: #8d096b;
    --main-cta: #8d096b;
    --secondary: #f4b61c;
    --third: #71c8d9;
    --white: #faf7fb;
    --light-grey: #ece9ed;
    --grey: #c0b6bd;
    --dark-grey: #7c767e;
    --black: #291825;

    /* Tintes derivados */
    --main-soft: rgb(141 9 107 / 0.08);
    --main-medium: rgb(141 9 107 / 0.18);
    --main-strong: rgb(141 9 107 / 0.92);
    --secondary-soft: rgb(244 182 28 / 0.15);

    /* Espaciados del layout */
    --padding-cta: 16px 24px;
    --padding-site: 184px;

    /* Radii */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Sombras */
    --shadow-xs: 0 1px 2px rgb(41 24 37 / 0.06);
    --shadow-sm: 0 2px 6px rgb(41 24 37 / 0.08);
    --shadow-md: 0 6px 18px rgb(41 24 37 / 0.10);
    --shadow-lg: 0 14px 34px rgb(41 24 37 / 0.14);
    --shadow-main: 0 10px 28px rgb(141 9 107 / 0.22);
    --shadow-focus: 0 0 0 3px rgb(244 182 28 / 0.45);

    /* Transiciones */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 150ms var(--ease);
    --t-base: 250ms var(--ease);
    --t-slow: 400ms var(--ease);

    /* Tipografía */
    --font-body: "Source Sans Pro", system-ui, -apple-system, sans-serif;
    --font-heading: Catamaran, system-ui, -apple-system, sans-serif;

    /* Medida */
    --reading-max: 72ch;
}

/* ─── 2. RESET & BASE ────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
main {
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--white);
    font-family: var(--font-body);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    display: block;
}

::selection {
    background: var(--main);
    color: var(--white);
    text-shadow: none;
}

/* Scrollbar */
* { scrollbar-color: var(--main) var(--light-grey); }
::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: var(--light-grey); }
::-webkit-scrollbar-thumb {
    background-color: var(--main);
    border-radius: var(--radius-xs);
    border: 3px solid var(--light-grey);
}

/* Focus accesible */
:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
    border-radius: var(--radius-xs);
}

/* ─── 3. TIPOGRAFÍA ──────────────────────────────────────── */
.heading,
.heading2,
.h3,
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--main);
    line-height: 1.15;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}

.cover-fragment-post h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5em);
}

.heading2,
h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.005em;
    margin: 0 0 24px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 16px 0 24px;
}

.h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 21px;
}

h4 {
    font-size: 1.25rem;
    font-weight: 400;
    padding-left: 8px;
}

a {
    color: var(--main);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--t-fast);
}

.enl {
    color: var(--main);
    text-decoration: none;
    cursor: pointer;
}

p {
    font-size: 1.125rem;
    line-height: 1.65;
}

.bold { font-weight: 700; }
.center, .sib_signup_box_inside_1 p { text-align: center; }
.margin-0 { margin: 0; }
.margin-bottom-nule { margin-bottom: 8px; }
.topctamf { margin-top: 4em !important; }
.mbotom { margin-bottom: 32px; }
.aire { height: 48px; }
.dblock { display: block !important; }
.displaynone { display: none !important; }
.revert { flex-direction: row-reverse; }

.fakeh2 {
    margin-top: 40px;
    font-size: 2.25rem;
    line-height: 1.2;
    color: var(--main);
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* ─── 4. UTILIDADES DE COLOR ─────────────────────────────── */
.black-bg { background: var(--black); color: var(--white); }
.white-bg { background: var(--white) !important; color: var(--black); }
.main-bg { background: var(--main); color: var(--white); }
.cta-bg,
.cta1 { background: var(--main-cta); color: var(--white); }
.secondary-bg { background: var(--secondary); }
.rrss-bg { background: var(--grey); color: var(--white); }
.grey-bg { background: var(--light-grey) !important; }
.purple-text { color: var(--main); }
.secondary { color: var(--secondary); }

.purple-bg {
    background-color: var(--main-cta);
    color: var(--white);
}
.purple-bg .cta1 {
    background-color: var(--white);
    color: var(--black);
}

/* ─── 5. LAYOUT BÁSICO ───────────────────────────────────── */
section {
    margin: auto;
    padding: 0 var(--padding-site);
   
}
.recursoslayout #blog-display, article#contratame #blog-display{
    max-width: 1600px;
    width: 90%;
}


.section-padding { padding: var(--padding-cta); }
.padding-vertical { padding: 64px var(--padding-site); }
.audit-padding { padding: 24px 0; }
.spacerblog { margin-top: 2em; }
.freepad,
section#hireme { padding: 48px var(--padding-site); }
.freelatpad { padding: 48px 0; }

.text-explain {
    width: 80%;
    max-width: 720px;
    text-align: center;
    margin: 0 auto 24px;
}

.grid,
.fiten { position: relative; }

/* Elemento decorativo (barras amarillo/morado) */
.decorative {
    width: 60%;
    height: 24px;
    background: linear-gradient(
        135deg,
        var(--secondary) 0,
        var(--secondary) 10%,
        var(--main) 10%,
        var(--main) 100%
    );
    border-radius: 2px;
}

/* Riften overlay (si se usa) */
.riften::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

/* ─── 6. CTAs ────────────────────────────────────────────── */
.cta,
.cta1,
.cta2,
.empty-cta {
    padding: var(--padding-cta);
    font-weight: 700;
    border: solid var(--main-cta) 2px;
    cursor: pointer;
    width: 148px;
    text-align: center;
    transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-base);
}

.cta:hover,
.cta1:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-main);
}

.ctaofusqued,
a.cta {
    margin: 16px auto;
    display: block;
    cursor: pointer;
    background: var(--secondary);
    color: var(--black);
    width: fit-content;
    min-width: 80px;
    border-radius: var(--radius-xs);
}

/* ─── 7. NAVBAR (header) ─────────────────────────────────── */
.fixed-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--white);
    box-shadow:
        0 10px 15px -3px rgb(0 0 0 / 0.05),
        0 4px 6px -2px rgb(0 0 0 / 0.05);
    z-index: 10;
}

.absolute-navbar {
    position: absolute;
    width: 100%;
}

.navbar-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 72px;
}

.navbar-header::before {
    content: "";
    background: var(--main);
    clip-path: polygon(91% 0, 100% 0, 100% 100%, 0% 2034%);
    width: 1496px;
    height: 72px;
    position: absolute;
    z-index: -10;
}

/* Logo triangular */
.navbar-logo {
    position: absolute;
    background: var(--main);
    left: 0;
    top: 0;
    width: 184px;
    height: 200px;
    display: flex;
    justify-content: space-around;
    clip-path: polygon(0 0, 100% 0, 52% 100%, 48% 100%);
    z-index: 5;
}

img#logo-carlos {
    width: 56px;
    margin-top: -32px;
}

.nombre {
    position: absolute;
    top: 8px;
    left: 200px;
    display: flex;
    justify-content: space-around;
    font-family: Catamaran;
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--main);
}

/* Anuncio superior */
.header-anuncio {
    display: flex;
    height: 72px;
    justify-content: space-around;
    align-items: center;
    padding: 0 16px;
}
.header-anuncio div {
    flex: 1;
    text-align: center;
}

div#countdowncarlos {
    width: 375px;
    color: var(--white);
}

.header-banner-frase {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-align: center;
}

.header-comprar {
    padding: 4px 0;
    width: 48px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menús principales */
.navbar-header ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
    margin: 0;
    padding: 0;
}

ul#login-navbar {
    padding-right: 80px;
    color: var(--white);
}
ul#login-navbar li {
    display: list-item;
    list-style-type: disc;
    color: var(--white);
}
ul#login-navbar a { color: var(--white); text-decoration: none; }

.fixed-navbar ul#login-navbar a,
.fixed-navbar ul#login-navbar li {
    color: var(--white);
}

ul#main-navbar a {
    color: var(--main);
    text-decoration: none;
}

ul#main-navbar li { display: block; }

ul#main-navbar li a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px 20px 8px 24px;
    margin-right: 20px;
    background: url(https://sanchezdonate.com/wp-content/themes/sanchezdonate/images/complements/triangulo.svg) no-repeat;
    background-position: 8px center;
    border-radius: var(--radius-xs);
    transition: background-color var(--t-fast), color var(--t-fast), text-shadow var(--t-fast);
}

ul#main-navbar li a:hover {
    background-color: var(--main);
    color: var(--white);
    text-shadow: 0 0 20px var(--black);
}

/* Menú móvil */
ul#main-navbar-movile li,
ul.lielementno li { list-style: none; }

ul#main-navbar-movile li a {
    display: block;
    padding: 8px 20px 8px 24px;
    margin-right: 20px;
    color: var(--white);
    text-transform: uppercase;
    background: url(https://sanchezdonate.com/wp-content/themes/sanchezdonate/images/complements/triangulo.svg) no-repeat;
    background-position: 8px center;
}

li.masternavm { border: 1px solid var(--secondary); }

.expand-menu {
    position: fixed;
    background: var(--main);
    margin: 0;
    padding: 16px;
    width: 169px;
    height: 100vh;
    max-height: 1000px;
    top: 72px;
    right: 0;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    z-index: 11;
}

div#mobile-nab,
label.custom-file-upload,
.notout a::after,
[name="firstname"] { display: none; }

/* ─── 8. COVER / HERO ────────────────────────────────────── */
section#cover,
section.blogcover,
section.redirectioncover {
    min-height: 304px;
}

section#cover {
    height: 100vh;
    max-height: 1000px;
    display: flex;
    align-items: center;
}

.cover-fragment { width: 50%; }

.cover-fragment-blog {
    width: 80%;
    padding-top: 40px;
}

.cover-fragment-post { padding-top: 40px; }

/* Fondos diagonales de layout */
.homelayout::before,
.bloglayout::before {
    content: "";
    position: absolute;
    width: 100%;
    z-index: -10;
}

.homelayout::before {
    background: var(--main);
    height: 100vh;
    max-height: 1000px;
    clip-path: polygon(90% 0, 100% 0, 100% 100%, 0 230%);
}

.bloglayout::before {
    background: var(--main);
    height: 100%;
    clip-path: polygon(90% 0, 100% 0, 100% 100%, 0 230%);
}

section.blogcover {
    height: 300px;
    display: flex;
    align-items: center;
}

section.postcover {
    min-height: 125px;
    height: auto;
    margin-top: 72px;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ─── 9. SECCIÓN SIMON SINEK (home) ──────────────────────── */
section#simon-sinek {
    padding: 80px var(--padding-site);
    background: var(--light-grey);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.smsn-fragment {
    margin-bottom: 160px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.static-img {
    width: 496px;
    max-width: 100%;
    filter: drop-shadow(2px 4px 6px var(--black));
}

.smsn-img img.static-img {
    width: 600px;
    max-width: none;
}

.center-spacing { width: 88px; }

/* ─── 10. HOME POSTS / WIDGETS ───────────────────────────── */
section.homeposts { padding: 3em var(--padding-site); }

.homepostdisplayer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
}

.flexwig {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    text-align: center;
}

.namewidget {
    margin-top: 16px;
    font-family: Catamaran;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-grey);
    text-align: center;
    text-transform: uppercase;
}

.explicawidget {
    font-weight: 600;
    margin-top: 8px;
}

span.small-letter {
    font-size: 0.8125rem;
    margin-top: 8px;
    width: 85%;
    color: var(--dark-grey);
    text-align: center;
}

.d-hs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.d-hs h2 { margin: 0; }

/* ─── 11. BLOG DISPLAY / CARDS ───────────────────────────── */
#blog-display {
    padding: 80px 0;
    background: var(--white);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-around;
    align-content: space-around;
}

section#trabajos {
    padding-top: 80px;
    background: var(--white);
}

.excerpt-post {
    display: flex;
    flex-direction: column;
    max-width: 350px;
    margin-bottom: 32px;
    position: relative;
    transition: transform var(--t-base);
}

.excerpt-post:hover { transform: translateY(-4px); }

.posts-picture {
    position: relative;
    width: 350px;
    height: 200px;
    background: var(--grey);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-bottom: 1em;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t-base);
}

.excerpt-post:hover .posts-picture {
    box-shadow: var(--shadow-main);
}

.posts-picture img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.posts-picture::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 200px;
    clip-path: polygon(99% 0, 100% 0, 100% 100%, 0% 120%);
    background-color: var(--main-strong);
    color: var(--white);
    z-index: 1;
    transition:
        clip-path var(--t-slow),
        transform var(--t-slow);
}

/* Hover estado (activado por JS en el original) */
.posts-picture-hovered::before {
    clip-path: polygon(150% 0, 100% 0, 100% 99%, 0% 225%);
}
.posts-picture-hovered > .masinfo-text {
    background: var(--secondary);
}

.masinfo-text {
    font-family: var(--font-heading);
    margin: 24px;
    padding: 8px;
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
    z-index: 1;
    transition: background var(--t-slow);
    border-radius: var(--radius-xs);
}

.posts-h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    margin: 24px 0;
    text-transform: uppercase;
    line-height: 1.2;
    width: -webkit-fill-available;
    transition: color var(--t-fast);
}

.posts-h2:hover { color: var(--main); }

a.posts-h2::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

main.seo-avanzadolayout .posts-h2 { font-size: 1.375rem; }

/* Posts recomendados (tamaño pequeño) */
.posts-picture.post-rec,
.posts-picture.post-rec::before {
    width: 220px;
    height: 126px;
}
.posts-h2.post-rec {
    font-size: 1.25rem;
    max-width: 220px;
    text-align: center;
    margin-top: 5px;
}

/* Cards de categorías (tipo excerpt) */
.cat-excerpt-post {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 8px;
    padding: 16px;
    width: 80px;
    height: 80px;
    box-shadow: var(--shadow-xs);
    border-radius: var(--radius-md);
    transition: box-shadow var(--t-base), transform var(--t-fast);
}

.cat-excerpt-post:hover {
    box-shadow: 0 0 12px 2px var(--secondary);
    transform: translateY(-2px);
}

.cat-picture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.letras-categoriz {
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
}

.flexcats {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

/* ─── 12. CATEGORIZACIÓN BLOG ────────────────────────────── */
section#categorizacion-blog {
    height: 0;
    background: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

.categories-blog {
    padding: 16px;
    background: var(--main);
    color: var(--white);
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    transition: background var(--t-fast);
}
.categories-blog:hover { background: var(--secondary); color: var(--black); }

section#categorizacion-blog a {
    color: var(--main);
    text-decoration: none;
    text-transform: uppercase;
    flex: 0 1 160px;
}

/* ─── 13. CATEGORÍAS DROPDOWN ────────────────────────────── */
.cat-section {
    max-width: 90%;
    padding: 16px var(--padding-site);
}

.cat-section:has(.cat-details--serie) {
    max-width: 700px;
    padding-left: 0;
    padding-right: 0;
}

.cat-details {
    border: none;
    border-radius: 14px;
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 0 2px 0.5px var(--main);
    transition: box-shadow var(--t-slow);
}

.cat-details[open] {
    box-shadow: var(--shadow-main);
}

.cat-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    background: var(--white);
    border-bottom: 1px solid transparent;
    transition: background var(--t-fast), border-color var(--t-fast);
}
.cat-summary::-webkit-details-marker { display: none; }
.cat-summary:hover { background: var(--light-grey); }
.cat-details[open] .cat-summary { border-bottom-color: var(--light-grey); }

.cat-summary-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--main);
    letter-spacing: -0.02em;
}

.cat-chevron {
    color: var(--main);
    flex-shrink: 0;
    transition: transform var(--t-slow);
}
.cat-details[open] .cat-chevron { transform: rotate(180deg); }

.cat-grid {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    justify-content: space-between;
}

.cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-grey);
    transition: transform var(--t-fast), box-shadow var(--t-base);
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-main);
}

.cat-card-img {
    aspect-ratio: 1 / 1;
    width: 110px;
    height: 110px;
    background-color: var(--white);
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
}

.cat-card-name {
    display: block;
    width: 100%;
    padding: 0.5rem 0.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--black);
    text-align: center;
    line-height: 1.3;
}

.cat-card-count {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 7px;
    background: var(--secondary);
    color: var(--black);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50px;
    line-height: 1.4;
}

.cat-grid--serie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 2rem;
    padding: 1rem 1.25rem;
}
.cat-grid--serie .cat-card { width: 100%; }
.cat-grid--serie .cat-card-img { width: 100%; height: 90px; }
.cat-grid--serie .cat-card-name { font-size: 0.78rem; }

/* ─── 14. POST INDIVIDUAL ────────────────────────────────── */
#post-display,
section#post-display {
    max-width: 120ch;
    padding: 80px var(--padding-site) 32px;
    background: var(--white);
    font-size: 1.25rem;
    padding-top:0px;
}

section#post-display p {
    font-size: 1.25rem;
    line-height: 1.7;
}

#post-display h2,
#post-display h3,
#post-display h4 { display: inline-block; }

#post-display h2 {
    display: block;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--secondary);
}

section#post-display h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}

#post-display h3 {
    margin-top: revert-layer;
    color: var(--main);
}

#post-display a:not(#indice-contenido a):not(.cta) {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: color var(--t-fast);
}
#post-display a:not(#indice-contenido a):not(.cta):hover {
    color: var(--secondary);
}

/* Listas del post */
#post-display ul li,
section#poster-display ul li {
    list-style: none;
    background: url(https://sanchezdonate.com/wp-content/themes/sanchezdonate/images/complements/triangulo.svg) no-repeat;
    background-position: left 8px;
    padding-left: 1em;
    margin-left: -1em;
    margin-top: 8px;
}

/* Imágenes del post */
img.aligncenter,
img.alignnone {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 16px auto;
    border-radius: var(--radius-sm);
    filter: drop-shadow(2px 4px 2px rgb(0 0 0 / 0.15));
}

.leyenda {
    margin: -8px auto 24px;
    width: fit-content;
    color: var(--black);
    font-size: 1rem;
    font-weight: 300;
}

/* Blockquote mejorado */
blockquote {
    margin: 32px auto;
    width: 85%;
    padding: 16px 24px;
    color: var(--black);
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.6;
    border-left: 4px solid var(--main);
    background: var(--main-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Iframe embeds */
section#post-display iframe {
    max-width: 100%;
    min-width: 60%;
    margin-top: 16px;
    border-radius: var(--radius-sm);
    filter: drop-shadow(2px 4px 2px rgb(0 0 0 / 0.15));
}

/* Bibliografía */
span.bibliography {
    font-size: 0.875rem;
    padding-left: 16px;
    background: url(https://sanchezdonate.com/wp-content/themes/sanchezdonate/images/complements/triangulo.svg) no-repeat;
    background-position: left center;
}

/* Índice LWPToc */
.lwptoc {
    padding: 16px;
    border: 1px solid var(--secondary);
    border-radius: var(--radius-sm);
    box-shadow: -1px 3px 10px 0 rgb(0 0 0 / 0.13);
}
.lwptoc_itemWrap { margin-left: 8px; }
span.lwptoc_item_number { font-size: 0.875rem; color: var(--black); }
span.lwptoc_item_label { font-weight: 600; }

/* ─── 15. FICHA POST ─────────────────────────────────────── */
.ficha-post { max-width: 1000px; }

section.ficha-post {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    margin-bottom: 0px;
    line-height: 1.5;
    padding: 24px;
    width: 125ch;
    max-width: 60%;
}

.data-ficha:first-child { margin-right: 8px; }
.data-ficha :is(dd, dl, dt) {
    display: inline;
    margin: 0;
}
.data-ficha dt { font-weight: 600; }

/* ─── 16. CÓDIGO POST ────────────────────────────────────── */
.codigo-post {
    display: block;
    max-width: 100%;
    min-width: 100px;
    padding: 40px 16px 16px;
    margin-top: 1rem;
    overflow-x: auto;
    background-color: rgb(12 16 33 / 0.75);
    color: var(--white);
    font-family: monospace;
    font-size: 1rem;
    cursor: text;
    transform: skewY(1deg);
    filter: drop-shadow(10px 8px 6px var(--black));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='14' viewBox='0 0 54 14'%3E%3Cg fill='none' fill-rule='evenodd' transform='translate(1 1)'%3E%3Ccircle cx='6' cy='6' r='6' fill='%23FF5F56' stroke='%23E0443E' stroke-width='.5'/%3E%3Ccircle cx='26' cy='6' r='6' fill='%23FFBD2E' stroke='%23DEA123' stroke-width='.5'/%3E%3Ccircle cx='46' cy='6' r='6' fill='%2327C93F' stroke='%231AAB29' stroke-width='.5'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 20px 8px;
    background-attachment: local;
    border-radius: var(--radius-sm);
}

.codigo-post pre { margin: 0; }

.codigo-post-wrapper { position: relative; }

.codigo-post-copy-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    padding: 4px 7px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgb(255 255 255 / 0.12);
    border: 1px solid rgb(255 255 255 / 0.25);
    border-radius: 6px;
    color: #ccc;
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.codigo-post-copy-btn:hover {
    background: rgb(255 255 255 / 0.22);
    color: #fff;
}
.codigo-post-copy-btn.copied {
    color: #4caf50;
    border-color: #4caf50;
}
.codigo-post-copy-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ─── 17. TABLAS ─────────────────────────────────────────── */
#post-display table {
    border-spacing: 0;
    border-collapse: collapse;
    max-width: 100%;
    height: fit-content !important;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-xs);
    overflow: hidden;
}

#post-display th,
#post-display thead {
    background-color: var(--main);
    color: var(--white);
    padding: 8px;
    border: 1px solid var(--main);
}

#post-display td {
    padding: 4px 8px;
    border: 1px solid var(--grey);
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    margin-bottom: 1em;
}

.responsive-table table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.responsive-table thead {
    background-color: var(--main);
    color: var(--white);
}

.responsive-table th,
.responsive-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--light-grey);
}

.responsive-table tbody tr:nth-child(even) {
    background-color: var(--light-grey);
}

.responsive-table tbody tr:hover {
    background-color: var(--third);
    color: var(--black);
}

/* ─── 18. IMÁGENES DE SERVICIOS ──────────────────────────── */
.servicio-image,
.post-image {
    position: relative;
    background-repeat: no-repeat;
}

.servicio-image {
    max-height: 300px;
    max-width: 600px;
    width: 60vw;
    height: 30vw;
    background-size: cover;
    background-position: center;
    margin: auto;
    filter: drop-shadow(2px 4px 6px var(--black));
    border-radius: var(--radius-sm);
}

.post-image {
    width: 300px;
    height: 300px;
    background-size: contain;
}

/* ─── 19. FAQ / ACCORDION ────────────────────────────────── */
.asignaturas {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-around;
    counter-reset: section;
}

.asignaturas details {
    width: 50%;
    max-width: 600px;
    list-style: none;
}

.agruped {
    width: 50%;
    max-width: 600px;
    list-style: none;
}

summary.agruped { display: contents; }

.faq-quest,
.faqs-quest {
    display: flex;
    align-items: center;
    height: 56px;
    margin: 8px;
    padding: 16px 16px 16px 24px;
    color: var(--main);
    font-family: "Source Sans Pro";
    font-size: 1.25rem;
    font-weight: 600;
    border: 1px solid var(--main);
    border-radius: var(--radius-xs) var(--radius-xs) 0 0;
    background: linear-gradient(133deg, var(--white) 94%, var(--secondary) 5px);
    cursor: pointer;
    transition: background var(--t-base), color var(--t-fast);
}

.faq-quest:hover,
.faqs-quest:hover {
    background: linear-gradient(133deg, var(--light-grey) 94%, var(--secondary) 5px);
}

.faqs-quest::before {
    counter-increment: section;
    content: "Módulo " counter(section) ":";
    padding-right: 3px;
}

.panel {
    width: auto;
    margin: -8px 8px 8px;
    padding: 16px;
    border: solid 1px var(--main);
    border-top: 0;
    background: var(--light-grey);
}

/* ─── 20. FORMULARIOS ────────────────────────────────────── */
#search-input,
input.sib-NAME-area,
input.sib-email-area {
    margin: 0;
    padding: 0;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--main) !important;
    padding-top: 16px !important;
    transition: border-color var(--t-fast);
}

input.sib-NAME-area,
input.sib-email-area {
    margin-bottom: 16px !important;
}

input.sib-email-area {
    margin-bottom: 0 !important;
    color: var(--white);
    font-size: 1rem;
}

textarea {
    width: 100%;
    max-width: 600px;
    min-width: 180px;
    height: 10em;
    max-height: 600px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--main) !important;
    transition: border-color var(--t-fast);
    font-family: var(--font-body);
}

input:focus-within,
select:focus-within,
textarea:focus-within {
    outline: 0;
}

input#enviar {
    margin-top: 16px;
    padding: 10px 16px;
    background: var(--secondary);
    color: var(--black);
    border: 0;
    border-radius: var(--radius-xs);
    font-family: "Source Sans Pro";
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-base);
}
input#enviar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-contacto {
    max-width: 600px;
    margin: 0 auto 80px;
}

button#search-button {
    background: var(--main);
    color: var(--white);
    border: 0;
    min-width: fit-content;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: background var(--t-fast), color var(--t-fast);
}

button#search-button:hover {
    background: var(--secondary);
    color: var(--black);
}

.searchtool,
.title-footer { display: flex; }

/* ─── 21. ASIDE / ELEMENTOS FLOTANTES ────────────────────── */
aside#aside-button,
aside.blog-cats {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: nowrap;
    text-transform: uppercase;
}

aside#aside-button {
    align-items: center;
    align-content: space-between;
}

aside.blog-cats { align-items: stretch; }

.categories-button {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    padding: 24px;
    background-color: var(--main);
    color: var(--white);
    font-weight: 600;
    font-size: 1.5rem;
    font-family: catamaran;
    cursor: pointer;
}

.categories-button::before {
    content: "";
    position: fixed;
    right: -38px;
    width: 100%;
    height: 100%;
    background-image: url(https://sanchezdonate.com/wp-content/themes/sanchezdonate/images/complements/carlos-categorias.png);
    background-size: 72px;
    background-repeat: no-repeat;
    transform: rotate(180deg);
}

.entry {
    color: var(--black);
}

/* ─── 22. FEEDBACK & REDES ───────────────────────────────── */
section.feedback {
    padding: 24px var(--padding-site);
    background: var(--light-grey);
    font-size: 0.875rem;
    text-align: center;
    font-weight: 300;
}

a.alinkedin {
    padding-right: 24px;
    margin-right: 5px;
    font-weight: 400;
    background: url(https://sanchezdonate.com/wp-content/themes/sanchezdonate/images/rrss/linkedin.svg) no-repeat;
    background-position: right center;
}

.discordbnr {
    padding: 2px;
    height: 28px;
    margin: auto;
    background-image: url(https://sanchezdonate.com/wp-content/themes/sanchezdonate/images/rrss/discord.svg);
    background-repeat: no-repeat;
    background-size: 28px;
    background-position: center;
}

/* ─── 23. CALENDLY ───────────────────────────────────────── */
.calendly-overlay {
    position: fixed;
    z-index: 10;
    inset: 50px;
    max-width: 1000px;
    margin: auto;
}

.calendly-popup-content { height: 670px; }

.calendly-close-overlay {
    position: absolute;
    right: 105px;
    top: 70px;
    height: 56px;
    width: 56px;
    background-color: var(--secondary);
    background-image: url(https://sanchezdonate.com/wp-content/themes/sanchezdonate/images/complements/close.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 56%;
    border-radius: 100%;
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-base);
}
.calendly-close-overlay:hover {
    transform: rotate(90deg);
    box-shadow: var(--shadow-main);
}

/* ─── 24. LANGUAGE SELECTOR ──────────────────────────────── */
.language-selector { margin: auto; }
.language-selector a { color: var(--light-grey); }
.language-selector img { margin-right: 5px; }

/* ─── 25. ICONOS DE LINKS EXTERNOS ───────────────────────── */
a[target="_blank"]:not(.cta):not(.rrss-vector):not(.posts-h2)::after {
    content: "";
    padding-right: 1em;
    margin-left: 4px;
    background-image: url(https://sanchezdonate.com/wp-content/themes/sanchezdonate/images/favicon/link.svg);
    background-size: 1em;
    background-repeat: no-repeat;
    background-position: center right;
}

a[href^="http:"] {
    padding-right: 1.5em;
    background-image: url(/wp-content/themes/sanchezdonate/images/complements/candado-r.svg);
    background-size: 1em;
    background-repeat: no-repeat;
    background-position: right center;
}

/* ─── 26. SPONSOR ASIDE ──────────────────────────────────── */
@media (max-width: 1399px) {
    .aside-sponsor { display: none !important; }
}

/* ─── 27. CTA RECURSOS ───────────────────────────────────── */
.cta-recursos {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    background: var(--white);
    border-left: 4px solid var(--secondary);
    border-radius: var(--radius-xs);
    box-shadow: var(--shadow-xs);
}

.cta-recursos__texto {
    margin: 0;
    color: var(--black);
    font-size: 1rem;
    line-height: 1.5;
}

.cta-recursos__boton {
    flex-shrink: 0;
    padding: var(--padding-cta);
    background: var(--main);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-xs);
    transition: background var(--t-base), transform var(--t-fast);
}
.cta-recursos__boton:hover {
    background: var(--black);
    transform: translateY(-2px);
}

/* ─── 28. ANUNCIO INLINE POST ────────────────────────────── */
.leyenda.notout.postnuncio {
    position: relative;
    margin: 2em auto;
    max-width: fit-content;
    padding: 18px 1px 1px;
    background: #fff;
    border: 1px solid var(--white);
    border-radius: var(--radius-xs);
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.12);
    box-sizing: border-box;
}

.postnuncioborder {
    position: absolute;
    top: 0;
    right: 20px;
    width: calc(50% - 24px);
    height: 18px;
    font-size: 0.8125rem;
    color: #80868b;
    font-family: Arial, sans-serif;
    letter-spacing: 0.3px;
    text-align: right;
    user-select: none;
    cursor: pointer;
}

.postnuncioclose {
    position: absolute;
    top: -5px;
    right: 0;
    padding: 3px 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    color: #00aecd;
    font-family: Arial, sans-serif;
}

/* ─── 29. POPUP IMAGEN ───────────────────────────────────── */
div#image-popup-overlay img {
    background: var(--white);
}

/* ─── 30. MÓVIL — BOTONES DE MENÚ ────────────────────────── */
@media only screen and (max-width: 1230px) {
    div#menu-togle,
    div#close-menu {
        border-radius: 100%;
        box-shadow: -1px 3px 20px 0 var(--black);
    }

    div#menu-togle {
        position: fixed;
        height: 80px;
        width: 80px;
        right: 40px;
        bottom: 10%;
        z-index: 11;
        background-color: var(--secondary);
        background-image: url(https://sanchezdonate.com/wp-content/themes/sanchezdonate/images/complements/mob-menu.svg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 56%;
        transition: transform var(--t-fast);
    }
    div#menu-togle:hover { transform: scale(1.05); }

    div#close-menu {
        width: 32px;
        height: 32px;
        background: var(--secondary) url(https://sanchezdonate.com/wp-content/themes/sanchezdonate/images/complements/close.svg) no-repeat center / 56%;
    }

    .mobilepanel {
        display: flex;
        flex-direction: row-reverse;
        align-items: flex-end;
    }

    .homelayout::before { clip-path: polygon(115% 0, 100% 0, 100% 100%, 0 200%); }

    ul#main-navbar { display: none; }

    :root { --padding-site: 120px; }

    .navbar-logo { width: 120px; height: 160px; }
    img#logo-carlos { width: 42px; }

    .smsn-fragment { flex-direction: column; }
    section.postcover { flex-direction: column; }
    .smsn-text { margin-bottom: 32px; }

    div#open_graph { margin: 8px 0; }

    section#post-footer .container,
    ul#main-navbar-movile { padding: 0; }
    ul.submobile { padding-left: 16px; }
    .post-footer nav ul { margin: inherit; }
}

/* ─── 31. MEDIA QUERIES CONSOLIDADAS ─────────────────────── */

/* Móvil pequeño ≤ 400px */
@media only screen and (max-width: 400px) {
    section.ficha-post {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 8px 0;
    }
    section#post-display { max-width: 280px; }
    .faq-quest,
    .faqs-quest { font-size: 14pt; }
    #post-display ul li,
    section#poster-display ul li { margin-left: -2em; }
    .home-picture-mobile {
        height: 240px;
        width: 280px;
    }
}

/* Móvil ≤ 494px */
@media only screen and (max-width: 494px) {
    .navbar-header::before,
    nav.navbar-header { background: var(--main); }

    nav#navbar-mobile,
    section { max-width: 100%; }

    .entry,
    .posts-h2,
    section#simon-sinek { text-align: center; }

    .cat-h2 { margin-top: 16px; }

    .header-banner-frase {
        display: flex;
        align-items: center;
    }

    .header-countdown,
    .masinfo-text,
    aside#aside-button { display: none; }

    .columnas div img { max-width: 90%; height: auto; }

    .codigo-post { font-size: 0.75rem; }

    .navbar-logo {
        position: fixed;
        left: 16px;
        width: auto;
        height: 72px;
        clip-path: none;
        background: transparent;
        justify-content: unset;
    }

    main { padding-top: 72px; }

    img#logo-carlos {
        width: 30px;
        height: auto;
        margin: 8px -16px 0 0;
    }

    :root { --padding-site: 8px; }

    h1 { font-size: 2rem; }

    .heading2,
    h2,
    section.blogcover div h1 { font-size: 1.625rem; }

    .posts-h2 { font-size: 1.25rem; }

    .entry {
        max-width: 264px;
        margin-bottom: 8px;
    }

    .smsn-fragment { margin-bottom: 66px; }

    ul#main-navbar-movile { font-size: 0.875rem; }
    ul#main-navbar-movile li { margin: 4px 0; }

    .navbar-header::before {
        clip-path: polygon(32% 0, 100% 0, 100% 100%, 0% 208%);
        width: 200px;
        height: 72px;
        z-index: -10;
    }

    section { overflow: hidden; }

    ul#login-navbar { padding-right: 16px; }

    .cover-fragment { width: 100%; }
    .static-img { max-width: 80% !important; }
    .homelayout::before { content: none; }

    .navbar-mobile { width: 128px; }

    div#menu-togle {
        width: 48px;
        height: 48px;
        right: 24px;
        bottom: 5%;
    }

    .entry {
        width: 264px;
        margin-top: -1em;
    }

    .excerpt-post { align-items: center; }

    .posts-picture,
    .posts-picture::before {
        width: 200px !important;
        height: 114px !important;
        display: flex;
        position: relative;
    }

    .nombre,
    .navbar-logo { position: inherit; }

    section#categorizacion-blog { height: 10px; }

    section.postcover {
        height: auto;
        margin-top: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    div#open_graph {
        position: relative;
        width: 200px;
        height: 200px;
        right: auto;
        top: auto;
        margin: 16px 0;
    }

    section.blogcover {
        min-height: fit-content;
        height: 196px !important;
    }

    main.seo-avanzadolayout .cover-fragment-blog { padding-top: 0; }

    section#redirect-display {
        display: flex;
        flex-direction: column;
    }

    .navbar-header { justify-content: space-between; }

    nav.navbar-header.fixed-navbar {
        display: flex;
        flex-direction: row;
    }

    .nombre {
        top: 0;
        left: 8px;
        display: flex;
        align-items: center;
        padding-left: 8px;
        font-size: 1.125rem;
        font-weight: 400;
        color: var(--white);
    }

    a#main-link-home {
        flex-grow: initial;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        width: 50%;
    }

    .servicio-image {
        width: 100%;
        height: 50vw;
    }

    .posts-picture::before {
        clip-path: polygon(150% 0, 100% 0, 100% 99%, 0% 225%) !important;
    }
}

/* Móvil con home específica */
@media only screen and (max-width: 495px) and (min-height: 226px) {
    main.homelayout section#cover { height: auto; }
    main.homelayout section#cover .cover-fragment { margin-top: 20px; }

    .home-picture-mobile {
        display: block;
        margin: 20px auto auto;
        max-width: 95%;
        height: 300px;
        width: 360px;
        background-image: url(https://sanchezdonate.com/wp-content/themes/sanchezdonate/images/home/carlos-home-mobile.webp?v1);
        background-repeat: no-repeat;
        background-position: center;
        box-shadow: 0 0 8px 0 #000;
    }
}

/* Móvil alto */
@media only screen and (max-width: 637px) {
    summary.agruped h3.faq-quest { font-size: 1rem; }
}

@media only screen and (min-width: 495px) and (max-width: 637px) {
    .nombre { left: 120px; font-size: 2rem; }
}

/* Tablets y móvil grande ≤ 700px */
@media only screen and (max-width: 700px) {
    .rrss-footer { flex-wrap: wrap; }
}

/* ≤ 950px */
@media only screen and (max-width: 950px) {
    .cover-fragment-post h1 { font-size: 2em; }
    .calendly-close-overlay { right: 0; }
    .agruped,
    .asignaturas details { width: 100%; }

    .header-anuncio {
        display: flex;
        flex-direction: column;
        height: 136px;
        align-items: center;
        justify-content: space-evenly;
    }

    .header-comprar .cta {
        height: 16px;
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: space-around;
        margin: 0 auto;
        min-width: max-content;
    }

    .error404 {
        margin-top: 104px;
        height: auto !important;
        padding-bottom: 80px;
    }

    .d-hs {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 88px;
        margin-bottom: 0;
    }
}

/* Tablet media (495–800) */
@media only screen and (min-width: 495px) and (max-width: 800px) {
    .static-img { width: 296px; }
    .smsn-img img.static-img { width: 100%; }
    .padding-vertical { padding: 64px 24px; }

    main.homelayout section#cover {
        padding: 0;
        margin-top: 152px;
        height: auto;
    }
    main.homelayout section#cover .cover-fragment {
        width: 80%;
        margin: auto;
    }
    .homelayout::before { content: none; }

    section.blogcover {
        height: auto;
        min-height: 300px;
    }
}

/* Tablet ≥ 1000 */
@media (max-width: 1000px) {
    .cat-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
    }
    a.cat-card {
        display: flex;
        flex-direction: row-reverse;
        width: 100%;
        max-height: 40px;
        max-width: 240px;
    }
    span.cat-card-count { display: none; }
    .cat-card-img {
        width: 40px;
        height: 40px;
        max-width: 200px;
        background-size: contain;
        aspect-ratio: auto;
    }
    .cat-card-name {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    .cat-summary { padding: 0.85rem 1rem; }
}

/* Intermedio 1000–1450 */
@media (max-width: 1450px) and (min-width: 1000px) {
    .cat-grid * { font-size: 1rem; }
    .cat-card-img {
        aspect-ratio: 1 / 1;
        width: 50px;
        height: 50px;
        background-size: cover;
        background-position: 50%;
        background-repeat: no-repeat;
        background-color: var(--white);
    }
    .cat-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 16px 24px;
        margin-top: 2em;
        padding: 16px;
        justify-content: space-around;
        align-content: space-between;
    }
    span.cat-card-count { display: none; }
}

/* Desktop 1200–1360 */
@media only screen and (min-width: 1200px) and (max-width: 1360px) {
    :root { --padding-site: 160px; }
    .homelayout::before { clip-path: polygon(87% 0, 100% 0, 100% 100%, 0 173%); }
    .cover-fragment-post h1 { max-width: 600px; }
}

/* Navbar mid-desktop */
@media only screen and (min-width: 1230px) and (max-width: 1450px) {
    .nombre {
        font-size: 1.75rem;
        top: 12px;
        left: 180px;
    }
    ul#main-navbar li a {
        padding: 6px 18px 6px 22px;
        margin-right: 9px;
    }
}

/* Sponsor ≥ 1400 */
@media (min-width: 1400px) {
    .aside-sponsor {
        position: fixed;
        top: 45em;
        left: 5vw;
        transform: translateY(-50%);
        width: 160px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        z-index: 100;
    }
    .aside-sponsor__label {
        font-size: 0.625rem;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        text-align: center;
        width: 100%;
    }
    .aside-sponsor__slot {
        width: 150px;
        height: 300px;
        background: #f0f0f0;
        border: 1px dashed #ccc;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        text-decoration: none;
        color: #aaa;
        font-size: 0.75rem;
        transition: opacity var(--t-fast);
    }
    .aside-sponsor__slot:hover { opacity: 0.85; }
    .aside-sponsor__slot img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .aside-sponsor__slot--empty::before { content: '160 × 160'; }
    .aside-sponsor__close {
        position: absolute;
        top: -8px;
        right: -8px;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 50%;
        color: #999;
        font-size: 0.625rem;
        line-height: 1;
        cursor: pointer;
        transition: background var(--t-fast), color var(--t-fast);
    }
    .aside-sponsor__close:hover {
        background: #eee;
        color: #333;
    }
}

@media (min-width: 1600px) {
    .aside-sponsor { left: 10vw; }
}

/* Desktop ≥ 1680 */
@media only screen and (min-width: 1680px) {
    ul#main-navbar { margin-right: 64px; }
    .smsn-text { max-width: 50vw; }
}

/* Desktop XL ≥ 2080 */
@media only screen and (min-width: 2080px) {
    :root { --padding-site: 200px; }
    ul#main-navbar {
        margin-right: 32px;
        margin-left: 600px;
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    .smsn-fragment,
    section#simon-sinek { align-items: center; }
    #blog-display { justify-content: space-evenly; }
    .homelayout::before {
        max-width: 2000px;
        right: 0;
    }
}

/* Desktop XXL ≥ 2400 */
@media only screen and (min-width: 2400px) {
    body,
    nav.navbar-header.fixed-navbar { max-width: 2400px; }
    body {
        margin: auto;
        position: relative;
        box-shadow: 0 0 13px 8px rgb(41 24 37 / 0.33);
    }
    .navbar-header::before { z-index: 0; }
    ul#login-navbar { z-index: 1; }
    html { background: var(--light-grey); }
}

/* Alto específico de pantalla */
@media only screen and (max-height: 645px) and (min-width: 495px) {
    main.homelayout section#cover {
        padding: 0;
        margin-top: 152px;
        height: auto;
    }
    main.homelayout section#cover .cover-fragment {
        width: 80%;
        margin: auto;
    }
    .homelayout::before { content: none; }
}

/* ≥ 490: esconder imagen móvil + language selector fijo */
@media only screen and (min-width: 490px) {
    img.home-picture-mobile { display: none; }
    .language-selector {
        position: fixed;
        bottom: 15px;
        right: 15px;
        padding: 7px;
        background: var(--third);
        z-index: 2;
    }
}

/* Tabla responsive en móvil + language selector abajo */
@media (max-width: 600px) {
    .responsive-table table { min-width: 100%; }
    .language-selector {
        position: fixed;
        bottom: 25px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        padding: 7px;
        background: var(--third);
        z-index: 2;
    }
}

/* CTA recursos móvil */
@media only screen and (max-width: 672px) {
    .cta-recursos { flex-direction: column; }
    img#open_graph { width: 150px; height: 150px; }
    .cover-fragment-post { padding-top: 14px; }
        section.ficha-post {
        margin: auto;
        margin-bottom: 14px;
        font-size: 12px;
    }
}