.brand-logo-mark {
    display: block;
    flex-shrink: 0;
    height: auto;
}

/* Home pathways to automation and careers */
.service-gateway-section {
    padding: 7rem 1.5rem;
}

.service-gateway-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(20rem, .65fr);
    gap: 1rem;
    width: min(100%, 80rem);
    margin: 0 auto;
}

.service-gateway {
    position: relative;
    min-height: 34rem;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #0a1a24;
    isolation: isolate;
}

.service-gateway > img,
.service-gateway-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.service-gateway > img {
    z-index: -2;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.22,1,.36,1);
}

.service-gateway-automation > img { object-position: center 58%; }
.service-gateway-careers > img { object-position: 58% center; }

.service-gateway-shade {
    z-index: -1;
    background: linear-gradient(180deg, rgba(7,25,36,.12) 10%, rgba(7,25,36,.93) 100%);
}

.service-gateway-careers .service-gateway-shade {
    background: linear-gradient(180deg, rgba(7,25,36,.2) 0%, rgba(7,25,36,.96) 88%);
}

.service-gateway:hover > img { transform: scale(1.025); }

.service-gateway-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 34rem;
    padding: clamp(1.75rem, 4vw, 3rem);
}

.service-gateway-eyebrow {
    margin-bottom: .85rem;
    color: #48c5f5;
    font: 700 .7rem/1.3 "Plus Jakarta Sans", sans-serif;
    letter-spacing: 0;
    text-transform: uppercase;
}

.service-gateway h2 {
    max-width: 35rem;
    margin-bottom: 1rem;
    color: #fff;
    font: 500 clamp(2.25rem, 4vw, 4.25rem)/1.02 "Playfair Display", serif;
}

.service-gateway-careers h2 { font-size: clamp(2.15rem, 3vw, 3.15rem); }
.service-gateway h2 span { color: #48c5f5; font-style: italic; font-weight: 400; }

.service-gateway-content > p:not(.service-gateway-eyebrow) {
    max-width: 34rem;
    margin-bottom: 1.7rem;
    color: rgba(255,255,255,.72);
    font: 400 .95rem/1.7 "Plus Jakarta Sans", sans-serif;
}

.service-gateway-content > a {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid rgba(255,255,255,.78);
    color: #fff;
    font: 700 .82rem/1.4 "Plus Jakarta Sans", sans-serif;
    transition: color .25s ease, border-color .25s ease, gap .25s ease;
}

.service-gateway-content > a:hover { gap: .9rem; color: #48c5f5; border-color: #48c5f5; }

@media (max-width: 900px) {
    .service-gateway-grid { grid-template-columns: 1fr; }
    .service-gateway,
    .service-gateway-content { min-height: 30rem; }
}

@media (max-width: 640px) {
    .service-gateway-section { padding: 5rem 1rem; }
    .service-gateway,
    .service-gateway-content { min-height: 28rem; }
    .service-gateway-content { padding: 1.5rem; }
    .service-gateway h2,
    .service-gateway-careers h2 { font-size: 2.45rem; }
    .service-gateway-content > p:not(.service-gateway-eyebrow) { font-size: .9rem; }
}

.brand-wordmark {
    font-size: 1.05rem;
    line-height: 1;
}

.header-brand {
    gap: 0.5rem;
}

.header-logo-mark {
    width: 1.75rem;
}

.hero-brand {
    display: none;
}

.mobile-language-switch {
    display: none;
}

#menu-overlay {
    visibility: hidden;
    pointer-events: none;
    transition: clip-path .4s cubic-bezier(.77,0,.175,1), visibility 0s linear .4s;
}

#menu-overlay.active {
    visibility: visible;
    pointer-events: auto;
    transition: clip-path .4s cubic-bezier(.77,0,.175,1), visibility 0s;
}

#menu-overlay > nav {
    max-height: calc(100dvh - 3rem);
    margin-top: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

#menu-overlay .menu-link {
    font-size: clamp(2.1rem, 5.3vh, 3.8rem);
    line-height: 1.02;
}

#menu-overlay nav li + li {
    margin-top: clamp(.35rem, 1vh, .75rem);
}

@media (max-width: 767px) {
    #menu-overlay {
        justify-content: flex-start;
        overflow-y: auto;
    }

    #menu-overlay > nav {
        width: 100%;
        margin-top: 6.5rem;
        padding-bottom: 2rem;
    }

    #menu-overlay .menu-link {
        font-size: 1.7rem !important;
        line-height: 1.05 !important;
    }

    #menu-overlay nav li + li {
        margin-top: .55rem;
    }

    .mobile-language-switch {
        display: flex;
        align-items: center;
        gap: .65rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,.15);
        color: rgba(255,255,255,.58);
        font: 600 .78rem/1 "Plus Jakarta Sans", sans-serif;
    }

    .mobile-language-switch a,
    .mobile-language-switch .is-current {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2.75rem;
        min-height: 2.75rem;
    }

    .mobile-language-switch a {
        color: rgba(255,255,255,.72);
        transition: color .2s ease;
    }

    .mobile-language-switch a:hover,
    .mobile-language-switch a:focus-visible,
    .mobile-language-switch .is-current {
        color: #48c5f5;
    }

    .mobile-language-switch-separator {
        color: rgba(255,255,255,.25);
    }
}

.studio-image-shell {
    border-radius: 2rem;
    box-shadow: 0 30px 70px -32px rgba(17, 46, 64, .42);
}

.service-offer-icon,
.specialty-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(63, 181, 230, .36);
    border-radius: 50%;
    color: #209fd3;
    background: rgba(63, 181, 230, .08);
}

.service-offer-icon svg,
.specialty-card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.service-offer-icon-on-dark,
.specialty-card-icon {
    color: #56c7f4;
    border-color: rgba(86, 199, 244, .5);
    background: rgba(8, 30, 43, .55);
    backdrop-filter: blur(8px);
}

.jacuzzi-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(22rem, .92fr);
    min-height: 28rem;
    margin-top: 3.5rem;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #102b3c;
    color: #fff;
}

.jacuzzi-feature-media,
.jacuzzi-feature-media img {
    display: block;
    width: 100%;
    height: 100%;
}

.jacuzzi-feature-media img {
    object-fit: cover;
}

.jacuzzi-feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.5rem, 5vw, 5rem);
}

.jacuzzi-feature-eyebrow {
    margin-bottom: 1.15rem;
    color: #48c5f5;
    font: 700 .78rem/1.4 "Plus Jakarta Sans", sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.jacuzzi-feature-content h3 {
    margin-bottom: 1.4rem;
    font: 400 clamp(2.35rem, 4vw, 3.75rem)/1.05 "Playfair Display", serif;
}

.jacuzzi-feature-content > p:not(.jacuzzi-feature-eyebrow) {
    max-width: 34rem;
    color: rgba(255, 255, 255, .76);
    font: 400 1rem/1.75 "Plus Jakarta Sans", sans-serif;
}

.jacuzzi-feature-content a {
    align-self: flex-start;
    margin-top: 2rem;
    padding-bottom: .25rem;
    border-bottom: 2px solid #48c5f5;
    color: #48c5f5;
    font: 700 .95rem/1.4 "Plus Jakarta Sans", sans-serif;
    transition: color .25s ease, border-color .25s ease;
}

.jacuzzi-feature-content a:hover,
.jacuzzi-feature-content a:focus-visible {
    border-color: #fff;
    color: #fff;
}

@media (max-width: 767px) {
    .jacuzzi-feature {
        grid-template-columns: 1fr;
        min-height: 0;
        margin-top: 2rem;
        border-radius: 1rem;
    }

    .jacuzzi-feature-media {
        aspect-ratio: 4 / 3;
    }

    .jacuzzi-feature-content {
        padding: 2rem 1.5rem 2.25rem;
    }

    .jacuzzi-feature-content h3 {
        font-size: 2.25rem;
    }
}

.methodology-step-number {
    display: block;
    margin-bottom: .75rem;
    color: #3fb5e6;
    font: 400 3rem/1 "Playfair Display", serif;
    opacity: .52;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.footer-logo-mark {
    width: 1.85rem;
}

@media (min-width: 768px) {
    #menu-overlay > nav {
        max-height: none;
        overflow-y: visible;
    }

    .brand-wordmark {
        font-size: 1.275rem;
    }

    .header-logo-mark {
        width: 2.1rem;
    }

    .footer-logo-mark {
        width: 2rem;
    }
}

.form-select {
    color: rgba(255, 255, 255, 0.9);
    background-color: transparent;
}

.contact-field {
    min-height: 3.65rem;
    cursor: text;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    min-height: 3.4rem;
    cursor: text;
}

.contact-field input:-webkit-autofill,
.contact-field textarea:-webkit-autofill,
.contact-field input:-webkit-autofill:hover,
.contact-field textarea:-webkit-autofill:hover,
.contact-field input:-webkit-autofill:focus,
.contact-field textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: rgba(255, 255, 255, 0.94) !important;
    caret-color: #FFFFFF;
    border-bottom-color: rgba(63, 181, 230, 0.75) !important;
    box-shadow: 0 0 0 1000px #1F4050 inset !important;
    transition: background-color 9999s ease-out 0s;
}

.contact-field input:autofill,
.contact-field textarea:autofill {
    color: rgba(255, 255, 255, 0.94);
    border-bottom-color: rgba(63, 181, 230, 0.75);
    box-shadow: 0 0 0 1000px #1F4050 inset;
}

.contact-field select {
    cursor: pointer;
}

.form-select-native {
    position: absolute;
    inset: 0;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.custom-select {
    position: relative;
    z-index: 20;
    width: 100%;
    color: rgba(255, 255, 255, 0.92);
    font-family: "Plus Jakarta Sans", sans-serif;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 3.4rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.35;
    text-align: left;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.custom-select.has-value .custom-select-trigger {
    color: #FFFFFF;
}

.custom-select.is-open .custom-select-trigger,
.custom-select-trigger:focus-visible {
    border-bottom-color: #3FB5E6;
    color: #FFFFFF;
    outline: none;
}

.custom-select.is-invalid .custom-select-trigger {
    border-bottom-color: rgba(248, 113, 113, 0.95);
}

.custom-select-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    margin-left: 1rem;
    color: rgba(255, 255, 255, 0.88);
    transition: transform 0.25s ease, color 0.25s ease;
}

.custom-select-icon svg {
    width: 1rem;
    height: 1rem;
}

.custom-select.is-open .custom-select-icon {
    color: #3FB5E6;
    transform: rotate(180deg);
}

.custom-select-list {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    z-index: 80;
    max-height: 16rem;
    padding: 0.45rem;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(63, 181, 230, 0.72) rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(63, 181, 230, 0.34);
    border-radius: 1rem;
    background: rgba(17, 46, 64, 0.98);
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.custom-select.is-drop-up .custom-select-list {
    top: auto;
    bottom: calc(100% + 0.55rem);
}

.custom-select-option {
    display: block;
    width: 100%;
    padding: 0.78rem 0.9rem;
    border-radius: 0.7rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.25;
    text-align: left;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
    background: rgba(63, 181, 230, 0.14);
    color: #FFFFFF;
    outline: none;
}

.custom-select-option.is-selected {
    background: rgba(63, 181, 230, 0.22);
    color: #FFFFFF;
}

/* <picture> no debe introducir caja: el <img> conserva su layout original */
picture {
    display: contents;
}

/* ===== Aval Revestech: instalador certificado (banda oscura) ===== */
.rcert-section {
    position: relative;
    padding: clamp(5rem, 9vw, 8rem) 1.5rem;
    background:
        radial-gradient(80% 120% at 50% 0%, rgba(63, 181, 230, 0.14) 0%, rgba(63, 181, 230, 0) 55%),
        linear-gradient(180deg, #0E2433 0%, #0A1A24 100%);
}

.rcert-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(63, 181, 230, 0.5), transparent);
}

.rcert-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rcert-eyebrow {
    margin-bottom: 1.5rem;
    color: #8FE4FF;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.rcert-title {
    max-width: 22ch;
    color: #FFFFFF;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1.08;
}

.rcert-lead {
    max-width: 56ch;
    margin-top: 1.75rem;
    color: rgba(255, 255, 255, 0.68);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1rem, 1.25vw, 1.1rem);
    line-height: 1.8;
}

.rcert-lead strong {
    color: #FFFFFF;
    font-weight: 700;
}

/* Placa-credencial clara con sello + QR */
.rcert-plate {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 2.75rem);
    width: 100%;
    max-width: 46rem;
    margin-top: 2.75rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 1.5rem;
    background: #FFFFFF;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.rcert-plate__seal {
    flex-shrink: 0;
}

.rcert-plate__seal img {
    display: block;
    width: clamp(140px, 22vw, 185px);
    height: auto;
}

.rcert-plate__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.rcert-plate__label {
    color: rgba(17, 46, 64, 0.5);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.rcert-plate__num {
    margin-top: 0.35rem;
    color: #112E40;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1;
}

.rcert-plate__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
    color: #112E40;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.rcert-plate__status svg {
    width: 1rem;
    height: 1rem;
    color: #3FB5E6;
}

.rcert-plate__verify {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(17, 46, 64, 0.1);
}

.rcert-plate__qr {
    flex-shrink: 0;
    width: 5.25rem;
    height: 5.25rem;
    border-radius: 0.6rem;
}

.rcert-plate__verifytext p {
    margin: 0;
    color: rgba(17, 46, 64, 0.66);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.82rem;
    line-height: 1.5;
}

.rcert-plate__verifytext a {
    display: inline-block;
    margin-top: 0.45rem;
    color: #2A8FC0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.rcert-plate__verifytext a:hover {
    color: #112E40;
}

.rcert-specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.rcert-specs li {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 12rem;
    padding: 1.3rem 2.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.rcert-specs li:last-child {
    border-right: 0;
}

.rcert-specs span {
    color: rgba(255, 255, 255, 0.45);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.rcert-specs strong {
    color: #FFFFFF;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.rcert-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.75rem;
    min-height: 3.4rem;
    padding: 0 2.1rem;
    border-radius: 999px;
    background: #3FB5E6;
    color: #0A1A24;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.rcert-cta:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .rcert-plate {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rcert-plate__info {
        align-items: center;
        text-align: center;
    }

    .rcert-plate__verify {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rcert-specs {
        flex-direction: column;
        width: 100%;
        max-width: 22rem;
    }

    .rcert-specs li {
        min-width: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .rcert-specs li:last-child {
        border-bottom: 0;
    }
}

.contact-field label {
    max-width: 100%;
    cursor: text;
    top: 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

.contact-field input.peer:focus + label,
.contact-field textarea.peer:focus + label,
.contact-field input.peer:not(:placeholder-shown) + label,
.contact-field textarea.peer:not(:placeholder-shown) + label {
    top: -1rem !important;
    font-size: 0.75rem !important;
    line-height: 1rem !important;
}

@media (max-width: 767px) {
    .contact-field label {
        top: 1.25rem !important;
    }

    .contact-field input.peer:focus + label,
    .contact-field textarea.peer:focus + label,
    .contact-field input.peer:not(:placeholder-shown) + label,
    .contact-field textarea.peer:not(:placeholder-shown) + label {
        top: 0 !important;
        font-size: 0.75rem !important;
        line-height: 1rem !important;
    }

    .contact-field #contact-direccion-zona.peer:focus + label,
    .contact-field #contact-direccion-zona.peer:not(:placeholder-shown) + label {
        top: -0.75rem !important;
        font-size: 0.68rem !important;
        line-height: 0.85rem !important;
    }

    .contact-field input.peer:focus + label,
    .contact-field textarea.peer:focus + label {
        color: #3FB5E6 !important;
    }

    .contact-field input,
    .contact-field select,
    .contact-field textarea {
        min-height: 3.4rem;
        padding-top: 1.2rem;
        padding-bottom: 0.65rem;
    }

    .contact-field #contact-direccion-zona {
        min-height: 4.6rem;
    }

    .custom-select-trigger {
        min-height: 3.45rem;
        padding-top: 1.2rem;
        padding-bottom: 0.65rem;
        font-size: 0.98rem;
    }

    .custom-select-list {
        max-height: min(17rem, 48svh);
        border-radius: 0.9rem;
    }

    .contact-field textarea {
        min-height: 5.5rem;
    }
}

/* Checkbox de consentimiento RGPD del formulario de contacto */
.form-consent-box {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #3FB5E6;
    cursor: pointer;
}

.form-consent-link {
    text-decoration: underline;
}

.cv-upload {
    padding: 1.1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
}

.cv-upload-label {
    display: block;
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cv-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.cv-upload-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.cv-upload-button {
    flex-shrink: 0;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(63, 181, 230, 0.55);
    border-radius: 9999px;
    background: rgba(63, 181, 230, 0.14);
    color: #3FB5E6;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cv-upload-input:focus-visible + .cv-upload-picker .cv-upload-button,
.cv-upload-button:hover {
    background: #3FB5E6;
    border-color: #3FB5E6;
    color: #112E40;
}

.cv-upload-empty {
    min-width: 0;
    color: rgba(255, 255, 255, 0.62);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.88rem;
    line-height: 1.45;
}

.cv-upload.has-file .cv-upload-empty {
    display: none;
}

.cv-upload-help {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.46);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.82rem;
    line-height: 1.5;
}

.cv-upload-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: 0.95rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.07);
}

.cv-upload-state[hidden] {
    display: none;
}

.cv-upload-name {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.86rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv-upload-remove {
    flex-shrink: 0;
    color: #3FB5E6;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.cv-upload-remove:hover,
.cv-upload-remove:focus-visible {
    color: #fff;
    outline: none;
}

@media (max-width: 480px) {
    .cv-upload-picker {
        align-items: stretch;
        flex-direction: column;
        gap: 0.7rem;
    }

    .cv-upload-button {
        width: 100%;
        text-align: center;
    }

    .cv-upload-state {
        align-items: flex-start;
        flex-direction: column;
    }

    .cv-upload-name {
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }
}

/* Iconos sociales del bloque de contacto */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.04);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Damos al SVG un fill explícito (no currentColor) para que el icono y el
   fondo cambien de color exactamente al mismo ritmo, sin saltos. */
.social-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: rgba(255, 255, 255, 0.85);
    transition: fill 0.3s ease;
}

.social-icon:hover {
    background-color: #3FB5E6;
    border-color: #3FB5E6;
}

.social-icon:hover svg {
    fill: #112E40;
}

/* Apertura y cierre suave de las preguntas frecuentes */
.faq-item {
    overflow: hidden;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.faq-item summary {
    outline: none;
}

.faq-item[open] summary ~ * {
    animation: none;
}

.faq-item summary span:last-child {
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.faq-item.is-open summary span:last-child {
    transform: rotate(180deg);
}

.faq-answer {
    opacity: 0;
    transform: translateY(-0.35rem);
    transition:
        opacity 0.26s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.faq-item.is-open .faq-answer {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-item summary span:last-child,
    .faq-answer {
        transition: none !important;
    }
}
/* Aviso de error de envío del formulario */
.form-error {
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-success-state {
    display: grid;
    min-height: 34rem;
    place-items: center;
    padding: 2rem 0;
    text-align: center;
    opacity: 0;
    transform: translateY(1.25rem) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.form-success-state.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.form-success-state[hidden] {
    display: none;
}

.form-success-state > * {
    max-width: 34rem;
}

.form-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 2rem;
    border-radius: 9999px;
    background: #3FB5E6;
    color: #112E40;
    box-shadow: 0 0 0 0 rgba(63, 181, 230, 0.42);
    animation: formSuccessPulse 2.8s ease-out infinite;
}

.form-success-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-success-state h3 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
}

.form-success-state h3 span {
    color: #3FB5E6;
    font-style: italic;
    font-weight: 300;
}

.form-success-state p {
    margin: 0 auto 2.25rem;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
}

.form-success-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.95rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 9999px;
    color: #fff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.form-success-reset:hover,
.form-success-reset:focus-visible {
    background: #fff;
    color: #112E40;
    transform: translateY(-1px);
}

.form-submit-button.is-loading {
    opacity: 0.68;
    pointer-events: none;
}

@media (max-width: 767px) {
    .form-success-state {
        min-height: min(27rem, calc(100svh - 8rem));
        margin-bottom: 4rem;
        padding: 1rem 0;
    }

    .form-success-state > * {
        max-width: 100%;
    }

    .form-success-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1.35rem;
    }

    .form-success-icon svg {
        width: 2rem;
        height: 2rem;
    }

    .form-success-state h3 {
        margin-bottom: 1rem;
        font-size: clamp(2.15rem, 10vw, 3rem);
        line-height: 1.04;
    }

    .form-success-state p {
        margin-bottom: 1.65rem;
        font-size: 0.95rem;
        line-height: 1.62;
    }

    .form-success-reset {
        min-height: 3rem;
        padding: 0.82rem 1.45rem;
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }
}

@keyframes formSuccessPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(63, 181, 230, 0.42);
    }

    70% {
        box-shadow: 0 0 0 1.25rem rgba(63, 181, 230, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(63, 181, 230, 0);
    }
}

.form-select option {
    background-color: #112E40;
    color: #FFFFFF;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(17, 46, 64, 0.92) 0%, rgba(17, 46, 64, 0.62) 52%, rgba(17, 46, 64, 0.08) 100%);
}

#hero-img {
    object-position: 64% center;
}

.hero-section {
    align-items: flex-start;
}

.hero-content {
    padding-top: clamp(8.25rem, 23vh, 11.5rem);
}

.hero-reveal {
    opacity: 0;
    transform: translate3d(0, 2rem, 0);
    filter: blur(0.35rem);
    animation: heroTextReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--hero-delay, 0s);
    will-change: opacity, transform, filter;
}

@keyframes heroTextReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, 2rem, 0);
        filter: blur(0.35rem);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-reveal {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }
}

@media (min-width: 768px) {
    .home-header-brand {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, -0.45rem, 0);
        filter: blur(0.2rem);
        transition:
            opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s linear 0.55s;
    }

    .home-header-brand.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
        transition-delay: 0s;
    }

    .home-header-brand.is-visible:hover {
        opacity: 0.85;
    }

    .hero-brand {
        display: inline-flex;
        align-items: center;
        gap: clamp(0.9855rem, 1.35vw, 1.215rem);
        width: auto;
        margin-bottom: 3.8rem;
    }

    .hero-brand-logo {
        width: clamp(8.395rem, 11.5vw, 10.35rem);
        height: auto;
        flex: 0 0 auto;
    }

    .hero-brand-copy {
        min-width: 0;
        flex: 0 0 auto;
        text-align: center;
    }

    .hero-brand-wordmark {
        display: block;
        width: auto;
        font-size: clamp(2.796rem, 3.83vw, 3.447rem);
        line-height: 1;
        letter-spacing: 0.035em;
        text-align: left;
        white-space: nowrap;
    }

    .hero-brand-location {
        display: block;
        margin-top: 0.55rem;
        color: #3FB5E6;
        font-family: 'Playfair Display', serif;
        font-size: clamp(1.6rem, 2.2vw, 1.98rem);
        font-weight: 600;
        line-height: 1.1;
    }

    .hero-heading {
        width: clamp(38rem, 48vw, 43rem);
        font-size: clamp(3.65rem, 5vw, 4.5rem) !important;
    }

    .hero-accent-line {
        display: block;
        width: max-content;
        max-width: 100%;
        text-align: left;
    }

    html[lang="en"] .hero-accent-line {
        font-size: 1.066em;
    }

    #hero-img {
        object-position: center center;
    }

    .hero-section {
        align-items: center;
    }

    .hero-content {
        padding-top: 0;
    }
}

.methodology-line {
    width: 2px !important;
    overflow: visible;
}

.methodology-line-progress {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(141, 218, 247, 0.82) 0%, rgba(63, 181, 230, 0.82) 48%, rgba(63, 181, 230, 0.38) 100%);
    border-radius: 999px;
    box-shadow:
        0 0 6px rgba(63, 181, 230, 0.30),
        0 0 14px rgba(63, 181, 230, 0.14);
    transform: scaleY(0);
    transform-origin: top;
}

.methodology-line-progress::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 18px;
    background: linear-gradient(90deg, rgba(63, 181, 230, 0) 0%, rgba(63, 181, 230, 0.10) 42%, rgba(141, 218, 247, 0.18) 50%, rgba(63, 181, 230, 0.10) 58%, rgba(63, 181, 230, 0) 100%);
    filter: blur(6px);
    opacity: 0.58;
    transform: translateX(-50%);
    pointer-events: none;
}

.methodology-media {
    position: relative;
    height: auto !important;
}

.methodology-media::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.methodology-media img {
    position: absolute;
    inset: -1px;
    width: calc(100% + 2px);
    max-width: none;
    height: calc(100% + 2px);
    object-fit: cover;
}

@media (min-width: 768px) {
    .methodology-media::before {
        padding-top: 62.5%;
    }
}

.methodology-marker {
    border-color: rgba(17, 46, 64, 0.08) !important;
    background-color: #F4F7F9;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.methodology-marker-dot {
    background-color: rgba(17, 46, 64, 0.22) !important;
    transform: scale(0.72);
    opacity: 0.38;
    transition: background-color 0.35s ease, transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
}

.methodology-step.is-active .methodology-marker {
    border-color: #3FB5E6 !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 0 8px rgba(63, 181, 230, 0.12), 0 18px 36px rgba(17, 46, 64, 0.12) !important;
}

.methodology-step.is-active .methodology-marker-dot {
    background-color: #3FB5E6 !important;
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 18px rgba(63, 181, 230, 0.85);
}

.technical-trust-section {
    background: #E8F0F4;
}

.technical-trust-heading {
    margin-bottom: 7rem;
}

.cards-container {
    position: relative;
}

.stack-card {
    min-height: 0;
    position: relative;
    transform-origin: top center;
    box-shadow: 0 -10px 40px rgba(17, 46, 64, 0.05);
    transition: all 0.5s ease;
}

.stack-card + .stack-card {
    margin-top: 2rem;
}

.number-massive {
    font-size: clamp(6rem, 15vw, 12rem);
    line-height: 0.8;
    color: rgba(63, 181, 230, 0.1);
    transform: translateY(-20px);
}

.number-massive-dark {
    color: rgba(255, 255, 255, 0.05);
}

.technical-trust-section .h-64 {
    height: 16rem;
}

.technical-trust-section .p-10 {
    padding: 2.5rem;
}

.technical-trust-section .top-4 {
    top: 1rem;
}

.technical-trust-section .left-8 {
    left: 2rem;
}

.technical-trust-section .mt-12 {
    margin-top: 3rem;
}

.technical-trust-section .order-first {
    order: -9999;
}

.technical-trust-section .select-none {
    user-select: none;
}

.technical-trust-section .bg-\[\#F8FAFC\] {
    background-color: #F8FAFC;
}

.technical-trust-section .grayscale-\[20\%\] {
    filter: grayscale(20%);
}

.technical-trust-section .opacity-80 {
    opacity: 0.8;
}

.technical-trust-section .mix-blend-luminosity {
    mix-blend-mode: luminosity;
}

.topo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

.local-coverage-map-section {
    padding: 6rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.local-map-layout {
    max-width: 1600px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.local-map-title {
    font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.local-map-cta:hover,
.local-map-cta:focus-visible {
    background-color: #3FB5E6;
    border-color: #3FB5E6;
    color: #112E40;
}

.local-map-visual-wrap {
    min-width: 0;
}

.local-map-visual {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(63, 181, 230, 0.2);
    border-radius: 2rem;
    background: #0B1218;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32), 0 0 42px rgba(63, 181, 230, 0.08);
    aspect-ratio: 1158 / 636;
}

.local-map-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 -40px 80px rgba(10, 26, 36, 0.2);
}

.local-map-ambient {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 50%;
    border-radius: 9999px;
    background: #3FB5E6;
    opacity: 0.06;
    filter: blur(100px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.local-map-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.local-map-grid-lines {
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 1;
}

.local-map-land {
    fill: #14212C;
}

.land-mass {
    fill: #192A3A;
}

.local-map-topography {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1.5;
}

.local-map-coast,
.coast-line {
    fill: none;
    stroke: #3FB5E6;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(63, 181, 230, 0.9)) drop-shadow(0 0 20px rgba(63, 181, 230, 0.5));
}

.local-map-node-dot,
.node-dot {
    fill: #fff;
    filter: drop-shadow(0 0 8px #3FB5E6) drop-shadow(0 0 15px #3FB5E6);
}

.local-map-node-ring {
    fill: none;
    stroke: #3FB5E6;
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
    animation: localMapPulseRing 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.local-map-node-ring-delay {
    animation-delay: 1.5s;
}

.local-map-city-node-main .local-map-node-ring-delay {
    animation-delay: 2s;
}

.malaga-pulse-ring {
    fill: none;
    stroke: #3FB5E6;
    stroke-width: 1.5;
    transform-box: fill-box;
    transform-origin: center;
    animation: localMapPulseRing 2.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.local-map-city-label,
.city-label {
    fill: #fff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.city-label.capital {
    font-size: 15px;
    font-weight: 700;
}

.carto-label,
.carto-label-sea {
    fill: rgba(255, 255, 255, 0.18);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.45em;
}

.carto-label-sea {
    fill: rgba(63, 181, 230, 0.16);
    font-style: italic;
}

@keyframes localMapPulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0.9;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.radar-ping {
    animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPing {
    75%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* --- Especialidades: en móvil el scroll horizontal pineado se desactiva
   y la sección pasa a layout vertical para que las tarjetas sean visibles
   (en desktop GSAP sigue gestionando el pin). --- */
@media (max-width: 767px) {
    .hero-overlay {
        background: linear-gradient(180deg, rgba(17, 46, 64, 0.86) 0%, rgba(17, 46, 64, 0.76) 48%, rgba(17, 46, 64, 0.62) 100%);
    }

    .esp-pin {
        height: auto;
        display: block;
        overflow: visible;
    }

    .esp-panel {
        position: static;
        width: 100%;
        height: auto;
        border-right: 0;
        box-shadow: none;
        padding-top: 6rem;
        padding-bottom: 2.5rem;
    }

    .esp-gallery-wrap {
        height: auto;
        padding-top: 0;
        padding-bottom: 5rem;
    }

    .gallery-track {
        flex-direction: column;
        width: 100%;
        height: auto !important;
        align-items: stretch;
        animation: none;
        transform: none !important;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .gallery-track > div {
        width: 100% !important;
        height: 60vh !important;
    }

    .gallery-track > .w-\[10vw\] {
        display: none;
    }
}

/* --- Lightbox de la galería --- */
.gallery-masonry {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 768px) {
    .gallery-masonry {
        column-count: 2;
    }
}

@media (min-width: 1180px) {
    .gallery-masonry {
        column-count: 3;
    }
}

#gallery-grid .gallery-item {
    display: inline-block;
    width: 100%;
    height: auto;
    margin: 0 0 1.5rem;
    padding: 0;
    border: 0;
    background: none;
    appearance: none;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

#gallery-grid .gallery-item img {
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: contain;
}

#gallery-grid .gallery-item:focus-visible {
    outline: 3px solid #3FB5E6;
    outline-offset: 3px;
}

#gallery-grid .gallery-caption {
    display: flex;
    align-items: center;
    bottom: 1rem;
    left: 1rem;
    max-width: min(72%, 20rem);
    padding: 0.45rem 0.75rem;
    gap: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
}

#gallery-grid .gallery-caption-dot {
    display: block;
    width: 0.4rem;
    height: 0.4rem;
    flex: 0 0 0.4rem;
    border-radius: 999px;
    background: #3FB5E6;
}

#gallery-grid .gallery-caption-text {
    color: #0d2233;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.78rem;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

@media (max-width: 767px) {
    #portfolio {
        padding: 4.5rem 1rem;
    }

    #portfolio > .max-w-7xl:first-child {
        margin-bottom: 2rem;
    }

    .gallery-masonry {
        column-count: 2;
        column-gap: .75rem;
    }

    #gallery-grid .gallery-item {
        margin-bottom: .75rem;
        border-radius: 1rem;
    }

    #gallery-grid .gallery-caption {
        display: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    #gallery-grid .gallery-caption {
        display: none;
    }
}

.footer-credit-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-powered-by {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    transition: color 320ms ease;
}

.footer-powered-by > span:first-child {
    margin-right: 0.45rem;
}

.footer-powered-by-logo {
    position: relative;
    display: inline-block;
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    margin-right: 0.12rem;
}

.footer-powered-by-logo img {
    position: absolute;
    inset: 0;
    width: auto;
    height: 1rem;
    opacity: 0.75;
    transition: opacity 650ms ease-in-out, transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 650ms ease-in-out;
}

.footer-powered-by-logo-color {
    opacity: 0 !important;
    transform: scale(0.82) rotate(-5deg);
}

.footer-powered-by-brand {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.footer-powered-by-digital {
    color: inherit;
    transition: color 600ms ease-in-out, text-shadow 600ms ease-in-out;
}

.footer-powered-by:hover .footer-powered-by-logo-white,
.footer-powered-by:focus-visible .footer-powered-by-logo-white {
    opacity: 0;
    transform: scale(1.1);
}

.footer-powered-by:hover .footer-powered-by-logo-color,
.footer-powered-by:focus-visible .footer-powered-by-logo-color {
    opacity: 1 !important;
    transform: scale(1) rotate(0);
    filter: drop-shadow(0 0 0.4rem rgba(168, 40, 136, 0.65));
}

.footer-powered-by:hover .footer-powered-by-digital,
.footer-powered-by:focus-visible .footer-powered-by-digital {
    color: #c53ba3;
    text-shadow: 0 0 0.75rem rgba(168, 40, 136, 0.42);
}

@media (max-width: 767px) {
    footer {
        padding-bottom: calc(7rem + env(safe-area-inset-bottom)) !important;
    }

    footer > .max-w-7xl:first-child {
        margin-bottom: 3rem !important;
    }

    .internal-footer-legal {
        gap: 1.35rem;
        padding-top: 0 !important;
        border-top: 0 !important;
    }

    .footer-credit-group {
        flex-direction: column;
        gap: 0.65rem;
        text-align: center;
    }

    .footer-legal-links {
        display: grid;
        width: 100%;
        max-width: 18rem;
        gap: 0.8rem;
        margin-top: 0 !important;
        text-align: center;
        line-height: 1.45;
    }

    .footer-legal-links a {
        padding: 0.15rem 0;
        color: rgba(255, 255, 255, 0.52);
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(8, 20, 28, 0.92);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.is-open {
    display: flex;
    opacity: 1;
}

.lightbox-figure {
    margin: 0;
    max-width: min(1100px, 90vw);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: #3FB5E6;
    border-color: #3FB5E6;
    color: #112E40;
}

.lightbox-close {
    top: 1.25rem;
    right: 1.25rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.75rem;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 3.25rem;
    height: 3.25rem;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
    left: 1.25rem;
}

.lightbox-next {
    right: 1.25rem;
}

.lightbox-close svg {
    width: 1.4rem;
    height: 1.4rem;
}

.lightbox-nav svg {
    width: 1.85rem;
    height: 1.85rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

@media (max-width: 767px) {
    .lightbox-nav {
        width: 2.75rem;
        height: 2.75rem;
    }

    .lightbox-nav svg {
        width: 1.6rem;
        height: 1.6rem;
    }

    .lightbox-prev {
        left: 0.75rem;
    }

    .lightbox-next {
        right: 0.75rem;
    }

    /* En móvil mostramos menos fotos para que la galería no sea
       interminable; en desktop se ven todas. */
    #gallery-grid .gallery-item.gallery-extra {
        display: none;
    }
}

.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 35;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #3FB5E6;
    color: #FFFFFF;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.whatsapp-float svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.whatsapp-float:hover {
    background: #FFFFFF;
    color: #3FB5E6;
    transform: translateY(-2px);
}

.cookie-float {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 36;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 9999px;
    background: #3FB5E6;
    color: #FFFFFF;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cookie-float svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.cookie-float:hover {
    background: #FFFFFF;
    color: #3FB5E6;
    transform: translateY(-2px);
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 4.25rem;
    z-index: 60;
    display: grid;
    box-sizing: border-box;
    gap: 1.25rem;
    max-width: 58rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    background: rgba(10, 26, 36, 0.96);
    color: #FFFFFF;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
    display: none;
}

.cookie-banner__eyebrow {
    margin-bottom: 0.4rem;
    color: #3FB5E6;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cookie-banner h2,
.cookie-modal h2 {
    margin: 0 0 0.6rem;
    font-family: "Playfair Display", serif;
    font-size: 1.45rem;
    line-height: 1.15;
}

.cookie-banner p,
.cookie-modal p,
.cookie-option small {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.88rem;
    line-height: 1.55;
}

.cookie-banner a {
    color: #3FB5E6;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.cookie-banner__actions,
.cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.cookie-action {
    min-height: 2.65rem;
    padding: 0.75rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Sólido neutro (Rechazar / Guardar) — misma prominencia que Aceptar */
.cookie-action--solid {
    background: #FFFFFF;
    color: #112E40;
}

.cookie-action--solid:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-1px);
}

/* Sólido cyan (Aceptar) */
.cookie-action--accent {
    background: #3FB5E6;
    color: #FFFFFF;
}

.cookie-action--accent:hover {
    background: #2AA6DB;
    transform: translateY(-1px);
}

/* Fantasma (Configurar) — acción terciaria, menos peso visual */
.cookie-action--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.85);
}

.cookie-action--ghost:hover {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 0.75rem;
    background: rgba(10, 26, 36, 0.72);
}

.cookie-modal__panel {
    box-sizing: border-box;
    width: calc(100vw - 1.5rem);
    max-width: 100%;
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    background: #0A1A24;
    color: #FFFFFF;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    background: transparent;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cookie-modal__close svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.cookie-modal__close:hover,
.cookie-modal__close:focus-visible {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #112E40;
    outline: none;
    transform: translateY(-1px);
}

.cookie-modal .cookie-modal__intro {
    margin: 0.75rem 0 1.3rem;
}

.cookie-options {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    font-family: "Plus Jakarta Sans", sans-serif;
}

.cookie-option strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #FFFFFF;
    font-size: 0.95rem;
}

.cookie-option__text {
    display: block;
    cursor: default;
}

label.cookie-option__text {
    cursor: pointer;
}

/* Interruptor (toggle) de categoría */
.cookie-switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    width: 2.85rem;
    height: 1.6rem;
}

.cookie-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.cookie-switch__track {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cookie-switch__thumb {
    position: absolute;
    top: 50%;
    left: 0.22rem;
    width: 1.1rem;
    height: 1.1rem;
    transform: translateY(-50%);
    border-radius: 9999px;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.cookie-switch input:checked ~ .cookie-switch__track {
    background: #3FB5E6;
    border-color: #3FB5E6;
}

.cookie-switch input:checked ~ .cookie-switch__track .cookie-switch__thumb {
    transform: translate(1.25rem, -50%);
}

.cookie-switch input:focus-visible ~ .cookie-switch__track {
    outline: 2px solid #3FB5E6;
    outline-offset: 2px;
}

.cookie-switch--locked {
    opacity: 0.65;
}

.cookie-switch--locked input {
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .cookie-modal {
        display: block;
        overflow: hidden;
    }

    .cookie-modal__panel {
        position: fixed;
        top: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        width: auto;
        max-width: none;
        max-height: none;
    }

    .cookie-banner__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .cookie-banner__actions .cookie-action {
        width: 100%;
        min-height: 2.55rem;
        padding-inline: 1rem;
    }

    .cookie-modal h2 {
        font-size: 1.35rem;
    }

    .cookie-modal p,
    .cookie-option small {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .cookie-option {
        align-items: center;
    }

    .cookie-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .cookie-modal__actions .cookie-action {
        width: 100%;
        min-height: 2.55rem;
        padding-inline: 1rem;
        font-size: 0.68rem;
    }
}

@media (min-width: 768px) {
    .whatsapp-float {
        right: 1.5rem;
        bottom: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .whatsapp-float svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .cookie-float {
        left: 1.5rem;
        bottom: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .cookie-float svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .cookie-banner {
        left: 1.5rem;
        right: auto;
        bottom: 5rem;
        grid-template-columns: 1fr auto;
        align-items: end;
        padding: 1.5rem;
    }

    .cookie-banner__actions,
    .cookie-modal__actions {
        justify-content: flex-end;
    }

    .cookie-modal {
        padding: 1rem;
    }

    .cookie-modal__panel {
        width: min(100%, 46rem);
        max-height: min(86vh, 46rem);
        padding: 1.5rem;
    }

    .cookie-modal .cookie-modal__intro {
        margin: 1rem 0 1.85rem;
    }

    .cookie-options {
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .cookie-option {
        gap: 1rem;
        padding: 1rem;
    }
}

@media (min-width: 768px) {
    .cards-container {
        padding-bottom: 10vh;
    }

    .stack-card {
        height: 70vh;
        position: sticky;
        top: 15vh;
    }

    .stack-card + .stack-card {
        margin-top: 0;
    }

    .stack-card:nth-child(1) {
        top: calc(10vh + 0px);
    }

    .stack-card:nth-child(2) {
        top: calc(10vh + 30px);
    }

    .stack-card:nth-child(3) {
        top: calc(10vh + 60px);
    }

    .stack-card:nth-child(4) {
        top: calc(10vh + 90px);
    }

    .technical-trust-section .stack-card {
        border-radius: 3rem;
    }

    .technical-trust-section .md\:h-full {
        height: 100%;
    }

    .technical-trust-section .md\:order-last {
        order: 9999;
    }

    .technical-trust-section .md\:p-16 {
        padding: 4rem;
    }

    .technical-trust-section .md\:left-16 {
        left: 4rem;
    }

    .technical-trust-section .md\:mt-16 {
        margin-top: 4rem;
    }


    .local-coverage-map-section {
        padding: 8rem 6rem;
    }

}

@media (min-width: 1024px) {
    .technical-trust-section .lg\:p-24 {
        padding: 6rem;
    }

    .technical-trust-section h2 {
        font-size: 3.75rem;
        line-height: 1;
    }


    .local-map-layout {
        grid-template-columns: minmax(20rem, 0.82fr) minmax(0, 1.45fr);
        gap: 5rem;
    }
}

@media (max-width: 767px) {
    .specialty-card-number {
        opacity: 1 !important;
    }
}
