/* ChavSot · Acceso de clientes */
@font-face { font-family: "Sora"; src: url("fonts/sora.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
	--navy: #071F42; --blue: #005FF3; --orange: #FC900C; --ice: #EEF3FB; --slate: #5B6478; --line: #DCE5F3;
	--f-head: "Sora", system-ui, sans-serif; --f-body: "Manrope", system-ui, sans-serif;
	--ease: cubic-bezier(.22, 1, .36, 1);
}
.cs-portal, .cs-portal * { box-sizing: border-box; }
.cs-portal { margin: 0; font-family: var(--f-body); color: var(--navy); background: var(--ice); -webkit-font-smoothing: antialiased; }
.cs-portal img { max-width: 100%; display: block; }
.cs-portal a { color: inherit; text-decoration: none; }

/* Fondo animado */
.cs-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.cs-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: cs-float 16s ease-in-out infinite; }
.cs-b1 { width: 460px; height: 460px; background: var(--blue); top: -140px; right: -120px; }
.cs-b2 { width: 380px; height: 380px; background: var(--orange); bottom: -160px; left: -100px; opacity: .35; animation-delay: -5s; }
.cs-b3 { width: 260px; height: 260px; background: #2E7BF6; top: 45%; left: 40%; opacity: .3; animation-delay: -9s; }
.cs-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); }
@keyframes cs-float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 25px) scale(.95); } }
@keyframes cs-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Distribución */
.cs-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.cs-side { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 0% 0%, #0D3A80 0%, var(--navy) 55%); color: #fff; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.cs-side > *:not(.cs-bg) { position: relative; z-index: 1; }
.cs-logo img { width: 200px; height: auto; }
.cs-copy { max-width: 520px; animation: cs-up 1s var(--ease) both .1s; }
.cs-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.06); font-family: var(--f-head); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cs-eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(252,144,12,.25); }
.cs-copy h1 { margin: 0 0 18px; font-family: var(--f-head); font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.cs-lead { margin: 0 0 30px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.78); }
.cs-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-weight: 600; }
.cs-perks li { display: flex; align-items: center; gap: 12px; }
.cs-perks span { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(252,144,12,.16); color: var(--orange); }
.cs-perks svg { width: 18px; height: 18px; }
.cs-tagline { margin: 0; font-family: var(--f-head); font-weight: 700; color: rgba(255,255,255,.55); letter-spacing: .02em; }

.cs-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: clamp(28px, 5vw, 64px) 20px; background: linear-gradient(180deg, #fff 0%, var(--ice) 100%); }
.cs-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 44px); box-shadow: 0 30px 70px -30px rgba(7,31,66,.35); animation: cs-up 1s var(--ease) both .25s; }
.cs-iso { width: 56px; height: 56px; margin-bottom: 20px; }
.cs-card h2 { margin: 0 0 6px; font-family: var(--f-head); font-size: 30px; letter-spacing: -.03em; font-weight: 800; }
.cs-sub { margin: 0 0 24px; color: var(--slate); }
.cs-alert { margin: 0 0 20px; padding: 12px 16px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.cs-alert--error { background: #FFF1DF; color: #8A4B00; border: 1px solid #FFD8A8; }
.cs-alert--ok { background: #E7F7EE; color: #0F6B3A; border: 1px solid #BDE8CF; }
.cs-form { display: grid; gap: 18px; }
.cs-field { display: grid; gap: 8px; }
.cs-label { font-size: 14px; font-weight: 700; }
.cs-input { position: relative; display: flex; align-items: center; }
.cs-input > svg { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--slate); pointer-events: none; transition: color .2s; }
.cs-input input { width: 100%; height: 54px; padding: 0 50px 0 48px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--ice); font: 600 16px var(--f-body); color: var(--navy); outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.cs-input input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0,95,243,.14); }
.cs-input:focus-within > svg { color: var(--blue); }
.cs-eye { position: absolute; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--slate); cursor: pointer; display: grid; place-items: center; }
.cs-eye svg { width: 20px; height: 20px; }
.cs-eye[aria-pressed="true"] { color: var(--blue); }
.cs-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.cs-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.cs-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.cs-link { color: var(--blue) !important; font-weight: 700; }
.cs-link:hover { text-decoration: underline !important; }
.cs-center { display: block; text-align: center; margin-top: 16px; font-size: 15px; }
.cs-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; margin-top: 4px; border: 0; border-radius: 16px; background: var(--orange); color: var(--navy) !important; font: 800 17px var(--f-head); cursor: pointer; box-shadow: 0 16px 30px -14px rgba(252,144,12,.9); transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s; }
.cs-btn svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.cs-btn:hover { transform: translateY(-2px); background: #FF9D24; box-shadow: 0 20px 36px -14px rgba(252,144,12,.95); }
.cs-btn:hover svg { transform: translateX(4px); }
.cs-help { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--slate) !important; }
.cs-help svg { width: 20px; height: 20px; color: #1FAF55; }
.cs-help:hover { color: var(--navy) !important; }
.cs-foot { margin: 0; font-size: 13px; color: var(--slate); }

@media (max-width: 900px) {
	.cs-wrap { grid-template-columns: 1fr; }
	.cs-side { gap: 28px; padding-bottom: 72px; }
	.cs-perks, .cs-tagline { display: none; }
	.cs-lead { margin-bottom: 0; font-size: 16px; }
	.cs-main { justify-content: flex-start; margin-top: -48px; padding-top: 0; background: transparent; position: relative; z-index: 2; }
	.cs-portal { background: var(--ice); }
}
@media (max-width: 420px) {
	.cs-logo img { width: 160px; }
	.cs-card { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { .cs-blob, .cs-copy, .cs-card { animation: none; } }

/* ---------- wp-login.php con la marca ---------- */
body.login.chavsot-login { position: relative; min-height: 100vh; background: radial-gradient(120% 90% at 0% 0%, #0D3A80 0%, var(--navy) 60%); font-family: var(--f-body); }
body.chavsot-login .cs-bg { position: fixed; }
body.chavsot-login #login { position: relative; z-index: 1; width: 400px; max-width: calc(100% - 32px); padding: 6vh 0 40px; }
body.chavsot-login.login h1 a { width: 220px; height: 63px; background-size: contain; background-position: center; margin: 0 auto 28px; }
body.chavsot-login.login form { border: 0; border-radius: 24px; padding: 30px 28px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
body.chavsot-login.login label { font-weight: 700; color: var(--navy); }
body.chavsot-login.login input[type=text], body.chavsot-login.login input[type=password], body.chavsot-login.login input[type=email] { min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--ice); font-size: 16px; box-shadow: none; }
body.chavsot-login.login input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0,95,243,.14); }
body.chavsot-login.login .button-primary { float: none; width: 100%; min-height: 50px; margin-top: 14px; border: 0; border-radius: 14px; background: var(--orange); color: var(--navy); font: 800 16px var(--f-head); text-shadow: none; box-shadow: 0 14px 28px -14px rgba(252,144,12,.9); }
body.chavsot-login.login .button-primary:hover, body.chavsot-login.login .button-primary:focus { background: #FF9D24; color: var(--navy); }
body.chavsot-login.login .forgetmenot { float: none; margin-bottom: 4px; }
body.chavsot-login.login .wp-pwd .button.wp-hide-pw { color: var(--slate); height: 50px; }
body.chavsot-login.login .message, body.chavsot-login.login .notice, body.chavsot-login.login #login_error { border-radius: 14px; border-left-width: 4px; }
body.chavsot-login.login .message, body.chavsot-login.login .notice-info { border-left-color: var(--blue); }
body.chavsot-login.login #login_error { border-left-color: var(--orange); }
body.chavsot-login.login #nav, body.chavsot-login.login #backtoblog { text-align: center; }
body.chavsot-login.login #nav a, body.chavsot-login.login #backtoblog a, body.chavsot-login .privacy-policy-page-link a { color: rgba(255,255,255,.8); }
body.chavsot-login.login #nav a:hover, body.chavsot-login.login #backtoblog a:hover { color: var(--orange); }
body.chavsot-login .language-switcher { position: relative; z-index: 1; }
