:root {
    --edm-blue: #135e9e;
    --edm-orange: #f37335;
    --edm-focus: #ffd54f;
    --edm-surface: #ffffff;
    --edm-text: #20242a;
    --edm-radius: 14px;
    --edm-shadow: 0 12px 30px rgba(23, 45, 70, 0.12);
}

html {
    scroll-behavior: smooth;
}

section[id],
main[id] {
    scroll-margin-top: 1.5rem;
}

/* El contenido nunca debe quedar oculto si falla la animación decorativa. */
.wow { visibility: visible !important; }

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.75rem 1rem;
    color: #fff;
    background: #111;
    border-radius: 0.35rem;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
video:focus-visible {
    outline: 3px solid var(--edm-focus) !important;
    outline-offset: 3px;
}

/* Conserva la semántica h1 sin perder la jerarquía visual de la plantilla. */
.main-banner .banner-text > h1 {
    color: #2b2b2b;
    font-size: 65.03px;
    line-height: 81.29px;
    font-weight: 600;
    margin-bottom: 26px;
    padding-right: 20px;
}

.main-banner .banner-text > h1 span {
    display: inline-block;
    color: #f37335;
    position: relative;
}

.main-banner .banner-text > h1 span::before {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f37335;
}

.pager-section .pager-content > h1 {
    color: #2b2b2b;
    font-size: 65px;
    text-transform: capitalize;
    font-weight: 400;
    margin-bottom: 6px;
}

.menu-btn .mobile-menu-toggle {
    width: 48px;
    height: 48px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-btn .mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    background: #111;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn.active .bar1 { transform: translateY(8px) rotate(45deg); }
.menu-btn.active .bar2 { opacity: 0; }
.menu-btn.active .bar3 { transform: translateY(-8px) rotate(-45deg); }

header .navigation-bar nav > ul > li > .nav-submenu-toggle {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 0 3px;
    color: #2b2b2b;
    font-family: Poppins, sans-serif;
    font-size: 20.32px;
    font-weight: 500;
    line-height: normal;
    background: transparent;
    border: 0;
    cursor: pointer;
}

header .navigation-bar nav > ul > li > .nav-submenu-toggle::after,
.mobile-submenu-toggle::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    margin-left: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

header .navigation-bar nav ul li:focus-within > ul,
header .navigation-bar nav ul li.submenu-open > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.responsive-menu[hidden] { display: none !important; }
.responsive-menu { overflow-y: auto; max-height: calc(100vh - 80px); }
.responsive-menu.is-open {
    visibility: visible !important;
    opacity: 1 !important;
    left: 0 !important;
    transform: translateX(0) !important;
}
.responsive-menu .mobile-submenu-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-align: left;
    background: transparent;
    border: 0;
}
.responsive-menu ul ul { padding-left: 1rem; background: rgba(255, 255, 255, 0.08); }
.responsive-menu ul ul[hidden] { display: none; }

.widget-iframe iframe,
.mdp-map iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    border: 0;
    border-radius: 10px;
}

.developer-link {
    color: #135e9e !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.video-gallery {
    padding: 2.25rem 0 4rem;
}

.video-gallery__summary {
    margin: 0 0 1.25rem;
    color: #596471;
    font-size: .92rem;
    font-weight: 600;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    align-items: start;
    gap: 1.8rem 1rem;
}

.video-card {
    min-width: 0;
}

.video-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #0f3150, #176cae);
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(23, 45, 70, .12);
}

.video-card__thumbnail {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    transition: opacity .2s ease;
}

.video-card__media.is-preview-pending .video-card__thumbnail { opacity: 0; }
.video-card__media.is-preview-ready .video-card__thumbnail { opacity: 1; }
.video-card__preview-loading {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 1rem;
    color: #fff;
    font-weight: 700;
    text-align: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .2) 0 3.5rem, transparent 3.6rem),
        linear-gradient(135deg, #0f3150, #176cae);
}
.video-card__preview-loading span {
    padding: .6rem .85rem;
    background: rgba(6, 25, 43, .78);
    border-radius: .6rem;
}
.video-card__media.is-preview-ready .video-card__preview-loading { display: none; }

.video-card__open {
    position: absolute;
    z-index: 4;
    inset: 0;
    width: 100%;
    padding: 0;
    cursor: pointer;
    background: linear-gradient(to top, rgba(5, 18, 31, .28), transparent 48%);
    border: 0;
    border-radius: inherit;
}

.video-card__open:focus-visible {
    outline-offset: -4px !important;
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 58px;
    height: 40px;
    place-items: center;
    color: #fff;
    font-size: 16px;
    background: rgba(8, 17, 28, .82);
    border-radius: 10px;
    opacity: .9;
    transform: translate(-50%, -50%);
    transition: background-color .18s ease, transform .18s ease;
}

.video-card__open:hover .video-card__play,
.video-card__open:focus-visible .video-card__play {
    background: #f00;
    transform: translate(-50%, -50%) scale(1.06);
}

.video-card__duration {
    position: absolute;
    z-index: 5;
    right: 7px;
    bottom: 7px;
    padding: 2px 5px;
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1.25;
    pointer-events: none;
    background: rgba(0, 0, 0, .82);
    border-radius: 4px;
}

.video-card__content { padding: .75rem .15rem 0; }
.video-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 .35rem;
    color: #20242a;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.video-card__meta { margin: 0; color: #65717d; font-size: .84rem; line-height: 1.45; }
.video-card__noscript { position: absolute; z-index: 6; right: .5rem; bottom: .5rem; left: .5rem; margin: 0; padding: .5rem; background: #fff; }

.video-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: end;
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: #f6f9fc;
    border: 1px solid #e3eaf1;
    border-radius: var(--edm-radius);
}

.video-filters__search {
    display: flex;
    width: min(100%, 620px);
    min-width: min(100%, 320px);
    flex: 1 1 420px;
}

.video-filters__search input {
    min-width: 0;
    height: 46px;
    padding: 0 1rem;
    flex: 1 1 auto;
    color: #20242a;
    font: inherit;
    background: #fff;
    border: 1px solid #cdd7e1;
    border-radius: 23px 0 0 23px;
}

.video-filters__search input:focus {
    position: relative;
    z-index: 2;
}

.video-filters__search button {
    display: inline-flex;
    min-width: 110px;
    height: 46px;
    padding: 0 1.2rem;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    color: #20242a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: #edf1f4;
    border: 1px solid #cdd7e1;
    border-left: 0;
    border-radius: 0 23px 23px 0;
}

.video-filters__search button:hover { background: #e0e6eb; }

.video-filters__year {
    display: grid;
    gap: .25rem;
}

.video-filters__year label {
    margin: 0;
    color: #3c4650;
    font-size: .78rem;
    font-weight: 800;
}

.video-filters select {
    min-height: 46px;
    padding: .5rem 2rem .5rem .8rem;
    font: inherit;
    background-color: #fff;
    border: 1px solid #cdd7e1;
    border-radius: 10px;
}

.video-filters__clear {
    display: inline-flex;
    min-height: 44px;
    padding: .55rem .75rem;
    align-items: center;
    color: var(--edm-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.empty-state,
.error-state {
    max-width: 720px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
    background: #f6f9fc;
    border-radius: var(--edm-radius);
}

.pagination .page-link { min-width: 44px; min-height: 44px; display: grid; place-items: center; }

.contact-tt a { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }

.video-card__unavailable { position: relative; width: 100%; height: 100%; display: grid; place-items: center; background: #17233a; color: #fff; text-align: center; }
.video-card__unavailable img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.video-card__unavailable p { position: absolute; inset: 50% auto auto 50%; width: min(90%, 28rem); margin: 0; padding: .75rem 1rem; transform: translate(-50%, -50%); background: rgba(8, 17, 34, .82); border-radius: .5rem; font-weight: 700; }

.video-player-modal[hidden] { display: none; }

.video-player-modal {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: grid;
    padding: 2rem;
    place-items: center;
}

.video-player-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 13, 20, .88);
    backdrop-filter: blur(4px);
}

.video-player-modal__dialog {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: min(1080px, 100%);
    max-height: calc(100vh - 4rem);
    max-height: calc(100dvh - 4rem);
    background: #111820;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .46);
}

.video-player-modal__header {
    display: flex;
    min-height: 72px;
    padding: .85rem 1rem .85rem 1.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #fff;
}

.video-player-modal__header h2 {
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-player-modal__header p { margin: .15rem 0 0; color: #b8c2cc; font-size: .82rem; }

.video-player-modal__close {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    background: rgba(255, 255, 255, .1);
    border: 0;
    border-radius: 50%;
}

.video-player-modal__close:hover { background: rgba(255, 255, 255, .2); }

.video-player-modal__frame {
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-player-modal__frame video { display: block; width: 100%; height: 100%; background: #000; }
body.video-modal-open { overflow: hidden; }

.form-status[role="status"]:not(:empty) {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: #e9f6ed;
    border-left: 4px solid #24753a;
}

.main-banner .results {
    display: grid;
    max-width: 475px;
    margin-top: 0.75rem;
    gap: 0.45rem;
}

.search-results__link {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    color: #075aa5;
    font-weight: 700;
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(19, 94, 158, 0.14);
    border-left: 4px solid var(--edm-orange);
    border-radius: 0.65rem;
    box-shadow: 0 5px 16px rgba(19, 94, 158, 0.07);
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.search-results__link:hover,
.search-results__link:focus-visible {
    color: #064a88;
    background: #fff;
    box-shadow: 0 8px 20px rgba(19, 94, 158, 0.14);
    transform: translateX(4px);
}

.search-results__arrow {
    flex: 0 0 auto;
    color: var(--edm-orange);
    font-size: 1.15rem;
}

.search-results__empty {
    margin: 0;
    padding: 0.7rem 0.9rem;
    color: #575757;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 0.65rem;
}

.main-banner .search-form input[type="search"] {
    padding-right: 3.75rem;
}

.main-banner .search-form input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.event-gallery {
    overflow: hidden;
    background: linear-gradient(145deg, #f8fbfd, #eaf2f8);
    border: 1px solid rgba(19, 94, 158, 0.12);
    border-radius: 20px;
    box-shadow: var(--edm-shadow);
}

.event-gallery > a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-gallery img {
    display: block;
    max-width: 100%;
    height: auto;
}

.event-gallery--landscape img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
}

.event-gallery--portrait {
    width: min(100%, 560px);
    margin-right: auto;
    margin-left: auto;
    padding: clamp(0.65rem, 2vw, 1.15rem);
}

.event-gallery--portrait img {
    width: auto;
    max-height: 780px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 13px;
}

.honeypot-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.consent-embed__placeholder {
  display: grid;
  min-height: 220px;
  padding: 1.25rem;
  place-content: center;
  text-align: center;
  background: #eef2f8;
  color: #17233a;
}

.consent-embed__placeholder[hidden],
iframe[data-consent-src][hidden] { display: none !important; }

.consent-map__placeholder {
    min-height: clamp(330px, 42vw, 455px);
    gap: .85rem;
}

.consent-map__placeholder > i { color: var(--edm-blue); font-size: 2rem; }
.consent-map__placeholder p { max-width: 34rem; margin: 0 auto; line-height: 1.55; }
.consent-map__placeholder .btn-default { width: auto; min-width: 180px; margin: 0 auto; padding: 0 1.25rem; }

.submission-success { min-height: 100vh; display: grid; place-content: center; padding: 2rem; background: #f5f7fb; }

.contact-page-content {
    padding-top: clamp(3.25rem, 7vw, 6rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.contact-map-card {
    overflow: hidden;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    background: #fff;
    border: 1px solid rgba(19, 94, 158, 0.14);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(23, 45, 70, 0.12);
}

.contact-map-card__header {
    display: flex;
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2.25rem);
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.contact-map-card__eyebrow,
.contact-panel__eyebrow {
    margin: 0 0 .3rem;
    color: var(--edm-orange);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.contact-map-card__header h2,
.contact-panel h2 {
    margin: 0;
    color: var(--edm-text);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
}

.contact-map-card__header p:last-child {
    margin: .35rem 0 0;
    color: #596471;
}

.contact-map-card__header > a {
    display: inline-flex;
    min-height: 44px;
    padding: .65rem 1.1rem;
    flex: 0 0 auto;
    align-items: center;
    gap: .4rem;
    color: #fff;
    font-weight: 700;
    background: var(--edm-blue);
    border-radius: 999px;
}

.contact-map-card__header > a:hover,
.contact-map-card__header > a:focus-visible {
    color: #fff;
    background: #0b4d87;
}

.mdp-map .contact-map-card__map {
    display: block;
    width: 100%;
    height: clamp(330px, 42vw, 455px);
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
}

.mdp-contact > .row {
    align-items: stretch;
}

.mdp-contact > .row > [class*="col-"] {
    display: flex;
}

.contact-panel {
    width: 100%;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(19, 94, 158, .12);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(23, 45, 70, .07);
}

.contact-panel__intro {
    margin: .7rem 0 1.5rem;
    color: #596471;
    line-height: 1.65;
}

.mdp-contact .contact-panel form .form-group label {
    display: block;
    margin-bottom: .5rem;
    color: #20242a;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.35;
}

.mdp-contact .contact-panel form .form-group input,
.mdp-contact .contact-panel form .form-group textarea {
    min-height: 48px;
    color: #20242a;
    background: #fff;
    border: 1px solid #cfd8e3;
}

.mdp-contact .contact-panel form .form-group textarea {
    min-height: 125px;
    line-height: 1.55;
}

.mdp-contact .contact-panel form .form-group input:hover,
.mdp-contact .contact-panel form .form-group textarea:hover {
    border-color: #9eb2c7;
}

.contact-form__privacy {
    max-width: 32rem;
    margin: 1rem 0 0 auto;
    color: #596471;
    font-size: .82rem;
    line-height: 1.55;
}

.contact-form__privacy a,
.newsletter-form__privacy a {
    color: #084f8c;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-panel--details ul {
    margin-top: 1.65rem;
}

.mdp-contact .contact-panel--details ul li {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(19, 94, 158, .1);
}

.mdp-contact .contact-panel--details ul li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mdp-contact .contact-panel--details .dd-cont {
    min-width: 0;
    width: calc(100% - 64px);
}

.mdp-contact .contact-panel--details .dd-cont a,
.mdp-contact .contact-panel--details .dd-cont span {
    color: #4f5c69;
    font-size: .88rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.mdp-contact .contact-panel--details .dd-cont a:hover {
    color: var(--edm-blue);
    text-decoration: underline;
}

.mdp-contact .contact-panel--details .contact-email-link span {
    display: block;
}

.contact-detail-icon {
    display: grid;
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    place-items: center;
    color: var(--edm-orange);
    font-size: 1.35rem;
    background: #fff4e9;
    border: 1px solid rgba(243, 115, 53, .2);
    border-radius: 50%;
}

.newsletter-section .newsletter-sec .newsletter-form .form-group label {
    display: block;
    margin-bottom: .45rem;
    color: #20242a;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.35;
}

.newsletter-section .newsletter-sec .newsletter-form .form-group input,
.newsletter-section .newsletter-sec .newsletter-form .form-group select,
.newsletter-section .newsletter-sec .newsletter-form .form-group textarea {
    color: #20242a;
    font-style: normal;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(32, 36, 42, .12);
}

.newsletter-section .newsletter-sec .newsletter-form .form-group input,
.newsletter-section .newsletter-sec .newsletter-form .form-group select {
    height: 46px;
    line-height: 46px;
}

.newsletter-section .newsletter-sec .newsletter-form .form-group textarea {
    min-height: 84px;
    line-height: 1.5;
}

.newsletter-section .newsletter-sec .newsletter-form .form-group.select-tg::before {
    top: auto;
    bottom: 15px;
    transform: none;
}

.newsletter-form__required {
    margin: 0 0 .65rem;
    color: #31363d;
    font-size: .8rem;
    font-weight: 600;
}

.newsletter-form__privacy {
    display: block;
    max-width: 29rem;
    margin: .75rem 0 0;
    color: #31363d;
    font-size: .76rem;
    line-height: 1.45;
    vertical-align: middle;
}

.legal-page {
    padding: clamp(3rem, 7vw, 6.25rem) 0 clamp(4rem, 8vw, 7rem);
    background:
        radial-gradient(circle at 5% 8%, rgba(243, 115, 53, .09), transparent 19rem),
        radial-gradient(circle at 96% 22%, rgba(19, 94, 158, .09), transparent 22rem),
        #f7fafc;
}

.legal-pager-section .pager-content > h1 {
    text-transform: none;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3.25rem);
}

.legal-toc {
    position: sticky;
    top: 1.5rem;
    padding: 1.4rem;
    background: rgba(255, 255, 255, .93);
    border: 1px solid rgba(19, 94, 158, .13);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(23, 45, 70, .08);
}

.legal-toc__eyebrow,
.legal-document__updated {
    margin: 0 0 .35rem;
    color: var(--edm-orange);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-toc h2 {
    margin: 0 0 1rem;
    color: var(--edm-text);
    font-size: 1.25rem;
    font-weight: 700;
}

.legal-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-toc ol a {
    display: flex;
    min-height: 42px;
    padding: .58rem .35rem;
    align-items: flex-start;
    gap: .7rem;
    color: #45515e;
    font-size: .87rem;
    font-weight: 600;
    line-height: 1.4;
    border-bottom: 1px solid #e8eef3;
}

.legal-toc ol a span {
    flex: 0 0 1.6rem;
    color: var(--edm-blue);
    font-size: .75rem;
    font-weight: 800;
}

.legal-toc ol a:hover,
.legal-toc ol a:focus-visible {
    color: var(--edm-blue);
}

.legal-toc__related {
    display: flex;
    margin-top: 1.2rem;
    flex-wrap: wrap;
    gap: .45rem;
}

.legal-toc__related p {
    width: 100%;
    margin: 0 0 .15rem;
    color: #596471;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.legal-toc__related a {
    padding: .4rem .65rem;
    color: var(--edm-blue);
    font-size: .8rem;
    font-weight: 700;
    background: #edf5fc;
    border-radius: 999px;
}

.legal-document {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(19, 94, 158, .12);
    border-radius: 22px;
    box-shadow: 0 18px 55px rgba(23, 45, 70, .09);
}

.legal-document__header {
    padding: clamp(1.75rem, 5vw, 3.25rem);
    background: linear-gradient(135deg, rgba(255, 245, 234, .92), rgba(237, 246, 253, .92));
    border-bottom: 1px solid #e5edf4;
}

.legal-document__lead {
    max-width: 48rem;
    margin: .65rem 0 0;
    color: #28333e;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 500;
    line-height: 1.7;
}

.legal-section {
    padding: clamp(1.75rem, 5vw, 3.25rem);
    scroll-margin-top: 1.5rem;
}

.legal-section + .legal-section {
    border-top: 1px solid #e8eef3;
}

.legal-section__heading {
    display: flex;
    margin-bottom: 1.25rem;
    align-items: baseline;
    gap: .9rem;
}

.legal-section__heading > span {
    color: var(--edm-orange);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.legal-section h2 {
    margin: 0;
    color: var(--edm-text);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    line-height: 1.3;
}

.legal-section > p,
.legal-list {
    max-width: 52rem;
    color: #4c5966;
    line-height: 1.78;
}

.legal-section > p {
    margin: 0 0 1rem;
}

.legal-list {
    margin: .5rem 0 0;
    padding: 0;
    list-style: none;
}

.legal-list li {
    position: relative;
    margin-bottom: .75rem;
    padding-left: 1.55rem;
}

.legal-list li::before {
    content: "";
    position: absolute;
    top: .68rem;
    left: 0;
    width: .55rem;
    height: .55rem;
    background: var(--edm-orange);
    border: 3px solid #fff0e7;
    border-radius: 50%;
    box-sizing: content-box;
}

.legal-facts {
    display: grid;
    margin: 1.35rem 0 0;
    gap: .65rem;
}

.legal-facts > div {
    display: grid;
    padding: .9rem 1rem;
    grid-template-columns: minmax(150px, 32%) minmax(0, 1fr);
    gap: 1rem;
    background: #f7fafc;
    border: 1px solid #e4ebf1;
    border-radius: 11px;
}

#tecnologias-propias .legal-facts > div {
    grid-template-columns: minmax(300px, 45%) minmax(0, 1fr);
}

#tecnologias-propias .legal-facts dt {
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: .9rem;
}

.legal-facts dt {
    min-width: 0;
    color: #27333f;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.legal-facts dd {
    margin: 0;
    color: #53606d;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.legal-email {
    color: var(--edm-blue);
    font-weight: 600;
    overflow-wrap: normal;
    word-break: normal;
}

.legal-email:hover {
    color: #0b4d87;
    text-decoration: underline;
}

.legal-links {
    display: flex;
    margin-top: 1.25rem;
    flex-wrap: wrap;
    gap: .65rem;
}

.legal-links a {
    display: inline-flex;
    min-height: 42px;
    padding: .55rem .9rem;
    align-items: center;
    gap: .45rem;
    color: var(--edm-blue);
    font-size: .86rem;
    font-weight: 700;
    background: #edf5fc;
    border: 1px solid #d6e7f5;
    border-radius: 999px;
}

.legal-links a:hover {
    color: #fff;
    background: var(--edm-blue);
}

.legal-notice {
    margin-top: 1.4rem;
    padding: 1rem 1.15rem;
    color: #5d4317;
    background: #fff8e7;
    border: 1px solid #f3d99b;
    border-left: 4px solid #e5a51a;
    border-radius: 10px;
}

.legal-notice strong {
    display: block;
    margin-bottom: .3rem;
    color: #52380d;
}

.legal-notice p {
    margin: 0;
    line-height: 1.6;
}

.legal-preferences {
    margin-top: 1.35rem;
}

.legal-preferences .btn-default {
    width: auto;
    min-height: 46px;
    padding: 0 1.35rem;
}

.site-footer--simple .top-footer { padding-bottom: 38px; }
.site-footer--simple .widget-about > img { margin-bottom: 16px; }
.site-footer--simple .widget-about p { color: #2b2b2b; font-weight: 500; }
.site-footer--simple .footer-interest-links { columns: 1; }
.site-footer--simple .footer-interest-links li { break-inside: avoid; }
.site-footer--simple .footer-interest-links a { color: #2b2b2b; }
.site-footer--simple .footer-interest-links a:hover { color: var(--edm-blue); }
.site-footer--simple .footer-accreditation {
    width: min(680px, 100%);
    margin: 0 auto 3rem;
}
.site-footer--simple .footer-accreditation a,
.site-footer--simple .footer-accreditation img { display: block; width: 100%; }
.site-footer--simple .footer-accreditation img { height: auto; }
.site-footer--simple .footer-map-panel {
    overflow: hidden;
    padding: 0;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(19, 94, 158, 0.12);
    border-radius: 14px;
}
.site-footer--simple .footer-map-panel__map {
    display: block;
    width: 100%;
    height: 160px;
    border: 0;
}
.site-footer--simple .footer-map-panel__consent {
    min-height: 160px;
    gap: .35rem;
    color: #2b2b2b;
}
.site-footer--simple .footer-map-panel__consent > i { color: var(--edm-blue); font-size: 1.4rem; }
.site-footer--simple .footer-map-panel__consent .footer-map-panel__button { margin: .25rem auto 0; border: 0; cursor: pointer; font: inherit; }
.site-footer--simple .footer-map-panel__details { padding: 1rem 1.1rem 1.1rem; }
.site-footer--simple .footer-map-panel .widget-title { margin-bottom: .25rem; }
.site-footer--simple .footer-map-panel p { margin: 0 0 .4rem; color: #2b2b2b; }
.site-footer--simple .footer-map-panel__button {
    display: inline-flex;
    min-height: 44px;
    margin-top: .5rem;
    padding: .65rem 1rem;
    align-items: center;
    gap: .55rem;
    color: #fff;
    font-weight: 700;
    background: var(--edm-blue);
    border-radius: 999px;
}
.site-footer--simple .footer-map-panel__button:hover { color: #fff; background: #0b4d87; }
.site-footer--simple .footer-policy-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0; }
.site-footer--simple .footer-policy-links li { margin: 0; }
.site-footer--simple .footer-policy-links a { color: #135e9e; text-decoration: underline; text-underline-offset: 2px; }
.site-footer--simple .bottom-footer p { color: #575757; }
.site-footer--simple .footer-bottom-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; }
.site-footer--simple .footer-bottom-actions .social-links { flex: 0 0 auto; }

@media (min-width: 768px) {
    .site-footer--simple .widget-contact .contact-tt a { white-space: nowrap; }
}

/* El recurso anterior del encabezado ya estaba achatado. La versión original
   conserva su proporción y estos límites evitan que agrande el encabezado. */
header .header-content .logo > a {
    display: inline-flex;
    align-items: center;
}
header .header-content .logo > a img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1200px) {
    .main-banner .banner-text > h1 { font-size: 54px; line-height: 72px; }
    .pager-section .pager-content > h1 { font-size: 40px; line-height: 52px; }
}

@media (max-width: 991px) {
    header .header-content .logo { flex: 0 0 calc(100% - 64px); max-width: calc(100% - 64px); }
    header .header-content .logo > a img { width: 165px; }
    .main-banner .banner-text > h1 { font-size: 44px; line-height: 58px; }
    .pager-section .pager-content > h1 { font-size: 44px; }
    .site-footer--simple .footer-accreditation { margin-bottom: 2.25rem; }
    .site-footer--simple .footer-main-grid > [class*="col-"] { margin-bottom: 2rem; }
    .site-footer--simple .footer-main-grid > [class*="col-"]:last-child { margin-bottom: 0; }
    .site-footer--simple .top-footer .widget { margin-bottom: 0; }
    .site-footer--simple .top-footer .row { margin-bottom: 0; }
    .site-footer--simple .footer-bottom-actions { margin-top: 1rem; justify-content: space-between; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
    .legal-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
    .newsletter-form__privacy { display: block; margin-left: 0; }
}

@media (max-width: 768px) {
    .pager-section .pager-content > h1 { font-size: 30px; line-height: 42px; }
    .video-player-modal { padding: 1rem; }
    .video-player-modal__dialog { max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); border-radius: 12px; }
    .contact-map-card__header { align-items: flex-start; flex-direction: column; }
    .mdp-contact > .row > [class*="col-"] + [class*="col-"] { margin-top: 1.25rem; }
    .mdp-contact .contact-panel form .form-submit { text-align: left; }
    .contact-form__privacy { margin-right: 0; margin-left: 0; }
    .mdp-contact .contact-panel--details { text-align: left; }
    .mdp-contact .contact-panel--details .icon-v { width: 49px; margin-bottom: 0; }
    .mdp-contact .contact-panel--details .dd-cont { width: calc(100% - 64px); padding-left: 15px; }
    .legal-toc ol { grid-template-columns: 1fr; }
    #tecnologias-propias .legal-facts > div { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    header .header-content { padding: 14px 0; }
    header .header-content .logo > a img { width: 145px; }
    .pager-section .pager-content > h1 { font-size: 34px; }
    .main-banner .results { max-width: 400px; margin-right: auto; margin-left: auto; text-align: left; }
    .video-gallery { padding-top: 1.35rem; }
    .video-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .video-filters { align-items: stretch; }
    .video-filters__search { min-width: 100%; }
    .video-filters__search button { min-width: 48px; padding: 0 .9rem; }
    .video-filters__search button span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .video-filters__year { flex: 1 1 auto; }
    .video-filters__year select { width: 100%; }
    .video-player-modal { padding: 0; align-items: center; }
    .video-player-modal__dialog { width: 100%; max-height: 100vh; max-height: 100dvh; border-right: 0; border-left: 0; border-radius: 0; }
    .video-player-modal__header { min-height: 66px; padding-left: 1rem; }
    .video-player-modal__header h2 { max-width: calc(100vw - 92px); }
    .site-footer--simple .footer-interest-links { columns: 1; }
    .site-footer--simple .footer-policy-links { justify-content: center; }
    .site-footer--simple .footer-bottom-actions { flex-direction: column; justify-content: center; gap: .8rem; }
    .site-footer--simple .footer-map-panel { text-align: left; }
    .contact-map-card__header > a { width: 100%; justify-content: center; }
    .mdp-map .contact-map-card__map { height: 310px; }
    .contact-panel { padding: 1.35rem 1.1rem; }
    .legal-page { padding-top: 2.5rem; }
    .legal-document,
    .legal-toc { border-radius: 15px; }
    .legal-section__heading { align-items: flex-start; }
    .legal-facts > div { grid-template-columns: 1fr; gap: .25rem; }
    .legal-links { align-items: stretch; flex-direction: column; }
    .legal-links a { justify-content: space-between; border-radius: 10px; }
    .legal-preferences .btn-default { width: 100%; height: auto; min-height: 48px; padding: .65rem 1rem; line-height: 1.35; }
}

@media (max-width: 480px) {
    .main-banner .banner-text > h1 { padding-right: 0; font-size: 30px; line-height: 44px; margin-bottom: 20px; }
    .pager-section .pager-content > h1 { font-size: 23px; }
}
