/*
 * 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.
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

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

:root {
    /* Paleta de color — ajustar por proyecto */
    --color-brand-primary:   #495c3d;   /* Verde principal                 */
    --color-brand-secondary: #5a7049;   /* Verde acción / links            */
    --color-brand-accent:    #6b8556;   /* Verde CTAs                      */
    --color-bg:              #ffffff;
    --color-bg-alt:          #f4f6fa;   /* Secciones de fondo suave        */
    --color-text:            #1a1a2e;   /* Texto principal                 */
    --color-text-muted:      #5a6475;   /* Texto secundario / metas        */
    --color-border:          #e0e5ef;
    --color-white:           #ffffff;
    --color-black:           #000000;

    /* Tipografía */
	--font-sans:    'Open Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-serif:   'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-size-xs:   0.75rem;    /*  12px */
    --font-size-sm:   0.875rem;   /*  14px */
    --font-size-base: 1rem;       /*  16px */
    --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: 130px;
	--icon-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.29.173-1.414-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413z'/%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: var(--font-size-2xl); }
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(255,92,40,.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;
	padding-top: 7px;
    height: var(--header-height);
    background-color: var(--color-brand-primary);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition:
        transform        var(--transition-base),
        background-color var(--transition-base),
        box-shadow       var(--transition-base),
        border-color     var(--transition-base);
}

.site-header.is-scrolled {
    background-color: var(--color-brand-primary);
    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: 60px;
}

.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: 90px;
    width: auto;
}
@media (max-width:460px){
	.site-header__brand img,
	.custom-logo {
		height: 52px;
	}
}

@media (min-width: 461px) and (max-width: 1247px) {
     .site-header__brand img,
	.custom-logo {
		height: 60px;
   }
}
/* Header a ancho completo (contenido pegado a los bordes) */
.site-header__inner.container {
	max-width: none;
}

/* ═══ 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: #23B732;
    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 {
        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: #fff;
    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: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    color: #fff;
    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: 1150px) {
    .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: var(--font-size-sm);
        padding: var(--space-2) 6px;
    }

    /* 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:#272A38;
        border: 1px solid #272A38;
        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);
    }
}

/* ══════════════════════════════════════════════════════════════════
   TERCER NIVEL del menú (sub-submenú lateral, abre a la izquierda)
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {

	.nav__list .sub-menu .menu-item-has-children {
		position: relative;
	}

	/* 3er nivel: a la izquierda del 2º nivel */
	.nav__list .sub-menu .sub-menu {
		top: 0;
		left: auto;
		right: 100%;
		margin-right: 2px;
		transform: translateX(-6px);
	}

	/* Mostrar SOLO el 3er nivel del ítem sobre el que se pasa (hijo directo) */
	.nav__list .sub-menu .menu-item-has-children:hover > .sub-menu,
	.nav__list .sub-menu .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateX(0);
		pointer-events: auto;
	}

	/* Flechita ◂ a la izquierda en ítems de 2º nivel con hijos */
	.nav__list .sub-menu .menu-item-has-children > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
	}
	.nav__list .sub-menu .menu-item-has-children > a::after {
		content: '';
		width: 7px;
		height: 7px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(135deg);
		flex-shrink: 0;
	}
}

.nav__list .sub-menu a {
	color: #ECECEC;
}
.nav__list .sub-menu a:hover {
	color: #393939;
}



.nav__list .sub-menu li:hover {
	background: #CCDAD1;
}

/* ── 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: var(--color-brand-primary);
    color: rgba(255,255,255,.78);
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(36px, 6vw, 72px);
    padding-block: clamp(48px, 7vw, 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: 270px;
    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: var(--font-size-sm);
    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 {
    background: var(--color-brand-secondary);
    color: #071b33;
}

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

.site-footer__btn--secondary {
    color: #fff;
    border: 1px solid #818a91;
}
.site-footer__btn--secondary {
    background: #818a91;
}

.site-footer__btn--secondary:hover {
    background: #818a91;
    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;
}

h3.site-footer__column-title {
    color: #CCDAD1;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Copyright */

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

.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: var(--font-size-sm);
    color: rgba(255,255,255,.48);
}

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

img.logo-footer-sacfly {
    width: 80px;
	justify-self: center;

}

.copy-sacfly {
	padding-top: 30px;
}

.copy-sacfly a {
    color: #CCDAD1 !important;
}

.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: var(--font-size-xs);
    color: rgba(255,255,255,.54);
    text-decoration: none;
}

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

.site-footer__btn--secondary {
    gap: 8px;
}

.site-footer__btn--secondary::before {
    content: '';
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    background-color: currentColor;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.69 2 6 4.69 6 8c0 4.5 6 12 6 12s6-7.5 6-12c0-3.31-2.69-6-6-6zm0 8.5A2.5 2.5 0 1 1 12 5a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center / contain no-repeat;

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.69 2 6 4.69 6 8c0 4.5 6 12 6 12s6-7.5 6-12c0-3.31-2.69-6-6-6zm0 8.5A2.5 2.5 0 1 1 12 5a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ═══════════════════════════════════════════════════════════════════
   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, 84px);
}

.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, 700px) minmax(280px, 400px);
        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);
}

h2.widget-title {
	margin-bottom:15px;
}

@media (min-width: 768px) {
    h2.widget-title  { font-size: var(--font-size-2xl) !important; }
}

@media (min-width: 1024px) {
	h2.widget-title { font-size: var(--font-size-2xl) !important;}
	h1.entry-title{ font-size: var(--font-size-3xl) !important;}
	
}

.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;
}

.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 #ccdad1;
    border-radius: 10px;
    background: var(--color-white);
}

.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: 14px;
    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;
}


/* ═══════════════════════════════════════════════════════════════════
   WHATSAPP STICKY
   ═══════════════════════════════════════════════════════════════════ */

.sac-wsp-sticky {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(18, 140, 126, 0.35);
    transition: transform .25s ease, box-shadow .25s ease;
}

.sac-wsp-sticky:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 38px rgba(18, 140, 126, 0.45);
    color: #fff;
    text-decoration: none;
}

/* Avatar */
.sac-wsp-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
}

.sac-wsp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

/* Puntito online */
.sac-wsp-online {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #25D366;
    border: 2px solid #fff;
    border-radius: 50%;
}

/* Texto */
.sac-wsp-content {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.sac-wsp-title {
    font-weight: 700;
    font-size: 16px;
}

.sac-wsp-sub {
    font-size: 12px;
    opacity: 0.85;
}

/* Icono */
.sac-wsp-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.sac-wsp-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* Fuera de horario: oculta avatar y subtítulo */
.sac-wsp-sticky.sac-wsp-offline .sac-wsp-avatar,
.sac-wsp-sticky.sac-wsp-offline .sac-wsp-sub {
    display: none;
}

/* Widget "Entradas recientes" con miniatura */
.sacfly-recent-posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sacfly-recent-posts__item + .sacfly-recent-posts__item {
	border-top: 1px solid #ccdad1;
	margin-top: 12px;
	padding-top: 12px;
}

.sacfly-recent-posts__link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--color-text);
}

.sacfly-recent-posts__thumb {
	flex: 0 0 100px;
	width: 100px;
	height: 100px;
	border-radius: 8px;
	overflow: hidden;
}

.sacfly-recent-posts__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;   /* misma medida para todas, recorta sin deformar */
	display: block;
}

.sacfly-recent-posts__title {
	flex: 1 1 auto;
	font-weight: 400;
	line-height: 1.3;
	color: var(--color-brand-primary);
}

.sacfly-recent-posts__link:hover .sacfly-recent-posts__title {
	color: var(--color-brand-secondary);
}

/* Mobile */
@media (max-width: 480px) {
    .sac-wsp-sticky {
        right: 14px;
        bottom: 14px;
        padding: 11px 14px;
    }

    .sac-wsp-avatar {
        width: 34px;
        height: 34px;
    }

    .sac-wsp-sub {
        font-size: 10px;
    }
}

/* ── Tipografía: titulares en DM Serif Display ─────────────────────── */
h1, h2, h3, h4, h5, h6,
.entry-title,
.site-footer__column-title,
.footer-widget__title,
.footer-widget h2,
.footer-widget h3 {
	font-family: var(--font-serif);
	font-weight: 400; /* DM Serif Display solo tiene regular; 700 lo falsea feo */
}

/* El menú y el cuerpo se mantienen en Open Sans (heredan --font-sans),
   así que no hace falta declararlos: ya lo son por herencia. */

/* ── Leyendas de imágenes ──────────────────────────────────────────── */

/* Leyenda de imágenes dentro del contenido (bloque imagen y shortcode) */
.entry-content figcaption,
.entry-content .wp-caption-text,
.entry-thumbnail__caption {
	font-style: italic;
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
	text-align: center;
	margin-top: 8px;
	line-height: 1.4;
}

/* La imagen destacada como figura */
.entry-thumbnail {
	margin: 0 0 1.5rem;
}
.entry-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}

/* ── Evitar que URLs/palabras largas rompan el ancho ───────────────── */
.entry-content {
	overflow-wrap: break-word;
	word-wrap: break-word;      /* alias para navegadores viejos */
	word-break: break-word;
}

.entry-content a {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Fecha del post con ícono de calendario */
.entry-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
}

.entry-date__icon {
	flex: 0 0 16px;
	color: var(--color-brand-primary); /* el ícono toma el verde principal */
}


/* ── Flecha ▾ en ítems del menú con submenú ────────────────────────── */
@media (min-width: 768px) {
	.nav__list .menu-item-has-children > a {
		display: inline-flex;
		align-items: center;
		gap: 6px;
	}

	.nav__list .menu-item-has-children > a::after {
		content: '';
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transform-origin: center;
		margin-top: -3px;         /* centra visualmente el chevron */
		transition: transform 0.2s ease;
		flex: 0 0 auto;
	}

	/* Al abrir el submenú, la flecha gira hacia arriba */
	.nav__list .menu-item-has-children:hover > a::after,
	.nav__list .menu-item-has-children:focus-within > a::after {
		transform: rotate(-135deg);
		margin-top: 2px;
	}
}


/* ═══════════════════════════════════════════════════════════════════
   AJUSTE MENÚ MOBILE (fondo blanco, texto oscuro, activo resaltado)
   Solo aplica por debajo de 768px (el menú overlay).
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1149px) {

    /* Panel del menú: fondo blanco sólido */
    .nav {
        background: var(--color-white);
    }

    /* Ítems: texto oscuro normal */
    .nav__list a {
        color: var(--color-text);
        font-weight: var(--font-weight-medium);
    }

    /* Hover / foco */
    .nav__list a:hover,
    .nav__list a:focus {
        background-color: var(--color-bg-alt);
        color: var(--color-brand-primary);
    }

    /* Ítem activo (página actual): fondo claro resaltado */
    .nav__list .current-menu-item > a,
    .nav__list .current_page_item > a {
        background-color: var(--color-bg-alt);
        color: var(--color-brand-primary);
        font-weight: var(--font-weight-semibold);
    }

    /* Submenú: texto un poco más suave */
    .nav__list .sub-menu a {
        color: var(--color-text-muted);
    }
    .nav__list .sub-menu a:hover {
        color: var(--color-brand-primary);
        background-color: var(--color-bg-alt);
    }

    /* Flechita ▾ en ítems con submenú (igual que desktop) */
    .nav__list .menu-item-has-children > a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .nav__list .menu-item-has-children > a::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-top: -3px;
        flex: 0 0 auto;
    }

    /* El CTA (último ítem naranja) mantiene su estilo, no lo pisamos */
    .nav__list .menu-cta > a {
        color: var(--color-white);
    }
	
	/*ajustes top bar  y menu*/
	.site-topbar__inner {
		justify-content: center;
		padding-bottom:10px;
		border-bottom: 1px solid #ccdad1;
	}
.container.site-header__inner {
		padding-top: 15px;
	}	
	
	/*.site-header__brand img, .custom-logo {
    height: 52px;
	}*/
}

/*ajustar nav header con mayuscula*/
header#site-header nav {
    text-transform: uppercase;
}

/*ajustar color tipografia en blog*/
.single-post h1.entry-title, .single-post h2.widget-title, .single-post .single-post-layout, .single-post .sacfly-recent-posts__title{
	color: #474747;
}

.single-post h1.entry-title, .single-post h2.widget-title {
	font-weight: bold;
}


/* Rayita decorativa debajo del título del widget */
h2.widget-title {
	position: relative;
	padding-bottom: 12px;
}

h2.widget-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 3px;
	background-color: #ccdad1;
	border-radius: 999px;
}

/* ── Top Bar ───────────────────────────────────────────────────────── */
.site-topbar {
	background: var(--color-brand-primary);
}

.site-topbar__inner {
	display: flex;
	justify-content: flex-end; /* ítems a la derecha */
	align-items: center;
	min-height: 44px;
}

.site-topbar__menu {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-topbar__menu a {
	display: inline-flex;
	align-items: center;
	color: #fff;
	font-size: var(--font-size-sm);
	text-decoration: none;
}

/* Header a ancho completo (contenido pegado a los bordes) */
.site-topbar__inner.container {
	max-width: none;
}

/* La banderita de idioma dentro de la top bar */
.site-topbar__menu img {
	width: 20px;
	height: auto;
	display: block;
}

/* ── Ítem CTA (botón verde con WhatsApp) en la TOP BAR ────────────── */
.site-topbar__menu .menu-cta > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background-color: #23B732;
    color: var(--color-white) !important;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    padding: var(--space-2) var(--space-5);
}

.site-topbar__menu .menu-cta > a:hover {
    background-color: #1c9628;
    transform: translateY(-1px);
}

.site-topbar__menu .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;
}

/* Mantiene el verde aunque sea la página actual */
.site-topbar__menu .menu-cta.current-menu-item > a,
.site-topbar__menu .menu-cta.current_page_item > a {
    background-color: #23B732;
    color: var(--color-white) !important;
}
.site-topbar__menu .menu-cta.current-menu-item > a:hover,
.site-topbar__menu .menu-cta.current_page_item > a:hover {
    background-color: #1c9628;
}


/* ── Botón principal del footer con estilo del menu-cta (verde + WhatsApp) ── */
.site-footer__btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background-color: #23B732;
    color: var(--color-white) !important;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    padding: var(--space-2) var(--space-5);
}

.site-footer__btn--primary:hover {
    background-color: #1c9628;
    color: var(--color-white) !important;
    transform: translateY(-2px);
}

.site-footer__btn--primary::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;
}

/* ── Últimas publicaciones (shortcode) ─────────────────────────────── */
.ultimas-pub__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-8);
}

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

.ultimas-pub__card {
	display: flex;
	flex-direction: column;
	background: var(--color-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.ultimas-pub__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--color-bg-alt);
}

.ultimas-pub__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--transition-slow);
}

.ultimas-pub__card:hover .ultimas-pub__thumb img {
	transform: scale(1.04);
}

.ultimas-pub__body {
	padding: var(--space-6);
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.ultimas-pub__title {
	font-size: 21px;
	line-height: 1.25;
	margin: 0;
	color: #474747;
}

.ultimas-pub__title a {
	color: inherit;
	text-decoration: none;
}

.ultimas-pub__title a:hover {
	color: var(--color-brand-secondary);
}

.ultimas-pub__excerpt {
	margin: 0;
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	line-height: 1.6;
}

/* ── Staff random (shortcode) ──────────────────────────────────────── */
.staff-random__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-6);
}

@media (min-width: 600px)  { .staff-random__grid { grid-template-columns: repeat(3, 1fr); } }

.staff-random__card {
	display: block;
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	text-decoration: none;
	transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.staff-random__card:hover {
	transform: scale(1.02); /* incremento leve en hover */
	box-shadow: var(--shadow-md);
}

.staff-random__photo {
	display: block;
	aspect-ratio: 1 / 1;   /* más vertical */
	overflow: hidden;
	background: var(--color-bg-alt);
}

.staff-random__photo img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;     /* misma medida para todas, recorta sin deformar */
	display: block;
}

.staff-random__name {
	display: block;
	background: #070B26;
	color: #fff;
	font-size: 20px;
	font-weight: var(--font-weight-semibold);
	padding: 14px 18px;
}

/* Grilla de abogados: 4 columnas */
@media (min-width: 900px) {
	.staff-random__grid--cols4 {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Grilla de administrativos: 3 columnas */
@media (min-width: 600px) {
	.staff-random__grid--cols3 {
		grid-template-columns: repeat(3, 1fr);
	}
}


/* ══════════════════════════════════════════════════════════════════
   TERCER NIVEL del menú (sub-submenú lateral)
   Ej: Áreas de Práctica → Derecho Corporativo → [Cobro de Seguros, ...]
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {

	/* El ítem de 2º nivel que tiene hijos: posición relativa para anclar el 3º */
	.nav__list .sub-menu .menu-item-has-children {
		position: relative;
	}

	/* El sub-submenú (3er nivel): sale al costado derecho, no abajo */
	.nav__list .sub-menu .sub-menu {
		top: 0;
		left: auto;
		right: 100%;          /* pegado al borde IZQUIERDO del 2º nivel */
		margin-right: 2px;
		transform: translateX(-6px);
	}

	/* Al hacer hover en el ítem de 2º nivel, aparece su 3er nivel */
	.nav__list .sub-menu .menu-item-has-children:hover > .sub-menu,
	.nav__list .sub-menu .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateX(0);
		pointer-events: auto;
	}

	/* Flechita ▸ a la derecha en los ítems de 2º nivel que tienen hijos */
	.nav__list .sub-menu .menu-item-has-children > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
	}
	.nav__list .sub-menu .menu-item-has-children > a::after {
		content: '';
		width: 7px;
		height: 7px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(135deg);   /* apunta a la derecha ▸ */
		flex-shrink: 0;
	}	
}

/* Botón de submenú: oculto en desktop */
.submenu-toggle {
	display: none;
}

@media (max-width: 1149px) {
	/* En mobile, los submenús arrancan COLAPSADOS */
	.nav__list .sub-menu {
		display: none;
		position: static;      /* apilado, no flotante */
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: auto;
		box-shadow: none;
		border: none;
		background: transparent;
		padding-left: var(--space-4); /* indentación para ver la jerarquía */
	}

	/* Se muestran solo cuando el ítem tiene la clase submenu-open */
	.nav__list .menu-item-has-children.submenu-open > .sub-menu {
		display: block;
	}

	/* El ítem padre y su botón conviven en una fila */
	.nav__list .menu-item-has-children {
		position: relative;
	}

	/* Botón +/− del acordeón */
		.submenu-toggle {
		display: block;
		position: absolute;
		top: 0;
		right: 0;
		width: 48px;
		height: 48px;
		background: transparent;
		border: none;
		cursor: pointer;
		padding: 0;
}

	/* El signo + hecho con dos líneas */
	.submenu-toggle::before,
	.submenu-toggle::after {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		width: 14px;
		height: 2px;
		background: currentColor;
		transform: translate(-50%, -50%);
		transition: transform var(--transition-fast);
	}
	.submenu-toggle::after {
		transform: translate(-50%, -50%) rotate(90deg); /* la barra vertical */
	}

	/* Cuando está abierto, la barra vertical desaparece → queda un − */
	.menu-item-has-children.submenu-open > .submenu-toggle::after {
		transform: translate(-50%, -50%) rotate(0deg);
		opacity: 0;
	}

	/* Que la flechita ▾ de desktop no aparezca en mobile (usamos el +) */
	.nav__list .menu-item-has-children > a::after {
		display: none;
	}
}

/*ajustes elementor*/
/* Recuperar bullets dentro del contenido de Elementor */
.elementor-widget-text-editor ul {
    list-style-type: disc !important;
    padding-left: 25px !important;
    margin-left: 0 !important;
}

.elementor-widget-text-editor ul > li {
    display: list-item !important;
    list-style-type: disc !important;
}

/* Recuperar numeración de listas ordenadas */
.elementor-widget-text-editor ol {
    list-style-type: decimal !important;
    padding-left: 25px !important;
    margin-left: 0 !important;
}

.elementor-widget-text-editor ol > li {
    display: list-item !important;
    list-style-type: decimal !important;
}