/*
 * main.css — SAC Fly Starter Theme
 *
 * Índice:
 *  1. Variables CSS (:root)
 *  2. Reset moderno
 *  3. Base / Tipografía
 *  4. Layout — .container y .section
 *  5. Botones
 *  6. Site Header
 *  7. Navegación / Mobile Menu
 *  8. Site Footer
 *  9. Hero
 * 10. Services
 * 11. CTA Band
 * 12. Blog Preview / Posts Grid
 * 13. Single Post
 * 14. Page
 * 15. 404
 * 16. Utilidades
 *
 * Metodología: BEM simplificado, mobile-first.
 * Sin Bootstrap, sin Tailwind, sin jQuery.
 */


/* ═══════════════════════════════════════════════════════════════════
   1. VARIABLES CSS
   ═══════════════════════════════════════════════════════════════════ */

:root {
    /* Paleta de color — ajustar por proyecto */
    --color-brand-primary:   #405481;   /* Azul principal de marca         */
    --color-brand-secondary: #5a71a8;   /* Azul claro / links              */
    --color-brand-accent:    #2c3a5c;   /* Azul profundo / CTAs            */
    --color-brand-dark:      #2c3a5c;
    --color-brand-light:     #8b9cc4;
    --color-brand-tint:      #eef1f7;
    --color-bg:              #ffffff;
    --color-bg-alt:          #f4f6fa;   /* Secciones de fondo suave        */
    --color-text:            #17203a;   /* Texto principal                 */
    --color-text-muted:      #6b7590;   /* Texto secundario / metas        */
    --color-border:          #dfe3ec;
    --color-white:           #ffffff;
    --color-black:           #000000;

    /* Tipografía */
    --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-size-xs:   0.75rem;    /*  12px */
    --font-size-sm:   0.875rem;   /*  14px */
    --font-size-base: 1.125rem;   /*  18px */
    --font-size-md:   1.125rem;   /*  18px */
    --font-size-lg:   1.25rem;    /*  20px */
    --font-size-xl:   1.5rem;     /*  24px */
    --font-size-2xl:  2rem;       /*  32px */
    --font-size-3xl:  2.5rem;     /*  40px */
    --font-size-4xl:  3rem;       /*  48px */
    --font-weight-regular: 400;
    --font-weight-medium:  500;
    --font-weight-semibold:600;
    --font-weight-bold:    700;
    --line-height-tight:  1.2;
    --line-height-base:   1.6;
    --line-height-relaxed:1.8;

    /* Espaciado (escala de 4px) */
    --space-1:  0.25rem;   /*  4px */
    --space-2:  0.5rem;    /*  8px */
    --space-3:  0.75rem;   /* 12px */
    --space-4:  1rem;      /* 16px */
    --space-5:  1.25rem;   /* 20px */
    --space-6:  1.5rem;    /* 24px */
    --space-8:  2rem;      /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */

    /* Layout */
    --container-max:    1200px;
    --container-gutter: var(--space-6);

    /* Bordes */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  16px;
    --radius-full:9999px;

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

    /* Transiciones */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;

    /* Header */
    --header-height: 68px;
	--icon-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E");
	--icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}


/* ═══════════════════════════════════════════════════════════════════
   2. RESET MODERNO
   ═══════════════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

ul,
ol {
    list-style: none;
}

a {
    color: var(--color-brand-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-brand-primary);
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* Ocultar visualmente pero mantener accesible para lectores de pantalla */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 9999;
    padding: var(--space-2) var(--space-4);
    background: var(--color-brand-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    width: auto;
    height: auto;
    clip: auto;
    white-space: normal;
}


/* ═══════════════════════════════════════════════════════════════════
   3. BASE / TIPOGRAFÍA
   ═══════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-brand-primary);
}

h1 { font-size: 28px; }
h2 { font-size: var(--font-size-xl);  }
h3 { font-size: var(--font-size-lg);  }
h4 { font-size: var(--font-size-md);  }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm);  }

@media (min-width: 768px) {
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl);  }
}

@media (min-width: 1024px) {
    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
}

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

/* Contenido del editor de WordPress (.entry-content) */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.entry-content ul,
.entry-content ol {
    list-style: revert;
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.entry-content blockquote {
    border-left: 4px solid var(--color-brand-secondary);
    padding: var(--space-4) var(--space-6);
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-8) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

.entry-content table {
    margin-bottom: var(--space-8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.entry-content th,
.entry-content td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.entry-content th {
    background: var(--color-bg-alt);
    font-weight: var(--font-weight-semibold);
}

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: var(--space-6) 0;
}


/* ═══════════════════════════════════════════════════════════════════
   4. LAYOUT — .container y .section
   ═══════════════════════════════════════════════════════════════════ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-gutter);
}

.section {
    padding-block: var(--space-16);
}

@media (min-width: 768px) {
    .section {
        padding-block: var(--space-20);
    }
}

@media (min-width: 1024px) {
    .section {
        padding-block: var(--space-24);
    }
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: var(--space-12);
}

.section__header h2 {
    margin-bottom: var(--space-4);
}

.section__header p {
    font-size: var(--font-size-md);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Layout de página interior (content sin sidebar) */
.page-layout {
    padding-block: var(--space-12);
}

@media (min-width: 768px) {
    .page-layout {
        padding-block: var(--space-16);
    }
}


/* ═══════════════════════════════════════════════════════════════════
   5. BOTONES
   ═══════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.75rem 1.75rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition:
        background-color var(--transition-fast),
        color            var(--transition-fast),
        border-color     var(--transition-fast),
        box-shadow       var(--transition-fast),
        transform        var(--transition-fast);
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0);    }

/* Variantes */
.btn--primary {
    background-color: var(--color-brand-accent);
    color: var(--color-white);
    border-color: var(--color-brand-accent);
}
.btn--primary:hover {
    background-color: #e04d20;
    border-color: #e04d20;
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(90,113,168,.35);
}

.btn--secondary {
    background-color: var(--color-brand-primary);
    color: var(--color-white);
    border-color: var(--color-brand-primary);
}
.btn--secondary:hover {
    background-color: #0d2e52;
    border-color: #0d2e52;
    color: var(--color-white);
}

.btn--ghost {
    background-color: transparent;
    color: var(--color-brand-primary);
    border-color: var(--color-brand-primary);
}
.btn--ghost:hover {
    background-color: var(--color-brand-primary);
    color: var(--color-white);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-brand-secondary);
    border-color: var(--color-brand-secondary);
}
.btn--outline:hover {
    background-color: var(--color-brand-secondary);
    color: var(--color-white);
}

.btn--white {
    background-color: var(--color-white);
    color: var(--color-brand-primary);
    border-color: var(--color-white);
}
.btn--white:hover {
    background-color: transparent;
    color: var(--color-white);
}

/* Tamaño pequeño */
.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--font-size-sm);
}


/* ═══════════════════════════════════════════════════════════════════
   6. SITE HEADER
   ═══════════════════════════════════════════════════════════════════ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid lightgrey;
    box-shadow: none;
    transition:
        transform        var(--transition-base),
        background-color var(--transition-base),
        box-shadow       var(--transition-base),
        border-color     var(--transition-base);
    background-color: var(--color-white);
}

.site-header.is-scrolled {
    background-color: var(--color-white);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-header__brand a,
.site-header__brand .site-name {
    display: flex;
    align-items: center;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-brand-primary);
    text-decoration: none;
}

.site-header__brand img,
.custom-logo {
    height: 28px;
    width: auto;
}


/* ═══ HEADER TRANSPARENTE — SOLO con hero oscuro ═══ */
/*
 * El header es SÓLIDO por defecto en todas las páginas.
 * Solo se vuelve transparente (texto blanco sobre el hero) cuando el <body>
 * tiene la clase .has-dark-hero, que PHP agrega únicamente si el primer
 * componente de la página es un hero con estilo oscuro.
 */

/* Por defecto (sin hero oscuro): marca y logo oscuros, sin filtro */
.site-header__brand a,
.site-header__brand .site-name {
    color: var(--color-brand-primary);
    transition: color var(--transition-base);
}

/* CON hero oscuro y arriba del todo: marca blanca */
.has-dark-hero .site-header:not(.is-scrolled) .site-header__brand a,
.has-dark-hero .site-header:not(.is-scrolled) .site-header__brand .site-name {
    color: var(--color-white);
}
/* CON hero oscuro pero ya scrolleado: vuelve a oscuro */
.has-dark-hero .site-header.is-scrolled .site-header__brand a,
.has-dark-hero .site-header.is-scrolled .site-header__brand .site-name {
    color: var(--color-brand-primary);
}

/* Logo: solo se invierte a blanco con hero oscuro y sin scroll */
.has-dark-hero .site-header:not(.is-scrolled) .custom-logo {
    filter: brightness(0) invert(1);
}

/* Hamburguesa: blanca solo con hero oscuro y sin scroll */
.has-dark-hero .site-header:not(.is-scrolled) .nav-toggle__bar {
    background-color: var(--color-white);
}

@media (min-width: 768px) {
    /* Links blancos SOLO sobre hero oscuro sin scroll */
    .has-dark-hero .site-header:not(.is-scrolled) .nav__list > li > a {
        color: rgba(255,255,255,.9);
    }
    .has-dark-hero .site-header:not(.is-scrolled) .nav__list > li > a:hover,
    .has-dark-hero .site-header:not(.is-scrolled) .nav__list .current-menu-item > a,
    .has-dark-hero .site-header:not(.is-scrolled) .nav__list .current_page_item > a {
        /*color: var(--color-white);*/
        background-color: rgba(255,255,255,.12);
    }
    /* El CTA (botón naranja) mantiene su fondo en todos los casos */
    .has-dark-hero .site-header:not(.is-scrolled) .nav__list .menu-cta > a {
        background-color: var(--color-brand-accent);
    }
}

/* Último ítem como botón naranja con ícono de chat */
.nav__list .menu-cta > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background-color: var(--color-brand-accent);
    color: var(--color-white) !important;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    margin-top: var(--space-4);
}
.nav__list .menu-cta > a:hover {
    background-color: #e04d20;
}
.nav__list .menu-cta > a::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: var(--icon-chat) center / contain no-repeat;
            mask: var(--icon-chat) center / contain no-repeat;
}

@media (min-width: 768px) {
    .nav__list .menu-cta > a {
        padding: var(--space-2) var(--space-5);
        margin-top: 0;
        margin-left: var(--space-2);
    }
    .nav__list .menu-cta > a:hover {
        box-shadow: 0 4px 14px rgba(90,113,168,.35);
        transform: translateY(-1px);
    }
}


/* ═══════════════════════════════════════════════════════════════════
   7. NAVEGACIÓN / MOBILE MENU
   ═══════════════════════════════════════════════════════════════════ */

/* Botón hamburguesa — solo visible en mobile */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: var(--space-2);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-brand-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Animación X al abrir */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menú en mobile: overlay */
.nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--color-white);
    padding: var(--space-6);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    z-index: 99;
}

.nav.is-open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.nav__list a {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a {
    background-color: var(--color-bg-alt);
    color: var(--color-brand-secondary);
}

/* Sub-menú */
.nav__list .sub-menu {
    padding-left: var(--space-4);
    margin-top: var(--space-1);
}

.nav__list .sub-menu a {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
}

/* Desktop: menú inline */
@media (min-width: 768px) {
    .nav-toggle { display: none; }

    .nav {
        position: static;
        transform: none;
        padding: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .nav__list {
        flex-direction: row;
        align-items: center;
        gap: var(--space-1);
    }

    .nav__list a {
        font-size: 16px;
        padding: var(--space-2) var(--space-3);
    }

    /* Sub-menú dropdown en desktop */
    .nav__list .menu-item-has-children {
        position: relative;
    }

    /* Puente invisible: rellena el hueco entre el ítem y la cajita
       para que el mouse no pierda el :hover al bajar. */
    .nav__list .menu-item-has-children::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: var(--space-2);
        display: none;
    }
    .nav__list .menu-item-has-children:hover::after,
    .nav__list .menu-item-has-children:focus-within::after {
        display: block;
    }

    .nav__list .sub-menu {
        position: absolute;
        top: calc(100% + var(--space-2));
        left: 0;
        min-width: 220px;
        max-height: none;
        overflow: visible;
        background: var(--color-white);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        padding: var(--space-2) 0;
        margin: 0;

        /* Transición suave en vez de corte seco */
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        pointer-events: none;
        transition: opacity var(--transition-fast),
                    transform var(--transition-fast),
                    visibility var(--transition-fast);
    }

    .nav__list .menu-item-has-children:hover .sub-menu,
    .nav__list .menu-item-has-children:focus-within .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav__list .sub-menu li {
        display: block;
        width: 100%;
    }

    .nav__list .sub-menu a {
        display: block;
        width: 100%;
        white-space: nowrap;
        border-radius: 0;
        padding: var(--space-2) var(--space-4);
    }
}


/* ── HEADER: espaciado del contenido ──────────────────────────────
 * El header es fixed. En páginas SIN hero oscuro, el contenido debe
 * empezar debajo del header para no quedar tapado.
 * En páginas CON hero oscuro (.has-dark-hero), el hero ocupa el tope
 * y el header transparente se superpone a propósito → sin padding.
 */
body:not(.has-dark-hero) .site-main {
    padding-top: var(--header-height);
}

/* ═══════════════════════════════════════════════════════════════════
   8. SITE FOOTER PRO
   ═══════════════════════════════════════════════════════════════════ */

.site-footer {
    background: #405481;
    color: rgba(255,255,255,.78);
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(36px, 6vw, 72px);
    padding-block: clamp(48px, 4vw, 86px);
}

@media (min-width: 960px) {
    .site-footer__top {
        grid-template-columns: minmax(280px, 1.15fr) minmax(520px, 1.85fr);
        align-items: start;
    }
}

.site-footer__brand {
    max-width: 560px;
}

.site-footer__brand .site-name,
.site-footer__brand .custom-logo-link {
    display: inline-flex;
    color: var(--color-white);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
}

.site-footer__brand .custom-logo {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.site-footer__tagline {
    margin-top: var(--space-4);
    max-width: 520px;
    font-size: var(--font-size-md);
    line-height: 1.75;
    color: rgba(255,255,255,.72);
}

.site-footer__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.site-footer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.site-footer__btn:hover {
    transform: translateY(-2px);
}

.site-footer__btn--primary {
    border: 2px solid #E20037;
    color: #fff;
}

.site-footer__btn--primary:hover {
    background: #fff;
    color: #071b33;
}

.site-footer__btn--secondary {
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
}

.site-footer__btn--secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,.08);
    color: #fff;
}

.site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--space-6);
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.site-footer__social-link:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.32);
    color: #fff;
}

.site-footer__social-link svg  {
    width: 20px;
    height: 20px;
}

/* Columnas editables desde Apariencia > Footer SAC Fly */

.site-footer__columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 640px) {
    .site-footer__columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.site-footer__column {
    min-width: 0;
}

.site-footer__column-title {
    margin: 0 0 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.site-footer__links {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.72);
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.site-footer__links a::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 999px;
    background: var(--color-brand-secondary);
    opacity: .9;
}

.site-footer__links a:hover {
    color: #fff;
    transform: translateX(2px);
}

/* Subfooter widgets */

.site-footer__widgets-wrap {
    border-top: 1px solid rgba(255,255,255,.10);
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.035);
}

.site-footer__widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-7);
    padding-block: clamp(34px, 5vw, 56px);
}

@media (min-width: 680px) {
    .site-footer__widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .site-footer__widgets {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.footer-widget {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,.68);
}

.footer-widget__title,
.footer-widget h2,
.footer-widget h3 {
    margin-bottom: 14px;
    color: #fff;
    font-size: var(--font-size-md);
}

.footer-widget p {
    color: rgba(255,255,255,.68);
    line-height: 1.7;
}

.footer-widget ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-widget a {
    color: rgba(255,255,255,.70);
    text-decoration: none;
}

.footer-widget a:hover {
    color: #fff;
}

/* Copyright */

.site-footer__bottom {
    padding-block: 20px;
}

.site-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

@media (min-width: 820px) {
    .site-footer__bottom-inner {
        flex-direction: row;
        align-items: center;
    }
}

.site-footer__copy {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,.48);
}

.site-footer__copy a {
    color: rgba(255,255,255,.72);
}

.site-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__menu--horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.site-footer__menu--horizontal a {
    font-size: 14px;
    color: rgba(255,255,255,.54);
    text-decoration: none;
}

.site-footer__menu--horizontal a:hover {
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════════
   9. HERO
   ═══════════════════════════════════════════════════════════════════ */

.hero {
    background: linear-gradient(135deg, var(--color-brand-primary) 0%, #0d3468 100%);
    color: var(--color-white);
    padding-block: var(--space-20);
}

@media (min-width: 768px) {
    .hero { padding-block: var(--space-24); }
}

.hero h1,
.hero .hero__title { color: var(--color-white); }

.badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.9);
    margin-bottom: var(--space-6);
}

.hero__title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-6);
    max-width: 700px;
}

@media (min-width: 768px) { .hero__title { font-size: var(--font-size-3xl); } }
@media (min-width: 1024px) { .hero__title { font-size: var(--font-size-4xl); } }

.hero__subtitle {
    font-size: var(--font-size-md);
    color: rgba(255,255,255,.8);
    max-width: 560px;
    margin-bottom: var(--space-10);
    line-height: var(--line-height-relaxed);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}


/* ═══════════════════════════════════════════════════════════════════
   10. SERVICES
   ═══════════════════════════════════════════════════════════════════ */

.services {
    background-color: var(--color-bg-alt);
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 600px)  { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.service-card__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-4);
}

.service-card__title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
    color: var(--color-brand-primary);
}

.service-card__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin-bottom: 0;
}


/* ═══════════════════════════════════════════════════════════════════
   11. CTA BAND
   ═══════════════════════════════════════════════════════════════════ */

.cta-band {
    background: linear-gradient(135deg, var(--color-brand-secondary) 0%, #0050cc 100%);
    text-align: center;
}

.cta-band__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.cta-band h2 {
    color: var(--color-white);
    font-size: var(--font-size-xl);
    max-width: 600px;
    margin-bottom: 0;
}

@media (min-width: 768px) { .cta-band h2 { font-size: var(--font-size-2xl); } }

.cta-band p {
    color: rgba(255,255,255,.85);
    font-size: var(--font-size-md);
    margin-bottom: 0;
}


/* ═══════════════════════════════════════════════════════════════════
   12. BLOG PREVIEW / POSTS GRID
   ═══════════════════════════════════════════════════════════════════ */

.blog-preview__grid,
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 640px)  { .blog-preview__grid, .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-preview__grid, .posts-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.post-card__thumb {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    margin: 0;
    border-radius: 0;
}

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

.post-card__body {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card__date {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: var(--space-2);
}

.post-card__title {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.post-card__title a {
    color: var(--color-brand-primary);
    text-decoration: none;
}

.post-card__title a:hover {
    color: var(--color-brand-secondary);
}

.read-more {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-brand-secondary);
}

.blog-preview__more {
    text-align: center;
    margin-top: var(--space-10);
}

/* Paginación */
.posts-pagination {
    margin-top: var(--space-12);
}

.posts-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.posts-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.posts-pagination .page-numbers:hover {
    border-color: var(--color-brand-secondary);
    color: var(--color-brand-secondary);
}

.posts-pagination .page-numbers.current {
    background: var(--color-brand-primary);
    border-color: var(--color-brand-primary);
    color: var(--color-white);
}

/* Archive */
.archive-header {
    margin-bottom: var(--space-10);
}

.archive-title {
    margin-bottom: var(--space-2);
}

.archive-description {
    color: var(--color-text-muted);
}

/* No results */
.no-results {
    text-align: center;
    padding: var(--space-16) 0;
}

.no-results h2 {
    margin-bottom: var(--space-4);
}

.no-results p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

/* ═══════════════════════════════════════════════════════════════════
   13. SINGLE POST + AUTHOR
   ═══════════════════════════════════════════════════════════════════ */

.single-post-page,
.author-page {
    padding-block: clamp(42px, 6vw, 42px);
}

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 64px);
}

@media (min-width: 1024px) {
    .single-post-layout {
        grid-template-columns: minmax(0, 760px) minmax(280px, 340px);
        align-items: start;
        justify-content: center;
    }
}

.single-post-article {
    min-width: 0;
}

.single-post-hero {
    margin-bottom: var(--space-8);
}

.entry-cats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.entry-cat {
    padding: var(--space-1) var(--space-3);
    background: var(--color-bg-alt);
    color: var(--color-brand-secondary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
}

.entry-cat:hover {
    background: var(--color-brand-secondary);
    color: var(--color-white);
}

.entry-title {
    max-width: 900px;
    margin-bottom: var(--space-4);
}

.entry-lead {
    max-width: 760px;
    margin: 0 0 clamp(32px, 5vw, 52px);
    color: var(--color-text-muted);
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.65;
}

.entry-thumbnail {
    margin-bottom: var(--space-5);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.entry-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
}

.entry-author-line {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.entry-author-line__avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-bg-alt);
}

.entry-author-line__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-author-line__content p {
    margin: 0 0 4px;
    color: var(--color-text);
    font-size: var(--font-size-sm);
}

.entry-author-line__content a {
    color: var(--color-brand-primary);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

.entry-author-line__content a:hover {
    color: var(--color-brand-secondary);
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.entry-content {
    margin-bottom: var(--space-10);
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-8);
}

.entry-tags a {
    padding: var(--space-1) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.entry-tags a:hover {
    border-color: var(--color-brand-secondary);
    color: var(--color-brand-secondary);
}

/* Sidebar del single */

.single-post-sidebar {
    min-width: 0;
}

@media (min-width: 1024px) {
    .single-post-sidebar__sticky {
        position: sticky;
        top: calc(var(--header-height, 80px) + 24px);
    }
}

.sidebar-card {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.sidebar-card + .sidebar-card {
    margin-top: 22px;
}

.sidebar-cta {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 0%, rgba(244, 162, 97, 0.22), transparent 36%),
        radial-gradient(circle at 0% 100%, rgba(0, 172, 216, 0.2), transparent 34%),
        var(--color-brand-primary);
    color: #fff;
    border: 0;
}


.sidebar-cta h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.15;
}

.sidebar-cta p {
    margin: 0 0 20px;
    color: rgba(255,255,255,.76);
    line-height: 1.65;
}

.sidebar-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--color-brand-secondary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.sidebar-cta__button:hover {
    transform: translateY(-2px);
    background: #fff;
    color: #071b33;
}

.sidebar-author__top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.sidebar-author__photo {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-bg-alt);
}

.sidebar-author__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-author__label {
    display: block;
    margin-bottom: 3px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sidebar-author h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.sidebar-author h2 a {
    color: var(--color-text);
    text-decoration: none;
}

.sidebar-author h2 a:hover {
    color: var(--color-brand-secondary);
}

.sidebar-author__role {
    margin: 4px 0 0;
    color: var(--color-brand-primary);
    font-size: 13px;
    font-weight: 700;
}

.sidebar-author__description {
    margin: 0 0 18px;
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.65;
}

.sidebar-author__socials,
.author-hero__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.sidebar-author__socials a,
.author-hero__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--color-bg-alt);
    color: var(--color-brand-primary);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.sidebar-author__socials a:hover,
.author-hero__socials a:hover {
    background: var(--color-brand-primary);
    color: #fff;
    transform: translateY(-2px);
}

.author-social-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.author-social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.author-hero__links > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--color-bg-alt);
    color: var(--color-brand-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.author-hero__links > a:hover {
    background: var(--color-brand-primary);
    color: #fff;
}

.sidebar-author__link {
    color: var(--color-brand-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

/* Ficha pública del autor */

.author-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(26px, 5vw, 56px);
    align-items: center;
    margin-bottom: clamp(48px, 8vw, 86px);
    padding: clamp(28px, 5vw, 56px);
    border-radius: 32px;
    background:
        radial-gradient(circle at 90% 10%, rgba(0, 172, 216, 0.18), transparent 34%),
        var(--color-bg-alt);
}

@media (min-width: 820px) {
    .author-hero {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

.author-hero__photo {
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
}

.author-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-hero__eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--color-brand-secondary);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.author-hero h1 {
    margin-bottom: 8px;
}

.author-hero__role {
    margin: 0 0 18px;
    color: var(--color-brand-primary);
    font-weight: 800;
}

.author-hero__description {
    max-width: 760px;
    color: var(--color-text-muted);
    line-height: 1.75;
}

.author-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.author-posts__header {
    text-align: center;
    margin-bottom: 28px;
}


/* ═══════════════════════════════════════════════════════════════════
   14. PAGE
   ═══════════════════════════════════════════════════════════════════ */

.page-content {
    max-width: 820px;
    margin-inline: auto;
}


/* ═══════════════════════════════════════════════════════════════════
   15. 404
   ═══════════════════════════════════════════════════════════════════ */

.error-404 {
    text-align: center;
}

.error-404__inner {
    max-width: 540px;
    margin-inline: auto;
}

.error-404__code {
    display: block;
    font-size: 7rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    color: var(--color-bg-alt);
    margin-bottom: var(--space-6);
    letter-spacing: -0.04em;
}

.error-404__title {
    margin-bottom: var(--space-4);
}

.error-404__message {
    color: var(--color-text-muted);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-8);
    line-height: var(--line-height-relaxed);
}

.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}


/* ═══════════════════════════════════════════════════════════════════
   16. UTILIDADES
   ═══════════════════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.mt-auto     { margin-top: auto; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* Separator visual */
.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin-block: var(--space-8);
}

/*AJUSTE OUTLINE GRAL*/

/* Quita el outline solo cuando el foco NO viene de teclado
   (ej. después de un click con mouse) */
:focus:not(:focus-visible) {
    outline: none;
}

/* El botón CTA mantiene su estilo naranja aunque sea la página actual */
.nav__list .menu-cta.current-menu-item > a,
.nav__list .menu-cta.current_page_item > a,
.nav__list .menu-cta > a:hover {
    background-color: var(--color-brand-accent);
    color: var(--color-white) !important;
}

/* Y en hover sobre la página actual, el naranja más oscuro */
.nav__list .menu-cta.current-menu-item > a:hover,
.nav__list .menu-cta.current_page_item > a:hover {
    background-color: #e04d20;
}

/* Widgets de la sidebar de entradas */

.single-post-sidebar__static {
    margin-top: 22px;
}

.sidebar-widget__title {
    margin: 0 0 14px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-brand-primary);
}

.sidebar-widget p:last-child,
.sidebar-widget ul:last-child {
    margin-bottom: 0;
}

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

/* Banners: sin marco ni padding para que ocupen todo el ancho */
.sidebar-widget.widget_media_image,
.sidebar-widget.widget_custom_html,
.sidebar-widget.widget_block {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    overflow: hidden;
}

.sidebar-widget.widget_media_image img,
.sidebar-widget.widget_custom_html img,
.sidebar-widget.widget_block img {
    margin-inline: auto;
}

.sidebar-widget.widget_media_image .sidebar-widget__title,
.sidebar-widget.widget_custom_html .sidebar-widget__title,
.sidebar-widget.widget_block .sidebar-widget__title {
    margin-bottom: 8px;
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    color: var(--color-text-muted);
    text-align: center;
}

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

.sidebar-widget li + li {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

.sidebar-widget a {
    color: var(--color-text);
    text-decoration: none;
}

.sidebar-widget a:hover {
    color: var(--color-brand-primary);
}

/* Botón cargar más */

.posts-loadmore {
    display: flex;
    justify-content: center;
    margin-top: clamp(28px, 4vw, 48px);
}

.posts-loadmore__btn {
    padding: 14px 38px;
    border: 1px solid var(--color-brand-primary);
    border-radius: 999px;
    background: transparent;
    color: var(--color-brand-primary);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease;
}

.posts-loadmore__btn:hover:not(:disabled) {
    background: var(--color-brand-primary);
    color: #fff;
}

.posts-loadmore__btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/*logo footer*/
.footer-logo {
    display: inline-block;
    line-height: 0;
}

.footer-logo__img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─── Noticias relacionadas ─────────────────────────────────── */

.related-posts {
    margin-top: clamp(40px, 5vw, 64px);
    padding-top: clamp(28px, 3.5vw, 40px);
    border-top: 2px solid var(--color-brand-primary);
}

.related-posts__title {
    margin: 0 0 clamp(20px, 2.5vw, 28px);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.related-posts__grid {
    display: grid;
    gap: clamp(18px, 2.4vw, 28px);
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .related-posts__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
  .related-posts__grid {
    gap: 26px !important;
  }
}
.related-post {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.related-post__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    background: var(--color-bg-alt);
}

.related-post__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.related-post:hover .related-post__thumb img {
    transform: scale(1.04);
}

.related-post__kicker {
    color: var(--color-brand-primary);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

.related-post__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.related-post__title a {
    color: var(--color-text);
    text-decoration: none;
}

.related-post__title a:hover {
    color: var(--color-brand-primary);
}

.related-post__date {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    .related-post__thumb img {
        transition: none;
    }
}

/*ajuste video css youtube*/
.wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.entry-content iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/*ocultar autor duplicado*/
.single-post-article .wp-block-post-author-name,
.single-post-article .wp-block-post-date {
    display: none !important;
}

/* Varios autores en la firma */

.entry-author-line__avatars {
    display: flex;
    flex-shrink: 0;
}

.entry-author-line.is-multiple .entry-author-line__avatar + .entry-author-line__avatar {
    margin-left: -12px;
}

.entry-author-line.is-multiple .entry-author-line__avatar img {
    border: 2px solid #fff;
}

.entry-author-line__sep {
    color: var(--color-text-muted);
}


/*seguir en google boton*/
/* Fila del autor: empuja el botón a la derecha */
.entry-author-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* El contenido (nombre + fecha) ocupa el espacio y empuja el botón al extremo */
.entry-author-line__content {
    flex: 1 1 auto;
}

/* Botón */
.btn-seguir-google {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;          /* clave: lo manda a la derecha */
    padding: 8px 16px;
    border: 1px solid #dadce0;
    border-radius: 999px;
    background: #fff;
    color: #3c4043;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: box-shadow .2s, background .2s;
}
.btn-seguir-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(60,64,67,.3);
}
.btn-seguir-google .iconGoogle {
    flex-shrink: 0;
}

/* Mobile: el botón cae debajo, a lo ancho */
@media (max-width: 600px) {
    .btn-seguir-google {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}


/*ajustes de elementor temporal*/
.elementor-2940 .elementor-element.elementor-element-f923225, .elementor-3215 .elementor-element.elementor-element-ed6cc03, .elementor-3212 .elementor-element.elementor-element-ecee31f, .elementor-3218 .elementor-element.elementor-element-fe2828c, .elementor-18148 .elementor-element.elementor-element-ef0f9c7 {
margin-top: 0 !important;
}