/* Theme-owned footer. The archived Elementor template remains available in WordPress. */
.prevision-blocks .p-footer {
    --footer-bg: #143943;
    --footer-ink: #f5fbfd;
    --footer-muted: #c0d6dd;
    --footer-accent: #75d4f3;
    position: relative;
    isolation: isolate;
    margin: 0;
    background: var(--footer-bg);
    color: var(--footer-ink);
    font: 400 16px/1.6 "Red Hat Text", Arial, sans-serif;
    border-top: 5px solid var(--p-brand-blue, #0096c4);
}
.p-footer *, .p-footer *::before, .p-footer *::after { box-sizing: border-box; }
.prevision-blocks .p-footer a { color: inherit; font-family: inherit; text-decoration: none; touch-action: manipulation; }
.p-footer a:focus-visible { outline: 3px solid var(--footer-accent); outline-offset: 5px; border-radius: 3px; }
.p-footer svg { width: 20px; height: 20px; flex-shrink: 0; }
.p-footer p, .p-footer h2, .p-footer h3 { margin: 0; }
.p-footer-invitation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 52px 0 40px;
    border-bottom: 1px solid #41616a;
}
.p-footer-invitation-copy, .p-footer-appointment { position: relative; z-index: 1; }
.p-footer .p-footer-invitation h2 {
    color: var(--footer-ink);
    font: 600 clamp(34px, 4vw, 54px)/1.06 "Red Hat Display", Arial, sans-serif;
    letter-spacing: -.025em;
    text-wrap: balance;
}
.p-footer-invitation h2 span { color: var(--footer-accent); }
.p-footer-invitation p { margin-top: 14px; color: var(--footer-muted); font-size: 16px; }
.prevision-blocks .p-footer .p-footer-appointment {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-shrink: 0;
    min-height: 58px;
    padding: 15px 24px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--footer-accent);
    color: #143943;
    font-size: 16px;
    font-weight: 700;
    transition: background .25s ease, transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.p-footer-appointment svg { width: 24px; height: 24px; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.p-footer-lenses {
    position: absolute;
    right: 110px;
    top: 30px;
    display: flex;
    align-items: center;
    gap: 18px;
    width: 322px;
    height: 164px;
    pointer-events: none;
    color: #315660;
    transform: rotate(-12deg);
    transition: transform 1.1s cubic-bezier(.16,1,.3,1);
}
.p-footer-lenses::before { content: ""; position: absolute; left: 144px; top: 62px; width: 34px; height: 24px; border-top: 2px solid currentColor; border-radius: 50%; }
.p-footer-lenses span { position: relative; width: 150px; height: 150px; border: 1px solid currentColor; border-radius: 50%; }
.p-footer-lenses span::after { content: ""; position: absolute; inset: 9px; border: 1px solid currentColor; border-radius: 50%; }
.p-footer-grid { display: grid; grid-template-columns: 1.12fr 1fr .72fr; gap: clamp(32px, 5vw, 80px); padding: 40px 0; }
.p-footer-grid > * { min-width: 0; }
.p-footer-logo { display: inline-flex; min-height: 48px; align-items: center; }
.p-footer-logo img { display: block; width: 230px; max-width: 100%; height: auto; filter: brightness(0) invert(1); }
.p-footer-brand > p { max-width: 25ch; margin-top: 16px; color: var(--footer-muted); }
.p-footer .p-footer-socials { justify-content: flex-start; gap: 10px; margin-top: 20px; }
.p-footer .p-footer-socials a { width: 44px; height: 44px; border: 1px solid #52727b; border-radius: 50%; background: transparent; color: var(--footer-ink); transition: transform .3s cubic-bezier(.16,1,.3,1), color .25s ease, background .25s ease, border-color .25s ease; }
.p-footer .p-footer-grid h3 { margin: 0 0 15px; color: var(--footer-ink); font: 600 18px/1.4 "Red Hat Display", Arial, sans-serif; }
.p-footer-contact address { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-style: normal; }
.p-footer-contact address > a { display: flex; align-items: center; gap: 12px; min-height: 44px; max-width: 100%; color: var(--footer-muted); }
.p-footer-contact address > a > svg { color: var(--footer-accent); }
.p-footer-contact .p-footer-address { align-items: flex-start; padding-block: 5px; }
.p-footer-address > svg { margin-top: 3px; }
.p-footer-map-label { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--footer-accent); font-size: 13px; font-weight: 600; }
.p-footer-map-label svg { width: 15px; height: 15px; }
.p-footer-contact .p-footer-phone { color: var(--footer-ink); font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; }
.p-footer-email span { overflow-wrap: anywhere; }
.p-footer-explore ul { margin: -5px 0 0; padding: 0; list-style: none; }
.p-footer-explore li { margin: 0; padding: 0; list-style: none; }
.prevision-blocks .p-footer-explore a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--footer-muted); }
.p-footer-explore a svg { width: 15px; height: 15px; color: var(--footer-accent); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.p-footer-explore a:hover, .p-footer-contact a:hover { color: #fff; }
.p-footer-explore a:hover svg { transform: translate(3px, -3px); }
.p-footer-contact a:hover span:not(.p-footer-map-label) { text-decoration: underline; text-underline-offset: 4px; }
.p-footer-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; border-top: 1px solid #41616a; padding: 20px 0 24px; color: var(--footer-muted); font-size: 13px; }
.p-footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; }
.p-footer-legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color .25s ease, color .25s ease; }
.p-footer-legal a:hover { color: #fff; text-decoration-color: var(--footer-accent); }
.p-footer .p-footer-credit { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-left: auto; }
.p-footer-credit strong { color: var(--footer-ink); font-weight: 600; }
.p-footer-credit > svg:last-child { width: 14px; height: 14px; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.p-footer-credit .p-footer-sprout { width: 22px; height: 22px; color: var(--footer-accent); transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.p-footer-credit:hover .p-footer-sprout { transform: rotate(-9deg) scale(1.15); }
.p-footer-credit:hover > svg:last-child { transform: translate(2px, -2px); }
.p-footer-credit:hover strong { text-decoration: underline; text-underline-offset: 5px; }
@media (hover: hover) {
    .p-footer-invitation:hover .p-footer-lenses { transform: rotate(-5deg) translateX(-12px); }
    .prevision-blocks .p-footer .p-footer-appointment:hover { transform: translateY(-3px); background: #b0eaff; box-shadow: 0 9px 24px #071d2533; }
    .p-footer-appointment:hover svg { transform: translate(3px, -3px); }
    .p-footer .p-footer-socials a:hover { transform: translateY(-4px); background: var(--footer-accent); color: var(--footer-bg); border-color: var(--footer-accent); }
}
@media (max-width: 1000px) {
    .p-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 48px; }
    .p-footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; column-gap: 32px; align-items: center; }
    .p-footer-brand > p { grid-column: 1; max-width: none; margin-top: 8px; }
    .p-footer .p-footer-socials { grid-column: 2; grid-row: 1 / 3; margin: 0; }
    .p-footer-explore a { min-height: 44px; }
    .p-footer-bottom { column-gap: 22px; }
    .p-footer .p-footer-credit { margin-left: 0; }
}
@media (max-width: 600px) {
    .prevision-blocks .p-footer .p-container { width: calc(100% - 40px); }
    .p-footer-invitation { align-items: flex-start; flex-direction: column; gap: 22px; padding: 32px 0; }
    .p-footer-invitation h2 { max-width: 12ch; }
    .p-footer-invitation p { max-width: 25ch; font-size: 15px; }
    .p-footer-lenses { width: 196px; height: 100px; top: 24px; right: 0; gap: 10px; opacity: .7; }
    .p-footer-lenses span { width: 93px; height: 93px; }
    .p-footer-lenses span::after { inset: 6px; }
    .p-footer-lenses::before { left: 88px; top: 39px; width: 22px; height: 18px; }
    .p-footer .p-footer-appointment { width: 100%; min-height: 54px; padding: 12px 18px; }
    .p-footer-grid { grid-template-columns: minmax(0, 1fr); padding: 32px 0 26px; gap: 30px; }
    .p-footer-brand { display: block; grid-column: auto; }
    .p-footer-logo img { width: 205px; }
    .p-footer-brand > p { font-size: 15px; margin-top: 12px; }
    .p-footer .p-footer-socials { margin-top: 16px; }
    .p-footer-contact address { gap: 4px; }
    .p-footer-explore ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
    .p-footer-explore a { font-size: 14px; gap: 5px; }
    .p-footer-explore a svg { width: 13px; height: 13px; }
    .p-footer-bottom { align-items: flex-start; gap: 2px; padding: 18px 0 94px; }
    .p-footer-copyright, .p-footer-registro, .p-footer-legal, .p-footer-credit { width: 100%; }
    .p-footer .p-footer-credit { margin-top: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .p-footer *, .p-footer *::before, .p-footer *::after { transition: none !important; animation: none !important; }
    .p-footer-invitation:hover .p-footer-lenses, .p-footer-appointment:hover, .p-footer-appointment:hover svg, .p-footer .p-footer-socials a:hover, .p-footer-explore a:hover svg, .p-footer-credit:hover .p-footer-sprout, .p-footer-credit:hover > svg:last-child { transform: none; }
}

/* Logos de la ayuda pública (NextGenerationEU y Junta), como en la web anterior. Fondo blanco:
   los dos ficheros están pensados para él. */
.prevision-blocks .p-ayudas { background: #fff; border-top: 1px solid #dbe7eb; }
.p-ayudas-inner { padding: 28px 0 24px; }
.p-ayudas-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 40px; }
.p-ayudas-logos img { display: block; width: auto; max-width: 100%; height: 96px; }
/* El fichero de la UE trae más de la mitad de su alto en margen transparente: se agranda y se
   recorta ese margen para que los cuatro sellos se vean del mismo tamaño. */
.p-ayudas-logos .p-ayudas-ue { height: 150px; margin: -42px -20px; }
.prevision-blocks .p-ayudas-texto { margin: 22px 0 0; text-align: center; color: #17333e; font: 600 13px/1.5 "Red Hat Text", Arial, sans-serif; letter-spacing: .02em; text-transform: uppercase; }
@media (max-width: 600px) {
    .prevision-blocks .p-ayudas .p-container { width: calc(100% - 40px); }
    .p-ayudas-logos { gap: 12px; }
    .p-ayudas-logos img { height: auto; width: 100%; max-width: 360px; }
    .p-ayudas-logos .p-ayudas-ue { height: auto; max-width: 480px; width: calc(100% + 40px); margin: -7% -20px; }
}
