/* Form-specific enhancements: shared chrome and business logic remain independent. */
.ed-managed-form { --form-accent: #0b6654; --form-border: #c7d5d0; }
.ed-managed-form :is(.form-group, .field) { min-width: 0; align-content: start; }
.ed-managed-form :is(input:not([type="checkbox"]), select, textarea) {
  min-height: 52px;
  border: 1px solid var(--form-border);
  border-radius: 12px;
  background: #fcfdfc;
  color: #172f28;
  font-size: 16px;
  line-height: 1.5;
  scroll-margin-top: 160px;
}
.ed-managed-form :is(input, select, textarea):focus-visible {
  outline: 3px solid var(--form-accent);
  outline-offset: 3px;
  box-shadow: none;
}
.ed-managed-form textarea { min-height: 160px; resize: vertical; }
.ed-managed-form :is(button, a):focus-visible, .ed-contact-routing a:focus-visible {
  outline: 3px solid #0b6654;
  outline-offset: 4px;
}
.ed-managed-form :is(.submit-btn, .btn-primary) {
  min-height: 52px;
  background: #0b6654;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 750;
  box-shadow: 0 5px 14px rgba(11, 102, 84, .12);
}
.ed-managed-form :is(.submit-btn, .btn-primary):hover { background: #084c3f; }
.ed-managed-form button:disabled { cursor: wait; opacity: .7; }
.ed-managed-form .check-row { padding: 12px 0; }
.ed-managed-form .check-row label { font-size: .9rem; font-weight: 450; line-height: 1.65; }
.ed-managed-form .check-row input { flex: 0 0 20px; margin-top: 4px; }
.ed-managed-form .check-row a, .ed-privacy-note a { color: #0b6654; text-decoration: underline; text-underline-offset: 3px; }
.ed-field-marker {
  display: inline-block;
  margin-left: 9px;
  color: #5c6d65;
  font-size: .7rem;
  font-weight: 450;
  letter-spacing: .01em;
}
.ed-managed-form :is(input, select, textarea)[aria-invalid="true"] { border-color: #ad352a; background: #fffafa; }
.ed-managed-form :is(.ed-field-error, .ed-password-help, .ed-caps-warning, .ed-character-count) { margin: 0; font-size: .79rem; line-height: 1.5; }
.ed-field-error { color: #a3261f; }
.ed-password-help { color: #52685e; }
.ed-password-help[data-complete="true"] { color: #0b6654; }
.ed-caps-warning { color: #85520a; }
.ed-character-count { text-align: right; color: #607269; font-variant-numeric: tabular-nums; }
.ed-character-count[data-near-limit="true"] { color: #85520a; font-weight: 650; }
.ed-form-summary {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border: 1px solid #e4b7ae;
  border-left: 4px solid #ad352a;
  border-radius: 12px;
  background: #fff8f6;
  color: #77251d;
  font-size: .88rem;
  line-height: 1.6;
  scroll-margin-top: 160px;
}
.ed-form-summary:focus { outline: 3px solid #ad352a; outline-offset: 3px; }
.ed-form-summary ul { margin: 8px 0 0; padding-left: 20px; }
.ed-form-summary a { display: inline-block; padding: 4px 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ed-managed-form [hidden] { display: none !important; }
.ed-password-wrap { position: relative; min-width: 0; }
.ed-managed-form .ed-password-wrap input { width: 100%; padding-right: 86px; }
.ed-managed-form .ed-password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  min-width: 72px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0b6654;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.ed-password-toggle:hover { background: #e9f2ee; }
.ed-managed-form .message.info { display: block; color: #1c5547; background: #edf5f1; border: 1px solid #c2d8cd; }
.ed-form-intro { color: #52675e; font-size: .84rem; line-height: 1.6; margin: 0 0 16px; }
.ed-privacy-note { color: #53685f; font-size: .83rem; line-height: 1.65; }
.contact-method { min-width: 0; grid-template-columns: auto minmax(0, 1fr); }
.contact-method > div, .contact-hero-card { min-width: 0; }
.contact-method a, .contact-hero-card a { overflow-wrap: anywhere; }
.contact-card { min-width: 0; }
.contact-card a { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.ed-contact-routing { padding: 30px; margin-bottom: 28px; border: 1px solid #d2dfd8; border-radius: 22px; background: #fff; }
.ed-contact-routing > h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); letter-spacing: -.025em; }
.ed-contact-routing > p { margin: 10px 0 22px; color: #5c6d65; }
.ed-contact-reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ed-contact-reason { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid #d7e2da; background: #f8fbf9; border-radius: 14px; }
.ed-contact-reason > span { margin-bottom: 20px; color: #42715d; font-size: .72rem; font-weight: 750; letter-spacing: .13em; }
.ed-contact-reason h3 { margin: 0 0 9px; font-size: 1.04rem; color: #183b2c; }
.ed-contact-reason p { margin: 0 0 20px; color: #5c6d65; font-size: .9rem; line-height: 1.65; }
.ed-contact-reason a { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; color: #0b6654; font-size: .86rem; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) {
  .register-layout, .login-layout { display: flex; flex-direction: column; }
  .register-layout > .form-panel, .login-layout > .form-panel { order: -1; }
  .register-section, .login-section { padding-block: 24px; }
  .ed-contact-routing { padding: 22px; }
  .ed-contact-reasons { grid-template-columns: 1fr; }
  .ed-contact-reason > span { margin-bottom: 12px; }
  .ed-managed-form .form-grid { grid-template-columns: 1fr; }
  .ed-managed-form .form-options { align-items: flex-start; gap: 12px; }
  .ed-managed-form .forgot-link { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ed-managed-form *, .ed-contact-routing * { transition: none !important; scroll-behavior: auto; }
}

/* Premium edition: quiet editorial layouts around the existing form controls. */
.ed-premium-forms {
  --form-ink: #20362f;
  --form-forest: #183c32;
  --form-paper: #f6f3ed;
  --form-rule: #d5d4c8;
  --form-brass: #a98c57;
}
.ed-premium-forms .ed-form-kicker {
  display: block;
  margin: 0 0 14px;
  color: #657168;
  font-family: Inter, sans-serif;
  font-size: .65rem;
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.ed-premium-account :is(.login-hero, .register-hero) { background: transparent; border: 0; }
.ed-premium-account :is(.login-hero-inner, .register-hero-inner) { max-width: 1120px; padding: 32px 0 8px; }
.ed-premium-account :is(.login-hero, .register-hero) .breadcrumbs { margin-bottom: 30px; font-size: .75rem; }
.ed-premium-account :is(.login-hero, .register-hero) h1 {
  max-width: none;
  margin-bottom: 12px;
  font: 400 clamp(2.3rem, 3.8vw, 3.5rem)/1.1 Georgia, serif;
  letter-spacing: -.04em;
}
.ed-premium-account :is(.login-hero, .register-hero) p { max-width: 620px; font-size: .95rem; line-height: 1.65; }
.ed-premium-account :is(.login-section, .register-section) { padding-block: 28px 70px; }
.ed-premium-account :is(.login-layout, .register-layout) { max-width: 1120px; margin-inline: auto; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 76px); align-items: start; }
.ed-premium-account :is(.form-panel, .ed-account-story) { min-width: 0; border-radius: 6px; box-shadow: none; }
.ed-premium-account .form-panel { padding: 30px; border: 1px solid var(--form-rule); background: #fffefa; overflow: visible; }
.ed-premium-account .form-panel > h2 { font: 400 1.65rem/1.2 Georgia, serif; letter-spacing: -.025em; }
.ed-premium-account .form-panel > p { font-size: .83rem; line-height: 1.65; }
.ed-premium-account .ed-account-story { background: transparent; border: 0; }
.ed-account-figure { margin: 0; }
.ed-premium-account .ed-account-picture { display: block; width: 100%; height: clamp(340px, 36vw, 480px); max-height: none; object-fit: cover; object-position: 50% 50%; border-radius: 5px; }
.ed-account-caption { padding: 25px 0 0; }
.ed-premium-account .ed-account-caption h2 { max-width: 380px; margin: 0 0 13px; font: 400 clamp(1.6rem, 2.5vw, 2.2rem)/1.15 Georgia, serif; letter-spacing: -.03em; }
.ed-account-caption p { max-width: 340px; margin: 0; color: #657168; font-size: .85rem; line-height: 1.8; }
.ed-premium-account .benefits-panel { max-width: 1120px; margin: 52px auto 0; padding: 30px 0 0; border: 0; border-top: 1px solid var(--form-rule); border-radius: 0; background: transparent; box-shadow: none; }
.ed-premium-account .benefits-panel h2 { font: 400 1.75rem/1.25 Georgia, serif; }
.ed-premium-account .benefit-list { gap: 18px; }
.ed-premium-account .benefit-list li { font-size: .85rem; }
.ed-premium-account .support-box { border-radius: 4px; }
.ed-premium-forms .ed-managed-form { --form-accent: var(--form-forest); --form-border: #c8cec4; gap: 22px; }
.ed-premium-forms .ed-managed-form :is(input:not([type="checkbox"]), select, textarea) { border-radius: 5px; background: #fffefa; }
.ed-premium-forms .ed-managed-form :is(.submit-btn, .btn-primary) { border-radius: 5px; background: var(--form-forest); box-shadow: none; font-weight: 550; font-size: .9rem; }
.ed-premium-forms .ed-managed-form :is(.submit-btn, .btn-primary):hover { background: #284e41; }
.ed-premium-forms .ed-managed-form :is(.secondary-btn, .divider) { border-radius: 4px; font-size: .82rem; font-weight: 550; }
.ed-premium-forms .ed-managed-form :is(.form-group, .field) > label { font-size: .86rem; font-weight: 600; line-height: 1.7; }
.ed-premium-forms .ed-field-marker { font-size: .63rem; margin-left: 6px; font-weight: 400; }
.ed-premium-forms .ed-password-toggle { border-radius: 3px; font-size: .7rem; }
.ed-premium-forms .ed-form-fieldset { grid-column: 1/-1; min-width: 0; width: 100%; padding: 19px 0 0; margin: 0; border: 0; border-top: 1px solid var(--form-rule); }
.ed-premium-forms .ed-form-fieldset legend { float: none; max-width: 100%; padding: 0 16px 0 0; margin: 0; color: var(--form-ink); font: 400 1.12rem/1.4 Georgia, serif; }
.ed-premium-forms .ed-form-fieldset legend span { margin-right: 7px; color: #89703f; font: 500 .64rem/1.4 Inter, sans-serif; letter-spacing: .09em; }
.ed-premium-forms .ed-form-fieldset .form-grid { margin: 0; gap: 17px 16px; }
.ed-premium-forms .ed-form-fieldset + .ed-form-fieldset { margin-top: 4px; }
.ed-premium-forms .ed-form-summary { border-radius: 4px; }
.ed-premium-forms .ed-consent-panel { padding: 18px; border: 1px solid var(--form-rule); border-radius: 4px; background: #f6f3ed; gap: 8px; }
.ed-premium-forms .ed-consent-kicker { font-size: .64rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #536657; }
.ed-premium-forms .ed-consent-panel .check-row { padding: 0; margin: 0; gap: 12px; }
.ed-premium-forms .ed-consent-panel .check-row label { font-size: .78rem; line-height: 1.75; }
.ed-premium-forms .ed-send-band { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 10px; margin-top: 0; }
.ed-premium-forms .ed-send-band .list-note { margin: 0; text-align: center; font-size: .72rem; }
.ed-premium-forms .ed-privacy-note { padding-top: 20px; margin-bottom: 0; text-align: left; border-top: 1px solid var(--form-rule); font-size: .75rem; line-height: 1.75; }
.ed-premium-contact .ed-contact-routing { margin-bottom: 36px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.ed-premium-contact .ed-contact-routing > h2 { font: 400 clamp(1.9rem, 3vw, 2.6rem)/1.2 Georgia, serif; }
.ed-premium-contact .ed-contact-reasons { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--form-rule); }
.ed-premium-contact .ed-contact-reason { display: grid; grid-template-columns: minmax(120px, .75fr) minmax(160px, 1fr) minmax(220px, 1.45fr) minmax(130px, .85fr); gap: 26px; align-items: center; padding: 27px 0; border: 0; border-bottom: 1px solid var(--form-rule); border-radius: 0; background: transparent; }
.ed-premium-contact .ed-contact-stage { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0; color: #5d6d60; font-size: .62rem; line-height: 1.7; letter-spacing: .08em; text-transform: uppercase; }
.ed-premium-contact .ed-contact-stage b { color: #89703f; font: 400 1.15rem/1 Georgia, serif; }
.ed-premium-contact .ed-contact-reason h3 { margin: 0; font: 400 1.25rem/1.3 Georgia, serif; }
.ed-premium-contact .ed-contact-reason p { margin: 0; font-size: .81rem; line-height: 1.75; }
.ed-premium-contact .ed-contact-reason a { margin: 0; font-size: .75rem; font-weight: 550; line-height: 1.6; }
.ed-premium-contact .contact-method { border-radius: 5px; box-shadow: none; background: #fffefa; }
.ed-premium-contact .method-icon { border-radius: 0; background: transparent; border-bottom: 1px solid #a98c57; color: #5a6c5e; font-size: .7rem; }
.ed-premium-contact :is(.contact-hero-card, .contact-panel, .contact-side) { border-radius: 5px; box-shadow: none; }
.ed-premium-recovery .page-intro { padding-block: 38px 28px; background: transparent; }
.ed-premium-recovery .page-intro .container { max-width: 1030px; }
.ed-premium-recovery .page-intro h1 { font: 400 clamp(2.2rem, 4vw, 3.3rem)/1.12 Georgia, serif; letter-spacing: -.035em; max-width: 650px; }
.ed-premium-recovery .page-intro .lead { max-width: 610px; font-size: .9rem; }
.ed-premium-recovery .content-grid { max-width: 1030px; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: 64px; align-items: start; }
.ed-premium-recovery :is(.panel, .side-panel, .notice) { border-radius: 5px; box-shadow: none; }
.ed-premium-recovery .panel { padding: 32px; border: 1px solid var(--form-rule); background: #fffefa; }
.ed-premium-recovery .panel h2 { font: 400 1.7rem/1.25 Georgia, serif; }
.ed-premium-recovery .side-panel { padding: 4px 0; border: 0; background: transparent; }
.ed-premium-recovery .side-panel h2 { font: 400 1.65rem/1.2 Georgia, serif; }
.ed-recovery-steps { margin: 24px 0; padding: 0; list-style: none; }
.ed-recovery-steps li { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--form-rule); }
.ed-recovery-steps li > span { padding-top: 2px; color: #89703f; font: 400 .95rem/1.4 Georgia, serif; }
.ed-recovery-steps strong { display: block; font-size: .8rem; font-weight: 600; }
.ed-premium-recovery .ed-recovery-steps p { margin: 4px 0 0; font-size: .76rem; line-height: 1.7; }
.ed-premium-recovery .side-panel > p { font-size: .78rem; line-height: 1.8; }
.ed-premium-recovery .notice { padding: 17px 20px; border-left: 2px solid var(--form-brass); background: transparent; font-size: .76rem; line-height: 1.8; }
.ed-premium-advice .form-layout { max-width: 1160px; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(35px, 6vw, 90px); }
.ed-premium-advice #formulario-asesoramiento { padding: clamp(22px, 3vw, 36px); border-radius: 5px; border-color: var(--form-rule); background: #fffefa; box-shadow: none; }
.ed-premium-advice #formulario-asesoramiento > h2 { font: 400 2rem/1.18 Georgia, serif; }
.ed-premium-advice #formulario-asesoramiento > p { font-size: .84rem; line-height: 1.8; }
.ed-premium-advice .field-help { font-size: .77rem; line-height: 1.7; }
.ed-premium-advice .info-panel { padding: 18px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.ed-premium-advice .info-panel h2 { font: 400 2.1rem/1.15 Georgia, serif; }
.ed-premium-advice .info-panel h3 { font: 400 1.45rem/1.2 Georgia, serif; }
.ed-premium-advice .info-panel .section-intro { font-size: .84rem; line-height: 1.85; margin: 18px 0; }
.ed-premium-advice .info-list li { padding: 15px 0 15px 26px; border-top: 1px solid var(--form-rule); font-size: .82rem; line-height: 1.7; }
.ed-premium-advice .info-list li + li { margin: 0; }
.ed-premium-advice .info-list li::before { top: 15px; color: #89703f; font-weight: 400; }
.ed-premium-advice .mini-list li { font-size: .82rem; line-height: 1.7; }
.ed-advice-rule { border: 0; border-top: 1px solid var(--form-rule); margin: 26px 0; }
.ed-premium-advice .steps-panel { max-width: 1160px; padding: 40px 0; margin-top: 30px; border: 0; border-top: 1px solid var(--form-rule); border-radius: 0; box-shadow: none; background: transparent; }
.ed-premium-advice .steps-panel h2 { font: 400 2.1rem/1.2 Georgia, serif; }
.ed-premium-advice .steps-panel .section-intro { font-size: .85rem; }
.ed-premium-advice .steps-grid { gap: 0; counter-reset: advice-step; }
.ed-premium-advice .step { padding: 22px 28px; border: 0; border-left: 1px solid var(--form-rule); border-radius: 0; box-shadow: none; background: transparent; }
.ed-premium-advice .step:first-child { border-left: 0; padding-left: 0; }
.ed-premium-advice .step-number { width: auto; height: auto; display: block; margin-bottom: 18px; border-radius: 0; background: none; color: #89703f; font: 400 1.4rem/1 Georgia, serif; }
.ed-premium-advice .step h3 { font: 400 1.35rem/1.25 Georgia, serif; }
.ed-premium-advice .step .mini-copy { font-size: .82rem; line-height: 1.75; }
@media (max-width: 1000px) {
  .ed-premium-contact .ed-contact-reason { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 26px; }
  .ed-premium-contact .ed-contact-reason p, .ed-premium-contact .ed-contact-reason a { grid-column: 2; }
  .ed-premium-account :is(.login-layout, .register-layout) { gap: 30px; }
  .ed-premium-account .form-panel { padding: 24px; }
  .ed-premium-advice .form-layout { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .ed-premium-advice .info-panel { padding: 15px 0; }
}
@media (max-width: 760px) {
  .ed-premium-account :is(.login-layout, .register-layout) { display: flex; flex-direction: column; }
  .ed-premium-account :is(.login-layout, .register-layout) > .form-panel { order: -1; width: 100%; }
  .ed-premium-account :is(.login-hero-inner, .register-hero-inner) { padding: 22px 0 0; }
  .ed-premium-account :is(.login-hero, .register-hero) .breadcrumbs { margin-bottom: 22px; }
  .ed-premium-account .ed-account-story { width: 100%; }
  .ed-premium-account .ed-account-picture { height: 300px; }
  .ed-premium-account .ed-account-caption { padding-top: 19px; }
  .ed-premium-account .ed-account-caption h2 { max-width: 350px; }
  .ed-premium-recovery .content-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ed-premium-recovery .panel { padding: 24px; }
  .ed-premium-recovery .side-panel { border-top: 1px solid var(--form-rule); padding-top: 25px; }
}
@media (max-width: 560px) {
  .ed-premium-forms .ed-form-fieldset .form-grid { grid-template-columns: minmax(0, 1fr); }
  .ed-premium-account .form-panel { padding: 22px 18px; }
  .ed-premium-forms .ed-consent-panel { padding: 15px; }
  .ed-premium-contact .ed-contact-reason { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .ed-premium-contact .ed-contact-reason p, .ed-premium-contact .ed-contact-reason a { grid-column: 1; }
  .ed-premium-contact .ed-contact-reason a { justify-self: start; }
  .ed-premium-contact .ed-contact-stage { grid-template-columns: 25px minmax(0, 1fr); }
  .ed-premium-advice .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .ed-premium-advice .step, .ed-premium-advice .step:first-child { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--form-rule); }
  .ed-premium-advice .step-number { margin-bottom: 12px; }
}
