:root{
  --orange:#ff5a0a;
  --orange-dark:#e74b00;
  --green:#168a35;
  --green-dark:#0f6f2a;
  --ink:#17191c;
  --muted:#686e77;
  --line:#e7e8ea;
  --soft:#fff8f3;
  --soft-green:#f3fbf5;
  --white:#fff;
  --danger:#c52b2b;
  --shadow:0 22px 60px rgba(20,20,20,.09);
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:linear-gradient(180deg,#fff,#fffaf6);
  color:var(--ink);
  line-height:1.5;
}

a{color:inherit}

.container{
  width:min(1120px,calc(100% - 32px));
  margin:auto;
}

.topbar{
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.96);
}

.topbar-inner{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:900;
  font-size:22px;
}

.brand-mark{
  width:42px;
  height:42px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:var(--soft);
}

.brand-text span{color:var(--orange)}

.back-link{
  text-decoration:none;
  font-weight:700;
  color:var(--muted);
}

.page{
  padding:64px 0 80px;
}

.layout{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:56px;
  align-items:start;
}

.intro{
  position:sticky;
  top:110px;
}

.eyebrow{
  display:inline-block;
  color:var(--green);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:13px;
  font-weight:900;
  margin-bottom:12px;
}

.intro h1{
  margin:0;
  font-size:clamp(38px,5vw,60px);
  line-height:1.02;
  letter-spacing:-.04em;
}

.intro>p{
  color:var(--muted);
  font-size:18px;
  max-width:530px;
}

.benefits{
  display:grid;
  gap:16px;
  margin-top:34px;
}

.benefit{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.benefit>span{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--soft-green);
  color:var(--green);
  font-weight:900;
}

.benefit div{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.benefit small{
  color:var(--muted);
}

.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:26px;
  padding:32px;
  box-shadow:var(--shadow);
}

.card-head{
  margin-bottom:26px;
}

.step-pill{
  display:inline-block;
  background:var(--soft-green);
  color:var(--green-dark);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:900;
  margin-bottom:10px;
}

.card-head h2{
  margin:0;
  font-size:30px;
}

.card-head p{
  margin:7px 0 0;
  color:var(--muted);
}

.grid{
  display:grid;
  gap:16px;
}

.grid.two{
  grid-template-columns:1fr 1fr;
}

.field{
  margin-bottom:18px;
}

.field label,
.field legend{
  display:block;
  font-size:14px;
  font-weight:800;
  margin-bottom:7px;
}

input,
select{
  width:100%;
  min-height:50px;
  border:1px solid #d5d8dc;
  border-radius:13px;
  padding:0 14px;
  background:#fff;
  color:var(--ink);
  font-size:16px;
  outline:none;
  transition:.2s ease;
}

input:focus,
select:focus{
  border-color:var(--orange);
  box-shadow:0 0 0 4px rgba(255,90,10,.10);
}

input.invalid,
select.invalid{
  border-color:var(--danger);
}

.error{
  display:block;
  min-height:18px;
  margin-top:5px;
  color:var(--danger);
  font-size:12px;
}

.radio-field{
  border:0;
  padding:0;
  margin:0 0 18px;
}

.radio-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.radio-card{
  border:1px solid #d9dcdf;
  border-radius:16px;
  padding:16px;
  display:flex!important;
  gap:12px;
  align-items:flex-start;
  cursor:pointer;
}

.radio-card:has(input:checked){
  border-color:var(--green);
  background:var(--soft-green);
}

.radio-card input{
  width:auto;
  min-height:auto;
  margin-top:4px;
  accent-color:var(--green);
}

.radio-card span{
  display:flex;
  flex-direction:column;
}

.radio-card small{
  color:var(--muted);
  margin-top:2px;
}

.check-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:13px;
  color:var(--muted);
  cursor:pointer;
}

.check-row input{
  width:auto;
  min-height:auto;
  margin-top:3px;
  accent-color:var(--green);
}

.check-row a{
  color:var(--green-dark);
  font-weight:700;
}

.submit-btn{
  width:100%;
  min-height:54px;
  border:0;
  border-radius:14px;
  background:var(--orange);
  color:white;
  font-weight:900;
  font-size:16px;
  cursor:pointer;
  margin-top:14px;
  transition:.2s ease;
}

.submit-btn:hover{
  background:var(--orange-dark);
  transform:translateY(-1px);
}

.submit-btn:disabled{
  opacity:.65;
  cursor:not-allowed;
  transform:none;
}

.form-note{
  text-align:center;
  font-size:12px;
  color:var(--muted);
  margin:12px 0 0;
}

.form-message{
  min-height:18px;
  font-size:13px;
  font-weight:700;
  color:var(--danger);
}

.modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:100;
}

.modal.open{display:block}

.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.58);
}

.modal-card{
  position:relative;
  z-index:2;
  width:min(480px,calc(100% - 28px));
  margin:12vh auto 0;
  background:#fff;
  border-radius:24px;
  padding:32px;
  text-align:center;
  box-shadow:0 30px 80px rgba(0,0,0,.25);
}

.success-icon{
  width:58px;
  height:58px;
  border-radius:50%;
  display:grid;
  place-items:center;
  margin:0 auto 16px;
  background:var(--soft-green);
  color:var(--green);
  font-size:30px;
  font-weight:900;
}

.modal-card h2{
  margin:0;
}

.modal-card p{
  color:var(--muted);
}

.modal-card button{
  min-height:46px;
  padding:0 22px;
  border:0;
  border-radius:13px;
  background:var(--green);
  color:#fff;
  font-weight:900;
  cursor:pointer;
}

@media(max-width:900px){
  .layout{grid-template-columns:1fr}
  .intro{position:static}
}

@media(max-width:640px){
  .page{padding-top:38px}
  .grid.two,
  .radio-row{grid-template-columns:1fr}
  .card{padding:22px}
  .topbar-inner{min-height:68px}
  .back-link{font-size:13px}
  .brand{font-size:19px}
}

.google-btn{
  width:100%;
  min-height:52px;
  border:1px solid #d5d8dc;
  border-radius:14px;
  background:#fff;
  color:#202124;
  font-weight:800;
  font-size:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  cursor:pointer;
  transition:.2s ease;
  margin-bottom:18px;
}
.google-btn:hover{
  border-color:#bfc4c8;
  box-shadow:0 4px 16px rgba(0,0,0,.06);
}
.google-icon{
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-weight:900;
  color:#4285f4;
  border:1px solid #e5e5e5;
  background:#fff;
}
.separator{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--muted);
  font-size:12px;
  margin:4px 0 20px;
}
.separator::before,
.separator::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--line);
}
.google-connected{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  margin-bottom:18px;
  border:1px solid #cfe8d5;
  border-radius:14px;
  background:var(--soft-green);
}
.google-connected[hidden]{display:none}
.google-connected div{
  display:flex;
  flex-direction:column;
}
.google-connected small{color:var(--muted)}
.google-connected button{
  border:0;
  background:transparent;
  color:var(--green-dark);
  font-weight:800;
  cursor:pointer;
}
.readonly-auth{
  background:#f7f7f7!important;
  color:#666!important;
}

.register-logo{
  width:220px;
  height:auto;
  max-width:none;
  display:block;
}
@media(max-width:640px){
  .register-logo{width:175px}
}


/* ===== REGISTRO V4: overrides definitivos ===== */
.topbar{
  background:#fff;
}
.topbar-inner{
  min-height:78px;
}
.brand{
  min-width:0;
  flex:0 0 auto;
  overflow:visible;
}
.register-logo{
  width:210px !important;
  max-width:210px !important;
  height:auto !important;
  max-height:58px !important;
  object-fit:contain !important;
  display:block !important;
}
.google-btn{
  width:100%;
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  border:1px solid #dadce0;
  border-radius:12px;
  background:#fff;
  color:#202124;
  font-weight:700;
  font-size:15px;
  cursor:pointer;
  padding:0 18px;
  margin:0 0 18px;
  appearance:none;
}
.google-btn:hover{
  background:#f8f9fa;
  border-color:#c7c9cc;
}
.google-icon{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  flex:0 0 24px;
  background:transparent;
  border:0;
}
.separator{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 20px;
  color:#777;
  font-size:12px;
  text-align:center;
}
.separator::before,
.separator::after{
  content:"";
  height:1px;
  flex:1;
  background:#e7e8ea;
}
@media(max-width:640px){
  .register-logo{
    width:160px !important;
    max-width:160px !important;
    max-height:50px !important;
  }
  .topbar-inner{min-height:68px}
}
