/* Capa de diseño 2026: se carga después de style.css y lo refina */

:root {
    --rojo: #ca0836;
    --rojo-oscuro: #a3062b;
    --tinta: #17181a;
    --texto: #4b4e57;
    --gris: #f5f6f8;
    --borde: #e7e8ec;
    --radio: 18px;
    --sombra: 0 10px 30px rgba(20, 22, 30, .07);
    --sombra-alta: 0 18px 40px rgba(20, 22, 30, .13);
    --cabecera: 72px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--tinta);
    -webkit-font-smoothing: antialiased;
}

#app {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--cabecera) + 8px);
}

#app h1,
#app h2,
#app h3,
#app h4,
#app .step-title {
    font-family: 'Poppins', sans-serif;
}

#app p,
#app li,
#app .step-description,
#app .contact-line,
#app input,
#app textarea,
#app button,
#app .section-8 span {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

::selection {
    background: var(--rojo);
    color: #fff;
}


/* ---------- Cabecera ---------- */

.wolfsa-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--cabecera);
    margin-bottom: calc(var(--cabecera) * -1);
    transition: background-color .25s ease, box-shadow .25s ease;
}

.wolfsa-header.sticky,
.wolfsa-header.menu-abierto {
    background-color: rgba(23, 24, 26, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}

.wolfsa-header-inner {
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wolfsa-brand img {
    height: 44px !important;
    width: auto !important;
    margin: 0 !important;
    display: block;
}

.wolfsa-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.wolfsa-nav a,
.wolfsa-nav a:link,
.wolfsa-nav a:visited {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: .82rem;
    color: rgba(255, 255, 255, .86);
    padding: .55em .85em;
    border-radius: 999px;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.wolfsa-nav a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, .12);
}

.wolfsa-nav a.kit,
.wolfsa-nav a.kit:link,
.wolfsa-nav a.kit:visited {
    color: #ffcd00;
    border: 1.5px solid #ffcd00;
    margin-left: 8px;
}

.wolfsa-nav a.kit:hover {
    background-color: #ffcd00;
    color: var(--tinta);
}

.wolfsa-nav a.destacado,
.wolfsa-nav a.destacado:link,
.wolfsa-nav a.destacado:visited {
    background-color: var(--rojo);
    color: #fff;
    padding: .6em 1.2em;
    margin-left: 6px;
}

.wolfsa-nav a.destacado:hover {
    background-color: var(--rojo-oscuro);
}

.wolfsa-menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.35rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.wolfsa-menu-toggle:hover {
    background-color: rgba(255, 255, 255, .12);
}

@media (max-width: 1180px) {
    .wolfsa-menu-toggle {
        display: block;
    }
    .wolfsa-nav {
        display: none;
        position: absolute;
        top: calc(var(--cabecera) + 6px);
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        background-color: #1d1e21;
        border-radius: var(--radio);
        box-shadow: var(--sombra-alta);
    }
    .wolfsa-nav.abierto {
        display: flex;
    }
    .wolfsa-nav a {
        font-size: .95rem !important;
        padding: .8em 1em !important;
        border-radius: 12px !important;
        text-align: center;
        margin: 0 !important;
    }
}


/* ---------- Botones ---------- */

#app section button {
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    color: #fff;
    background-color: var(--rojo);
    border: 2px solid var(--rojo);
    border-radius: 999px;
    padding: .75em 1.6em;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

#app section button:hover {
    background-color: var(--rojo-oscuro);
    border-color: var(--rojo-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(202, 8, 54, .28);
}

#app section button:focus-visible,
.wolfsa-nav a:focus-visible,
.wolfsa-menu-toggle:focus-visible {
    outline: 3px solid rgba(202, 8, 54, .45);
    outline-offset: 3px;
}

#app section button.secundario {
    background-color: transparent;
    border-color: rgba(255, 255, 255, .45);
    margin-left: .6em;
}

#app section button.secundario:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--tinta);
    box-shadow: none;
}


/* ---------- Títulos de sección ---------- */

.section-2 h2,
.section-4 h2,
.section-5 h2,
.section-6 h2,
.section-10 h2 {
    font-size: .82rem !important;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rojo) !important;
    margin-bottom: .9em;
}

.section-2 h2::before,
.section-4 h2::before,
.section-5 h2::before,
.section-6 h2::before,
.section-10 h2::before {
    content: "";
    display: inline-block;
    width: 2.2em;
    height: 2px;
    background-color: var(--rojo);
    vertical-align: middle;
    margin-right: .8em;
}

.section-2 h1,
.section-4 h1,
.section-5 h1,
.section-6 h1 {
    font-size: clamp(1.9rem, 3.5vw, 3rem) !important;
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.02em;
    padding: 0 0 .8em 0;
    margin: 0;
}


/* ---------- Portada ---------- */

.section-1 {
    padding: calc(var(--cabecera) + 4.5em) 0 5.5em 0;
    background-attachment: scroll;
    background-position: center;
}

.section-1 h1 {
    font-size: clamp(2.3rem, 5vw, 4rem) !important;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
    padding: 0 0 .55em 0;
}

.section-1 h2 {
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .72);
}

.section-1 p {
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .82);
    padding: 1em 0 2em 0;
    margin: 0;
    max-width: 40em;
}

.section-1 .wolfsa-movil-rojo {
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
}


/* ---------- Quiénes somos ---------- */

.section-2 {
    padding: 6em 0;
}

.section-2 h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.section-2 p {
    text-align: left;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--texto);
    margin-top: .6em;
}

.section-2 .wolfsa-pantalla-perspectiva {
    filter: drop-shadow(0 24px 30px rgba(20, 22, 30, .16));
}


/* ---------- Bloque del blog ---------- */

.section-3 {
    background: #fff;
    padding: 0 0 6em 0;
}

.blog-banda {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 2em;
    padding: 3.5em 3.5em 3.5em 4em;
    border-radius: 28px;
    background-color: var(--tinta);
    background-image: radial-gradient(circle at 90% 15%, rgba(202, 8, 54, .55), transparent 50%), radial-gradient(circle at 0% 100%, rgba(202, 8, 54, .25), transparent 45%);
    box-shadow: var(--sombra-alta);
    color: #fff;
}

#app .section-3 h2 {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #ff5c7f;
    margin-bottom: .9em;
}

#app .section-3 h2::before {
    content: "";
    display: inline-block;
    width: 2.2em;
    height: 2px;
    background-color: #ff5c7f;
    vertical-align: middle;
    margin-right: .8em;
}

.section-3 h1 {
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0 0 .4em 0;
}

#app .section-3 p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
    margin: 0 0 1.75em 0;
}

#app .section-3 button {
    margin: 0;
    background-color: var(--rojo);
    border-color: var(--rojo);
    color: #fff;
}

#app .section-3 button i {
    margin-left: .5em;
    font-size: .85em;
    transition: transform .2s ease;
}

#app .section-3 button:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--rojo);
}

#app .section-3 button:hover i {
    transform: translateX(4px);
}

.blog-banda-imagen {
    display: block;
}

.blog-banda-imagen img {
    display: block;
    position: static !important;
    width: 100% !important;
    max-width: 460px;
    height: auto !important;
    margin: 0 0 0 auto !important;
    filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .45));
    transition: transform .35s ease;
}

.blog-banda-imagen:hover img {
    transform: translateY(-6px) scale(1.02);
}


/* ---------- Qué hacemos / tarjetas ---------- */

.section-4 {
    padding: 6em 0;
}

#que-hacemos {
    background-color: var(--gris);
}

.section-4 .steps .step {
    background-color: #fff;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    padding: 1.75em;
    margin-bottom: 1.25em;
    min-height: 0;
    justify-content: flex-start;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.section-4 .steps .step:hover {
    transform: translateY(-3px);
    box-shadow: var(--sombra-alta);
    border-color: rgba(202, 8, 54, .25);
}

.section-4 .steps .step:has(> button) {
    background: none;
    border: 0;
    box-shadow: none;
    padding: .5em 0 0 0;
    transform: none;
}

.section-4 .steps .step img.step-icon {
    width: 104px !important;
    height: auto;
    flex-shrink: 0;
}

.section-4 .steps .step .step-info {
    border-bottom: 0;
    margin: 0 0 0 1.75em;
    padding: 0;
    height: auto;
}

.section-4 .steps .step .step-info .step-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: .6em;
}

.section-4 .steps .step .step-info .step-title span {
    font-size: 1.15rem;
    font-weight: 800;
    margin-right: .35em;
}

.section-4 .steps .step .step-info .step-description {
    font-size: .97rem;
    line-height: 1.7;
    color: var(--texto);
}

.section-4 .wolfsa-reloj-movil {
    filter: drop-shadow(0 24px 30px rgba(20, 22, 30, .18));
}


/* ---------- Robótica (bloque oscuro) ---------- */

.section-robotica {
    background-color: var(--tinta);
    background-image: radial-gradient(circle at 85% 0%, rgba(202, 8, 54, .35), transparent 45%), radial-gradient(circle at 0% 100%, rgba(202, 8, 54, .18), transparent 40%);
    border-top: 0;
    color: #fff;
}

.section-robotica h1 {
    color: #fff;
    padding-bottom: .5em;
}

#app .section-robotica h2 {
    color: #ff5c7f !important;
}

.section-robotica h2::before {
    background-color: #ff5c7f;
}

#app .section-robotica .robotica-intro {
    color: rgba(255, 255, 255, .78);
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 52em;
    margin-bottom: 2.5em;
}

.section-robotica .steps {
    margin-left: -10px;
    margin-right: -10px;
}

.section-robotica .steps .step {
    background-color: transparent;
    border: 0;
    box-shadow: none;
    padding: 10px;
    margin-bottom: 0;
}

.section-robotica .steps .step:hover {
    transform: none;
    box-shadow: none;
}

.section-robotica .steps .step .step-icon-fa {
    display: none;
}

.section-robotica .steps .step .step-info {
    position: relative;
    margin: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radio);
    padding: 1.75em 1.75em 1.75em 6em;
    transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.section-robotica .steps .step:hover .step-info {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, .08);
    border-color: rgba(255, 92, 127, .5);
}

.section-robotica .steps .step .step-info::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 1.5rem;
    top: 1.75rem;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 14px;
    background-color: var(--rojo);
    color: #fff;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-robotica .steps .step:nth-child(1) .step-info::before { content: "\f544"; }
.section-robotica .steps .step:nth-child(2) .step-info::before { content: "\f0c3"; }
.section-robotica .steps .step:nth-child(3) .step-info::before { content: "\f2db"; }
.section-robotica .steps .step:nth-child(4) .step-info::before { content: "\f085"; }

.section-robotica .steps .step .step-info .step-title {
    color: #fff;
}

.section-robotica .steps .step .step-info .step-title span {
    color: #ff5c7f;
}

.section-robotica .steps .step .step-info .step-description {
    color: rgba(255, 255, 255, .72);
}

#app .section-robotica button {
    margin-top: 2.5em;
}


/* ---------- Proyectos I+D ---------- */

.section-10 {
    border-top: 0;
    padding: 6em 0 4.5em 0;
    background-color: #fff;
}

.section-10 h2.digitalizacion {
    background: none;
    text-align: center;
    padding: 0;
}

.section-10 br {
    display: none;
}

.section-10 .container {
    padding: 1.5em 15px 0 15px;
}

.section-10 .container > .row {
    margin-bottom: 1.5em;
}

.section-10 .container > .row > .col-12 {
    background-color: #fff;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    padding: 2em !important;
    margin: 0 !important;
    flex-wrap: wrap;
    gap: 1.5em;
}

.section-10 .container > .row > .col-12 > img {
    height: 4.2rem !important;
    width: auto !important;
    margin: 0 !important;
    max-width: 100%;
    object-fit: contain;
}

.section-10 h1 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    margin-bottom: .7em;
}

.section-10 p {
    font-weight: 400;
    font-size: .97rem;
    line-height: 1.7;
    color: var(--texto);
}

.section-10 .info {
    border: 0;
    border-left: 4px solid var(--rojo);
    border-radius: 10px;
    background-color: var(--gris);
    text-align: left;
    padding: 1em 1.25em;
    margin: 1.25em 0;
}

#app .section-10 .info p {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .92rem;
    color: var(--tinta);
    margin: 0;
}

.section-10 table {
    font-size: .93rem;
}

.section-10 table th {
    font-weight: 500;
    color: var(--texto);
    padding: .25em 1.5em .25em 0;
    vertical-align: top;
    white-space: nowrap;
}

.section-10 table td {
    font-weight: 600;
    padding: .25em 0;
}


/* ---------- Kit Digital ---------- */

.section-9 {
    border-top: 1px solid var(--borde);
    padding: 1.5em 0;
    background-color: #fff;
}

#kit-digital {
    background-color: var(--gris);
}

#kit-digital .steps .step.a:hover {
    transform: none;
    box-shadow: var(--sombra);
    border-color: var(--borde);
}

#kit-digital .steps .step.a {
    padding: 2.25em;
}

#kit-digital .step-info.box {
    margin-left: 1.5em;
    min-width: 0;
}

#kit-digital .box > .step-title {
    margin-top: 2.5em;
    padding-top: 2em;
    border-top: 1px solid var(--borde);
}

#kit-digital .box > .step-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

#kit-digital .step-description p,
#kit-digital .step-description ul {
    text-align: left;
}

#kit-digital .step-description ul {
    padding-left: 1.2em;
}

#kit-digital .step-description li {
    margin-bottom: .55em;
    line-height: 1.65;
}

#kit-digital .step-description li::marker {
    color: var(--rojo);
}

#kit-digital .step-description .lista {
    color: var(--tinta);
    font-weight: 600;
}

#kit-digital .step-description h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--tinta);
    margin: 1.2em 0 .6em 0;
}

#kit-digital .contenedor-button {
    justify-content: flex-end;
    margin-top: 1.25em;
}


/* ---------- Formación ---------- */

.section-8 {
    background: linear-gradient(135deg, #d60b3b 0%, #8f0526 100%);
    padding: 6em 0;
    color: #fff;
}

.formacion-cabecera {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.5em;
    margin-bottom: 3em;
}

.formacion-cabecera > div:first-child {
    max-width: 44em;
}

#app .section-8 .formacion-intro {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.7;
    text-transform: none;
    text-align: left;
    color: rgba(255, 255, 255, .88);
    width: auto;
    max-width: none;
    margin: 1.1em 0 0 0;
}

.formacion-cifra {
    flex-shrink: 0;
    text-align: center;
    padding: 1.4em 2em;
    border-radius: var(--radio);
    background-color: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
}

.formacion-cifra strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
}

#app .section-8 .formacion-cifra span {
    display: block;
    width: auto;
    margin: .5em 0 0 0;
    font-family: 'Poppins', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(255, 255, 255, .88);
}

#app .section-8 h2 {
    position: static;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    margin-bottom: .9em;
}

#app .section-8 h2::before {
    content: "";
    display: inline-block;
    width: 2.2em;
    height: 2px;
    background-color: rgba(255, 255, 255, .85);
    vertical-align: middle;
    margin-right: .8em;
}

.section-8 h1 {
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.02em;
    margin: 0;
}

.formacion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

.formacion-card sup {
    font-size: .55em;
    top: -.7em;
}

.formacion-puntos {
    list-style: none;
    padding: 1.2em 0 0 0;
    margin: 1.2em 0 0 0;
    border-top: 1px solid var(--borde);
}

#app .formacion-puntos li {
    position: relative;
    padding-left: 1.7em;
    margin-bottom: .55em;
    font-size: .93rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--tinta);
}

.formacion-puntos li::before {
    content: "\f00c";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: .75em;
    color: var(--rojo);
    position: absolute;
    left: 0;
    top: .35em;
}

.formacion-card {
    position: relative;
    background-color: #fff;
    color: var(--tinta);
    border-radius: var(--radio);
    padding: 2.25em;
    box-shadow: 0 18px 40px rgba(60, 0, 15, .28);
    transition: transform .25s ease, box-shadow .25s ease;
}

.formacion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px rgba(60, 0, 15, .36);
}

.formacion-icono {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 16px;
    background-color: rgba(202, 8, 54, .09);
    color: var(--rojo);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4em;
}

#app .section-8 .formacion-etiqueta {
    position: absolute;
    top: 2.25rem;
    right: 2.25rem;
    display: inline-block;
    width: auto;
    margin: 0;
    padding: .35em .9em;
    border-radius: 999px;
    background-color: var(--tinta);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
}

.formacion-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 .7em 0;
}

#app .section-8 .formacion-card p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .97rem;
    font-weight: 400;
    line-height: 1.7;
    text-transform: none;
    text-align: left;
    color: var(--texto);
    width: auto;
    max-width: none;
    margin: 0;
}

.formacion-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
    margin-top: 1.5em;
    padding: 1.75em 2.25em;
    border-radius: var(--radio);
    background-color: rgba(23, 24, 26, .35);
    border: 1px solid rgba(255, 255, 255, .14);
}

.formacion-pie h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 .3em 0;
}

#app .section-8 .formacion-pie p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    text-transform: none;
    text-align: left;
    color: rgba(255, 255, 255, .85);
    width: auto;
    max-width: 44em;
    margin: 0;
}

#app .section-8 .formacion-pie button {
    flex-shrink: 0;
}

#app .section-8 button {
    background-color: #fff;
    border-color: #fff;
    color: var(--rojo);
}

#app .section-8 button:hover {
    background-color: var(--tinta);
    border-color: var(--tinta);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}


/* ---------- Portfolio ---------- */

.section-5 {
    padding: 6em 0;
    background-color: #fff;
}

.section-5 .portfolio {
    display: flex;
    gap: 18px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-5 .portfolio .portfolio-item {
    width: calc((100% - 36px) / 3);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    transition: transform .3s ease, box-shadow .3s ease;
}

.section-5 .portfolio .portfolio-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--sombra-alta);
}


/* ---------- Contacto ---------- */

.section-6 {
    padding: 6em 0;
    background-color: var(--gris);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 1.5em;
    align-items: stretch;
}

.contacto-card {
    background-color: #fff;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    padding: 2.25em;
}

.section-6 h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tinta);
    padding: 0 0 1em 0;
    margin: 0;
}

.section-6 .contact-line {
    display: flex;
    align-items: center;
    gap: .9em;
    font-size: 1rem;
    color: var(--texto);
    margin-bottom: .9em;
}

.section-6 .contact-line i {
    width: 2.6em;
    height: 2.6em;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: rgba(202, 8, 54, .09);
    color: var(--rojo);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-6 .contact-line a,
.section-6 .contact-line a:link,
.section-6 .contact-line a:visited {
    color: var(--tinta);
    font-weight: 500;
}

.section-6 .contact-line a:hover {
    color: var(--rojo);
}

.section-6 form {
    width: 100% !important;
    padding: 0;
    align-items: stretch;
}

.section-6 form input,
.section-6 form textarea {
    font-size: 1rem;
    color: var(--tinta);
    background-color: var(--gris);
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: .85em 1.1em;
    margin-bottom: .9em;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.section-6 form textarea {
    resize: vertical;
    min-height: 9em;
}

.section-6 form input:focus,
.section-6 form textarea:focus {
    outline: 0;
    background-color: #fff;
    border-color: var(--rojo);
    box-shadow: 0 0 0 4px rgba(202, 8, 54, .12);
}

#app .section-6 form button {
    align-self: flex-end;
    padding: .8em 2em;
}


/* ---------- Pie con mapa ---------- */

.wolfsa-footer {
    background-color: var(--tinta);
    background-image: radial-gradient(circle at 100% 0%, rgba(202, 8, 54, .22), transparent 40%);
    color: rgba(255, 255, 255, .72);
    padding: 4.5em 0 1.5em 0;
    font-size: .95rem;
}

.wolfsa-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
    padding: 2em 2.25em;
    margin-bottom: 3.5em;
    border-radius: var(--radio);
    background: linear-gradient(135deg, #d60b3b 0%, #8f0526 100%);
    color: #fff;
}

.wolfsa-footer-cta h3,
.wolfsa-footer-cta .h3-pie {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 .25em 0;
}

.wolfsa-footer-cta p {
    margin: 0;
    max-width: none;
    color: rgba(255, 255, 255, .88);
}

.wolfsa-footer a.wolfsa-footer-boton {
    display: inline-block;
    flex-shrink: 0;
    margin: 0;
    padding: .8em 1.9em;
    border-radius: 999px;
    background-color: #fff;
    color: var(--rojo) !important;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease;
}

.wolfsa-footer a.wolfsa-footer-boton:hover {
    color: var(--rojo-oscuro) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}

.wolfsa-footer-grid {
    display: grid;
    grid-template-columns: 1.15fr .75fr 1.7fr;
    gap: 3em;
}

.wolfsa-footer-logo {
    height: 48px !important;
    width: auto !important;
    margin: 0 0 1.25em 0 !important;
    display: block;
}

.wolfsa-footer-marca p {
    line-height: 1.7;
    margin: 0 0 1.5em 0;
}

.wolfsa-footer-dato {
    display: flex;
    align-items: center;
    gap: .8em;
    margin-bottom: .75em;
}

.wolfsa-footer-dato i {
    width: 2.3em;
    height: 2.3em;
    flex-shrink: 0;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, .08);
    color: #ff5c7f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
}

.wolfsa-footer h4,
.wolfsa-footer .h4-pie {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.2em;
}

.wolfsa-footer a,
.wolfsa-footer a:link,
.wolfsa-footer a:visited {
    color: rgba(255, 255, 255, .72);
    transition: color .2s ease;
}

.wolfsa-footer a:hover {
    color: #fff;
}

.wolfsa-footer-enlaces a {
    display: block;
    margin-bottom: .65em;
}

.wolfsa-footer-mapa iframe {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: var(--radio);
    filter: grayscale(.4) contrast(1.05);
    background-color: #2a2b2f;
}

.wolfsa-footer-legal {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5em 2em;
    margin-top: 3em;
    padding-top: 1.5em;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .85rem;
    color: rgba(255, 255, 255, .5);
}


/* ---------- Kit Digital desplegable ---------- */

.kit-acordeon {
    display: flex;
    flex-direction: column;
    gap: .9em;
}

.kit-item {
    background-color: #fff;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.kit-item:hover,
.kit-item[open] {
    border-color: rgba(202, 8, 54, .3);
}

.kit-item[open] {
    box-shadow: var(--sombra-alta);
}

.kit-item summary {
    display: flex;
    align-items: center;
    gap: .9em;
    padding: 1.3em 1.75em;
    cursor: pointer;
    list-style: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.12rem;
    line-height: 1.35;
    color: var(--tinta);
}

.kit-item summary::-webkit-details-marker {
    display: none;
}

.kit-item summary:focus-visible {
    outline: 3px solid rgba(202, 8, 54, .45);
    outline-offset: -3px;
}

.kit-item .kit-num {
    flex-shrink: 0;
    min-width: 3.1em;
    padding: .35em .6em;
    border-radius: 10px;
    background-color: rgba(202, 8, 54, .09);
    color: var(--rojo);
    font-weight: 800;
    font-size: .95rem;
    text-align: center;
}

.kit-item .kit-titulo {
    flex: 1;
}

.kit-item summary i {
    flex-shrink: 0;
    width: 2.2em;
    height: 2.2em;
    border-radius: 50%;
    background-color: var(--gris);
    color: var(--rojo);
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.kit-item[open] summary i {
    transform: rotate(180deg);
    background-color: var(--rojo);
    color: #fff;
}

#app .kit-item .kit-cuerpo {
    padding: 1.5em 1.75em 1.75em 1.75em;
    border-top: 1px solid var(--borde);
    font-size: .97rem;
    line-height: 1.7;
    color: var(--texto);
}

.kit-item[open] .kit-cuerpo {
    animation: kit-abrir .3s ease;
}

@keyframes kit-abrir {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.kit-item .kit-cuerpo ul ul {
    margin-top: .5em;
}

.section-9 .logo-digitalizadores {
    display: block;
    margin: 0 !important;
}


/* ---------- Quiénes somos (nuevo) ---------- */

.section-2 h1 {
    padding-bottom: .5em;
}

#app .section-2 h3 {
    font-size: 1.1rem;
    padding: 0;
    margin: 0 0 .6em 0;
}

#app .section-2 p {
    margin: 0 0 1.5em 0;
    max-width: 34em;
}

.quienes-puntos {
    list-style: none;
    padding: 0;
    margin: 0 0 2em 0;
}

.quienes-puntos li {
    display: flex;
    align-items: center;
    gap: .9em;
    margin-bottom: .8em;
    font-weight: 500;
    color: var(--tinta);
}

.quienes-puntos i {
    width: 2.6em;
    height: 2.6em;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: rgba(202, 8, 54, .09);
    color: var(--rojo);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quienes-imagen {
    position: relative;
    border-radius: 28px;
    padding: 2.5em 1.5em;
    background: radial-gradient(circle at 75% 20%, rgba(202, 8, 54, .14), transparent 55%), var(--gris);
}

.section-2 .quienes-imagen .wolfsa-pantalla-perspectiva {
    display: block;
    width: 100% !important;
    max-width: 520px;
    height: auto !important;
    margin: 0 auto !important;
}


/* ---------- Varios ---------- */

#go-top {
    width: 48px;
    height: 48px;
    border: 0;
    bottom: 1.25rem;
    right: 1.25rem;
    font-size: 1rem;
    box-shadow: 0 10px 24px rgba(202, 8, 54, .35);
    transition: transform .2s ease, background-color .2s ease;
    z-index: 900;
}

#go-top:hover {
    transform: translateY(-3px);
    background-color: var(--rojo-oscuro);
}

#go-top i {
    font-size: 1rem;
    height: auto;
}

.modal-content {
    border: 0;
    border-radius: var(--radio);
    overflow: hidden;
}

.aparece {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.aparece.visible {
    opacity: 1;
    transform: none;
}


/* ---------- Tableta y móvil ---------- */

@media (max-width: 992px) {
    .section-1 {
        padding: calc(var(--cabecera) + 2.5em) 0 3em 0;
    }
    .section-2,
    .section-4,
    .section-5,
    .section-6,
    .section-8,
    .section-10 {
        padding-top: 4em !important;
        padding-bottom: 4em !important;
    }
    .section-4 .steps .step .step-info {
        margin: 0 !important;
        padding: 0 !important;
    }
    .section-robotica .steps .step .step-info {
        padding: 5.5em 1.5em 1.5em 1.5em !important;
    }
    #kit-digital .steps .step.a {
        padding: 1.5em;
    }
    .formacion-grid {
        grid-template-columns: 1fr;
    }
    .formacion-cabecera,
    .formacion-pie {
        flex-direction: column;
        align-items: flex-start;
    }
    .formacion-cifra {
        padding: 1em 1.5em;
    }
    .formacion-cifra strong {
        font-size: 2.6rem;
    }
    .formacion-pie {
        padding: 1.5em;
    }
    .formacion-card {
        padding: 1.75em;
    }
    #app .section-8 .formacion-etiqueta {
        top: 1.75rem;
        right: 1.75rem;
    }
    .section-3 {
        padding-top: 0 !important;
        padding-bottom: 4em !important;
    }
    .blog-banda {
        grid-template-columns: 1fr;
        padding: 2.25em 1.75em;
        border-radius: 22px;
    }
    .blog-banda-imagen img {
        max-width: 320px;
        margin: 0 auto !important;
    }
    .section-5 .portfolio {
        flex-direction: column;
    }
    .section-5 .portfolio .portfolio-item {
        width: 100% !important;
        margin: 0 !important;
    }
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    .contacto-card {
        padding: 1.5em;
    }
    .contacto-sello img {
        width: auto !important;
        margin: 0 auto !important;
    }
    .wolfsa-footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5em;
    }
    .wolfsa-footer-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.75em;
    }
    .quienes-imagen {
        margin-top: 2.5em;
        padding: 1.5em 1em;
    }
    .kit-item summary {
        padding: 1.1em 1.1em;
        font-size: 1rem;
    }
    #app .kit-item .kit-cuerpo {
        padding: 1.25em 1.1em 1.5em 1.1em;
    }
    .section-10 .container > .row > .col-12 {
        padding: 1.5em !important;
        justify-content: center !important;
    }
    .section-10 .container > .row > .col-12 > img {
        height: 3.2rem !important;
    }
    .section-10 table th {
        white-space: normal;
    }
}

@media (max-width: 560px) {
    #app section button.secundario {
        margin: .8em 0 0 0;
    }
    .section-1 h1 {
        font-size: 2.1rem !important;
    }

}

@media (min-width: 993px) and (max-width: 1199px) {
    .formacion-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* ---------- Accesibilidad ---------- */

.saltar-contenido {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 2000;
    padding: .8em 1.2em;
    border-radius: 0 0 12px 12px;
    background-color: #fff;
    color: var(--rojo) !important;
    font-weight: 600;
    box-shadow: var(--sombra-alta);
}

.saltar-contenido:focus {
    top: 0;
}

#contenido:focus {
    outline: 0;
}

#app a:focus-visible,
#app summary:focus-visible,
#app button:focus-visible {
    outline: 3px solid rgba(202, 8, 54, .6);
    outline-offset: 3px;
    border-radius: 6px;
}

.section-1 a:focus-visible,
.section-1 button:focus-visible,
.wolfsa-header a:focus-visible,
.wolfsa-header button:focus-visible,
.section-robotica button:focus-visible,
.section-3 button:focus-visible,
.section-8 button:focus-visible,
.wolfsa-footer a:focus-visible {
    outline-color: #fff !important;
}

.section-6 form input::placeholder,
.section-6 form textarea::placeholder {
    color: #6b6e77;
    opacity: 1;
}

.wolfsa-footer-enlaces a {
    padding: .15em 0;
    margin-bottom: .4em;
}

.wolfsa-footer-dato a,
.section-6 .contact-line a {
    display: inline-block;
    padding: .2em 0;
}

.contacto-sello div {
    font-size: 12px !important;
}

.contacto-sello div[style*="font-weight:bold"] {
    font-size: 16px !important;
}

.formacion-card sup,
.section-8 sup {
    font-size: .7em;
}

@media (prefers-reduced-motion: reduce) {
    #app {
        scroll-behavior: auto;
    }
    #app *,
    #app *::before,
    #app *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .aparece {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* Las imágenes llevan width/height en el HTML para reservar su hueco */
#app img[width][height] {
    height: auto;
}
