/* Ajustes de presentación del tema piloto. El contenido sigue siendo nativo de Elementor. */
.ers-contact-form {
    color: #26323d;
    font-family: Arial, sans-serif;
}

/* v1.6.1 final cascade: these rules deliberately follow the legacy pilot
   styles so that the current Elementor output receives the approved finish. */
body .ers-history-panel {
    background-image: linear-gradient(90deg, rgba(4, 24, 42, .82), rgba(4, 24, 42, .45)), url('https://ersconsultores.es/wp-content/uploads/2026/09/ers-office-trajectory-v1.png') !important;
    background-position: center !important;
    background-size: cover !important;
    position: relative;
}
body .ers-history-panel::after {
    color: #1b5b91;
    content: 'E&RS';
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(110px, 19vw, 250px);
    font-weight: 500;
    letter-spacing: -.09em;
    line-height: 1;
    opacity: .20;
    pointer-events: none;
    position: absolute;
    right: -10px;
    top: -26px;
}
body .ers-history-panel > .e-con-inner,
body .ers-history-panel > .elementor-element { position: relative; z-index: 1; }

body .ers-hero::after {
    background: repeating-radial-gradient(circle at 100% 0%, transparent 0 100px, rgba(201, 228, 245, .48) 101px 102px, transparent 103px 180px) !important;
    opacity: .9;
}
@media (prefers-reduced-motion: no-preference) {
    body .ers-hero { animation-duration: 7s !important; }
    body .ers-hero::after { animation-duration: 10s !important; }
}
body .ers-hero .elementor-button { font-size: 12px !important; min-width: 160px; padding: 10px 19px !important; }

body .ers-intro-editorial::after {
    background: linear-gradient(90deg, #1b5b91 0 50%, #ffffff 50% 100%);
    content: '';
    height: 1px;
    left: 24%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    width: 56%;
    z-index: 3;
}

body .ers-approach-accordion .elementor-accordion { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
body .ers-approach-accordion .elementor-accordion-item { border: 0 !important; min-width: 0; }
body .ers-approach-accordion .elementor-tab-title { align-items: center; background: transparent !important; border: 0 !important; display: flex; gap: 8px; padding: 10px 0 !important; }
body .ers-approach-accordion .elementor-accordion-item:nth-child(1) .elementor-tab-title::before { content: 'A'; }
body .ers-approach-accordion .elementor-accordion-item:nth-child(2) .elementor-tab-title::before { content: 'B'; }
body .ers-approach-accordion .elementor-accordion-item:nth-child(3) .elementor-tab-title::before { content: 'C'; }
body .ers-approach-accordion .elementor-accordion-item:nth-child(4) .elementor-tab-title::before { content: 'D'; }
body .ers-approach-accordion .elementor-tab-title::before { align-items: center; background: #1b5b91; border-radius: 999px; color: #fff; display: inline-flex; font-family: Arial, sans-serif; font-size: 11px; font-weight: 500; height: 25px; justify-content: center; letter-spacing: 0; min-width: 25px; }
body .ers-approach-accordion .elementor-tab-title a { font-size: 12px !important; }
body .ers-approach-accordion .elementor-tab-content { border: 0 !important; padding: 8px 0 16px !important; }

body .ers-footer-brand .elementor-widget-image { background: transparent !important; max-width: 150px; padding: 0 !important; }
body .ers-footer-brand .elementor-widget-image img { filter: brightness(0) invert(1) grayscale(1) contrast(1.4); }
body .ers-footer-disclosure { color: #d6e4ee; }
body .ers-footer-disclosure summary { color: #fff; cursor: pointer; font-family: Arial, sans-serif; font-size: 16px; font-weight: 500; list-style: none; }
body .ers-footer-disclosure summary::-webkit-details-marker { display: none; }
body .ers-footer-disclosure summary::after { content: '+'; margin-left: 8px; }
body .ers-footer-disclosure[open] summary::after { content: '−'; }
body .ers-footer-disclosure p { margin: 10px 0 0; }
body .ers-footer-contact-reveal .ers-footer-heading { font-size: 16px; margin: 0; }
body .ers-footer-address { max-height: 0; margin: 0; opacity: 0; overflow: hidden; transition: max-height .22s ease, margin .22s ease, opacity .22s ease; }
body .ers-footer-contact-reveal:hover .ers-footer-address, body .ers-footer-contact-reveal:focus-within .ers-footer-address { max-height: 100px; margin: 10px 0; opacity: 1; }
body .ers-footer-linkedin { margin: 12px 0 0; }
body .ers-powered-credit { align-items: center; display: flex; gap: 9px; position: relative; }
body .ers-powered-logo { display: inline-grid; height: 28px; perspective: 180px; position: relative; transform-style: preserve-3d; width: 28px; }
body .ers-powered-logo-face { backface-visibility: hidden; inset: 0; position: absolute; transition: transform .5s ease; }
body .ers-powered-logo-face img { display: block; height: 100%; object-fit: contain; width: 100%; }
body .ers-powered-logo-santa { transform: rotateY(180deg); }
body .ers-powered-logo:hover .ers-powered-logo-zeta, body .ers-powered-logo:focus .ers-powered-logo-zeta { transform: rotateY(180deg); }
body .ers-powered-logo:hover .ers-powered-logo-santa, body .ers-powered-logo:focus .ers-powered-logo-santa { transform: rotateY(360deg); }
body .ers-powered-text { color: #405466; font-family: Arial, sans-serif; font-size: 8px; font-weight: 500; letter-spacing: .13em; line-height: 1; text-decoration: none; }
body .ers-powered-santa-copy { bottom: -15px; color: #405466; font-family: Arial, sans-serif; font-size: 8px; left: 0; line-height: 1.1; opacity: 0; pointer-events: none; position: absolute; transition: opacity .2s ease; white-space: nowrap; }
body .ers-powered-credit:has(.ers-powered-logo:hover) .ers-powered-santa-copy, body .ers-powered-credit:focus-within .ers-powered-santa-copy { opacity: 1; }
body .ers-powered-copy-wrap { display: inline-flex; flex-direction: column; gap: 3px; position: relative; }
body .ers-powered-copy-wrap .ers-powered-santa-copy { bottom: auto; left: auto; position: static; }

@media (max-width: 767px) {
    body .ers-hero .elementor-button { min-width: 0; width: 100%; }
    body .ers-intro-editorial::after { left: 20px; top: 53%; width: calc(100% - 40px); }
    body .ers-approach-accordion .elementor-accordion { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body .ers-approach-accordion .elementor-tab-title { gap: 5px; }
    body .ers-approach-accordion .elementor-tab-title a { font-size: 10px !important; }
}

/* Keep the background photograph clean: no blue monogram is superimposed. */
body .ers-history-panel::after { content: none !important; }

/* v2.0 — photographic editorial system: monochrome scenes with restrained
   E&RS blue accents, plus a livelier shared quarter-arc motion language. */
body .ers-hero,
body .ers-inner-hero { background-position: center center !important; }
body .ers-hero::after,
body .ers-inner-hero::after {
    border-color: rgba(218, 240, 252, .50) !important;
    box-shadow: 0 0 0 86px rgba(188, 224, 244, .13), 0 0 0 172px rgba(188, 224, 244, .075), 0 0 0 258px rgba(188, 224, 244, .035) !important;
}
@media (prefers-reduced-motion: no-preference) {
    body .ers-hero { animation: ers-hero-drift 7.5s ease-in-out infinite alternate !important; background-size: 110% auto !important; }
    body .ers-hero::after,
    body .ers-inner-hero::after { animation: ers-quarter-arc 9s cubic-bezier(.45,0,.25,1) infinite alternate !important; }
    body .ers-inner-hero { animation-duration: 8.5s !important; background-size: 112% auto !important; }
}

/* Compact footer: clear information hierarchy without the former large blue block. */
body .ers-powered-by { order: -1 !important; margin-bottom: 12px !important; }
body .ers-powered-by .ers-powered-credit { justify-content: center; }
body #global-footer,
body .global-footer,
body .ers-global-footer { padding-bottom: 24px !important; padding-top: 34px !important; }
body .ers-footer-brand .elementor-widget-image { max-width: 128px !important; }
body .ers-footer-menu-column .ers-footer-site-menu li { margin-bottom: 5px !important; }
body .ers-footer-menu-column .ers-footer-site-menu a,
body .ers-footer-disclosure summary,
body .ers-footer-contact-reveal .ers-footer-heading { font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase; }
body .ers-footer-linkedin { margin-top: 8px !important; }
body .ers-footer-copy { margin-top: 14px !important; }
@media (max-width: 767px) {
    body .ers-footer-brand { margin-bottom: 8px; }
    body .ers-footer-menu-column { display: none; }
    body .ers-powered-by { margin-bottom: 16px !important; }
}

/* v1.8 — compact editorial panels and four-column footer. */
body .ers-intro-editorial { padding-bottom: 44px !important; padding-top: 44px !important; }
body .ers-approach-panel { padding-bottom: 48px !important; padding-top: 48px !important; }
body .ers-approach-panel .ers-approach-steps { margin-top: 0 !important; }

body .ers-closing-cta .ers-quick-consultation { margin-left: auto; margin-right: auto; }
body .ers-closing-cta .ers-quick-consultation label { color: #1b5b91; }
body .ers-closing-cta .ers-quick-consultation select { border-color: #9aabb8; }
body .ers-closing-cta .ers-quick-consultation button { border-color: #1b5b91; color: #1b5b91; }
body .ers-closing-cta .ers-quick-consultation button:hover,
body .ers-closing-cta .ers-quick-consultation button:focus-visible { background: #1b5b91; color: #fff; }

body .ers-footer-menu-row { display: none !important; }
body .ers-footer-menu-column .ers-footer-site-menu ul { column-count: 1 !important; }
body .ers-footer-menu-column .ers-footer-site-menu li { margin-bottom: 9px; }
body .ers-footer-menu-column .ers-footer-site-menu a { font-size: 12px; }
body .ers-footer-brand { justify-content: flex-start !important; }

/* Interior banners inherit the calm movement of the homepage without moving
   text or controls. */
@media (prefers-reduced-motion: no-preference) {
    body .ers-inner-hero { animation: ers-hero-drift 11s ease-in-out infinite alternate; background-size: 108% auto !important; }
    body .ers-inner-hero::after { animation: ers-quarter-arc 15s ease-in-out infinite alternate; }
}
body .ers-hero-disclosure { border-top: 1px solid rgba(201,228,245,.62); max-width: 760px; padding-top: 13px; }
body .ers-hero-disclosure summary { color: #e8f1f7; cursor: pointer; font: 400 20px/1.45 Arial, sans-serif; list-style: none; }
body .ers-hero-disclosure summary::-webkit-details-marker { display: none; }
body .ers-hero-disclosure summary::after { color: #a9d4f2; content: '+'; float: right; font-size: 27px; line-height: .8; }
body .ers-hero-disclosure[open] summary::after { content: '−'; }
body .ers-hero-disclosure p { color: #e8f1f7; font: 17px/1.65 Arial, sans-serif; margin: 18px 0 0; }
body .ers-inline-disclosure { border-top: 1px solid #aebfcb; margin-top: 22px; padding-top: 12px; }
body .ers-inline-disclosure summary { color: #1b5b91; cursor: pointer; font: 500 12px Arial, sans-serif; letter-spacing: .10em; list-style: none; text-transform: uppercase; }
body .ers-inline-disclosure summary::after { content: ' +'; }
body .ers-inline-disclosure[open] summary::after { content: ' −'; }
body .ers-mail-icon { align-items: center; border: 1px solid #1b5b91; border-radius: 50%; color: #1b5b91 !important; display: inline-flex; font-size: 21px; height: 44px; justify-content: center; text-decoration: none !important; width: 44px; }

@media (max-width: 767px) {
    body .ers-intro-editorial { padding-bottom: 32px !important; padding-top: 32px !important; }
    body .ers-approach-panel { padding-bottom: 32px !important; padding-top: 32px !important; }
}

.ers-form-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ers-contact-form label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ers-contact-form input[type="text"],
.ers-contact-form input[type="email"],
.ers-contact-form input[type="tel"],
.ers-contact-form select,
.ers-contact-form textarea {
    background: #fff;
    border: 1px solid #9aabb8;
    border-radius: 4px;
    box-sizing: border-box;
    color: #26323d;
    font: inherit;
    padding: 12px 14px;
    width: 100%;
}

.ers-contact-form input:focus,
.ers-contact-form select:focus,
.ers-contact-form textarea:focus {
    border-color: #1b5b91;
    box-shadow: 0 0 0 3px rgba(27, 91, 145, .18);
    outline: 0;
}

.ers-privacy-check label {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

.ers-privacy-check input {
    margin-right: 8px;
}

.ers-form-note {
    color: #52606c;
    font-size: 14px;
    line-height: 1.55;
}

.ers-contact-form button.ers-submit {
    background: #1b5b91 !important;
    border: 1px solid #1b5b91 !important;
    border-radius: 2px;
    color: #fff !important;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700 !important;
    padding: 14px 24px !important;
}

.ers-contact-form button.ers-submit:hover,
.ers-contact-form button.ers-submit:focus {
    background: #0b2b4b !important;
    border-color: #0b2b4b !important;
}

a[href^="mailto:"] {
    overflow-wrap: anywhere;
}

main a:not(.elementor-button) {
    color: #1b5b91 !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ers-form-message {
    border-radius: 4px;
    margin-bottom: 24px;
    padding: 14px 18px;
}

.ers-form-success {
    background: #e8f5ea;
    border: 1px solid #70a97a;
}

.ers-form-error {
    background: #fff0f0;
    border: 1px solid #b95d5d;
}

.ers-honeypot {
    left: -10000px;
    position: absolute;
}

.ers-site-image img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
    transition: transform 900ms cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .ers-site-image {
        overflow: hidden;
    }

    .ers-site-image:hover img,
    .ers-site-image:focus-within img {
        transform: scale(1.025);
    }
}

/* Editorial hierarchy for headings and labels, relying on a system font so
   the site remains fast and does not request third-party font files. */
main .elementor-widget-heading .elementor-heading-title {
    font-family: Georgia, "Times New Roman", serif !important;
    letter-spacing: -.015em;
    font-weight: 500 !important;
}

main .elementor-widget-button .elementor-button {
    border-radius: 2px !important;
    font-family: Arial, sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: .11em;
    text-transform: uppercase;
}

main .elementor-widget-button .elementor-button:hover,
main .elementor-widget-button .elementor-button:focus-visible {
    transform: translateY(-1px);
}

.ers-footer-brand-title,
.ers-footer-heading {
    color: #fff;
    font-family: Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 14px;
}

.ers-footer-brand-title {
    font-size: 28px;
}

.ers-footer-heading {
    font-size: 21px;
}

@media (min-width: 768px) {
    .elementor-element-6a29a961 {
        --container-widget-flex-grow: 0;
        --container-widget-width: 235px;
        flex: 0 0 235px !important;
        width: 235px !important;
    }

    .elementor-element-6a29a961 img {
        height: auto;
        width: 235px !important;
    }

    .elementor-element-bcbf1e12 .menu-item a.hfe-menu-item {
        padding-left: 14px;
        padding-right: 14px;
    }

}

.elementor-element-bcbf1e12 a.hfe-menu-item {
    color: #46515b !important;
    letter-spacing: .1em;
    font-size: 14px;
    font-weight: 400 !important;
    text-transform: uppercase;
    transition: color 180ms ease, border-color 180ms ease;
}

.elementor-element-bcbf1e12 a.hfe-menu-item:hover,
.elementor-element-bcbf1e12 a.hfe-menu-item:focus,
.elementor-element-bcbf1e12 .current-menu-item > a.hfe-menu-item,
.elementor-element-bcbf1e12 .current_page_item > a.hfe-menu-item {
    color: #1b5b91 !important;
}

.elementor-element-bcbf1e12 a.hfe-menu-item:focus-visible {
    outline: 2px solid #0b2b4b;
    outline-offset: 2px;
}

.elementor-element-bcbf1e12 .hfe-nav-menu .menu-item a.hfe-menu-item::after {
    height: 1px !important;
}

/* The final menu item is visually independent: it identifies the current
   language and opens the two alternatives without competing with navigation. */
.elementor-element-bcbf1e12 .ers-language-control {
    border-left: 1px solid #d9e3eb;
    margin-left: 42px;
    padding-left: 18px !important;
}

.elementor-element-bcbf1e12 .ers-language-control > .hfe-has-submenu-container > a.hfe-menu-item {
    align-items: center;
    background: #f3f6f8;
    border-radius: 2px;
    color: #1b5b91 !important;
    display: inline-flex;
    font-size: 12px;
    font-weight: 400 !important;
    letter-spacing: .08em;
    padding: 8px 10px !important;
}

.ers-service-card {
    overflow: hidden;
    position: relative;
}

.ers-service-card .ers-card-number {
    left: 20px;
    opacity: .5;
    pointer-events: none;
    position: absolute;
    top: -10px;
    z-index: 0;
}

.ers-service-card .ers-card-number > .e-con-inner,
.ers-service-card .ers-card-number > .elementor-element {
    margin: 0 !important;
    padding: 0 !important;
}

.ers-service-card .ers-card-number .elementor-heading-title {
    color: #1b5b91 !important;
    font-family: Arial, sans-serif !important;
    font-size: clamp(74px, 8vw, 108px) !important;
    font-weight: 700 !important;
    letter-spacing: -.08em;
    line-height: .9;
}

.ers-service-card .ers-card-title,
.ers-service-card .elementor-widget-text-editor,
.ers-service-card .elementor-widget-button {
    position: relative;
    z-index: 1;
}

.ers-service-card .ers-card-title {
    margin-left: 42px;
    margin-top: 32px;
}

.ers-approach-accordion {
    border-left: 0;
    padding: 0;
}

.ers-approach-accordion .elementor-tab-title {
    background: #f3f6f8 !important;
    margin-bottom: 6px;
}

.ers-approach-accordion .elementor-tab-title,
.ers-approach-accordion .elementor-tab-title a {
    text-decoration: none !important;
}

.ers-approach-accordion .elementor-tab-content {
    border-color: #d9e3eb !important;
    line-height: 1.65;
}

.ers-indicator-band .elementor-widget-text-editor p {
    margin: 0;
}

.ers-indicator-band .elementor-widget-text-editor strong {
    color: #1b5b91;
    font-size: 16px;
}

.ers-closing-cta {
    margin-bottom: 88px;
    margin-top: 88px;
    overflow: hidden;
    position: relative;
}

.ers-closing-cta::before {
    color: #1b5b91;
    content: 'E&RS' !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(130px, 20vw, 250px);
    font-weight: 500;
    letter-spacing: -.09em;
    line-height: 1;
    opacity: .045 !important;
    pointer-events: none;
    position: absolute;
    right: -12px;
    top: -30px;
}

.ers-approach-top {
    align-items: flex-start;
}

.ers-approach-steps {
    margin-left: auto !important;
}

.ers-closing-cta > .e-con-inner,
.ers-closing-cta > .elementor-element {
    position: relative;
    z-index: 1;
}

.ers-powered-by .elementor-widget-text-editor p {
    margin: 0 !important;
}

.ers-powered-by .elementor-widget-text-editor,
.ers-powered-by .elementor-widget-image {
    align-items: center;
    display: flex;
}

.ers-powered-by .elementor-widget-text-editor a {
    display: block;
    line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .ers-hero {
        animation: ers-hero-drift 10s ease-in-out infinite alternate !important;
        background-size: 108% auto !important;
    }

    .ers-hero::after {
        animation: ers-hero-light 9s ease-in-out infinite alternate;
    }
}

@keyframes ers-hero-drift {
    from { background-position: 50% 50%; }
    to { background-position: 60% 44%; }
}

/* A quiet moving highlight makes the photography feel alive without moving
   controls or text. It is disabled for visitors who request reduced motion. */
.ers-hero {
    overflow: hidden;
    position: relative;
}

.ers-hero::after {
    background: linear-gradient(108deg, transparent 30%, rgba(196, 220, 237, .14) 50%, transparent 70%);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(-22%);
    z-index: 0;
}

.ers-hero > .e-con-inner,
.ers-hero > .elementor-element {
    position: relative;
    z-index: 1;
}

@keyframes ers-hero-light {
    from { transform: translateX(-22%); }
    to { transform: translateX(22%); }
}

/* Keep the desktop navigation on one line. The normal Contact menu item
   replaces the separate CTA; the header container has a fixed maximum width. */
@media (min-width: 1025px) {
    .elementor-element-bcbf1e12 .menu-item a.hfe-menu-item {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .elementor-element-bcbf1e12 .hfe-nav-menu {
        flex-wrap: nowrap !important;
    }
}

/* Version 1.0.13 — photographic specialist band, precise editorial cards and
   a restrained motion cue derived from the quarter-arc of the E&RS mark. */
.ers-services-band {
    background-image: url('https://ersconsultores.es/wp-content/uploads/2026/09/ers-precision-gears-blue.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.ers-services-band .ers-service-card {
    background: rgba(7, 29, 48, .48) !important;
    border-color: rgba(229, 240, 246, .6) !important;
    border-radius: 0 !important;
    min-height: 290px;
}

.ers-services-band .ers-card-number .elementor-heading-title {
    color: #dcecf6 !important;
    opacity: .7;
}

.ers-services-band .ers-card-title .elementor-heading-title,
.ers-services-band .ers-service-card .elementor-widget-text-editor,
.ers-services-band .ers-service-card .elementor-widget-text-editor p {
    color: #ffffff !important;
}

.ers-services-band .ers-service-card .elementor-widget-button {
    margin-top: auto;
    padding-top: 16px;
}

.ers-services-band .ers-service-card .elementor-button {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .62) !important;
    color: #ffffff !important;
    display: flex !important;
    justify-content: space-between;
    padding: 13px 0 0 !important;
    text-align: left;
    width: 100%;
}

.ers-services-band .ers-service-card .elementor-button::after {
    content: '↗';
    font-size: 17px;
    line-height: .8;
    margin-left: 16px;
}

.ers-hero::after {
    background: repeating-radial-gradient(circle at 100% 0%, transparent 0 94px, rgba(201, 228, 245, .52) 95px 96px, transparent 97px 172px) !important;
    clip-path: inset(0 0 0 50%);
    opacity: .78;
    transform: rotate(-4deg) scale(1.08);
}

@media (prefers-reduced-motion: no-preference) {
    .ers-hero::after {
        animation: ers-quarter-arc 16s ease-in-out infinite alternate !important;
    }
}

@keyframes ers-quarter-arc {
    from { transform: rotate(-4deg) scale(1.08) translate3d(0, 0, 0); }
    to { transform: rotate(1deg) scale(1.13) translate3d(1.5%, -1.5%, 0); }
}

/* On narrow screens the portrait-shaped hero needs the photograph to cover
   the full panel; otherwise its desktop ratio leaves an empty colour field. */
@media (max-width: 767px) {
    .ers-hero {
        background-position: center center !important;
        background-size: cover !important;
    }
}

/* v1.6 — calibrated homepage and compact, interactive footer. */
body .ers-hero::after {
    background: repeating-radial-gradient(circle at 100% 0%, transparent 0 100px, rgba(201, 228, 245, .48) 101px 102px, transparent 103px 180px) !important;
    opacity: .9;
}

@media (prefers-reduced-motion: no-preference) {
    body .ers-hero { animation-duration: 7s !important; }
    body .ers-hero::after { animation-duration: 10s !important; }
}

body .ers-hero .elementor-button {
    font-size: 12px !important;
    min-width: 160px;
    padding: 10px 19px !important;
}

body .ers-intro-editorial::after {
    background: linear-gradient(90deg, #1b5b91 0 50%, #ffffff 50% 100%);
    content: '';
    height: 1px;
    left: 24%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    width: 56%;
    z-index: 3;
}

body .ers-approach-accordion .elementor-accordion {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
body .ers-approach-accordion .elementor-accordion-item {
    border: 0 !important;
    min-width: 0;
}
body .ers-approach-accordion .elementor-tab-title {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    display: flex;
    gap: 8px;
    padding: 10px 0 !important;
}
body .ers-approach-accordion .elementor-accordion-item:nth-child(1) .elementor-tab-title::before { content: 'A'; }
body .ers-approach-accordion .elementor-accordion-item:nth-child(2) .elementor-tab-title::before { content: 'B'; }
body .ers-approach-accordion .elementor-accordion-item:nth-child(3) .elementor-tab-title::before { content: 'C'; }
body .ers-approach-accordion .elementor-accordion-item:nth-child(4) .elementor-tab-title::before { content: 'D'; }
body .ers-approach-accordion .elementor-tab-title::before {
    align-items: center;
    background: #1b5b91;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    height: 25px;
    justify-content: center;
    letter-spacing: 0;
    min-width: 25px;
}
body .ers-approach-accordion .elementor-tab-title a { font-size: 12px !important; }
body .ers-approach-accordion .elementor-tab-content { border: 0 !important; padding: 8px 0 16px !important; }

body .ers-history-panel {
    background-image: linear-gradient(90deg, rgba(4, 24, 42, .82), rgba(4, 24, 42, .45)), url('https://ersconsultores.es/wp-content/uploads/2026/09/ers-office-trajectory-v1.png') !important;
    background-position: center !important;
    background-size: cover !important;
}
body .ers-history-panel::after {
    color: #1b5b91;
    content: 'E&RS';
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(110px, 19vw, 250px);
    font-weight: 500;
    letter-spacing: -.09em;
    line-height: 1;
    opacity: .20;
    pointer-events: none;
    position: absolute;
    right: -10px;
    top: -26px;
}
body .ers-history-panel > .e-con-inner,
body .ers-history-panel > .elementor-element { position: relative; z-index: 1; }

body .ers-footer-brand .elementor-widget-image { max-width: 150px; }
body .ers-footer-brand .elementor-widget-image img { filter: brightness(0) invert(1) grayscale(1) contrast(1.4); }
body .ers-footer-disclosure { color: #d6e4ee; }
body .ers-footer-disclosure summary { color: #fff; cursor: pointer; font-family: Arial, sans-serif; font-size: 16px; font-weight: 500; list-style: none; }
body .ers-footer-disclosure summary::-webkit-details-marker { display: none; }
body .ers-footer-disclosure summary::after { content: '+'; margin-left: 8px; }
body .ers-footer-disclosure[open] summary::after { content: '−'; }
body .ers-footer-disclosure p { margin: 10px 0 0; }
body .ers-footer-contact-reveal .ers-footer-heading { font-size: 16px; margin: 0; }
body .ers-footer-address { max-height: 0; margin: 0; opacity: 0; overflow: hidden; transition: max-height .22s ease, margin .22s ease, opacity .22s ease; }
body .ers-footer-contact-reveal:hover .ers-footer-address,
body .ers-footer-contact-reveal:focus-within .ers-footer-address { max-height: 100px; margin: 10px 0; opacity: 1; }
body .ers-footer-linkedin { margin: 12px 0 0; }

body .ers-powered-credit { align-items: center; display: flex; gap: 9px; position: relative; }
body .ers-powered-logo { display: inline-grid; height: 28px; perspective: 180px; position: relative; transform-style: preserve-3d; width: 28px; }
body .ers-powered-logo-face { backface-visibility: hidden; inset: 0; position: absolute; transition: transform .5s ease; }
body .ers-powered-logo-face img { display: block; height: 100%; object-fit: contain; width: 100%; }
body .ers-powered-logo-santa { transform: rotateY(180deg); }
body .ers-powered-logo:hover .ers-powered-logo-zeta,
body .ers-powered-logo:focus .ers-powered-logo-zeta { transform: rotateY(180deg); }
body .ers-powered-logo:hover .ers-powered-logo-santa,
body .ers-powered-logo:focus .ers-powered-logo-santa { transform: rotateY(360deg); }
body .ers-powered-text { color: #405466; font-family: Arial, sans-serif; font-size: 8px; font-weight: 500; letter-spacing: .13em; line-height: 1; text-decoration: none; }
body .ers-powered-santa-copy { bottom: -15px; color: #405466; font-family: Arial, sans-serif; font-size: 8px; left: 0; line-height: 1.1; opacity: 0; pointer-events: none; position: absolute; transition: opacity .2s ease; white-space: nowrap; }
body .ers-powered-credit:has(.ers-powered-logo:hover) .ers-powered-santa-copy,
body .ers-powered-credit:focus-within .ers-powered-santa-copy { opacity: 1; }

@media (max-width: 767px) {
    body .ers-hero .elementor-button { min-width: 0; width: 100%; }
    body .ers-intro-editorial::after { left: 20px; top: 53%; width: calc(100% - 40px); }
    body .ers-approach-accordion .elementor-accordion { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body .ers-approach-accordion .elementor-tab-title { gap: 5px; }
    body .ers-approach-accordion .elementor-tab-title a { font-size: 10px !important; }
    body .ers-powered-logo { height: 28px; width: 28px; }
}

/* Version 1.1.0 — engineering editorial system.
   The content remains native Elementor; these rules only elevate the visual
   language through a shared grid, measured motion and photographic treatment. */
:root {
    --ers-ink: #071d30;
    --ers-blue: #1b5b91;
    --ers-paper: #f5f7f8;
    --ers-line: rgba(112, 142, 162, .35);
}

body {
    background: #fff;
}

main .elementor-widget-heading .elementor-heading-title {
    font-weight: 400 !important;
}

main .elementor-widget-heading .elementor-heading-title:not(h1) {
    text-wrap: balance;
}

main .elementor-widget-text-editor {
    max-width: 68ch;
}

/* A quiet technical grid ties photographic and editorial sections together. */
.ers-intro-editorial,
.ers-approach-panel,
.ers-cta-panel {
    position: relative;
}

.ers-intro-editorial::before,
.ers-approach-panel::before {
    background-image: linear-gradient(rgba(27, 91, 145, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 91, 145, .055) 1px, transparent 1px);
    background-size: 34px 34px;
    content: '';
    inset: 0;
    mask-image: linear-gradient(90deg, #000 0%, transparent 72%);
    opacity: .55;
    pointer-events: none;
    position: absolute;
}

.ers-intro-editorial > .e-con-inner,
.ers-intro-editorial > .elementor-element,
.ers-approach-panel > .e-con-inner,
.ers-approach-panel > .elementor-element {
    position: relative;
    z-index: 1;
}

.ers-intro-editorial .ers-site-image,
.ers-approach-panel .ers-site-image {
    border-radius: 0 !important;
    box-shadow: 24px 24px 0 rgba(27, 91, 145, .10);
    overflow: hidden;
}

.ers-intro-editorial .ers-site-image::after,
.ers-approach-panel .ers-site-image::after {
    background: linear-gradient(115deg, rgba(7, 29, 48, .22), transparent 62%);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.ers-hero {
    isolation: isolate;
}

.ers-hero::before {
    background: linear-gradient(90deg, rgba(7, 29, 48, .82) 0%, rgba(7, 29, 48, .60) 48%, rgba(7, 29, 48, .20) 100%);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.ers-hero::after {
    background: repeating-radial-gradient(circle at 100% 0%, transparent 0 88px, rgba(197, 225, 241, .50) 89px 90px, transparent 91px 160px) !important;
    clip-path: inset(0 0 0 43%);
    opacity: .9;
}

.ers-hero-content::before {
    border-left: 1px solid rgba(201, 228, 245, .55);
    bottom: 22%;
    content: '';
    left: 0;
    position: absolute;
    top: 22%;
}

.ers-hero-content .elementor-widget-heading:first-child .elementor-heading-title {
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: .16em !important;
}

.ers-hero-content .elementor-widget-heading:nth-child(2) .elementor-heading-title {
    font-weight: 400 !important;
    letter-spacing: -.03em;
    max-width: 900px;
}

.ers-hero .elementor-button {
    min-width: 212px;
}

.ers-services-band {
    background-image: linear-gradient(120deg, rgba(4, 19, 33, .86), rgba(4, 30, 52, .55)), url('https://ersconsultores.es/wp-content/uploads/2026/09/ers-precision-engineering-v2.png') !important;
    background-position: center !important;
}

.ers-services-band::before {
    background-image: linear-gradient(rgba(201, 228, 245, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 228, 245, .09) 1px, transparent 1px);
    background-size: 42px 42px;
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.ers-services-band > .e-con-inner,
.ers-services-band > .elementor-element {
    position: relative;
    z-index: 1;
}

.ers-services-grid {
    display: grid !important;
    gap: 16px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ers-services-grid > .e-con {
    min-width: 0 !important;
    width: auto !important;
}

.ers-services-band .ers-service-card {
    backdrop-filter: blur(3px);
    background: rgba(7, 29, 48, .37) !important;
    min-height: 345px;
    padding: 31px 26px 27px !important;
    transition: background .3s ease, border-color .3s ease, transform .3s ease;
}

.ers-services-band .ers-service-card:hover,
.ers-services-band .ers-service-card:focus-within {
    background: rgba(17, 83, 130, .56) !important;
    border-color: rgba(255,255,255,.95) !important;
    transform: translateY(-7px);
}

.ers-services-band .ers-card-number {
    left: 17px;
    top: -4px;
}

.ers-services-band .ers-card-number .elementor-heading-title {
    color: rgba(218, 238, 249, .48) !important;
    font-size: clamp(80px, 8vw, 122px) !important;
    font-weight: 400 !important;
}

.ers-services-band .ers-card-title {
    margin-left: 25px;
    margin-top: 49px;
}

.ers-services-band .ers-card-title .elementor-heading-title {
    font-size: clamp(25px, 2vw, 31px) !important;
    line-height: 1.04 !important;
}

.ers-services-band .ers-service-card .elementor-widget-text-editor {
    font-size: 15px;
    line-height: 1.6;
}

.ers-services-band .ers-service-card .elementor-button {
    letter-spacing: .1em !important;
    transition: border-color .25s ease, padding-right .25s ease;
}

.ers-services-band .ers-service-card:hover .elementor-button {
    border-color: #fff !important;
    padding-right: 6px !important;
}

.ers-approach-panel .ers-approach-right .ers-site-image {
    min-height: 370px;
}

.ers-approach-panel .ers-approach-steps {
    margin-top: -94px !important;
    padding: 25px !important;
    position: relative;
    z-index: 2;
}

.ers-approach-accordion .elementor-tab-title {
    background: rgba(255, 255, 255, .96) !important;
    padding: 17px 20px !important;
}

.ers-approach-accordion .elementor-tab-title a {
    font-family: Arial, sans-serif !important;
    font-size: 13px;
    font-weight: 500 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ers-approach-accordion .elementor-tab-content {
    background: #fff;
    padding: 6px 20px 22px !important;
}

.ers-history-panel {
    background-image: linear-gradient(90deg, rgba(4, 24, 42, .95), rgba(4, 24, 42, .70)), linear-gradient(rgba(169, 212, 242, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(169, 212, 242, .08) 1px, transparent 1px) !important;
    background-size: auto, 48px 48px, 48px 48px !important;
}

.ers-history-panel .elementor-widget-heading .elementor-heading-title,
.ers-history-panel .elementor-widget-text-editor {
    max-width: 720px;
}

.ers-history-panel .elementor-widget-button .elementor-button {
    background: transparent !important;
    border-color: rgba(233, 243, 249, .9) !important;
    color: #fff !important;
}

.ers-history-panel .elementor-widget-button .elementor-button:hover {
    background: #fff !important;
    color: var(--ers-ink) !important;
}

.ers-cta-panel {
    background: linear-gradient(145deg, #eef4f7, #f9fbfc) !important;
    border: 1px solid rgba(27, 91, 145, .20) !important;
    box-shadow: 18px 18px 0 rgba(27, 91, 145, .09);
}

.ers-cta-panel::after {
    border: 1px solid rgba(27, 91, 145, .12);
    border-radius: 50%;
    content: '';
    height: 380px;
    pointer-events: none;
    position: absolute;
    right: -170px;
    top: -220px;
    width: 380px;
}

.ers-footer-brand .elementor-widget-image {
    background: transparent;
    max-width: 180px;
    padding: 0;
}

.ers-footer-brand .elementor-widget-image img {
    filter: brightness(0) invert(1) grayscale(1) contrast(1.4);
}

.ers-footer-heading {
    font-weight: 500;
    letter-spacing: -.01em;
}

.ers-powered-by .elementor-widget-text-editor a {
    font-size: 8px;
    letter-spacing: .13em;
}

@media (prefers-reduced-motion: no-preference) {
    .ers-intro-editorial,
    .ers-approach-panel,
    .ers-history-panel,
    .ers-cta-panel {
        animation: ers-section-reveal .7s ease both;
        animation-timeline: view();
        animation-range: entry 0% cover 25%;
    }
}

@keyframes ers-section-reveal {
    from { opacity: .86; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .ers-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ers-approach-panel .ers-approach-steps { margin-top: 0 !important; padding: 0 !important; }
}

@media (max-width: 767px) {
    .ers-hero-content::before { bottom: 12%; top: 12%; }
    .ers-hero .elementor-button { min-width: 0; width: 100%; }
    .ers-services-grid { grid-template-columns: 1fr; }
    .ers-services-band .ers-service-card { min-height: 285px; }
    .ers-intro-editorial .ers-site-image,
    .ers-approach-panel .ers-site-image { box-shadow: 12px 12px 0 rgba(27, 91, 145, .10); }
    .ers-cta-panel { box-shadow: 10px 10px 0 rgba(27, 91, 145, .08); }
}

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

/* v1.2 visual override: Elementor writes a per-container background after the
   editor styles.  Place the photograph on the overlay layer so that it cannot
   be replaced by that generated rule. */
body .ers-services-band::before {
    background-color: transparent !important;
    background-image:
        linear-gradient(115deg, rgba(3, 20, 35, .88), rgba(5, 42, 69, .54)),
        url('https://ersconsultores.es/wp-content/uploads/2026/09/ers-precision-engineering-v2.png') !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    opacity: 1 !important;
}

body .ers-services-band::after {
    background-image:
        linear-gradient(rgba(196, 226, 244, .11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 226, 244, .11) 1px, transparent 1px) !important;
    background-size: 42px 42px !important;
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
}

body .ers-services-band > .e-con-inner,
body .ers-services-band > .elementor-element { z-index: 2; }

/* Shared interior-page art direction. These classes are applied to every
   Elementor-generated page, so editorial hierarchy stays consistent while
   the content, images and links remain individually editable. */
body .ers-inner-hero {
    isolation: isolate;
    overflow: hidden;
}

body .ers-inner-hero::before {
    background: linear-gradient(100deg, rgba(4, 23, 40, .91) 0%, rgba(4, 29, 49, .72) 52%, rgba(4, 29, 49, .28) 100%) !important;
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

body .ers-inner-hero::after {
    border: 1px solid rgba(212, 236, 249, .36);
    border-radius: 50%;
    box-shadow: 0 0 0 72px rgba(212, 236, 249, .10), 0 0 0 144px rgba(212, 236, 249, .06);
    content: '';
    height: 330px;
    pointer-events: none;
    position: absolute;
    right: -120px;
    top: -125px;
    width: 330px;
}

body .ers-inner-hero > .e-con-inner,
body .ers-inner-hero > .elementor-element { position: relative; z-index: 1; }

body .ers-inner-hero-content::before {
    background: #72b8df;
    content: '';
    height: 1px;
    left: 0;
    position: absolute;
    top: 28%;
    width: 82px;
}

body .ers-inner-hero-content .elementor-widget-heading:first-child .elementor-heading-title {
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: .17em !important;
}

body .ers-inner-hero-content .elementor-widget-heading:nth-child(2) .elementor-heading-title {
    font-weight: 400 !important;
    letter-spacing: -.035em !important;
    max-width: 920px;
}

body .ers-content-section { position: relative; }
body .ers-content-section:nth-of-type(even) { background: linear-gradient(90deg, rgba(231, 241, 247, .62), rgba(255,255,255,0)); }
body .ers-content-copy { position: relative; }
body .ers-content-copy::before {
    background: #5a9bc1;
    content: '';
    height: 42px;
    left: -22px;
    opacity: .30;
    position: absolute;
    top: 7px;
    width: 2px;
}
body .ers-content-copy .elementor-heading-title { font-weight: 400 !important; letter-spacing: -.025em !important; }
body .ers-content-copy .elementor-widget-text-editor { max-width: 670px; }
body .ers-content-copy .elementor-widget-text-editor li { margin-bottom: .55em; }
body .ers-content-visual .ers-site-image { box-shadow: 18px 18px 0 rgba(26, 86, 133, .11); overflow: hidden; }
body .ers-content-visual .ers-site-image img { filter: saturate(.77) contrast(1.06); transition: transform .7s ease, filter .4s ease; }
body .ers-content-section:hover .ers-content-visual .ers-site-image img { filter: saturate(.95) contrast(1.08); transform: scale(1.025); }

body .ers-inner-cta {
    background-image: linear-gradient(112deg, rgba(4, 29, 51, .98), rgba(10, 64, 103, .92)) !important;
    overflow: hidden;
    position: relative;
}
body .ers-inner-cta::after {
    border: 1px solid rgba(190, 225, 245, .24);
    border-radius: 50%;
    content: '';
    height: 420px;
    pointer-events: none;
    position: absolute;
    right: -150px;
    top: -250px;
    width: 420px;
}
body .ers-inner-cta > .e-con-inner,
body .ers-inner-cta > .elementor-element { position: relative; z-index: 1; }
body .ers-inner-cta .elementor-button {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.8) !important;
    color: #fff !important;
    letter-spacing: .11em !important;
}
body .ers-inner-cta .elementor-button:hover { background: #fff !important; color: #092a45 !important; }

@media (max-width: 767px) {
    body .ers-inner-hero::after { height: 220px; right: -100px; top: -100px; width: 220px; }
    body .ers-inner-hero-content::before { top: 17%; width: 48px; }
    body .ers-content-copy::before { left: -12px; }
    body .ers-content-visual .ers-site-image { box-shadow: 10px 10px 0 rgba(26, 86, 133, .10); }
}

/* Elementor changes generated content sections to a vertical stack at its
   tablet breakpoint. Keep the editorial two-column rhythm until the phone
   breakpoint, where a single readable column is preferable. */
@media (min-width: 768px) and (max-width: 1024px) {
    body .ers-content-section { flex-direction: row !important; gap: 40px !important; }
    body .ers-content-section .ers-content-copy { width: 58% !important; }
    body .ers-content-section .ers-content-visual { width: 42% !important; }
}

/* Distinct but restrained visual signatures by service line.  They are
   applied through semantic Elementor classes, so editors retain ownership of
   all actual copy and imagery. */
body .ers-page-gestion-de-riesgos.ers-inner-hero::before,
body [class*="risk-management"].ers-inner-hero::before,
body [class*="gestion-des-risques"].ers-inner-hero::before {
    background: linear-gradient(102deg, rgba(3, 35, 55, .92), rgba(8, 79, 110, .62), rgba(3, 35, 55, .22)) !important;
}
body .ers-page-ingenieria-y-proyectos.ers-inner-hero::before,
body [class*="engineering-projects"].ers-inner-hero::before,
body [class*="ingenierie-projets"].ers-inner-hero::before {
    background: linear-gradient(102deg, rgba(22, 32, 43, .93), rgba(52, 82, 100, .65), rgba(20, 31, 42, .20)) !important;
}
body .ers-page-peritacion-de-siniestros.ers-inner-hero::before,
body [class*="technical-loss-assessment"].ers-inner-hero::before,
body [class*="expertise-de-sinistres"].ers-inner-hero::before {
    background: linear-gradient(102deg, rgba(37, 34, 32, .93), rgba(88, 73, 58, .62), rgba(32, 28, 26, .18)) !important;
}
body .ers-page-transporte-y-cargo.ers-inner-hero::before,
body [class*="transport-cargo"].ers-inner-hero::before,
body [class*="transport-marchandises"].ers-inner-hero::before {
    background: linear-gradient(102deg, rgba(4, 42, 48, .93), rgba(13, 93, 100, .60), rgba(3, 37, 43, .18)) !important;
}
body .ers-page-trayectoria-y-enfoque.ers-inner-hero::before,
body [class*="experience-approach"].ers-inner-hero::before,
body [class*="parcours-approche"].ers-inner-hero::before {
    background: linear-gradient(102deg, rgba(18, 40, 66, .94), rgba(60, 98, 132, .57), rgba(18, 40, 66, .20)) !important;
}
body [class*="gestion-de-riesgos"].ers-inner-cta,
body [class*="risk-management"].ers-inner-cta { background-image: linear-gradient(115deg, #073c5a, #0d6e91) !important; }
body [class*="ingenieria-y-proyectos"].ers-inner-cta,
body [class*="engineering-projects"].ers-inner-cta { background-image: linear-gradient(115deg, #1e3445, #526d7e) !important; }
body [class*="peritacion-de-siniestros"].ers-inner-cta,
body [class*="technical-loss-assessment"].ers-inner-cta { background-image: linear-gradient(115deg, #322d2a, #756250) !important; }
body [class*="transporte-y-cargo"].ers-inner-cta,
body [class*="transport-cargo"].ers-inner-cta { background-image: linear-gradient(115deg, #063c45, #147078) !important; }

.ers-footer-brand .elementor-widget-image {
    background: #ffffff;
    display: inline-flex;
    max-width: 205px;
    padding: 8px 10px;
}

.ers-footer-linkedin a {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .72);
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    height: 26px;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    width: 26px;
}

.ers-footer-linkedin a:hover,
.ers-footer-linkedin a:focus-visible {
    background: #ffffff;
    color: #0b2b4b !important;
}

/* The header add-on measures the hidden dropdown before opening it. Preserve
   that measurement while clipping the invisible desktop-width overflow. */
@media (max-width: 1024px) {
    html,
    body {
        overflow-x: clip;
    }
}

@media (max-width: 767px) {
    .ers-form-grid {
        grid-template-columns: 1fr;
    }

    .elementor-element-9bc86d40 > .e-con-inner {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .elementor-element-6a29a961 {
        --container-widget-flex-grow: 0;
        --container-widget-width: 195px;
        flex: 0 0 195px !important;
        width: 195px !important;
    }

    .elementor-element-6a29a961 img {
        height: auto;
        width: 195px;
    }

    .elementor-element-bcbf1e12 {
        --container-widget-flex-grow: 0;
        --container-widget-width: 44px;
        flex: 0 0 44px !important;
        width: 44px !important;
    }

    .elementor-element-bcbf1e12 .hfe-nav-menu__toggle {
        margin: 0;
    }

    .ers-service-card .ers-card-number .elementor-heading-title {
        font-size: 76px !important;
    }

    .ers-service-card .ers-card-title {
        margin-left: 32px;
    }

    .ers-approach-accordion {
        padding-left: 12px;
    }

    .ers-approach-steps {
        margin-left: 0;
    }

    .ers-closing-cta {
        margin: 56px 20px;
    }

}

/* v1.6.1 final cascade. */
body .ers-history-panel { background-image: linear-gradient(90deg, rgba(4, 24, 42, .82), rgba(4, 24, 42, .45)), url('https://ersconsultores.es/wp-content/uploads/2026/09/ers-office-trajectory-v1.png') !important; background-position: center !important; background-size: cover !important; position: relative; }
body .ers-history-panel::after { color: #1b5b91; content: 'E&RS'; font-family: Georgia, "Times New Roman", serif; font-size: clamp(110px, 19vw, 250px); font-weight: 500; letter-spacing: -.09em; line-height: 1; opacity: .20; pointer-events: none; position: absolute; right: -10px; top: -26px; }
body .ers-history-panel > .e-con-inner, body .ers-history-panel > .elementor-element { position: relative; z-index: 1; }
body .ers-hero::after { background: repeating-radial-gradient(circle at 100% 0%, transparent 0 100px, rgba(201, 228, 245, .48) 101px 102px, transparent 103px 180px) !important; opacity: .9; }
@media (prefers-reduced-motion: no-preference) { body .ers-hero { animation-duration: 7s !important; } body .ers-hero::after { animation-duration: 10s !important; } }
body .ers-hero .elementor-button { font-size: 12px !important; min-width: 160px; padding: 10px 19px !important; }
body .ers-intro-editorial::after { background: linear-gradient(90deg, #1b5b91 0 50%, #ffffff 50% 100%); content: ''; height: 1px; left: 24%; pointer-events: none; position: absolute; top: 50%; width: 56%; z-index: 3; }
body .ers-approach-accordion .elementor-accordion { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
body .ers-approach-accordion .elementor-accordion-item { border: 0 !important; min-width: 0; }
body .ers-approach-accordion .elementor-tab-title { align-items: center; background: transparent !important; border: 0 !important; display: flex; gap: 8px; padding: 10px 0 !important; }
body .ers-approach-accordion .elementor-accordion-item:nth-child(1) .elementor-tab-title::before { content: 'A'; } body .ers-approach-accordion .elementor-accordion-item:nth-child(2) .elementor-tab-title::before { content: 'B'; } body .ers-approach-accordion .elementor-accordion-item:nth-child(3) .elementor-tab-title::before { content: 'C'; } body .ers-approach-accordion .elementor-accordion-item:nth-child(4) .elementor-tab-title::before { content: 'D'; }
body .ers-approach-accordion .elementor-tab-title::before { align-items: center; background: #1b5b91; border-radius: 999px; color: #fff; display: inline-flex; font-family: Arial, sans-serif; font-size: 11px; font-weight: 500; height: 25px; justify-content: center; letter-spacing: 0; min-width: 25px; }
body .ers-approach-accordion .elementor-tab-title a { font-size: 12px !important; } body .ers-approach-accordion .elementor-tab-content { border: 0 !important; padding: 8px 0 16px !important; }
body .ers-footer-brand .elementor-widget-image { background: transparent !important; max-width: 150px; padding: 0 !important; } body .ers-footer-brand .elementor-widget-image img { filter: brightness(0) invert(1) grayscale(1) contrast(1.4); }
body .ers-footer-disclosure { color: #d6e4ee; } body .ers-footer-disclosure summary { color: #fff; cursor: pointer; font-family: Arial, sans-serif; font-size: 16px; font-weight: 500; list-style: none; } body .ers-footer-disclosure summary::-webkit-details-marker { display: none; } body .ers-footer-disclosure summary::after { content: '+'; margin-left: 8px; } body .ers-footer-disclosure[open] summary::after { content: '−'; } body .ers-footer-disclosure p { margin: 10px 0 0; }
body .ers-footer-contact-reveal .ers-footer-heading { font-size: 16px; margin: 0; } body .ers-footer-address { max-height: 0; margin: 0; opacity: 0; overflow: hidden; transition: max-height .22s ease, margin .22s ease, opacity .22s ease; } body .ers-footer-contact-reveal:hover .ers-footer-address, body .ers-footer-contact-reveal:focus-within .ers-footer-address { max-height: 100px; margin: 10px 0; opacity: 1; } body .ers-footer-linkedin { margin: 12px 0 0; }
body .ers-powered-credit { align-items: center; display: flex; gap: 9px; position: relative; } body .ers-powered-logo { display: inline-grid; height: 28px; perspective: 180px; position: relative; transform-style: preserve-3d; width: 28px; } body .ers-powered-logo-face { backface-visibility: hidden; inset: 0; position: absolute; transition: transform .5s ease; } body .ers-powered-logo-face img { display: block; height: 100%; object-fit: contain; width: 100%; } body .ers-powered-logo-santa { transform: rotateY(180deg); } body .ers-powered-logo:hover .ers-powered-logo-zeta, body .ers-powered-logo:focus .ers-powered-logo-zeta { transform: rotateY(180deg); } body .ers-powered-logo:hover .ers-powered-logo-santa, body .ers-powered-logo:focus .ers-powered-logo-santa { transform: rotateY(360deg); } body .ers-powered-text { color: #405466; font-family: Arial, sans-serif; font-size: 8px; font-weight: 500; letter-spacing: .13em; line-height: 1; text-decoration: none; } body .ers-powered-santa-copy { bottom: -15px; color: #405466; font-family: Arial, sans-serif; font-size: 8px; left: 0; line-height: 1.1; opacity: 0; pointer-events: none; position: absolute; transition: opacity .2s ease; white-space: nowrap; } body .ers-powered-credit:has(.ers-powered-logo:hover) .ers-powered-santa-copy, body .ers-powered-credit:focus-within .ers-powered-santa-copy { opacity: 1; }
@media (max-width: 767px) { body .ers-hero .elementor-button { min-width: 0; width: 100%; } body .ers-intro-editorial::after { left: 20px; top: 53%; width: calc(100% - 40px); } body .ers-approach-accordion .elementor-accordion { grid-template-columns: repeat(2, minmax(0, 1fr)); } body .ers-approach-accordion .elementor-tab-title { gap: 5px; } body .ers-approach-accordion .elementor-tab-title a { font-size: 10px !important; } }

/* Elementor applies a motion-effects class to this container. Keep the
   generated photograph on the visible container rather than its empty layer. */
body .ers-history-panel.elementor-motion-effects-element-type-background {
    background-image: linear-gradient(90deg, rgba(4, 24, 42, .82), rgba(4, 24, 42, .45)), url('https://ersconsultores.es/wp-content/uploads/2026/09/ers-office-trajectory-v1.png') !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}
body .ers-history-panel::before {
    background-color: transparent !important;
    background-image: linear-gradient(90deg, rgba(4, 24, 42, .80), rgba(4, 24, 42, .40)), url('https://ersconsultores.es/wp-content/uploads/2026/09/ers-office-trajectory-v2.png') !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    opacity: 1 !important;
}

/* v1.7 layout refinements */
@media (min-width: 768px) {
    .elementor-element-9bc86d40,
    .elementor-element-9bc86d40 > .e-con-inner { align-items: center !important; }
    .elementor-element-bcbf1e12,
    .elementor-element-bcbf1e12 .hfe-nav-menu { align-items: center !important; }
    body .ers-approach-steps { margin: 0 !important; padding: 0 !important; width: 100% !important; }
    body .ers-approach-accordion .elementor-accordion { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

body .ers-quick-consultation { margin-top: 24px; max-width: 580px; width: 100%; }
body .ers-quick-consultation label { color: #e8f1f7; display: block; font-family: Arial, sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .10em; margin-bottom: 9px; text-transform: uppercase; }
body .ers-quick-consultation > div { display: flex; gap: 10px; }
body .ers-quick-consultation select { background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.7); border-radius: 2px; color: #0b2b4b; flex: 1; font: 15px Arial, sans-serif; min-width: 0; padding: 12px 13px; }
body .ers-quick-consultation button { background: transparent; border: 1px solid #fff; border-radius: 2px; color: #fff; cursor: pointer; font: 500 12px Arial, sans-serif; letter-spacing: .10em; padding: 0 18px; text-transform: uppercase; }
body .ers-quick-consultation button:hover, body .ers-quick-consultation button:focus-visible { background: #fff; color: #0b2b4b; }

body .ers-footer-menu-row { border-top: 1px solid rgba(214,228,238,.24); margin-top: 18px; padding-top: 17px; }
body .ers-footer-site-menu ul { column-count: 2; column-gap: 38px; list-style: none; margin: 0; padding: 0; }
body .ers-footer-site-menu li { break-inside: avoid; margin: 0 0 7px; }
body .ers-footer-site-menu a { color: #d6e4ee; font: 13px Arial, sans-serif; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
body .ers-footer-site-menu a:hover, body .ers-footer-site-menu a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
    body .ers-quick-consultation > div { flex-direction: column; }
    body .ers-quick-consultation button { min-height: 44px; }
    body .ers-footer-site-menu ul { column-count: 1; }
}

/* v2.0.1 final cascade — this deliberately follows the historical pilot
   rules above so the transparent footer logo and the current office scene
   cannot be overridden by a legacy rule. */
body .ers-footer-brand .elementor-widget-image,
body .ers-footer-brand .elementor-widget-image img {
    background: transparent !important;
}
body .ers-footer-brand .elementor-widget-image img {
    filter: none !important;
}
body .ers-history-panel,
body .ers-history-panel.elementor-motion-effects-element-type-background,
body .ers-history-panel::before {
    background-image: linear-gradient(90deg, rgba(4, 24, 42, .80), rgba(4, 24, 42, .40)), url('https://ersconsultores.es/wp-content/uploads/2026/09/ers-history-corridor-v3.png') !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}
body .ers-history-panel::after { content: none !important; }

/* One coherent visual signature for home and inner banners. */
body .ers-hero::after,
body .ers-inner-hero::after {
    background: repeating-radial-gradient(circle at 100% 0%, transparent 0 74px, rgba(201, 228, 245, .52) 75px 76px, transparent 77px 145px) !important;
    border: 0 !important;
    box-shadow: none !important;
    content: '' !important;
    height: 100% !important;
    inset: 0 !important;
    opacity: .9 !important;
    width: 100% !important;
}
body .ers-hero-content::before,
body .ers-inner-hero-content::before {
    background: #72b8df !important;
    content: '' !important;
    height: 1px !important;
    left: 0 !important;
    position: absolute !important;
    top: 28% !important;
    width: 82px !important;
}
@media (prefers-reduced-motion: no-preference) {
    body .ers-hero,
    body .ers-inner-hero { animation: ers-hero-drift 7.5s ease-in-out infinite alternate !important; background-size: 110% auto !important; }
    body .ers-hero::after,
    body .ers-inner-hero::after { animation: ers-quarter-arc 9s cubic-bezier(.45,0,.25,1) infinite alternate !important; }
}
@media (max-width: 767px) {
    body .ers-hero-content::before,
    body .ers-inner-hero-content::before { top: 17% !important; width: 48px !important; }
}
