:root {
    --azul: #17365d;
    --azul-hover: #214b7b;
    --dorado: #d5ad52;
    --fondo: #f3f5f9;
    --texto: #263447;
    --borde: #dce2eb;
}

* {
    box-sizing: border-box;
}

/*body {
    margin: 0;
    min-height: 100vh;
    padding: 32px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fondo);
    color: var(--texto);
    font-family: Arial, Helvetica, sans-serif;
}*/

.panel {
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    background: #fff;
   /* border: 1px solid var(--borde);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgb(23 54 93 / 9%);*/
}

.panel-header {
    padding: 28px 30px 24px;
    background: var(--azul);
    border-bottom: 4px solid var(--dorado);
    color: white;
}

.panel-icon {
    color: var(--dorado);
    font-size: 23px;
}

.panel-header h1 {
    margin: 10px 0 6px;
    font-size: 25px;
}

.panel-header p {
    margin: 0;
    color: #e0e7f0;
    font-size: 14px;
}

#perfilForm {
    padding: 28px 30px 30px;
}

.campo {
    margin-bottom: 23px;
}

.campo > label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.campo > label span {
    color: #b88622;
}

.campo input {
    width: 100%;
    min-height: 45px;
    padding: 11px 12px;
    border: 1px solid #cbd4e0;
    border-radius: 7px;
    background: #fff;
    color: var(--texto);
    font-size: 15px;
}

.campo input:focus {
    outline: 2px solid var(--dorado);
    outline-offset: 2px;
    border-color: var(--azul);
}

.campo small {
    display: block;
    margin-top: 7px;
    color: #66758a;
    font-size: 12px;
    line-height: 1.5;
}

.preferencia {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 0;
    margin-bottom: 22px;
    border-top: 1px solid var(--borde);
    border-bottom: 1px solid var(--borde);
}

.preferencia > div > label {
    font-size: 14px;
    font-weight: 700;
}

.preferencia p {
    margin: 6px 0 0;
    color: #66758a;
    font-size: 12px;
    line-height: 1.5;
}

.interruptor {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
}

.interruptor input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.deslizador {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 20px;
    background: #c8d0db;
    transition: background .2s;
}

.deslizador::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    transition: transform .2s;
}

.interruptor input:checked + .deslizador {
    background: var(--azul);
}

.interruptor input:checked + .deslizador::before {
    transform: translateX(20px);
    background: #f4d58b;
}

.interruptor input:focus-visible + .deslizador {
    outline: 2px solid var(--dorado);
    outline-offset: 3px;
}

#guardar {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 7px;
    background: var(--azul);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

#guardar:hover {
    background: var(--azul-hover);
}

#guardar:focus-visible {
    outline: 3px solid var(--dorado);
    outline-offset: 3px;
}

#guardar:disabled {
    opacity: .65;
    cursor: wait;
}

#mensaje {
    margin: 0 0 18px;
    padding: 12px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.5;
}

#mensaje.exito {
    background: #e8f5eb;
    color: #205c32;
}

#mensaje.error {
    background: #fff0f0;
    color: #922b2b;
}

@media (max-width: 420px) {
    #perfilForm {
        padding: 22px 20px;
    }

    .panel-header {
        padding: 24px 20px;
    }
}