@media screen and (max-width: 820px) {
  /* Caja consistente */
  *, *::before, *::after {
    box-sizing: border-box;
  }
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
  }
  /* Main a ancho completo */
  main {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Columnas en columna (o invertidas según layout) */
  main.d-flex.flex-row {
    flex-direction: column-reverse !important;
    align-items: center;
    justify-content: center;
  }
  main.layout-normal.d-flex.flex-row {
    flex-direction: column !important;
  }
 /* Ajustes para que no se rompa la línea */
    #logout a {
        white-space: nowrap; /* Mantiene el texto "Salir" en una sola línea */
        display: flex;
        align-items: center;
        gap: 5px; /* Espacio entre texto e icono */
         padding-right: 10px; /* separa el icono del borde derecho */
    }
  #login {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* centra el contenido */
    gap: 12px;
  }
  #login h2 {
    text-align: center;
    padding-top: 40px;
    ;
  }
  /* Forzar mismo ancho para inputs */
  #login input {
    width: 90% !important;
    padding: 10px;
    display: block;
    box-sizing: border-box;
  }
  /* Botón del mismo ancho */
  #login button {
    width: 90% !important;
    padding: 15px;
    box-sizing: border-box;
    font-size: 16px;
    margin-top: 20px;
  }
  /* Utilidades */
  .hidden {
    display: none !important;
  }
  #textCover {
    text-align: center;
  }
  /* Tarjetas/Detalles energía: columna */
  .featureEnergyDetailContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
  }
  /* Ocultar bloque de imagen/mapa de la izquierda en móvil */
  #leftContentDatosInmueble {
    display: none !important;
  }
  /* Header/idiomas en columna y centrado */
  #languageSwitcher {
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    text-align: center !important;
  }
  /* Gutters y anchos de formularios */
  .contentForm, .contentForm3 {
    padding: 0 16px !important;
    margin-left: 0 !important;
    padding-bottom: 2px !important;
    max-width: 100% !important;
  }
  .contentForm22 {
    margin-left: 0 !important;
    padding-bottom: 2px !important;
    max-width: 100% !important;
  }
  .contentForm2 {
    padding: 0 !important;
    margin-left: 20px !important;
    padding-bottom: 2px !important;
  }
  /* Ocultar imágenes decorativas en móvil (derecha) */
  #rightContent img {
    display: none !important;
    margin-bottom: 0;
  }
  /* Columna derecha a 100% */
  #rightContentForm {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #rightContentForm img {
    display: block;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Buscador CEE */
  .busquedaCEE.buttonSearchRefCEE {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: center;
    text-align: center;
  }
  .busquedaCEE.buttonSearchRefCEE img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  #leftContentIndex, .detailImage2 {
    padding: 20px 20px !important;
  }
  /* Bloques a ancho completo */
  #leftContent, #rightContent, #leftContentForm, #leftContentDatosInmueble {
    width: 100% !important;
    min-height: 20vh !important;
    margin: 0 auto !important;
    position: relative !important;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
  #rightContentDatosInmueble {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 40px 10px 0 10px;
  }
  /* Certificado a ancho, sin fondo */
  main.contentForm > div#rightContentForm + div#rightContentForm {
    background: none !important;
    background-image: none !important;
    background-repeat: initial !important;
    background-size: auto !important;
    background-position: initial !important;
    min-height: 0 !important;
    height: auto !important;
  }
  main.contentForm > div#rightContentForm + div#rightContentForm img {
    display: block;
    width: 100% !important;
    height: auto !important;
  }
  /* Botonera superior */
  #buttonFilters {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 20px !important;
    padding-top: 20px;
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    text-align: center;
    vertical-align: middle;
  }
  #buttonFilters .buttonFilter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 12px;
    padding: 7px 0;
    text-align: center;
    min-width: 0;
  }
  /* Pesos 4:3:3 */
  #buttonSearchAddress, #buttonSearchRefCatastral, #buttonSearchRefCEE {
    width: auto !important;
  }
  #buttonSearchAddress {
    flex: 4 1 0;
  }
  #buttonSearchRefCatastral {
    flex: 3 1 0;
  }
  #buttonSearchRefCEE {
    flex: 3 1 0;
  }
  /* Input buscador a 100% */
  #inputBusquedaDireccion {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .espaciosup {
    padding-top: 20px;
  }
  /* Wrapper y espaciados */
  #wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 40px !important;
    padding-bottom: 40px;
  }
  .donde {
    padding-bottom: 40px;
  }
  #wrapper #buttonFilters {
    margin-bottom: 20px !important;
  }
  #leftContent {
    padding-right: 0;
  }
  .buttonCTA {
    display: block;
    width: calc(100% - 2rem); /* deja 1rem de espacio a cada lado */
    max-width: 100%;
    margin: 2rem auto 1.5rem auto; /* centrado y espacio arriba/abajo */
    text-align: center;
    box-sizing: border-box;
  }
  footer {
    font-size: 8px !important;
  }
  /* Columna izquierda: puede partir a varias líneas sin desbordar */
  footer .left {
    min-width: 0;
    white-space: normal; /* permite salto de línea */
    overflow-wrap: anywhere; /* evita desbordes por palabras largas */
  }
  /* Columna derecha: los dos elementos en fila */
  footer .right-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* pegados a la derecha */
    gap: 8px;
    min-width: 0; /* permite que el centro haga ellipsis */
  }
  /* Centro puede encoger con "…" si no cabe */
  footer .center {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Derecha mantiene su ancho por contenido */
  footer .right {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  /* (Opcional) Responsive: apilar en móviles estrechos */
  footer {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
  .right-wrap {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .center, .right {
    white-space: normal;
    overflow: visible;
  }
  /* Viñetas alineadas */
  ul > li::before {
    margin-left: 0 !important;
  }
  /* Contenedor energía */
  .energyConfigurationContainer {
    width: 100% !important;
  }
  /* Botonera energía en grid (3 columnas) */
  .energyButtons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    justify-items: center;
    width: 100%;
    text-align: center;
  }
  .d-flex.flex-row.justify-content-center.align-items-stretch.mt-5.mb-5 {
    justify-content: flex-start;
  }
  /* Contenedor de los dos botones */

  .d-flex.flex-row.justify-content-start.mt-4 {
    flex-direction: column !important;
    align-items: flex-center !important;
    /* padding: 20px;*/
  }
  .d-flex.flex-row.justify-content-start.mt-4.tgrey {
    padding: 0px;
  }
  .imageResultContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    margin-left: 0;
  }
  .imageResultContainer img {
    display: block;
    max-width: 100%;
    height: auto;
  }
  .step3_h2.mt-2.resultados {
    padding-left: 0px;
      margin: 20px;
  }
  /* Botones pill */
  .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .step3_h2.mt-1.datosinmueble {
    margin: 20px;
  }
  .buttonOptionContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    white-space: nowrap; /* no partir el texto */
    min-width: max-content; /* mínimo = ancho del texto */
    flex: 1 1 auto; /* se expanden para llenar huecos */
    font-size: 12px;
    font-weight: 500;
  }
  .buttonContainer.notFocused {
    background-color: #fff;
    color: #A9009C;
    border: 2px solid #A9009C;
  }
  .buttonContainer.focused {
    background-color: #A9009C;
    color: #fff;
    border: 2px solid #A9009C;
  }
  .buttonContainer.focused a {
    color: #fff;
    text-decoration: none;
  }
  .vertical-column {
    flex-direction: column !important;
  }
  .layout-small2 {
    flex: 1 1 0;
    max-width: 100px;
    min-width: unset !important;
    text-align: center !important;
    margin-top: 20px !important;
  }
  #contentDatosEnergeticos .d-flex.justify-content-center.layout-yesno {
    justify-content: flex-start !important;
  }
  #contentDatosEnergeticos {
    padding-top: 40px;
    text-align: left;
  }
  /* Imagen móvil de detalle (si se usara) */
  #leftContentDatosInmueble .detailImage-mobile::before {
    content: "";
    display: block;
    width: 100%;
    background: url("../calculadora-cee/img/datos-inmueble-detalle-mapa.png") no-repeat center / cover;
  }
  #rightContentDatosInmueble .d-flex.flex-row {
    flex-wrap: wrap;
  }
  /* Distribución botones dobles */
  .buttonWrapper {
    width: 100%;
    padding: 0;
    margin: 0;
    gap: 0;
  }
  .buttonWrapper .buttonContainer.notFocused {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /*font-size: 0.7rem;*/
    /* padding: 6px 8px;*/
  }
  .buttonWrapper .buttonContainer.focused {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* font-size: 0.8rem;*/
    /*padding: 6px 8px;*/
  }
  /* Cada <a> se reparte el ancho y PUEDE encoger */
  /* Forzamos grid de 2 columnas iguales */
  .buttonWrapper2 .d-flex {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    padding-top: 40px;
  }
  /* Cada <a> ocupa su celda y permite que el contenido se encoja/ajuste */
  .buttonWrapper2 .d-flex > a {
    display: block;
    min-width: 0; /* clave para que el texto no empuje fuera */
    text-decoration: none;
  }
  /* El "botón" interno se estira, centra y NO se solapa */
  .buttonWrapper2 .buttonContainer {
    margin: 0 !important; /* anula el mr-2 del primero */
    position: relative !important; /* por si hay estilos absolutos heredados */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    text-align: center;
    box-sizing: border-box;
    border-radius: 100px;
    font-weight: 500;
    line-height: 1.2;
    white-space: normal; /* permite varias líneas */
    overflow-wrap: anywhere; /* parte palabras largas si hace falta */
    min-width: 100%;
  }
  /* Tus colores/estados */
  .buttonWrapper2 .buttonContainer.focused {
    color: #fff;
  }
  .buttonWrapper2 .buttonContainer.notFocused {
    color: #333;
  }
  /* Tipografías/títulos móviles */
  .featureEnergyDetailContainer .energyClasificationData {
    font-size: 20px;
  }
  .featureEnergyDetailContainer .energyClasificationDataUnits {
    font-size: 12px;
  }
  .CEEestimado {
    margin-top: 20px;
  }
  .step3_h2 {
    line-height: 1.2;
    font-size: 14px;
    text-align: left;
  }
  #texto {
    text-align: center;
  }
  #texto2 {
    margin: 0 1rem;
  }
 
  .tituloStepper {
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
  }
  .textRefCatastral, .referenciaCatastral {
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0.06em; /* antes % */
    text-transform: uppercase;
  }
  .referenciaCatastral {
    color: #A9009C;
  }
  .buscarDireccion {
    font-family: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 400;
    font-style: normal; /* antes 'Regular' */
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.02em; /* antes % */
  }
  /* Bloque "Sistema actual de energía" */
  .featureEnergyContainer {
    box-sizing: border-box;
    flex: 0 0 calc(100% - 8px);
    max-width: calc(100% - 8px);
    margin-bottom: 12px;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-right: 10px;
  }
  .featureEnergyContainer h3 {
    margin: 0 0 6px 0;
    font-weight: 700;
    font-size: 18px;
    color: #3b035b;
    text-align: left;
    padding-right: 40px; /* espacio para icono */
  }
  .featureEnergyContainer h4 {
    margin: 6px 0 0 0;
    font-weight: 500;
    font-size: 16px;
    color: #6b6b6b;
  }
  .featureEnergyContainer .separator {
    height: 1px;
    background: #e9dff1;
    margin: 8px 0;
  }
  .featureEnergyContainer .iconContainer {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3b035b;
    display: grid;
    place-items: center;
  }
  .featureEnergyContainer .iconContainer img {
    width: 18px;
    height: auto;
    filter: brightness(0) invert(1);
  }
  /* Resumen clasificación (datos-inmueble-energia) */
  .resumenClasificacion {
    border: none !important;
    margin-top: 0 !important;
    padding-top: 20px !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .resumenClasificacion > .d-flex.flex-column {
    align-items: flex-start;
    justify-content: center;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 6px;
  }
  .resumenClasificacion .energyClasificationData {
    font-size: 26px;
    line-height: 1.1;
    font-weight: 700;
  }
  .resumenClasificacion .energyClasificationDataUnits {
    font-size: 14px;
    line-height: 1.1;
    color: #555;
    display: inline-block;
    position: relative;
  }
  .resumenClasificacion .energyClasification img {
    width: 36px;
    height: auto;
  }
  .resumenClasificacion img[alt="Flecha arriba"] {
    display: none !important;
  }
  .energyClasificationDataUnits::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 6px;
    vertical-align: middle;
    background: url("../calculadora-cee/img/icon-arrow-up.png") no-repeat center / contain;
  }
  .featureEnergyDetailContainer > div:first-child {
    margin-top: 12px;
  }
  /* Selects y campos */
  #formDatosInmueble select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/></svg>") no-repeat right 12px center;
    background-size: 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 8px 35px 8px 12px;
    font-family: "Work Sans", sans-serif;
    font-size: 14px;
    color: #000;
    text-align: left;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
  }
  #formDatosInmueble > .d-flex {
    align-items: center;
  }
  #formDatosInmueble > .d-flex > label {
    flex: 1 1 auto;
    margin: 0;
    font-weight: 600;
    color: #2b2b2b;
    padding-bottom: 10px;
  }
  #formDatosInmueble > .d-flex > input[type="text"] {
    border: 1px solid #ececef;
    background: #f3f2f6;
    color: #5a1786;
    font-weight: 500;
    text-align: right;
    appearance: none;
    width: 132px;
    height: 48px;
    padding: 12px 16px;
  }
  #formDatosInmueble > .d-flex > input.calendar {
    background: url("../calculadora-cee/img/icn-calendar.png") no-repeat 12px center / 18px auto, #f3f2f6;
    padding-left: 40px;
  }
  #formDatosInmueble .d-flex.mt-3, #formDatosInmueble .d-flex.mt-2 {
    margin-top: 12px !important;
  }
  /* Fila con icono + stepper */
  #formDatosInmueble .iconLabel {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 56%;
  }
  #formDatosInmueble .iconLabel img {
    width: 20px;
    height: auto;
  }
  #formDatosInmueble .iconLabel label {
    font-weight: 500;
    color: #2b2b2b;
    margin: 0;
  }
  .numberContainer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    justify-content: flex-end;
  }
  .numberContainer .buttonMinus, .numberContainer .buttonPlus {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff !important;
    border: 2px solid #5a1786;
    display: grid;
    place-items: center;
    padding: 0;
    line-height: 1;
  }
  .numberContainer .buttonMinus img, .numberContainer .buttonPlus img {
    display: none !important;
  }
  .numberContainer .buttonMinus::before {
    content: "–";
    font-size: 18px;
    font-weight: 700;
    color: #5a1786;
    line-height: 1;
  }
  .numberContainer .buttonPlus::before {
    content: "+";
    font-size: 18px;
    font-weight: 700;
    color: #5a1786;
    line-height: 1;
  }
  .numberContainer .buttonMinus:active, .numberContainer .buttonPlus:active {
    background: #f7f2fb !important;
  }
  .numberContainer .buttonMinus:focus, .numberContainer .buttonPlus:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(90, 23, 134, .15);
  }
  .numberContainer input[type="number"] {
    width: 38px;
    height: 27px;
    border: 0;
    background: #f1eff4;
    border-radius: 0;
    text-align: center;
    font-weight: 500;
    color: #2b2b2b;
    padding: 8px 12px;
  }
  .numberContainer input[type=number]::-webkit-outer-spin-button, .numberContainer input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  #formDatosInmueble input[type="checkbox"] {
    width: 18px;
    height: 18px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid #cfcfd8;
    border-radius: 4px;
    vertical-align: middle;
    position: relative;
    margin-right: 8px;
  }
  #formDatosInmueble input[type="checkbox"]:checked {
    background: #fff;
    border-color: #5a1786;
  }
  #formDatosInmueble input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 8px;
    height: 12px;
    border-right: 2px solid #5a1786;
    border-bottom: 2px solid #5a1786;
    transform: rotate(45deg);
  }
  #formDatosInmueble .checkBoxText {
    font-size: 14px;
    color: #2b2b2b;
    vertical-align: middle;
    font-weight: 500;
  }
  #formDatosInmueble .d-flex > label:not([for]) {
    font-size: 14px;
    color: #2b2b2b;
    font-weight: 700;
    margin: 18px 0 6px 0;
  }
  #formDatosInmueble .d-flex.mt-2 {
    margin-top: 10px !important;
  }
  #formDatosInmueble .d-flex.mt-3 {
    margin-top: 12px !important;
  }
  #formDatosInmueble .d-flex.mt-5 {
    margin-top: 18px !important;
  }
  /* Botones de configuración energía (rejillas) */
  .energyConfigurationContainer .energyConfigurationFeature .featureOptionsTitle + .d-flex.flex-row.justify-content-center.mt-3, .energyConfigurationFeature .grid-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    justify-items: stretch;
  }

  .featureOptionsTitle {
    text-align: left;
  }
  .falseButtonInfo {
    min-width: 40%;
    text-align: center;
  }
  .featureOptions {
    width: 100%;
  }
  .graphicFeatureOption {
    padding: 20px 20px;
  }
  /* Imágenes/inputs nunca desbordan */
  img, input, select, textarea {
    max-width: 100% !important;
    /*height: auto;*/
  }
  /* Tipos y textos generales */
  .textPrefooterBoxTitle {
    padding-top: 5px;
  }
  .textPrefooterSummary {
    padding-bottom: 10px;
  }
  .textPrefooterValue {
    font-size: 18px;
    text-align: left;
  }
  #prefooter {
    padding-left: 20px;
    padding-right: 20px;
    /*order: 1;*/
  }
  #blockSabiasQue {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  #blockSabiasQue > div {
    flex: 0 0 auto;
    width: 70%;
    margin-right: 1rem;
    scroll-snap-align: start;
  }
  #blockSabiasQue > div:first-child {
    width: 50%;
  }
  body.mobile-reflow #prefooter {
    margin-top: 0 !important;
  }
  body.mobile-reflow #leftContentResultados {
    text-align: center;
  }
  body.mobile-reflow #leftContentResultados #botonDescargaResultados {
    display: inline-block;
    width: auto;
    margin: 24px auto 20px !important;
    align-self: center !important;
  }
  body.mobile-reflow #leftContentResultados #botonDescargaResultados > a {
    display: block;
    text-align: center;
  }
  body.mobile-reflow #rightContentResultados .d-flex.flex-column.align-items-center.anchoCompleto.mt-4 {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  #leftContentResultados, #rightContentResultados {
    width: 100% !important;
  }
  .icono {
    display: block;
    margin: 0 auto;
    padding-top: 20px;
  }
  .icono2 {
    margin-left: 10px;
    width: 48px;
    height: auto;
  }
  .energySaverContainer {
    margin: 20px 1rem 0 1rem !important;
    box-sizing: border-box !important;
    width: calc(100% - 2rem) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden;
  }
  .energySaverContainer > .d-flex {
    flex-direction: column !important;
  }
  .leftContentResultadosItem {
    display: none;
  }
  .rightContentResultadosItem {
    width: 100% !important;
  }
  .detailsAction {
    width: 20%;
  }
  /* Faldón */
  .faldon.hidden {
    transform: translateY(150vh);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }
  .faldon {
    position: fixed;
    top: 45vh;
    bottom: 0;
    width: 100%;
    max-height: 90vh;
    background-color: #fff;
    z-index: 1000;
    padding: 1.5rem;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    overflow-y: auto;
  }
  /* Cabecera/Fuentes */
  header.d-flex.flex-row {
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  #logo, #languageSwitcher {
    flex: 0 0 auto;
    flex-shrink: 0;
  }
  header div[id^="stepper"], header [id*="stepper"] {
    flex: 1 1 auto;
    margin-top: 100px !important;
    min-width: 0;
    text-align: center;
  }
  .step0_h1 {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    padding: 40px 20px 0 20px;
  }
  .step0_h2 {
    font-size: 40px;
    line-height: 42px;
    font-weight: 300;
    padding: 20px 40px 0 20px;
    font-style: normal;
  }
  .step0_h3 {
    padding: 20px 40px 0 20px;
    font-style: normal;
  }
  .sangria {
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    padding: 0 20px;
  }
  .textoindex {
    padding-top: 30px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    color: #42005A;
  }
  main ul {
    margin-left: 20px;
    margin-right: 20px;
    padding-left: 0;
    list-style-position: inside;
  }
  .step1_h2 {
    font-size: 28px;
    line-height: 42px;
    font-weight: 400;
  }
  .h1 {
    font-size: 28px;
    font-weight: 300;
    line-height: 42px;
  }
  /* Utilidades de margen (no tocar tipografías) */
  .mt-5, .my-5 {
    margin-top: 1rem !important;
  }
  .buttonSave.inactive {
    font-size: 14px;
    font-weight: 500;
    line-height: 150%;
    border: 1px solid #BFBFBF;
    color: #BFBFBF;
    border-radius: 99px;
    padding: 14px 60px;
    margin-bottom: 20px;
    width: 90%;
    height: auto;
    text-align: center;
  }
  .textPrefooterBoxTitle {
    padding-top: 5px;
    font-size: 12px;
  }
  .textPrefooterSummary {
    padding-bottom: 10px;
  }
  .textPrefooterValue {
    font-size: 18px;
    text-align: left;
  }
  /* Accesibilidad: foco visible en interactivos (móvil) */
  a:focus-visible, button:focus-visible, .buttonContainer:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #5a1786;
    outline-offset: 2px;
  }
  /* Respeta preferencias de usuario para animaciones */
  @media (prefers-reduced-motion: reduce) {
    .faldon, .faldon.hidden {
      transition: none !important;
    }
  }
}