.pagina-soporte {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.pagina-soporte .soporte-main {
    --soporte-grafito: #20242a;
    --soporte-texto: #495462;
    --soporte-borde: #d8dfe7;
    --soporte-rojo: #b90720;
    flex: 1;
    padding: clamp(16px, 2.8vw, 34px) max(16px, 4vw) clamp(30px, 5vw, 64px);
    background: #f0f2f5;
    color: var(--soporte-grafito);
}

.soporte-hero,
.soporte-servicios,
.soporte-agentes {
    max-width: 1250px;
    margin-inline: auto;
}

.soporte-hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    overflow: hidden;
    border-radius: 16px;
    background: var(--soporte-grafito);
    color: #f7f8fa;
}

.soporte-hero__texto {
    align-self: center;
    padding: clamp(26px, 4vw, 56px);
}

.soporte-eyebrow {
    margin: 0 0 12px;
    color: #d8dfe7;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.soporte-hero h1 {
    margin: 0 0 14px;
    color: #f7f8fa;
    font-size: clamp(2.45rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.045em;
}

.soporte-hero h1 span {
    color: #ff697d;
}

.soporte-hero__descripcion {
    max-width: 42ch;
    color: #e2e7ed;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.6;
}

.soporte-hero__acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.soporte-boton {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.soporte-boton--principal {
    background: var(--soporte-rojo);
}

.soporte-boton--principal:hover {
    background: #97071b;
}

.soporte-boton--secundario {
    border-color: #808b99;
}

.soporte-boton--secundario:hover {
    background: #333a44;
}

.soporte-boton:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.soporte-hero__foto {
    position: relative;
    min-height: 350px;
    background: #333a44;
}

.soporte-hero__foto img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.soporte-servicios {
    margin-block: clamp(14px, 2vw, 24px);
}

.soporte-servicios__contenedor {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.soporte-servicio {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 128px;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(13px, 1.6vw, 22px);
    border: 1px solid var(--soporte-borde);
    border-radius: 12px;
    background: #fff;
    color: var(--soporte-grafito);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.soporte-servicio:hover {
    border-color: var(--soporte-rojo);
}

.soporte-servicio__icono {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #fff0f2;
}

.soporte-servicio svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--soporte-rojo);
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.soporte-servicio__flecha {
    position: absolute;
    top: clamp(13px, 1.6vw, 22px);
    right: clamp(13px, 1.6vw, 22px);
    color: var(--soporte-rojo);
    font-weight: 800;
}

.soporte-servicio__titulo {
    margin-bottom: 5px;
    font-size: clamp(.94rem, 1.4vw, 1.12rem);
    font-weight: 800;
    line-height: 1.2;
}

.soporte-servicio__descripcion,
.soporte-intro {
    color: var(--soporte-texto);
    font-size: .94rem;
    line-height: 1.45;
}

.soporte-agentes {
    padding: clamp(17px, 3vw, 32px);
    border: 1px solid var(--soporte-borde);
    border-radius: 16px;
    background: #fff;
    scroll-margin-top: 7rem;
}

.soporte-seccion-titulo h2 {
    margin-bottom: 6px;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.soporte-filtro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px 24px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--soporte-borde);
    border-radius: 10px;
    background: #f5f7f9;
}

.soporte-filtro__selector {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
}

.soporte-filtro__selector label {
    font-weight: 800;
}

.soporte-filtro__selector select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid #86919e;
    border-radius: 6px;
    background: #fff;
    color: var(--soporte-grafito);
    font: inherit;
}

.soporte-filtro__nota {
    color: var(--soporte-texto);
    font-size: .88rem;
    line-height: 1.45;
}

.soporte-agentes__encabezado {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 14px;
    margin: 18px 0 12px;
}

.soporte-agentes__encabezado h3 {
    font-size: 1.13rem;
    font-weight: 800;
}

.soporte-agentes__encabezado h3 span {
    color: var(--soporte-rojo);
}

.soporte-agentes__encabezado > span {
    color: var(--soporte-texto);
    font-size: .88rem;
}

.soporte-agentes__lista {
    display: grid;
    gap: 10px;
}

.soporte-agente {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.45fr) minmax(124px, .7fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--soporte-borde);
    border-radius: 10px;
}

.soporte-agente__identidad {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.soporte-agente__icono {
    display: grid;
    width: 40px;
    height: 40px;
    flex: none;
    place-items: center;
    border-radius: 8px;
    background: #fff0f2;
    color: var(--soporte-rojo);
    font-size: 21px;
}

.soporte-agente__nombre {
    margin-bottom: 4px;
    font-size: .95rem;
    font-weight: 850;
    line-height: 1.2;
}

.soporte-agente__descripcion,
.soporte-agente__dato p {
    color: var(--soporte-texto);
    font-size: .875rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.soporte-agente__dato strong {
    display: block;
    margin-bottom: 4px;
    font-size: .875rem;
}

.soporte-agente__boton {
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--soporte-rojo);
    border-radius: 7px;
    background: #fff;
    color: var(--soporte-rojo);
    font-size: .85rem;
    font-weight: 800;
    cursor: pointer;
}

.soporte-agente__boton:hover {
    background: #fff0f2;
}

.soporte-servicio:focus-visible,
.soporte-filtro select:focus-visible,
.soporte-agente__boton:focus-visible,
.soporte-vacio a:focus-visible {
    outline: 2px solid var(--soporte-rojo);
    outline-offset: 3px;
}

.soporte-vacio {
    padding: 22px 16px;
    border: 1px solid var(--soporte-borde);
    border-radius: 10px;
    background: #f5f7f9;
}

.soporte-vacio svg {
    display: block;
    width: 26px;
    height: 26px;
    margin-bottom: 8px;
    fill: none;
    stroke: var(--soporte-rojo);
    stroke-width: 1.7;
}

.soporte-vacio h3 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.soporte-vacio p {
    color: var(--soporte-texto);
    font-size: .94rem;
    line-height: 1.45;
}

.soporte-vacio a {
    color: var(--soporte-rojo);
    font-weight: 800;
    text-decoration: underline;
}

@media (max-width: 1000px) {
    .soporte-agente {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .soporte-hero,
    .soporte-filtro {
        grid-template-columns: minmax(0, 1fr);
    }

    .soporte-hero__foto {
        min-height: 0;
        aspect-ratio: 3 / 2;
    }

    .soporte-servicios__contenedor {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .soporte-agente {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .soporte-agente__boton {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .soporte-hero__texto {
        padding: 22px 18px;
    }

    .soporte-hero h1 {
        font-size: clamp(2rem, 8vw, 2.45rem);
    }

    .soporte-hero__acciones {
        display: grid;
        gap: 8px;
        margin-top: 18px;
    }

    .soporte-boton {
        width: 100%;
    }

    .soporte-filtro select {
        min-height: 44px;
        font-size: 1rem;
    }
}

@media (max-width: 350px) {
    .soporte-servicios__contenedor {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Modal de aviso de cita */
.soporte-modal {
    position: fixed;
    inset: 0;
    width: min(440px, calc(100% - 32px));
    height: fit-content;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}
.soporte-modal::backdrop { background:rgba(0,0,0,.6); }
.soporte-modal__contenido { position:relative; padding:38px 30px 28px; text-align:center; background:#fff; color:#111; }
.soporte-modal__contenido > svg { width:46px; height:46px; fill:none; stroke:#e60012; stroke-width:1.8; margin:0 auto 12px; }
.soporte-modal__contenido h2 { font-size:23px; margin:0 0 11px; }
.soporte-modal__contenido p { line-height:1.5; color:#555; font-size:15px; margin:0 0 22px; }
.soporte-modal__cerrar { position:absolute; top:10px; right:13px; border:0; background:none; font-size:27px; line-height:1; cursor:pointer; color:#555; }
.soporte-modal__entendido { border:none; padding:12px 24px; background:#e60012; color:#fff; border-radius:6px; cursor:pointer; font-weight:800; }
