/* Elementos de contenido de Stra Forms.
   Se carga junto a cualquiera de los dos temas. */

.sfwp-content-group {
    margin: 0 0 18px;
}

.sfwp-el-titulo {
    margin: 26px 0 10px;
    line-height: 1.25;
}

.sfwp-field-group + .sfwp-content-group .sfwp-el-titulo {
    margin-top: 26px;
}

.sfwp-form > .sfwp-content-group:first-of-type .sfwp-el-titulo {
    margin-top: 0;
}

.sfwp-el-parrafo {
    line-height: 1.6;
}

.sfwp-el-parrafo p:first-child {
    margin-top: 0;
}

.sfwp-el-parrafo p:last-child {
    margin-bottom: 0;
}

.sfwp-el-parrafo a {
    text-decoration: underline;
}

.sfwp-el-separador {
    border: 0;
    border-top: 1px solid currentColor;
    opacity: .25;
}

.sfwp-el-espacio {
    display: block;
}

.sfwp-el-banner {
    margin: 0;
}

.sfwp-el-banner img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.sfwp-el-banner-texto {
    margin-top: 10px;
    line-height: 1.6;
}

.sfwp-align-left {
    text-align: left;
}

.sfwp-align-center {
    text-align: center;
}

.sfwp-align-right {
    text-align: right;
}

.sfwp-align-center img {
    margin-left: auto;
    margin-right: auto;
}

.sfwp-align-right img {
    margin-left: auto;
}

/* Descripción inferior de los campos: hereda el color del tema
   para funcionar igual en modo claro y oscuro. */
.sfwp-field-description {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 5px;
    opacity: .75;
}

/* Contador de progreso del envío */

.sfwp-progress {
    margin: 14px 0 4px;
}

.sfwp-progress[hidden] {
    display: none;
}

.sfwp-progress-track {
    height: 8px;
    border-radius: 99px;
    background: currentColor;
    overflow: hidden;
    opacity: .18;
}

.sfwp-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: #0033a0;
    transition: width .2s ease-out;
}

.sfwp-progress-text {
    margin: 8px 0 0;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    opacity: .8;
}

/* Estados del botón de envío */

.sfwp-btn-bloqueado {
    opacity: .5;
    cursor: not-allowed;
}

.sfwp-btn-enviando {
    opacity: .75;
    cursor: wait;
}

.sfwp-btn-enviado {
    background-color: #2e7d32;
}

/* Iconos de los mensajes de estado */

.sfwp-msg-icon {
    width: 16px;
    height: 16px;
    vertical-align: -3px;
    fill: currentColor;
}

.sfwp-inline-error,
.sfwp-dup-error {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #d63638;
}

/* Desplegable con buscador (país y ciudad) */

.sfwp-combo {
    position: relative;
}

.sfwp-combo-campo {
    position: relative;
    display: block;
}

.sfwp-combo-input {
    width: 100%;
    padding-right: 34px;
}

.sfwp-combo-flecha {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    opacity: .55;
}

.sfwp-combo-flecha svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.sfwp-combo.esta-abierto .sfwp-combo-flecha {
    transform: translateY(-50%) rotate(180deg);
}

.sfwp-combo-list {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 4px 0;
    max-height: 260px;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    color: #1d2327;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.sfwp-combo-list[hidden] {
    display: none;
}

.sfwp-combo-op {
    padding: 9px 14px;
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.3;
}

.sfwp-combo-op:hover,
.sfwp-combo-op.esta-activo {
    background: #eef5ff;
    color: #0033a0;
}

.sfwp-combo-sep {
    height: 1px;
    margin: 5px 0;
    padding: 0;
    background: #e0e0e0;
}

.sfwp-combo-vacio {
    padding: 10px 14px;
    font-size: 14px;
    color: #666;
    cursor: default;
}

/* Campo de archivo adjunto */

.sfwp-file-field {
    position: relative;
}

.sfwp-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.sfwp-file-zona {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 18px;
    text-align: center;
    cursor: pointer;
    border: 2px dashed currentColor;
    border-radius: 8px;
    transition: background-color .15s ease, border-color .15s ease;
}

.sfwp-file-zona:hover,
.sfwp-file-field.esta-encima .sfwp-file-zona {
    border-color: #0033a0;
    background: rgba(0, 51, 160, .06);
}

.sfwp-file-input:focus-visible + .sfwp-file-zona,
.sfwp-file-zona:focus-within {
    outline: 2px solid #0033a0;
    outline-offset: 2px;
}

.sfwp-file-icono svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
    opacity: .55;
}

.sfwp-file-texto {
    font-size: 15px;
    line-height: 1.4;
}

.sfwp-file-ayuda {
    font-size: 12px;
    opacity: .7;
    line-height: 1.4;
}

.sfwp-file-lista {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sfwp-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid currentColor;
    font-size: 14px;
}

.sfwp-file-item-icono svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: .6;
}

.sfwp-file-item-nombre {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfwp-file-item-peso {
    font-size: 12px;
    opacity: .7;
    font-variant-numeric: tabular-nums;
}

.sfwp-file-quitar {
    background: none;
    border: 0;
    padding: 2px;
    cursor: pointer;
    line-height: 0;
    color: #d63638;
}

.sfwp-file-quitar svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.sfwp-file-error {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #d63638;
}

.sfwp-file-error:empty {
    display: none;
}

.sfwp-file-field.tiene-error .sfwp-file-zona {
    border-color: #d63638;
}

/* Campo de reserva de cita */

.sfwp-booking {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sfwp-bk-cal {
    border: 1px solid currentColor;
    border-radius: 8px;
    padding: 12px;
    max-width: 380px;
}

.sfwp-bk-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.sfwp-bk-mes {
    font-weight: 600;
    text-transform: capitalize;
    font-size: 15px;
}

.sfwp-bk-nav {
    background: none;
    border: 1px solid currentColor;
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    line-height: 0;
    color: inherit;
}

.sfwp-bk-nav svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sfwp-bk-nav:disabled {
    opacity: .3;
    cursor: not-allowed;
}

.sfwp-bk-semana,
.sfwp-bk-dias {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.sfwp-bk-semana {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    opacity: .6;
}

.sfwp-bk-dia {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border: 0;
    border-radius: 6px;
    background: none;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    color: inherit;
    padding: 0;
}

.sfwp-bk-dia.esta-libre {
    cursor: pointer;
    background: rgba(0, 51, 160, .09);
    font-weight: 600;
}

.sfwp-bk-dia.esta-libre:hover {
    background: rgba(0, 51, 160, .2);
}

.sfwp-bk-dia.esta-elegido {
    background: #0033a0;
    color: #fff;
}

.sfwp-bk-dia.esta-bloqueado {
    opacity: .28;
    cursor: not-allowed;
}

.sfwp-bk-dia.esta-vacio {
    visibility: hidden;
}

.sfwp-bk-franjas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sfwp-bk-hora {
    border: 1px solid currentColor;
    border-radius: 6px;
    background: none;
    padding: 8px 14px;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    color: inherit;
}

.sfwp-bk-hora:hover {
    border-color: #0033a0;
    background: rgba(0, 51, 160, .08);
}

.sfwp-bk-hora.esta-elegido {
    background: #0033a0;
    border-color: #0033a0;
    color: #fff;
}

.sfwp-bk-hora.esta-ocupado {
    opacity: .35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.sfwp-bk-aviso,
.sfwp-bk-cargando {
    font-size: 13px;
    opacity: .7;
    margin: 0;
}

.sfwp-bk-elegido {
    margin: 0;
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(0, 51, 160, .09);
    font-size: 14px;
    font-weight: 600;
}

.sfwp-bk-elegido[hidden] {
    display: none;
}

/* Formulario por pasos */

.sfwp-paso[hidden] {
    display: none;
}

.sfwp-pasos-indicador {
    margin-bottom: 26px;
}

/* Estilo de puntos numerados */

.sfwp-pasos-lista {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: paso;
}

.sfwp-paso-punto {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    text-align: center;
    font-size: 12px;
    opacity: .5;
    transition: opacity .2s ease;
}

.sfwp-paso-punto::before {
    content: "";
    position: absolute;
    top: 15px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: currentColor;
    opacity: .25;
}

.sfwp-paso-punto:first-child::before {
    display: none;
}

.sfwp-paso-num {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: #fff;
    color: inherit;
    font-weight: 700;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.sfwp-paso-nom {
    line-height: 1.3;
    max-width: 12ch;
}

.sfwp-paso-punto.esta-activo,
.sfwp-paso-punto.esta-hecho {
    opacity: 1;
}

.sfwp-paso-punto.esta-activo .sfwp-paso-num {
    background: #0033a0;
    border-color: #0033a0;
    color: #fff;
}

.sfwp-paso-punto.esta-hecho .sfwp-paso-num {
    background: #0033a0;
    border-color: #0033a0;
    color: #fff;
    font-size: 0;
}

.sfwp-paso-punto.esta-hecho .sfwp-paso-num::after {
    content: "";
    width: 11px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -2px);
}

/* Estilo de barra */

.sfwp-pasos-track {
    height: 6px;
    border-radius: 99px;
    background: currentColor;
    opacity: .18;
    overflow: hidden;
}

.sfwp-pasos-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: #0033a0;
    transition: width .3s ease;
}

.sfwp-pasos-texto {
    margin: 8px 0 0;
    font-size: 13px;
    opacity: .8;
}

/* Botones de navegación */

.sfwp-pasos-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}

.sfwp-pasos-nav [hidden] {
    display: none;
}

.sfwp-btn-prev,
.sfwp-btn-next {
    padding: 12px 26px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #0033a0;
}

.sfwp-btn-prev {
    background: transparent;
    color: #0033a0;
}

.sfwp-btn-next {
    background: #0033a0;
    color: #fff;
    margin-left: auto;
}

.sfwp-btn-prev:hover,
.sfwp-btn-next:hover {
    opacity: .85;
}

/* Errores al intentar avanzar */

.sfwp-field-group.tiene-error input,
.sfwp-field-group.tiene-error select,
.sfwp-field-group.tiene-error textarea,
.sfwp-field-group.tiene-error .sfwp-file-zona {
    border-color: #d63638;
}

.sfwp-paso-error {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #d63638;
}

@media (max-width: 600px) {
    .sfwp-paso-nom {
        display: none;
    }

    .sfwp-pasos-nav {
        flex-direction: column-reverse;
    }

    .sfwp-btn-prev,
    .sfwp-btn-next {
        width: 100%;
        margin-left: 0;
    }
}

.sfwp-bk-asesores { margin-bottom: 14px; }

.sfwp-bk-asesor-titulo {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.sfwp-bk-asesor {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c7d2e0;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}