:root {
    color: #242323;
    background: #f4f6f8;
    font: 100%/1.5 "Open Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
.contenedor {
    width: calc(100% - clamp(32px, 8vw, 64px));
    max-width: 1120px;
    margin-inline: auto;
    container-type: inline-size;
}
.cabecera-gml {
    --color-cabecera: #b30b00;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #f7f5f3;
    border-block: 1px solid #aaa;
    border-top-color: #888;
    font-family: "Open Sans", Arial, sans-serif;
}

.cabecera-gml .marca {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 20px 0 16px;
    color: var(--color-cabecera);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.4;
}

#cabecera {
    flex: 1 1 max-content;
    min-width: 0;
    display: flex;
    justify-content: safe flex-end;
    align-items: center;
    gap: 18px;
    height: 48px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: thin;
    white-space: nowrap;
    font-size: 15px;
}

#cabecera a { position: relative; flex-shrink: 0; color: #222; text-decoration: none; }
#cabecera a::after {
    content: "";
    position: absolute;
    inset: auto 0 -4px;
    height: 3px;
    background: var(--color-cabecera);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

#cabecera a:hover::after, #cabecera a.activo::after { transform: scaleX(1); }
#cabecera a:focus-visible { outline: 2px solid var(--color-cabecera); outline-offset: 5px; }

@media (max-width: 1200px) {
    .cabecera-gml .marca { padding: 8px 16px; }
    #cabecera { gap: 14px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    #cabecera a::after { transition: none; }
}


.portada {
    display: grid;
    grid-template-columns: 10.6% minmax(0, 1fr);
    gap: clamp(12px, 2cqi, 24px);
    align-items: start;
    padding: 20px 10px clamp(22px, 2.6cqi, 34px);
    text-align: center;
}
.portada img { margin-top: 5px; width: min(100%, 8.75cqi); height: auto; }
.portada h1 { margin: 0; color: #0e1828; font-size: clamp(1.4rem, 3.2cqi, 2.65rem); line-height: 1.2; }
.portada h1 span { display: block; }
.portada p { margin: 12px 0 0; color: #344154; font-size: clamp(1rem, 1.63cqi, 1.35rem); }
.panel {
    padding: clamp(20px, 3cqi, 40px);
    border: 1px solid #dfe4ea;
    border-radius: 22px;
    background: #fcfdfe;
    box-shadow: 0 8px 26px rgb(34 53 73 / 5%);
}
.panel-contacto {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3.5cqi, 48px);
    padding-block: clamp(26px, 4cqi, 54px) clamp(26px, 3.4cqi, 45px);
}
.panel h2 { margin: 0; color: #0e1828; font-size: clamp(1.35rem, 2.72cqi, 2.25rem); line-height: 1.25; }
.introduccion p, .subtitulo-preguntas { margin: 16px 0 0; color: #344154; font-size: clamp(1rem, 1.45cqi, 1.2rem); line-height: 1.7; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.2cqi, 29px) clamp(16px, 2.8cqi, 38px); }
.campo-ancho, form > .aviso, form > .error { grid-column: 1 / -1; }
label { display: block; color: #52657b; font-size: clamp(.95rem, 1.36cqi, 1.125rem); }
.campo label {
    transform: translateY(8px);
    transition: transform 240ms ease-out;
}
.campo:focus-within label { transform: translateY(-14px); }

input, textarea, button { font: inherit; }
input:not([type="hidden"]), textarea {
    display: block;
    width: 100%;
    padding: 0 2px 3px;
    border: 0;
    border-bottom: 2px solid #cbd2da;
    border-radius: 0;
    background: transparent;
    color: #0e1828;
}
input:not([type="hidden"]) { height: 20px; }
input:autofill { box-shadow: 0 0 0 1000px #fcfdfe inset; }
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fcfdfe inset;
    -webkit-text-fill-color: #0e1828;
}
textarea { height: clamp(85px, calc(8.3cqi - 16px), 94px); resize: vertical; }
button { grid-column: 1 / -1; justify-self: start; padding: 0; border: 0; background: transparent; color: #b30b00; font-size: clamp(1rem, 1.5cqi, 1.25rem); cursor: pointer; }
form button { position: relative; }
form button::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms ease-out;
}
form button:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
    .campo label, form button::after { transition: none; }
}
:focus-visible { outline: 2px solid #b30b00; outline-offset: 3px; }
.campo input:focus, .campo textarea:focus {
    outline: none;
    border-bottom: 2px solid #b30b00;
}
.error { margin: 4px 0 0; color: #9e2a2f; }
.aviso { margin: 0; padding: .75rem; color: #155945; background: #e4f3ec; border-radius: .35rem; }

.preguntas { margin-block: clamp(24px, 2.9cqi, 38px); }
.preguntas h2, .subtitulo-preguntas { text-align: center; }
.subtitulo-preguntas { margin: 12px 0 32px; }
.preguntas details { border-top: 1px solid #e8edf2; }
.preguntas details:last-child { border-bottom: 1px solid #e8edf2; }
.preguntas summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 8px 14px 0;
    color: #0e1828;
    font-size: clamp(1rem, 1.51cqi, 1.25rem);
    cursor: pointer;
    list-style: none;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: ""; flex: 0 0 14px; height: 14px; background: linear-gradient(#b30b00, #b30b00) center / 100% 1px no-repeat, linear-gradient(#b30b00, #b30b00) center / 1px 100% no-repeat; }
.preguntas details[open] summary::after { background-size: 100% 1px, 0 0; }
.respuesta {
    margin-bottom: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    background: #f5efe5;
    color: #344154;
}
.respuesta p { margin: 0 0 12px; }
.respuesta p:last-child { margin-bottom: 0; }
.pasos, .guias { margin: 0; padding: 0; list-style: none; }
.pasos li { display: flex; align-items: center; gap: 8px; margin-block: 12px; }
.pasos img { flex: 0 0 64px; }
.icono-codigo {
    flex: 0 0 32px;
    margin-inline: 16px;
    border-radius: 50%;
    background: #138d75;
    color: #fff;
    font: 18px/32px Arial, sans-serif;
    text-align: center;
}
.icono-compra { background: #195a9f; }
.guias li + li { margin-top: 12px; }
.guias a { color: #912c01; }

@media (max-width: 760px) {
    .portada, .panel-contacto { grid-template-columns: 1fr; }
    .portada { gap: 12px; }
    .portada img { width: 64px; justify-self: center; }
}

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