:root {
    --geolodia-verde: #0b8135;
    --geolodia-verde-hover: #086d2c;
    --geolodia-naranja: #eb6715;
    --geolodia-naranja-hover: #cf560d;
    --geolodia-blanco: #fff;
    --geolodia-texto: #343a40;
    --geolodia-gris-claro: #f4f6f4;
    --geolodia-verde-suave: #edf7f0;
    --geolodia-borde: #d9dfda;
    --geolodia-radio-boton: 999px;
    --geolodia-radio-caja: 16px;
    --geolodia-sombra-boton: 0 8px 20px rgba(11,129,53,.16);
    --geolodia-sombra-caja: 0 10px 30px rgba(26,44,32,.08);
}

/* 1.7.1 — cabecera móvil: la capa multimedia cubre siempre toda la altura.
 * La altura definitiva se inyecta desde la configuración común del plugin
 * principal; estas reglas neutralizan dimensiones intrínsecas del bloque Cover. */
.geolodia-page-header {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
    background: #26312a;
}
.geolodia-page-header > .wp-block-cover__image-background,
.geolodia-page-header > video.wp-block-cover__video-background {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: cover !important;
}
.geolodia-page-header > .wp-block-cover__background {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}
.geolodia-page-header > .wp-block-cover__inner-container {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
}

.wp-block-button .wp-block-button__link,
.wp-block-button .wp-element-button {
    box-sizing: border-box;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45em;
    padding: .72em 1.45em;
    border: 2px solid transparent;
    border-radius: var(--geolodia-radio-boton);
    font: inherit;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .01em;
    text-decoration: none !important;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 160ms ease,border-color 160ms ease,color 160ms ease,transform 160ms ease,box-shadow 160ms ease;
}
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible,
.wp-block-button .wp-element-button:hover,
.wp-block-button .wp-element-button:focus-visible { text-decoration:none!important; transform:translateY(-1px); }
.wp-block-button .wp-block-button__link:focus-visible,
.wp-block-button .wp-element-button:focus-visible { outline:3px solid rgba(235,103,21,.35); outline-offset:3px; }
.wp-block-button:not(.is-style-outline):not(.is-style-geolodia-contorno):not(.is-style-geolodia-naranja):not(.is-style-geolodia-claro) .wp-block-button__link,
.wp-block-button.is-style-geolodia-principal .wp-block-button__link { background:var(--geolodia-verde); border-color:var(--geolodia-verde); color:#fff; }
.wp-block-button:not(.is-style-outline):not(.is-style-geolodia-contorno):not(.is-style-geolodia-naranja):not(.is-style-geolodia-claro) .wp-block-button__link:hover,
.wp-block-button.is-style-geolodia-principal .wp-block-button__link:hover { background:var(--geolodia-verde-hover); border-color:var(--geolodia-verde-hover); color:#fff; box-shadow:var(--geolodia-sombra-boton); }
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-geolodia-contorno .wp-block-button__link { background:transparent; border-color:var(--geolodia-verde); color:var(--geolodia-verde); }
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-geolodia-contorno .wp-block-button__link:hover { background:var(--geolodia-verde); color:#fff; }
.wp-block-button.is-style-geolodia-naranja .wp-block-button__link { background:var(--geolodia-naranja); border-color:var(--geolodia-naranja); color:#fff; }
.wp-block-button.is-style-geolodia-naranja .wp-block-button__link:hover { background:var(--geolodia-naranja-hover); border-color:var(--geolodia-naranja-hover); color:#fff; }
.wp-block-button.is-style-geolodia-claro .wp-block-button__link { background:rgba(0,0,0,.08); border-color:#fff; color:#fff; backdrop-filter:blur(2px); }
.wp-block-button.is-style-geolodia-claro .wp-block-button__link:hover { background:#fff; border-color:#fff; color:var(--geolodia-verde); }
.wp-block-buttons { gap:12px; }

.geolodia-page-header { margin-top:0!important; }
.geolodia-page-header .wp-block-cover__inner-container { width:100%; padding:clamp(34px,6vw,72px) 24px; }
/* Fuerza el mismo orden aunque la cabecera se insertase con una versión anterior del patrón. */
.geolodia-page-header .wp-block-cover__inner-container > .wp-block-group {
    display:flex;
    flex-direction:column;
    align-items:center;
}
.geolodia-page-header .wp-block-geolodia-titulo-pagina {
    order:1;
    margin:0 0 14px;
    color:#fff;
    font-size:clamp(2rem,5vw,4rem);
    font-weight:500;
    line-height:1.05;
    text-align:center;
    text-shadow:none;
}
.geolodia-page-header .wp-block-geolodia-rastro {
    order:2;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin:0;
    color:inherit;
    font-size:.94rem;
    line-height:1.5;
}
.geolodia-page-header .wp-block-geolodia-rastro ol {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:0;
    margin:0;
    padding:0;
    list-style:none;
}
.geolodia-page-header .wp-block-geolodia-rastro li { display:inline-flex; align-items:center; }
.geolodia-page-header .wp-block-geolodia-rastro li:not(:last-child)::after { content:"›"; margin:0 .65em; opacity:1; }
.geolodia-page-header .wp-block-geolodia-rastro a,
.geolodia-page-header .wp-block-geolodia-rastro a:hover,
.geolodia-page-header .wp-block-geolodia-rastro a:focus-visible,
.geolodia-page-header .wp-block-geolodia-rastro span,
.geolodia-page-header .wp-block-geolodia-rastro strong {
    color:inherit!important;
    text-decoration:none;
}
.geolodia-page-header .wp-block-geolodia-rastro a:hover,
.geolodia-page-header .wp-block-geolodia-rastro a:focus-visible { text-decoration:underline; }
.geolodia-page-header .wp-block-geolodia-rastro strong { font-weight:750; }
.geolodia-rastro-editor { pointer-events:none; }

.geolodia-pattern-section { padding-top:clamp(42px,6vw,78px); padding-bottom:clamp(42px,6vw,78px); }
.wp-block-group.is-style-geolodia-tarjeta { height:100%; padding:clamp(22px,3vw,32px); border:1px solid var(--geolodia-borde); border-top:4px solid var(--geolodia-verde); border-radius:var(--geolodia-radio-caja); background:#fff; box-shadow:var(--geolodia-sombra-caja); }
.wp-block-group.is-style-geolodia-destacado { padding:clamp(22px,3vw,36px); border:1px solid var(--geolodia-borde); border-radius:var(--geolodia-radio-caja); background:var(--geolodia-gris-claro); }
.wp-block-group.is-style-geolodia-aviso { padding:clamp(20px,3vw,30px); border-left:5px solid var(--geolodia-naranja); border-radius:0 12px 12px 0; background:#fff5ee; }
.wp-block-group.is-style-geolodia-fondo-verde { padding-top:clamp(42px,6vw,72px); padding-bottom:clamp(42px,6vw,72px); background:var(--geolodia-verde); color:#fff; }
.wp-block-group.is-style-geolodia-fondo-gris { padding:clamp(32px,5vw,56px); background:var(--geolodia-gris-claro); }
.wp-block-group.is-style-geolodia-fondo-verde :is(h1,h2,h3,h4,p,a:not(.wp-block-button__link)) { color:inherit; }
.wp-block-heading.is-style-geolodia-titulo-seccion { position:relative; margin-bottom:.8em; padding-bottom:.45em; }
.wp-block-heading.is-style-geolodia-titulo-seccion::after { content:""; display:block; width:64px; height:4px; margin-top:.42em; border-radius:999px; background:var(--geolodia-naranja); }
.wp-block-heading.has-text-align-center.is-style-geolodia-titulo-seccion::after { margin-left:auto; margin-right:auto; }
.wp-block-separator.is-style-geolodia-separador { width:min(110px,30%); height:4px; border:0; border-radius:999px; background:var(--geolodia-verde); opacity:1; }
.wp-block-quote.is-style-geolodia-cita { margin:0; padding:clamp(26px,4vw,42px); border:0; border-left:6px solid var(--geolodia-naranja); border-radius:0 var(--geolodia-radio-caja) var(--geolodia-radio-caja) 0; background:var(--geolodia-verde-suave); font-size:clamp(1.2rem,2.4vw,1.7rem); }
.wp-block-quote.is-style-geolodia-cita cite { display:block; margin-top:1rem; font-size:.7em; font-style:normal; font-weight:700; color:var(--geolodia-verde); }
.geolodia-media-placeholder { display:flex; min-height:300px; align-items:center; justify-content:center; border:2px dashed #aeb9b0!important; color:#5d665f; }
.geolodia-video-placeholder { min-height:340px; }
.geolodia-faq .wp-block-details { margin-bottom:12px; padding:18px 20px; border:1px solid var(--geolodia-borde); border-radius:12px; background:#fff; }
.geolodia-faq .wp-block-details summary { color:var(--geolodia-texto); font-weight:700; cursor:pointer; }
.geolodia-faq .wp-block-details[open] { border-color:rgba(11,129,53,.35); box-shadow:0 7px 20px rgba(26,44,32,.06); }
.geolodia-logos .wp-block-gallery { align-items:center; }

@media (max-width:780px) {
    /* Misma altura móvil que las cabeceras automáticas. */
    .geolodia-page-header {
        height: min(260px, var(--geolodia-page-hero-height, 320px)) !important;
        min-height: min(260px, var(--geolodia-page-hero-height, 320px)) !important;
    }
    .geolodia-page-header .wp-block-cover__inner-container { padding:38px 20px; }
    .geolodia-pattern-cta .wp-block-buttons { justify-content:flex-start!important; }
    .geolodia-media-placeholder,.geolodia-video-placeholder { min-height:220px; }
}
@media (max-width:600px) {
    .wp-block-button .wp-block-button__link,.wp-block-button .wp-element-button { min-height:44px; padding:.7em 1.25em; }
}

/* Plantilla de página independiente del tema ----------------------------- */
body.geolodia-page-template .geolodia-page-main,
body.geolodia-page-template .geolodia-page-entry,
body.geolodia-page-template .geolodia-page-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
body.geolodia-page-template .geolodia-page-main {
    display: block;
    overflow-x: clip;
}
body.geolodia-page-template .geolodia-page-entry::before,
body.geolodia-page-template .geolodia-page-entry::after,
body.geolodia-page-template .geolodia-page-content::before,
body.geolodia-page-template .geolodia-page-content::after {
    content: none;
}
body.geolodia-page-template .geolodia-page-content > :first-child {
    margin-top: 0;
}
body.geolodia-page-template .geolodia-page-content > :last-child {
    margin-bottom: 0;
}
body.geolodia-page-template .geolodia-page-content > .alignfull {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Base visual neutral para páginas Geolodía -------------------------------
 * Estas reglas solo actúan cuando se usa la plantilla del plugin. De este
 * modo, el contenido no depende de los anchos, márgenes o estilos editoriales
 * del tema activo, mientras que la cabecera y el pie siguen perteneciendo al
 * tema.
 */
body.geolodia-page-template {
    --geolodia-content-width: 1180px;
    --geolodia-text-width: 780px;
    --geolodia-page-gutter: clamp(18px, 3vw, 32px);
    color: var(--geolodia-texto);
}

body.geolodia-page-template .geolodia-page-content {
    font-size: 1rem;
    line-height: 1.7;
}

body.geolodia-page-template .geolodia-page-content > :not(.alignfull):not(.alignwide) {
    width: min(calc(100% - (var(--geolodia-page-gutter) * 2)), var(--geolodia-text-width));
    margin-left: auto;
    margin-right: auto;
}

body.geolodia-page-template .geolodia-page-content > .alignwide {
    width: min(calc(100% - (var(--geolodia-page-gutter) * 2)), var(--geolodia-content-width));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

body.geolodia-page-template .geolodia-page-content :where(h1,h2,h3,h4,h5,h6) {
    color: var(--geolodia-texto);
    font-weight: 750;
    line-height: 1.18;
    text-wrap: balance;
}

body.geolodia-page-template .geolodia-page-content :where(p,li) {
    color: inherit;
}

body.geolodia-page-template .geolodia-page-content a:not(.wp-block-button__link) {
    color: var(--geolodia-verde);
    text-underline-offset: .16em;
    text-decoration-thickness: .08em;
}

body.geolodia-page-template .geolodia-page-content a:not(.wp-block-button__link):hover {
    color: var(--geolodia-verde-hover);
}

body.geolodia-page-template .geolodia-page-content :where(img,video,iframe) {
    max-width: 100%;
}

body.geolodia-page-template .geolodia-page-content img {
    height: auto;
}

body.geolodia-page-template .geolodia-page-content :where(.wp-block-image img,.wp-block-gallery img) {
    border-radius: 12px;
}

body.geolodia-page-template .geolodia-page-content .wp-block-embed__wrapper,
body.geolodia-page-template .geolodia-page-content .wp-block-video {
    overflow: hidden;
    border-radius: 12px;
}

body.geolodia-page-template .geolodia-page-content table {
    width: 100%;
    border-collapse: collapse;
}

body.geolodia-page-template .geolodia-page-content :where(th,td) {
    padding: .8rem 1rem;
    border: 1px solid var(--geolodia-borde);
    text-align: left;
}

body.geolodia-page-template .geolodia-page-content th {
    background: var(--geolodia-verde-suave);
    font-weight: 700;
}

body.geolodia-page-template .geolodia-page-content :where(input,select,textarea) {
    max-width: 100%;
    border: 1px solid var(--geolodia-borde);
    border-radius: 8px;
}

/* Neutraliza contenedores editoriales comunes de los temas sin tocar header
 * ni footer. Son selectores deliberadamente acotados a nuestra plantilla. */
body.geolodia-page-template :where(#primary,.site-main,.content-area,.site-content,.ct-container,.ct-container-full) {
    max-width: none;
}

body.geolodia-page-template .geolodia-page-main :where(.entry-header,.page-header,.hero-section) {
    display: none;
}

body.geolodia-page-template .geolodia-page-main :where(.entry-content,.post-content) {
    margin: 0;
}

/* El primer patrón de cabecera debe quedar pegado a la cabecera del tema. */
body.geolodia-page-template .geolodia-page-content > .geolodia-page-header:first-child {
    margin-top: 0 !important;
}

/* En el editor, aproxima el ancho y el aspecto del frontal. */
.editor-styles-wrapper .geolodia-pattern-section.alignwide,
.editor-styles-wrapper .geolodia-page-header .wp-block-cover__inner-container > .wp-block-group {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 781px) {
    body.geolodia-page-template {
        --geolodia-page-gutter: 18px;
    }

    body.geolodia-page-template .geolodia-page-content {
        font-size: .98rem;
    }
}

/* 1.7.0 — sistema editorial consolidado -------------------------------
 * Escala basada en las páginas automáticas de Geolodía. Estas reglas están
 * deliberadamente acotadas a la plantilla Geolodía y al lienzo del editor.
 * Se evita heredar tamaños editoriales del tema activo.
 */
body.geolodia-page-template .geolodia-page-content,
.editor-styles-wrapper {
    --geolodia-editorial-content: 1120px;
    --geolodia-editorial-text: 760px;
    --geolodia-editorial-gap: clamp(40px, 4vw, 56px);
    --geolodia-editorial-section-y: clamp(44px, 5vw, 64px);
    --geolodia-editorial-h2: clamp(1.75rem, 2.15vw, 2rem);
    --geolodia-editorial-h3: clamp(1.3rem, 1.7vw, 1.5rem);
    --geolodia-editorial-body: 1rem;
    --geolodia-editorial-line: 1.65;
}

body.geolodia-page-template .geolodia-page-content {
    font-size: var(--geolodia-editorial-body);
    line-height: var(--geolodia-editorial-line);
}

/* Ritmo vertical: los patrones controlan el espacio exterior y los bloques
 * internos conservan una separación moderada y predecible. */
body.geolodia-page-template .geolodia-page-content .geolodia-pattern-section,
.editor-styles-wrapper .geolodia-pattern-section {
    box-sizing: border-box;
    padding-top: var(--geolodia-editorial-section-y) !important;
    padding-bottom: var(--geolodia-editorial-section-y) !important;
}
body.geolodia-page-template .geolodia-page-content .geolodia-pattern-section + .geolodia-pattern-section {
    margin-top: 0;
}

body.geolodia-page-template .geolodia-page-content .geolodia-pattern-section .wp-block-columns,
.editor-styles-wrapper .geolodia-pattern-section .wp-block-columns {
    gap: 32px var(--geolodia-editorial-gap) !important;
    margin-top: 0;
    margin-bottom: 0;
}

body.geolodia-page-template .geolodia-page-content .wp-block-column,
.editor-styles-wrapper .geolodia-pattern-section .wp-block-column {
    min-width: 0;
}

/* Tipografía editorial. !important se usa solo en tamaño y márgenes para
 * neutralizar las variables de encabezados del tema, manteniendo familia y
 * color heredables. */
body.geolodia-page-template .geolodia-page-content h2:not(.wp-block-geolodia-titulo-pagina),
.editor-styles-wrapper .geolodia-pattern-section h2 {
    margin: 0 0 20px !important;
    color: var(--geolodia-texto) !important;
    font-size: var(--geolodia-editorial-h2) !important;
    font-weight: 650 !important;
    line-height: 1.22 !important;
    letter-spacing: -.012em;
}

body.geolodia-page-template .geolodia-page-content h3,
.editor-styles-wrapper .geolodia-pattern-section h3 {
    margin: 0 0 16px !important;
    color: var(--geolodia-texto) !important;
    font-size: var(--geolodia-editorial-h3) !important;
    font-weight: 650 !important;
    line-height: 1.28 !important;
}

body.geolodia-page-template .geolodia-page-content h4,
.editor-styles-wrapper .geolodia-pattern-section h4 {
    margin: 0 0 14px !important;
    font-size: 1.2rem !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
}

body.geolodia-page-template .geolodia-page-content :where(p, li),
.editor-styles-wrapper .geolodia-pattern-section :where(p, li) {
    font-size: var(--geolodia-editorial-body) !important;
    line-height: var(--geolodia-editorial-line) !important;
}

body.geolodia-page-template .geolodia-page-content p,
.editor-styles-wrapper .geolodia-pattern-section p {
    margin-top: 0;
    margin-bottom: 16px;
}
body.geolodia-page-template .geolodia-page-content p:last-child,
.editor-styles-wrapper .geolodia-pattern-section p:last-child {
    margin-bottom: 0;
}
body.geolodia-page-template .geolodia-page-content :where(ul, ol),
.editor-styles-wrapper .geolodia-pattern-section :where(ul, ol) {
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 1.35em;
}
body.geolodia-page-template .geolodia-page-content :where(ul, ol):not(.geolodia-breadcrumbs ol) li + li,
.editor-styles-wrapper .geolodia-pattern-section :where(ul, ol):not(.geolodia-breadcrumbs ol) li + li {
    margin-top: 7px;
}

/* Títulos con estilo Geolodía. */
.wp-block-heading.is-style-geolodia-titulo-seccion,
.wp-block-heading.is-style-geolodia-titulo-centrado {
    position: relative;
    margin: 0 0 22px !important;
    padding-bottom: 12px;
    color: var(--geolodia-texto) !important;
    font-size: var(--geolodia-editorial-h2, clamp(1.75rem, 2.15vw, 2rem)) !important;
    font-weight: 650 !important;
    line-height: 1.22 !important;
    letter-spacing: -.012em;
}
.wp-block-heading.is-style-geolodia-titulo-seccion::after,
.wp-block-heading.is-style-geolodia-titulo-centrado::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: var(--geolodia-naranja);
}
.wp-block-heading.is-style-geolodia-titulo-centrado { text-align: center; }
.wp-block-heading.is-style-geolodia-titulo-centrado::after,
.wp-block-heading.has-text-align-center.is-style-geolodia-titulo-seccion::after {
    margin-left: auto;
    margin-right: auto;
}

p.is-style-geolodia-antetitulo,
p.is-style-geolodia-antetitulo-centrado {
    margin: 0 0 8px !important;
    color: var(--geolodia-verde) !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    letter-spacing: .1em;
    line-height: 1.25 !important;
    text-transform: uppercase;
}

/* Multimedia y columnas. */
body.geolodia-page-template .geolodia-page-content :where(.wp-block-embed__wrapper, .wp-block-video),
.editor-styles-wrapper .geolodia-pattern-section :where(.wp-block-embed__wrapper, .wp-block-video) {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(24,48,32,.07);
}
body.geolodia-page-template .geolodia-page-content .wp-block-embed,
.editor-styles-wrapper .geolodia-pattern-section .wp-block-embed {
    margin: 0;
}
body.geolodia-page-template .geolodia-page-content .wp-block-image,
.editor-styles-wrapper .geolodia-pattern-section .wp-block-image {
    margin-top: 0;
    margin-bottom: 0;
}

/* Componentes alineados con las páginas automáticas. */
.wp-block-group.is-style-geolodia-tarjeta {
    border-top-width: 3px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(24,48,32,.07);
}
.wp-block-group.is-style-geolodia-destacado {
    border-radius: 10px;
    background: var(--geolodia-verde-suave);
}
.wp-block-group.is-style-geolodia-aviso {
    border-radius: 0 10px 10px 0;
}
.wp-block-group.is-style-geolodia-tarjeta,
.wp-block-group.is-style-geolodia-destacado,
.wp-block-group.is-style-geolodia-aviso {
    font-size: var(--geolodia-editorial-body);
}
.wp-block-separator.is-style-geolodia-separador {
    width: 72px;
    height: 3px;
    margin: 24px 0;
    background: var(--geolodia-verde);
}

/* Botones: dimensiones equivalentes a las acciones de páginas automáticas. */
body.geolodia-page-template .wp-block-button .wp-block-button__link,
body.geolodia-page-template .wp-block-button .wp-element-button,
.editor-styles-wrapper .wp-block-button .wp-block-button__link,
.editor-styles-wrapper .wp-block-button .wp-element-button {
    min-height: 42px;
    padding: .64em 1.35em;
    border-radius: 6px;
    font-size: .94rem;
    font-weight: 700;
}
body.geolodia-page-template .wp-block-buttons,
.editor-styles-wrapper .wp-block-buttons {
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 781px) {
    body.geolodia-page-template .geolodia-page-content,
    .editor-styles-wrapper {
        --geolodia-editorial-section-y: 40px;
        --geolodia-editorial-h2: 1.65rem;
        --geolodia-editorial-h3: 1.3rem;
    }
    body.geolodia-page-template .geolodia-page-content .geolodia-pattern-section .wp-block-columns,
    .editor-styles-wrapper .geolodia-pattern-section .wp-block-columns {
        gap: 28px !important;
    }
}

@media (max-width: 480px) {
    body.geolodia-page-template .geolodia-page-content,
    .editor-styles-wrapper {
        --geolodia-editorial-section-y: 34px;
        --geolodia-editorial-h2: 1.55rem;
    }
}

/* 1.7.4 — contenedor interior de la cabecera Gutenberg.
 * Replica la geometría de .geolodia-page-hero__inner de las páginas automáticas.
 * Importante: mantiene flex en el grupo para corregir también cabeceras antiguas
 * cuyo DOM contiene primero el rastro y después el título. */
body.geolodia-page-template .geolodia-page-content > .geolodia-page-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}
body.geolodia-page-template .geolodia-page-header > .wp-block-cover__inner-container {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--geolodia-page-text, #fff) !important;
}
body.geolodia-page-template .geolodia-page-header > .wp-block-cover__inner-container > .wp-block-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(1120px, calc(100% - 32px)) !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
}
body.geolodia-page-template .geolodia-page-header .wp-block-geolodia-titulo-pagina {
    order: 1 !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: clamp(2rem, 5vw, 4rem) !important;
    font-weight: 500 !important;
    line-height: 1.08 !important;
    letter-spacing: normal !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}
body.geolodia-page-template .geolodia-page-header .wp-block-geolodia-rastro {
    order: 2 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: .84rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-align: center !important;
}
body.geolodia-page-template .geolodia-page-header .wp-block-geolodia-rastro ol {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.geolodia-page-template .geolodia-page-header .wp-block-geolodia-rastro strong {
    font-weight: 750 !important;
}
@media (max-width: 780px) {
    body.geolodia-page-template .geolodia-page-header > .wp-block-cover__inner-container > .wp-block-group {
        width: min(1120px, calc(100% - 24px)) !important;
    }
    body.geolodia-page-template .geolodia-page-header .wp-block-geolodia-rastro {
        gap: 6px !important;
        font-size: .78rem !important;
    }
}

/* 1.8.0 — cabecera dinámica común.
 * Reutiliza el mismo HTML y las mismas clases que las páginas automáticas. */
.wp-block-geolodia-cabecera-pagina {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}
.wp-block-geolodia-cabecera-pagina .geolodia-page-hero {
    height: var(--geolodia-page-hero-height, 320px);
    background-image:
        linear-gradient(
            rgba(0, 0, 0, var(--geolodia-page-overlay, .55)),
            rgba(0, 0, 0, var(--geolodia-page-overlay, .55))
        ),
        var(--geolodia-page-image, linear-gradient(135deg, #244b34, #0b8135));
    background-size: cover;
    background-position: var(--geolodia-page-position, center);
    color: var(--geolodia-page-text, #fff);
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
}
.wp-block-geolodia-cabecera-pagina .geolodia-container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}
.wp-block-geolodia-cabecera-pagina .geolodia-page-hero__inner h1 {
    margin: 0 0 14px !important;
    color: inherit !important;
    font-size: clamp(2rem, 5vw, 4rem) !important;
    line-height: 1.08 !important;
    font-weight: 500 !important;
    text-align: center !important;
}
.wp-block-geolodia-cabecera-pagina .geolodia-breadcrumbs {
    display: flex;
    justify-content: center;
    color: inherit;
    font-size: .88rem;
    line-height: 1.4;
}
.wp-block-geolodia-cabecera-pagina .geolodia-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wp-block-geolodia-cabecera-pagina .geolodia-breadcrumbs li,
body.geolodia-page-template .geolodia-page-content .geolodia-breadcrumbs li,
body.geolodia-page-template .geolodia-page-content .geolodia-breadcrumbs li + li {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}
.wp-block-geolodia-cabecera-pagina .geolodia-breadcrumbs li:not(:last-child)::after {
    content: "›";
    display: inline-block;
    margin-left: .38em !important;
    margin-right: .38em !important;
    line-height: 1;
}
.wp-block-geolodia-cabecera-pagina .geolodia-breadcrumbs a,
.wp-block-geolodia-cabecera-pagina .geolodia-breadcrumbs strong,
.wp-block-geolodia-cabecera-pagina .geolodia-breadcrumbs span {
    color: inherit !important;
    text-decoration: none;
}
.wp-block-geolodia-cabecera-pagina .geolodia-breadcrumbs strong {
    font-weight: 750;
}
.wp-block-geolodia-cabecera-pagina .geolodia-breadcrumbs a:hover,
.wp-block-geolodia-cabecera-pagina .geolodia-breadcrumbs a:focus-visible {
    color: inherit !important;
    text-decoration: underline !important;
    text-decoration-thickness: auto !important;
    text-underline-offset: auto !important;
}
.editor-styles-wrapper .wp-block-geolodia-cabecera-pagina {
    width: 100%;
}
@media (max-width: 780px) {
    .wp-block-geolodia-cabecera-pagina .geolodia-page-hero {
        height: min(260px, var(--geolodia-page-hero-height, 320px));
    }
    .wp-block-geolodia-cabecera-pagina .geolodia-container {
        width: min(calc(100% - 24px), 1120px);
    }
    .wp-block-geolodia-cabecera-pagina .geolodia-breadcrumbs {
        font-size: .78rem;
    }
}


/* Cabecera dinámica: salida estructural a ancho completo ------------------ */
body.geolodia-page-template .geolodia-page-content > .wp-block-geolodia-cabecera-pagina.alignfull,
body.geolodia-page-template .wp-block-geolodia-cabecera-pagina.alignfull {
    width: 100%;
    max-width: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.geolodia-page-template .wp-block-geolodia-cabecera-pagina.alignfull > .geolodia-page-hero {
    width: 100%;
    max-width: none;
}
.editor-styles-wrapper .wp-block-geolodia-cabecera-pagina.alignfull {
    width: 100%;
    max-width: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 1.8.7 — Fluent Forms integrado con la identidad visual de Geolodía. */
.fluentform .ff-el-group {
    margin-bottom: 20px;
}
.fluentform .ff-el-input--label {
    margin-bottom: 7px;
}
.fluentform .ff-el-input--label label {
    color: #263746;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
}
.fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label:after,
.fluentform .ff-el-input--label.ff-el-is-required.asterisk-left label:before {
    color: #d85b4a;
}
.fluentform .ff-el-form-control {
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #d7dce0;
    border-radius: 5px;
    background: #fff;
    color: #263746;
    font-size: 15px;
    line-height: 1.45;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.fluentform textarea.ff-el-form-control {
    min-height: 150px;
    resize: vertical;
}
.fluentform .ff-el-form-control::placeholder {
    color: #87939d;
    opacity: 1;
}
.fluentform .ff-el-form-control:focus {
    border-color: #0b8135;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(11,129,53,.10);
}
.fluentform .ff-el-form-check {
    margin-top: 2px;
}
.fluentform .ff-el-form-check-input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: #0b8135;
}
.fluentform .ff-el-form-check-label {
    color: #44515c;
    font-size: 14px;
    line-height: 1.55;
}
.fluentform .ff-el-form-check-label a {
    color: #0b8135;
    text-decoration: none;
}
.fluentform .ff-el-form-check-label a:hover,
.fluentform .ff-el-form-check-label a:focus-visible {
    color: #0b8135;
    text-decoration: underline;
}
.fluentform .ff-btn-submit,
.fluentform button.ff-btn-submit {
    min-height: 44px;
    padding: 10px 24px;
    border: 1px solid #0b8135;
    border-radius: 5px;
    background: #0b8135;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    box-shadow: none;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:focus-visible,
.fluentform button.ff-btn-submit:hover,
.fluentform button.ff-btn-submit:focus-visible {
    border-color: #086d2d;
    background: #086d2d;
    color: #fff;
}
.fluentform .ff-el-is-error .ff-el-form-control {
    border-color: #c93c35;
}
.fluentform .error.text-danger,
.fluentform .ff-el-is-error .text-danger {
    margin-top: 5px;
    color: #b8322c;
    font-size: 13px;
}
@media (max-width: 780px) {
    .fluentform .ff-t-cell {
        display: block;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .fluentform .ff-el-group {
        margin-bottom: 17px;
    }
    .fluentform .ff-btn-submit,
    .fluentform button.ff-btn-submit {
        width: 100%;
    }
}


/* 1.8.8 — Ajuste visual completo de la página de contacto. */
body .entry-content:has(.fluentform) > .wp-block-columns:not(:has(.fluentform)):has(> .wp-block-column > p) {
    max-width: 1120px;
    margin-left: auto !important;
    margin-right: auto !important;
}
body .entry-content:has(.fluentform) > .wp-block-columns:not(:has(.fluentform)):has(> .wp-block-column > p) > .wp-block-column > p {
    margin: 0 !important;
    padding: 19px 24px 19px 25px;
    border-left: 4px solid #0b8135;
    border-radius: 0 6px 6px 0;
    background: #f3f8f5;
    color: #33434f;
    font-size: 17px;
    line-height: 1.65;
}
body .entry-content:has(.fluentform) > p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) {
    align-items: flex-start;
    column-gap: clamp(36px, 5vw, 72px);
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child {
    padding: 28px 28px 30px;
    border-top: 3px solid #0b8135;
    border-radius: 5px;
    background: #f7f9f8;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child > p:first-child {
    margin: 0 0 24px !important;
    padding: 0 0 12px;
    border-bottom: 1px solid #d9e1dc;
    color: #263746;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: none;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child p {
    color: #44515c;
    line-height: 1.6;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child strong {
    color: #263746;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) .wp-block-social-links {
    gap: 12px;
    margin-top: 22px;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) .wp-block-social-links .wp-social-link {
    width: 40px;
    height: 40px;
    border: 1px solid #0b8135;
    border-radius: 50%;
    background: #fff !important;
    color: #0b8135 !important;
    transition: background-color .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) .wp-block-social-links .wp-social-link a {
    padding: 9px;
    color: inherit !important;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) .wp-block-social-links .wp-social-link svg {
    fill: currentColor !important;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) .wp-block-social-links .wp-social-link:hover,
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) .wp-block-social-links .wp-social-link:focus-within {
    border-color: #0b8135;
    background: #0b8135 !important;
    color: #fff !important;
    transform: translateY(-2px);
}
body .fluentform .ff-btn-submit,
body .fluentform button.ff-btn-submit,
body .fluentform .ff-btn.ff-btn-submit {
    min-width: 136px;
    min-height: 46px;
    padding: 11px 28px !important;
    border: 1px solid #0b8135 !important;
    border-radius: 5px !important;
    background: #0b8135 !important;
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    opacity: 1 !important;
}
body .fluentform .ff-btn-submit:hover,
body .fluentform .ff-btn-submit:focus-visible,
body .fluentform button.ff-btn-submit:hover,
body .fluentform button.ff-btn-submit:focus-visible,
body .fluentform .ff-btn.ff-btn-submit:hover,
body .fluentform .ff-btn.ff-btn-submit:focus-visible {
    border-color: #086d2d !important;
    background: #086d2d !important;
    color: #fff !important;
    transform: translateY(-1px);
}
@media (max-width: 780px) {
    body .entry-content:has(.fluentform) > .wp-block-columns:not(:has(.fluentform)):has(> .wp-block-column > p) > .wp-block-column > p {
        padding: 16px 17px;
        font-size: 16px;
    }
    body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child {
        padding: 22px 20px 24px;
    }
    body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child > p:first-child {
        margin-bottom: 20px !important;
        font-size: 17px;
    }
    body .fluentform .ff-btn-submit,
    body .fluentform button.ff-btn-submit,
    body .fluentform .ff-btn.ff-btn-submit {
        width: 100%;
    }
}


/* 1.8.10 — Página de contacto: acabado definitivo aprobado. */
body .entry-content:has(.fluentform) > .wp-block-columns:not(:has(.fluentform)):has(> .wp-block-column > p) {
    margin-bottom: 48px !important;
}
body .entry-content:has(.fluentform) > .wp-block-columns:not(:has(.fluentform)):has(> .wp-block-column > p) > .wp-block-column > p {
    position: relative;
    min-height: 96px;
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 22px 30px 22px 98px;
    border: 1px solid #dce8e0;
    border-left: 5px solid #0b8135;
    border-radius: 6px;
    background: #f5faf7;
    color: #263746;
    font-size: 17px;
    line-height: 1.55;
}
body .entry-content:has(.fluentform) > .wp-block-columns:not(:has(.fluentform)):has(> .wp-block-column > p) > .wp-block-column > p::before {
    content: "";
    position: absolute;
    left: 29px;
    top: 50%;
    width: 46px;
    height: 46px;
    display: block;
    border-radius: 50%;
    background-color: #e5f3e9;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%230b8135%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273.5%27%20y%3D%275.5%27%20width%3D%2717%27%20height%3D%2713%27%20rx%3D%271.8%27%2F%3E%3Cpath%20d%3D%27m4.5%207%207.5%205.5L19.5%207%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 23px 23px;
    transform: translateY(-50%);
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) {
    column-gap: clamp(38px, 4.5vw, 68px);
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child {
    padding: 31px 30px 28px;
    border: 1px solid #e0e7e3;
    border-top: 3px solid #0b8135;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 55, 43, .07);
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child > p:first-child {
    margin: 0 0 24px !important;
    padding: 0 0 13px;
    border-bottom: 1px solid #a9cdb5;
    color: #087b31;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: .01em;
    text-transform: uppercase;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child p {
    margin-top: 0;
}
/* Bloques de correo y teléfono: icono, jerarquía y separación. */
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child > p:nth-of-type(3),
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child > p:nth-of-type(4) {
    position: relative;
    min-height: 64px;
    margin: 0 !important;
    padding: 15px 0 15px 58px;
    border-top: 1px solid #dce5e0;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child > p:nth-of-type(3)::before,
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child > p:nth-of-type(4)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 38px;
    height: 38px;
    display: block;
    border: 1px solid #0b8135;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child > p:nth-of-type(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%230b8135%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273.5%27%20y%3D%275.5%27%20width%3D%2717%27%20height%3D%2713%27%20rx%3D%271.8%27%2F%3E%3Cpath%20d%3D%27m4.5%207%207.5%205.5L19.5%207%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child > p:nth-of-type(4)::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27%230b8135%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M7.1%203.8%209.5%207.7%207.8%209.4c1.1%202.4%202.8%204.1%205.2%205.2l1.7-1.7%203.9%202.4-.7%203.6c-.2.9-1%201.5-1.9%201.4C9.3%2019.6%204.4%2014.7%203.7%208c-.1-.9.5-1.7%201.4-1.9l2-.4Z%27%2F%3E%3C%2Fsvg%3E");
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child > p:nth-of-type(3) strong,
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child > p:nth-of-type(4) strong {
    color: #087b31;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) .wp-block-social-links {
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0 0;
    padding-top: 17px;
    border-top: 1px solid #dce5e0;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) .wp-block-social-links .wp-social-link {
    width: 44px;
    height: 44px;
}
body .fluentform .ff-el-form-control {
    border-color: #cfd9d3;
    border-radius: 6px;
}
body .fluentform .ff-btn-submit,
body .fluentform button.ff-btn-submit,
body .fluentform .ff-btn.ff-btn-submit {
    min-width: 176px;
    border-radius: 6px !important;
}
body .fluentform .ff-btn-submit::before,
body .fluentform button.ff-btn-submit::before,
body .fluentform .ff-btn.ff-btn-submit::before {
    content: "➤";
    display: inline-block;
    margin-right: 9px;
    font-size: 14px;
    transform: rotate(-18deg);
}
@media (max-width: 780px) {
    body .entry-content:has(.fluentform) > .wp-block-columns:not(:has(.fluentform)):has(> .wp-block-column > p) {
        margin-bottom: 30px !important;
    }
    body .entry-content:has(.fluentform) > .wp-block-columns:not(:has(.fluentform)):has(> .wp-block-column > p) > .wp-block-column > p {
        min-height: 0;
        padding: 19px 18px 19px 72px;
        font-size: 16px;
    }
    body .entry-content:has(.fluentform) > .wp-block-columns:not(:has(.fluentform)):has(> .wp-block-column > p) > .wp-block-column > p::before {
        left: 17px;
        width: 40px;
        height: 40px;
        font-size: 23px;
    }
    body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child {
        padding: 24px 21px 22px;
    }
    body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) .wp-block-social-links {
        justify-content: flex-start;
    }
}

/* 1.8.11 — Ajustes finales de la tarjeta de contacto. */
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child {
    align-self: flex-start;
    height: fit-content;
    min-height: 0;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child > .wp-block-spacer:last-child,
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child > p:empty:last-child {
    display: none !important;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child a {
    color: #0b8135;
    text-decoration: none;
    text-underline-offset: .16em;
}
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child a:hover,
body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:first-child a:focus-visible {
    color: #086d2d;
    text-decoration: underline;
}

/* 1.8.12 — Encabezado del formulario de contacto. */
body .entry-content:has(.fluentform) .fluentform .ff-el-group.ff-custom_html:first-of-type {
    margin: 0 0 26px !important;
}
body .entry-content:has(.fluentform) .fluentform .ff-el-group.ff-custom_html:first-of-type p {
    margin: 0 !important;
    padding: 0 0 13px;
    border-bottom: 1px solid #a9cdb5;
    color: #087b31;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: .01em;
    text-transform: uppercase;
}
@media (max-width: 780px) {
    body .entry-content:has(.fluentform) .wp-block-columns:has(.fluentform) > .wp-block-column:has(.fluentform) {
        margin-top: 34px;
    }
    body .entry-content:has(.fluentform) .fluentform .ff-el-group.ff-custom_html:first-of-type {
        margin-bottom: 22px !important;
    }
}

/* 1.8.13 — Llamada visual de cierre ---------------------------------------
 * Bloque reutilizable de imagen + mensaje + CTA. Mantiene la tipografía del
 * sitio: no define ninguna familia propia y hereda siempre la fuente activa.
 */
.wp-block-geolodia-llamada-visual.geolodia-visual-cta {
    --geolodia-visual-height: 280px;
    --geolodia-visual-overlay: .46;
    --geolodia-visual-image: none;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-height: var(--geolodia-visual-height);
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background-color: #193127;
    background-image: var(--geolodia-visual-image);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    font-family: inherit;
}

.geolodia-visual-cta__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, var(--geolodia-visual-overlay));
    pointer-events: none;
}

.geolodia-visual-cta__waves {
    position: absolute;
    inset: -1px 0 auto;
    z-index: 3;
    width: 100%;
    height: clamp(42px, 4.2vw, 64px);
    overflow: hidden;
    pointer-events: none;
}

.geolodia-visual-cta__waves svg {
    display: block;
    width: 100%;
    height: 100%;
}

.geolodia-visual-wave--back { fill: rgba(255,255,255,.34); }
.geolodia-visual-wave--mid { fill: rgba(255,255,255,.52); }
.geolodia-visual-wave--front { fill: #fff; }

.geolodia-visual-cta__content {
    position: relative;
    z-index: 4;
    box-sizing: border-box;
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
    padding: 46px 0 34px;
    color: #fff;
    font-family: inherit;
}

.geolodia-visual-cta--align-center .geolodia-visual-cta__content { text-align: center; }
.geolodia-visual-cta--align-left .geolodia-visual-cta__content { text-align: left; }
.geolodia-visual-cta--align-right .geolodia-visual-cta__content { text-align: right; }

.geolodia-visual-cta__title {
    margin: 0 !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: clamp(1.8rem, 3vw, 2.65rem) !important;
    font-weight: 650 !important;
    line-height: 1.12 !important;
    letter-spacing: -.018em;
    text-shadow: 0 1px 8px rgba(0,0,0,.18);
}

/* En escritorio el título del diseño queda deliberadamente en una línea. */
@media (min-width: 900px) {
    .geolodia-visual-cta__title { white-space: nowrap; }
}

.geolodia-visual-cta__text {
    width: min(100%, 1060px);
    margin: 14px auto 0 !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 400;
    line-height: 1.45 !important;
    opacity: .97;
    text-shadow: 0 1px 6px rgba(0,0,0,.2);
}

.geolodia-visual-cta--align-left .geolodia-visual-cta__text { margin-left: 0 !important; }
.geolodia-visual-cta--align-right .geolodia-visual-cta__text { margin-right: 0 !important; }

.geolodia-visual-cta__rule {
    width: 62px;
    height: 3px;
    margin: 18px auto 16px;
    border-radius: 999px;
    background: var(--geolodia-verde);
}

.geolodia-visual-cta--align-left .geolodia-visual-cta__rule { margin-left: 0; }
.geolodia-visual-cta--align-right .geolodia-visual-cta__rule { margin-right: 0; }

.geolodia-visual-cta__button {
    box-sizing: border-box;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: .7em;
    padding: .72em 1.45em;
    border: 2px solid var(--geolodia-verde);
    border-radius: var(--geolodia-radio-boton);
    background: var(--geolodia-verde);
    color: #fff !important;
    font-family: inherit !important;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .01em;
    text-decoration: none !important;
    box-shadow: none;
    transition: background-color 160ms ease,border-color 160ms ease,transform 160ms ease,box-shadow 160ms ease;
}

.geolodia-visual-cta__button:hover,
.geolodia-visual-cta__button:focus-visible {
    border-color: var(--geolodia-verde-hover);
    background: var(--geolodia-verde-hover);
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: var(--geolodia-sombra-boton);
}

.geolodia-visual-cta__button:focus-visible {
    outline: 3px solid rgba(255,255,255,.55);
    outline-offset: 3px;
}

.geolodia-visual-cta__arrow {
    display: inline-block;
    font-size: 1.12em;
    line-height: 1;
    transition: transform 160ms ease;
}

.geolodia-visual-cta__button:hover .geolodia-visual-cta__arrow { transform: translateX(2px); }
.geolodia-visual-cta__button--editor { cursor: default; }
.geolodia-visual-cta__button--editor:hover { transform: none; }

/* La variante recta conserva exactamente el mismo contenido y dimensiones. */
.geolodia-visual-cta--straight .geolodia-visual-cta__content {
    padding-top: 34px;
}

/* Si el bloque es el último de la página, queda preparado para tocar el footer. */
body.geolodia-page-template .geolodia-page-content > .wp-block-geolodia-llamada-visual:last-child {
    margin-bottom: 0 !important;
}

/* Editor Gutenberg. */
.editor-styles-wrapper .wp-block-geolodia-llamada-visual {
    max-width: none;
}
.editor-styles-wrapper .geolodia-visual-cta__title,
.editor-styles-wrapper .geolodia-visual-cta__text {
    cursor: text;
}
.geolodia-visual-image-preview {
    width: 100%;
    height: 82px;
    margin: 0 0 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background-position: center;
    background-size: cover;
}
.geolodia-visual-style-switch {
    display: flex;
    gap: 8px;
}

@media (max-width: 899px) {
    .wp-block-geolodia-llamada-visual.geolodia-visual-cta {
        min-height: min(var(--geolodia-visual-height), 260px);
    }
    .geolodia-visual-cta__content {
        width: min(calc(100% - 36px), 1180px);
        padding-top: 44px;
        padding-bottom: 30px;
    }
    .geolodia-visual-cta__title {
        font-size: clamp(1.55rem, 5.7vw, 2.15rem) !important;
    }
    .geolodia-visual-cta__text {
        margin-top: 10px !important;
        font-size: .94rem !important;
    }
    .geolodia-visual-cta__rule {
        margin-top: 14px;
        margin-bottom: 13px;
    }
}

@media (max-width: 600px) {
    .wp-block-geolodia-llamada-visual.geolodia-visual-cta {
        min-height: max(var(--geolodia-visual-height), 310px);
    }
    .geolodia-visual-cta__waves {
        height: 42px;
    }
    .geolodia-visual-cta__content {
        width: calc(100% - 32px);
        padding-top: 54px;
        padding-bottom: 38px;
    }
    .geolodia-visual-cta__text {
        line-height: 1.38 !important;
    }
    .geolodia-visual-cta__button {
        min-height: 44px;
        padding: .68em 1.2em;
        font-size: .86rem;
    }
}

/* 1.8.18 — Entidades / Logos ---------------------------------------------
 * Tratamiento institucional ligero: título + acento verde, subtítulo opcional,
 * separador inferior y rejilla compacta alineada a la izquierda.
 * La rejilla permite al menos 5 logos en una fila en el ancho normal y los
 * fondos blancos de archivos raster se integran con el fondo de la página.
 */
.wp-block-geolodia-logos-entidades.geolodia-entity-logos {
    --geolodia-logo-gap: 32px;
    box-sizing: border-box;
    width: min(calc(100% - 40px), 980px);
    margin: clamp(28px, 4vw, 48px) auto !important;
    padding: 0 0 clamp(26px, 3.5vw, 38px);
    border-bottom: 1px solid #e3e6e2;
    font-family: inherit;
}

.wp-block-geolodia-logos-entidades.geolodia-entity-logos--wide {
    width: min(calc(100vw - 64px), 1180px);
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.geolodia-entity-logos__title {
    position: relative;
    margin: 0 0 10px !important;
    padding: 0 0 13px;
    color: var(--geolodia-texto, #222) !important;
    font-family: inherit !important;
    font-size: clamp(1.25rem, 1.8vw, 1.55rem) !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
}

.geolodia-entity-logos__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--geolodia-verde, #008135);
}

.geolodia-entity-logos__subtitle {
    margin: 0 0 20px !important;
    color: #70756f !important;
    font-family: inherit !important;
    font-size: .94rem !important;
    font-style: italic;
    line-height: 1.45 !important;
}

.geolodia-entity-logos__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: min(var(--geolodia-logo-gap), 24px);
    align-items: center;
    justify-content: start;
}

.geolodia-entity-logo {
    --geolodia-logo-scale: 1;
    box-sizing: border-box;
    display: flex;
    min-width: 0;
    width: 100%;
    height: 112px;
    align-items: center;
    justify-content: flex-start;
    padding: 5px 0;
}

.geolodia-entity-logo__link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none !important;
}

.geolodia-entity-logo img {
    display: block;
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Hace que el blanco del propio archivo se funda con el fondo marfil/gris
       de la web sin exigir versiones transparentes de cada logotipo. */
    mix-blend-mode: multiply;
    transform: scale(var(--geolodia-logo-scale));
    transform-origin: left center;
}

.geolodia-entity-logo__link:hover img,
.geolodia-entity-logo__link:focus-visible img {
    opacity: .86;
}

.geolodia-entity-logo__link:focus-visible {
    outline: 2px solid var(--geolodia-verde, #008135);
    outline-offset: 5px;
    border-radius: 3px;
}

/* Controles específicos dentro del editor. */
.geolodia-logo-editor-card {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
}

.geolodia-logo-editor-card__top {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.geolodia-logo-editor-card__preview {
    display: flex;
    width: 108px;
    height: 58px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f6f7f7;
}

.geolodia-logo-editor-card__preview img {
    display: block;
    max-width: 100%;
    max-height: 54px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.geolodia-logo-editor-card__actions {
    display: flex;
    align-items: center;
}

.editor-styles-wrapper .wp-block-geolodia-logos-entidades {
    max-width: 980px;
}

.editor-styles-wrapper .wp-block-geolodia-logos-entidades.geolodia-entity-logos--wide {
    width: min(calc(100% - 40px), 1180px);
    max-width: 1180px;
    left: auto;
    transform: none;
}

@media (max-width: 700px) {
    .wp-block-geolodia-logos-entidades.geolodia-entity-logos,
    .wp-block-geolodia-logos-entidades.geolodia-entity-logos--wide {
        width: calc(100% - 32px);
        max-width: none;
        left: auto;
        transform: none;
        margin-top: 34px !important;
        margin-bottom: 40px !important;
    }

    .geolodia-entity-logos__title {
        margin-bottom: 9px !important;
        font-size: 1.25rem !important;
    }

    .geolodia-entity-logos__subtitle {
        margin-bottom: 16px !important;
        font-size: .9rem !important;
    }

    .geolodia-entity-logos__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: min(var(--geolodia-logo-gap), 24px);
        justify-content: start;
    }

    .geolodia-entity-logo {
        height: 94px;
        padding: 4px 0;
        justify-content: flex-start;
    }

    .geolodia-entity-logo img {
        max-height: 84px;
    }

    .geolodia-entity-logos__grid > .geolodia-entity-logo:only-child {
        grid-column: 1 / -1;
        width: min(210px, 70vw);
        justify-self: start;
    }
}

/* 1.8.19 — Entidades / Logos: alineación integral -------------------------
 * La opción de alineación afecta al título, acento, subtítulo y logos.
 * En centro/derecha se usa flex-wrap para que las filas incompletas queden
 * realmente centradas/alineadas como grupo, manteniendo hasta 5 logos/fila.
 */
.geolodia-entity-logos--align-center .geolodia-entity-logos__title,
.geolodia-entity-logos--align-center .geolodia-entity-logos__subtitle {
    text-align: center;
}

.geolodia-entity-logos--align-center .geolodia-entity-logos__title::after {
    left: 50%;
    transform: translateX(-50%);
}

.geolodia-entity-logos--align-right .geolodia-entity-logos__title,
.geolodia-entity-logos--align-right .geolodia-entity-logos__subtitle {
    text-align: right;
}

.geolodia-entity-logos--align-right .geolodia-entity-logos__title::after {
    right: 0;
    left: auto;
}

.geolodia-entity-logos--align-center .geolodia-entity-logos__grid,
.geolodia-entity-logos--align-right .geolodia-entity-logos__grid {
    display: flex;
    flex-wrap: wrap;
    gap: min(var(--geolodia-logo-gap), 24px);
    align-items: center;
}

.geolodia-entity-logos--align-center .geolodia-entity-logos__grid {
    justify-content: center;
}

.geolodia-entity-logos--align-right .geolodia-entity-logos__grid {
    justify-content: flex-end;
}

.geolodia-entity-logos--align-center .geolodia-entity-logo,
.geolodia-entity-logos--align-right .geolodia-entity-logo {
    flex: 0 0 calc((100% - (4 * min(var(--geolodia-logo-gap), 24px))) / 5);
    max-width: calc((100% - (4 * min(var(--geolodia-logo-gap), 24px))) / 5);
}

.geolodia-entity-logos--align-center .geolodia-entity-logo,
.geolodia-entity-logos--align-center .geolodia-entity-logo__link {
    justify-content: center;
}

.geolodia-entity-logos--align-center .geolodia-entity-logo img {
    transform-origin: center center;
}

.geolodia-entity-logos--align-right .geolodia-entity-logo,
.geolodia-entity-logos--align-right .geolodia-entity-logo__link {
    justify-content: flex-end;
}

.geolodia-entity-logos--align-right .geolodia-entity-logo img {
    transform-origin: right center;
}

@media (max-width: 700px) {
    .geolodia-entity-logos--align-center .geolodia-entity-logo,
    .geolodia-entity-logos--align-right .geolodia-entity-logo {
        flex-basis: calc((100% - min(var(--geolodia-logo-gap), 24px)) / 2);
        max-width: calc((100% - min(var(--geolodia-logo-gap), 24px)) / 2);
    }

    .geolodia-entity-logos--align-center .geolodia-entity-logos__grid > .geolodia-entity-logo:only-child,
    .geolodia-entity-logos--align-right .geolodia-entity-logos__grid > .geolodia-entity-logo:only-child {
        width: min(210px, 70vw);
        max-width: min(210px, 70vw);
        flex-basis: min(210px, 70vw);
    }
}


/* 1.8.20 — Línea de tiempo Geolodía ------------------------------------ */
.geolodia-timeline{--gt-green:#176334;--gt-orange:#f47a00;--gt-soft:#f5f8f3;margin:42px auto 56px;max-width:1240px;padding:0 24px}.geolodia-timeline__rail{display:grid;grid-template-columns:repeat(var(--gt-count,8),1fr);position:relative;gap:0;margin:0 10px 44px}.geolodia-timeline__rail:before{content:"";position:absolute;left:6%;right:6%;top:18px;height:2px;background:var(--gt-green);opacity:.65}.geolodia-timeline__milestone{appearance:none;background:none;border:0!important;box-shadow:none!important;color:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 7px;position:relative;z-index:1;min-width:0}.geolodia-timeline__dot{width:17px;height:17px;border-radius:50%;background:var(--gt-green);border:3px solid var(--gt-soft);box-shadow:0 0 0 1px var(--gt-green);margin:10px 0 18px;transition:.2s}.geolodia-timeline__year{font-size:18px;color:var(--gt-green);line-height:1.2;margin-bottom:7px}.geolodia-timeline__short{font-size:14px;line-height:1.35;max-width:130px}.geolodia-timeline__milestone.is-active .geolodia-timeline__dot{background:var(--gt-orange);box-shadow:0 0 0 2px var(--gt-orange);transform:scale(1.18)}.geolodia-timeline__milestone.is-active .geolodia-timeline__year{color:var(--gt-orange)}.geolodia-timeline__panel{background:linear-gradient(110deg,#f7f9f5,#f1f6ee);border-radius:20px;padding:38px 42px;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,1.35fr);gap:42px;align-items:center}.geolodia-timeline__panel-year{color:var(--gt-orange);font-size:18px;font-weight:700;margin-bottom:8px}.geolodia-timeline__panel h2{color:var(--gt-green);font-size:clamp(28px,3vw,42px);line-height:1.1;margin:0 0 22px}.geolodia-timeline__text{font-size:16px;line-height:1.65}.geolodia-timeline__text p:last-child{margin-bottom:0}.geolodia-timeline__media{display:grid;gap:18px;grid-template-columns:1fr}.geolodia-timeline__media--2{grid-template-columns:1.55fr .75fr}.geolodia-timeline__media figure{margin:0;min-width:0;height:100%}.geolodia-timeline__media img{display:block;width:100%;height:100%;max-height:360px;object-fit:cover;border-radius:14px}.geolodia-timeline__mobile{display:none}
.geolodia-timeline-editor{border:1px solid #dcdcde;padding:20px}.geolodia-timeline-editor__intro{margin-bottom:18px}.geolodia-timeline-editor__intro p{margin:4px 0 0}.geolodia-timeline-editor__item{border:1px solid #dcdcde;border-radius:6px;padding:16px;margin:0 0 16px;background:#fff}.geolodia-timeline-editor__bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.geolodia-timeline-editor__fields{display:grid;grid-template-columns:140px 1fr 1fr;gap:12px}.geolodia-timeline-editor__fields .components-base-control:last-child{grid-column:1/-1}.geolodia-timeline-editor__images{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap}.geolodia-timeline-editor__image{width:150px}.geolodia-timeline-editor__image img{display:block;width:100%;height:90px;object-fit:cover;border-radius:4px}
@media(max-width:900px){.geolodia-timeline{padding:0 18px;margin-top:28px}.geolodia-timeline__desktop{display:none}.geolodia-timeline__mobile{display:block;position:relative}.geolodia-timeline__mobile:before{content:"";position:absolute;left:11px;top:16px;bottom:16px;width:2px;background:var(--gt-green);opacity:.65}.geolodia-timeline__mobile-item{position:relative;padding-left:36px;margin-bottom:10px}.geolodia-timeline__mobile-toggle{width:100%;display:grid;grid-template-columns:auto 1fr auto;column-gap:9px;align-items:center;text-align:left;border:1px solid #e3e9df!important;border-radius:12px!important;background:#f7f9f5!important;color:#253129!important;padding:13px 14px!important;box-shadow:none!important;position:relative}.geolodia-timeline__mobile-toggle strong{color:var(--gt-green);font-size:16px}.geolodia-timeline__mobile-toggle span:nth-child(3){font-size:15px}.geolodia-timeline__mobile-dot{position:absolute!important;left:-31px;width:13px;height:13px;border-radius:50%;background:var(--gt-green);box-shadow:0 0 0 4px #fff}.geolodia-timeline__chevron{color:var(--gt-green);font-size:20px;transition:.2s}.geolodia-timeline__mobile-item.is-active .geolodia-timeline__mobile-toggle strong{color:var(--gt-orange)}.geolodia-timeline__mobile-item.is-active .geolodia-timeline__mobile-dot{background:var(--gt-orange);box-shadow:0 0 0 3px #fff,0 0 0 5px var(--gt-orange)}.geolodia-timeline__mobile-item.is-active .geolodia-timeline__chevron{transform:rotate(180deg)}.geolodia-timeline__mobile-content{background:linear-gradient(120deg,#f7f9f5,#f1f6ee);border-radius:0 0 14px 14px;padding:22px 18px 20px;margin-top:-6px}.geolodia-timeline__mobile-content .geolodia-timeline__panel-year{display:none}.geolodia-timeline__mobile-content h2{font-size:25px;margin-bottom:16px}.geolodia-timeline__mobile-content .geolodia-timeline__text{font-size:15px;line-height:1.55}.geolodia-timeline__media,.geolodia-timeline__media--2{grid-template-columns:1fr;margin-top:20px}.geolodia-timeline__media img{max-height:none;aspect-ratio:16/10}.geolodia-timeline__media--2 figure:nth-child(2) img{aspect-ratio:16/9}.geolodia-timeline-editor__fields{grid-template-columns:1fr}}


/* 1.8.22 — Timeline: panel único, texto fluido y acordeón móvil refinado. */
.geolodia-timeline__panel[hidden],
.geolodia-timeline__mobile-content[hidden] {
    display: none !important;
}
.geolodia-timeline__panel--text-only {
    grid-template-columns: minmax(0, 1fr);
}
.geolodia-timeline__panel--text-only .geolodia-timeline__copy {
    width: 100%;
    max-width: none;
}
p.is-style-geolodia-antetitulo-centrado {
    text-align: center;
}
.geolodia-heading-intro-centered {
    text-align: center;
}

@media (max-width: 900px) {
    .geolodia-timeline {
        padding-left: 0;
        padding-right: 0;
    }
    .geolodia-timeline__mobile:before {
        left: 8px;
    }
    .geolodia-timeline__mobile-item {
        padding-left: 28px;
        margin-bottom: 9px;
    }
    .geolodia-timeline__mobile-dot {
        left: -25px;
    }
    .geolodia-timeline__mobile-toggle {
        padding: 13px 14px !important;
    }
    .geolodia-timeline__chevron {
        width: 9px;
        height: 9px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transform-origin: 55% 55%;
        font-size: 0;
        line-height: 0;
        margin: -4px 2px 0 5px;
    }
    .geolodia-timeline__mobile-item.is-active .geolodia-timeline__chevron {
        transform: rotate(225deg);
        margin-top: 4px;
    }
    .geolodia-timeline__mobile-item.is-active .geolodia-timeline__mobile-toggle {
        border-radius: 12px 12px 0 0 !important;
        border-bottom-color: transparent !important;
        background: #f7f9f5 !important;
    }
    .geolodia-timeline__mobile-content {
        margin-top: 0;
        border: 1px solid #e3e9df;
        border-top: 0;
        border-radius: 0 0 12px 12px;
        background: #f7f9f5;
        padding: 10px 14px 20px;
    }
    .geolodia-timeline__mobile-content h2 {
        margin-top: 0;
    }
}


/* 1.8.24 — Lightbox accesible para imágenes de la línea de tiempo. */
.geolodia-timeline__image-button {
    appearance: none;
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    overflow: hidden;
}
.geolodia-timeline__image-button img {
    transition: transform .22s ease;
}
.geolodia-timeline__image-button:hover img {
    transform: scale(1.015);
}
.geolodia-lightbox-open {
    overflow: hidden;
}
.geolodia-timeline-lightbox[hidden] {
    display: none !important;
}
.geolodia-timeline-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 28px;
    opacity: 0;
    transition: opacity .18s ease;
}
.geolodia-timeline-lightbox.is-open {
    opacity: 1;
}
.geolodia-timeline-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9,18,12,.88);
}
.geolodia-timeline-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100vw - 96px);
    max-width: 1320px;
    height: calc(100vh - 72px);
    max-height: 920px;
}
.geolodia-timeline-lightbox__figure {
    margin: 0;
    min-width: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.geolodia-timeline-lightbox__image {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}
.geolodia-timeline-lightbox__caption {
    margin-top: 10px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}
.geolodia-timeline-lightbox__close,
.geolodia-timeline-lightbox__nav {
    appearance: none;
    border: 0 !important;
    box-shadow: none !important;
    background: rgba(255,255,255,.94) !important;
    color: #176334 !important;
    cursor: pointer;
}
.geolodia-timeline-lightbox__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    z-index: 2;
}
.geolodia-timeline-lightbox__close span::before,
.geolodia-timeline-lightbox__close span::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 20px;
    width: 18px;
    height: 2px;
    background: currentColor;
}
.geolodia-timeline-lightbox__close span::before { transform: rotate(45deg); }
.geolodia-timeline-lightbox__close span::after { transform: rotate(-45deg); }
.geolodia-timeline-lightbox__nav {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.geolodia-timeline-lightbox__prev { left: 8px; }
.geolodia-timeline-lightbox__next { right: 8px; }
.geolodia-timeline-lightbox__nav[hidden] { display: none !important; }
.geolodia-timeline-lightbox__nav span {
    position: absolute;
    width: 11px;
    height: 11px;
    left: 16px;
    top: 15px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}
.geolodia-timeline-lightbox__prev span { transform: rotate(-135deg); left: 17px; }
.geolodia-timeline-lightbox__next span { transform: rotate(45deg); left: 14px; }

@media (max-width: 900px) {
    .geolodia-timeline-lightbox {
        padding: 14px;
    }
    .geolodia-timeline-lightbox__dialog {
        display: block;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 28px);
    }
    .geolodia-timeline-lightbox__figure {
        width: 100%;
    }
    .geolodia-timeline-lightbox__image {
        max-height: calc(100vh - 70px);
        border-radius: 4px;
    }
    .geolodia-timeline-lightbox__close {
        top: 4px;
        right: 4px;
        width: 38px;
        height: 38px;
    }
    .geolodia-timeline-lightbox__close span::before,
    .geolodia-timeline-lightbox__close span::after {
        left: 11px;
        top: 18px;
        width: 16px;
    }
    .geolodia-timeline-lightbox__nav {
        position: absolute;
        top: 50%;
        width: 34px;
        height: 34px;
        transform: translateY(-50%);
        z-index: 2;
    }
    .geolodia-timeline-lightbox__prev { left: 4px; }
    .geolodia-timeline-lightbox__next { right: 4px; }
    .geolodia-timeline-lightbox__nav span {
        width: 9px;
        height: 9px;
        top: 12px;
    }
    .geolodia-timeline-lightbox__prev span { left: 14px; }
    .geolodia-timeline-lightbox__next span { left: 11px; }
}


/* 1.8.31 — Entidades detalladas: rejilla alineada por filas y navegación de carrusel refinada. */
.geolodia-detailed-entities{--geolodia-entity-columns:3;max-width:1240px;margin:52px auto;padding:0 24px;box-sizing:border-box}.geolodia-detailed-entities__title{text-align:center;margin:0 0 8px;font-size:clamp(1.7rem,2.4vw,2.25rem);line-height:1.15}.geolodia-detailed-entities__title:after{content:"";display:block;width:30px;height:2px;background:#159447;margin:10px auto 0}.geolodia-detailed-entities__title+.geolodia-detailed-entities__viewport{margin-top:28px}.geolodia-detailed-entities__subtitle{text-align:center;color:#6a6a6a;font-style:italic;margin:16px auto 34px}.geolodia-detailed-entities__track{display:grid;grid-template-columns:repeat(var(--geolodia-entity-columns),minmax(0,1fr));max-width:1120px;margin:0 auto;gap:42px 34px}.geolodia-detailed-entity{min-width:0;text-align:left}.geolodia-detailed-entity__logo{height:150px;display:flex;align-items:center;justify-content:center;margin-bottom:20px}.geolodia-detailed-entity__logo img{display:block;max-width:220px;max-height:145px;width:auto;height:auto;object-fit:contain;mix-blend-mode:multiply}.geolodia-detailed-entity__name{font-size:1.05rem;line-height:1.2;margin:0 0 9px;font-weight:600}.geolodia-detailed-entity__name a{color:inherit;text-decoration:none}.geolodia-detailed-entity__description{font-size:.94rem;line-height:1.58;margin:0;color:#555}.geolodia-detailed-entities__nav{display:none;align-items:center;justify-content:center;gap:6px;margin-top:18px;height:44px}.geolodia-detailed-entities__nav[hidden]{display:none!important}.geolodia-detailed-entities__prev,.geolodia-detailed-entities__next{display:flex;align-items:center;justify-content:center;border:0;background:transparent;font-size:34px;line-height:1;width:44px;height:44px;padding:0 0 3px;cursor:pointer}.geolodia-detailed-entities__dots{display:flex;gap:7px;align-items:center;justify-content:center;height:44px}.geolodia-detailed-entities__dot{display:block;width:8px;height:8px;border:0;border-radius:50%;background:#c9c9c9;padding:0;cursor:pointer}.geolodia-detailed-entities__dot.is-active{background:#555}.geolodia-detailed-entities--carousel .geolodia-detailed-entities__viewport{overflow:hidden}.geolodia-detailed-entities--carousel .geolodia-detailed-entities__track{display:flex;flex-wrap:nowrap;justify-content:flex-start;max-width:none;margin:0;gap:0;transition:transform .35s ease}.geolodia-detailed-entities--carousel .geolodia-detailed-entity{flex:0 0 50%;max-width:50%;padding:0 clamp(24px,5vw,80px);box-sizing:border-box}.geolodia-detailed-entities--carousel .geolodia-detailed-entities__nav{display:flex}
@media(max-width:900px) and (min-width:601px){.geolodia-detailed-entities__track{grid-template-columns:repeat(2,minmax(0,1fr));max-width:814px}.geolodia-detailed-entities--carousel .geolodia-detailed-entities__track{max-width:none}.geolodia-detailed-entities--carousel .geolodia-detailed-entity{flex:0 0 50%;max-width:50%;padding:0 28px}}
@media(max-width:600px){.geolodia-detailed-entities{margin:38px auto;padding:0 20px}.geolodia-detailed-entities__title{line-height:1.1}.geolodia-detailed-entities__title+.geolodia-detailed-entities__viewport{margin-top:20px}.geolodia-detailed-entities__track{grid-template-columns:1fr;max-width:390px;gap:38px}.geolodia-detailed-entity__logo{height:125px;margin-bottom:16px}.geolodia-detailed-entity__logo img{max-width:190px;max-height:120px}.geolodia-detailed-entities__nav{margin-top:10px;gap:3px}.geolodia-detailed-entities--carousel .geolodia-detailed-entity,.geolodia-detailed-entities--carousel-mobile .geolodia-detailed-entity{flex:0 0 100%;max-width:100%;padding:0 4px;box-sizing:border-box}.geolodia-detailed-entities--carousel-mobile .geolodia-detailed-entities__viewport{overflow:hidden}.geolodia-detailed-entities--carousel-mobile .geolodia-detailed-entities__track{display:flex;flex-wrap:nowrap;justify-content:flex-start;max-width:none;margin:0;gap:0;transition:transform .35s ease}.geolodia-detailed-entities--carousel-mobile .geolodia-detailed-entities__nav{display:flex}}
@media(prefers-reduced-motion:reduce){.geolodia-detailed-entities__track{transition:none!important}}
.geolodia-detailed-editor-grid{display:grid;gap:18px;margin:22px 0}.geolodia-detailed-editor-card{border:1px solid #dcdcde;border-radius:4px;padding:14px;background:#fff}.geolodia-detailed-editor-card__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.geolodia-detailed-editor-card__head img{width:100px;height:70px;object-fit:contain;mix-blend-mode:multiply}.geolodia-detailed-editor-card__actions{display:flex;align-items:center;gap:4px}.geolodia-detailed-editor-card__delete{color:#b32d2e!important}.geolodia-editor-check{display:block;margin:18px 0}.editor-styles-wrapper .geolodia-detailed-entities-editor{max-width:1200px!important}

/* 1.8.32 — Entidades detalladas: opción de una columna en rejilla. */
.geolodia-detailed-entities--columns-1 .geolodia-detailed-entities__track{grid-template-columns:minmax(0,1fr);max-width:520px}

.geolodia-detailed-columns-label{margin-top:14px!important;}

/* 1.8.35 — Tipos de actividad destacados: rejilla dinámica alimentada desde el plugin Geolodía. */
.geolodia-featured-types{max-width:1240px;margin:58px auto;padding:0 24px;box-sizing:border-box}.geolodia-featured-types__title{text-align:center;margin:0;font-size:clamp(1.75rem,2.5vw,2.3rem);line-height:1.15}.geolodia-featured-types__title:after{content:"";display:block;width:34px;height:2px;background:#159447;margin:11px auto 0}.geolodia-featured-types__intro{max-width:760px;margin:16px auto 34px;text-align:center;color:#666;line-height:1.55}.geolodia-featured-types__grid{display:grid;grid-template-columns:repeat(var(--geolodia-featured-columns,3),minmax(0,1fr));gap:28px;align-items:stretch}.geolodia-featured-type{min-width:0;margin:0;border:1px solid #e2e2df;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.035);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.geolodia-featured-type:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.08);border-color:#b8d6c1}.geolodia-featured-type__link{display:flex;flex-direction:column;height:100%;color:inherit!important;text-decoration:none!important}.geolodia-featured-type__media{height:270px;display:flex;align-items:center;justify-content:center;padding:22px;background:#faf9f4;box-sizing:border-box;overflow:hidden}.geolodia-featured-type__media img{display:block;width:100%;height:100%;object-fit:contain}.geolodia-featured-type__placeholder{display:block;width:62%;height:72%;border-radius:6px;background:#efeee8}.geolodia-featured-type__body{display:flex;flex-direction:column;flex:1;padding:22px 24px 24px}.geolodia-featured-type__name{margin:0 0 10px;font-size:1.2rem;line-height:1.25;color:#222}.geolodia-featured-type__description{margin:0 0 18px;color:#5d5d5d;line-height:1.55;font-size:.96rem}.geolodia-featured-type__cta{margin-top:auto;color:#147c3d;font-weight:600;font-size:.94rem}.geolodia-featured-type__cta span{display:inline-block;transition:transform .18s ease}.geolodia-featured-type:hover .geolodia-featured-type__cta span{transform:translateX(3px)}.editor-styles-wrapper .geolodia-featured-types--editor{max-width:1200px!important}.editor-styles-wrapper .geolodia-featured-types--editor .geolodia-featured-type{pointer-events:none}
@media(max-width:900px){.geolodia-featured-types__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.geolodia-featured-type__media{height:245px}}
@media(max-width:600px){.geolodia-featured-types{margin:42px auto;padding:0 20px}.geolodia-featured-types__intro{margin-bottom:26px}.geolodia-featured-types__grid{grid-template-columns:1fr;gap:18px;max-width:420px;margin:0 auto}.geolodia-featured-type__media{height:195px;padding:16px}.geolodia-featured-type__body{padding:18px 19px 20px}}
@media(prefers-reduced-motion:reduce){.geolodia-featured-type,.geolodia-featured-type__cta span{transition:none!important}}

/* 1.8.36 — Espaciador Geolodía y enlaces de contenido. */
.geolodia-spacer{display:block;width:100%;height:var(--geolodia-spacer-desktop,30px);margin:0!important;padding:0!important;clear:both}
.editor-styles-wrapper .geolodia-spacer--editor{position:relative;min-height:1px;background:rgba(21,148,71,.06);border-top:1px dashed rgba(21,148,71,.28);border-bottom:1px dashed rgba(21,148,71,.28);box-sizing:border-box}
.editor-styles-wrapper .geolodia-spacer__label{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:11px;line-height:1;color:#5f6b63;white-space:nowrap;pointer-events:none}
@media(max-width:767px){.geolodia-spacer{height:var(--geolodia-spacer-mobile,15px)}}

/* Enlaces genéricos del contenido: verde Geolodía. Se excluyen botones y elementos con color explícito. */
.entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.has-text-color){color:#147c3d;text-decoration-color:currentColor}
.entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.has-text-color):hover,
.entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.has-text-color):focus{color:#0f6532}
