:root {
  color-scheme: light;
  --texto: #20282d;
  --gris: #505d65;
  --borde: #c8cdcf;
  --naranja: #f59b22;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--texto);
  background: #f4f5f3;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #a65403; outline-offset: 3px; }
.cabecera { background: #23282b; color: #fff; border-bottom: 3px solid var(--naranja); }
.barra, .contenido, .pie > div { max-width: 1180px; margin: auto; padding-left: 34px; padding-right: 34px; }
.barra { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 82px; }
.barra a:first-child { line-height: 0; }
.logo { width: 176px; height: 59px; object-fit: contain; }
.volver { display: inline-flex; align-items: center; gap: 8px; padding: 9px 0; font-size: 14px; text-decoration: none; }
.volver:hover, .pie a:hover { text-decoration: underline; }
.contenido { display: grid; grid-template-columns: minmax(210px, .73fr) minmax(0, 1.48fr); gap: clamp(30px, 5.5vw, 83px); padding-top: 46px; padding-bottom: 62px; }
.introduccion { padding: 13px 0; }
.acento { width: 47px; height: 5px; background: var(--naranja); margin-bottom: 19px; }
h1 { font-size: clamp(38px, 4vw, 55px); line-height: 1.04; letter-spacing: -.045em; margin: 0 0 16px; }
h1 span { white-space: nowrap; }
.introduccion > p, .confirmacion > p { font-family: Arial, sans-serif; color: var(--gris); font-size: 17px; line-height: 1.55; margin: 0; }
.info { border-top: 1px solid #c9cdca; padding-top: 22px; margin-top: 30px; }
.info h2 { margin: 0 0 9px; font-size: 18px; }
.info p { color: var(--gris); font: 15px/1.55 Arial, sans-serif; margin: 0 0 10px; }
.formulario, .confirmacion { padding: clamp(22px, 3vw, 36px); background: #fff; border: 1px solid #d9dcda; border-radius: 12px; box-shadow: 0 5px 20px rgba(27,35,38,.035); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset + fieldset { margin-top: 26px; padding-top: 0; }
legend { float: left; width: 100%; padding: 0 0 14px; margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
legend + * { clear: both; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
label { display: block; font: 600 14px/1.4 Arial, sans-serif; }
input:not([type=hidden]), select, textarea { display: block; width: 100%; border: 1px solid var(--borde); border-radius: 5px; padding: 10px 11px; min-height: 42px; background: #fff; font: 16px/1.3 Arial, sans-serif; }
select { padding-right: 26px; }
textarea { resize: vertical; min-height: 92px; }
.espacio { margin-top: 14px; }
.seguridad { border-top: 1px solid #e2e5e3; padding-top: 18px; }
.seguridad legend { font-size: 17px; padding-bottom: 7px; }
.seguridad label { font-weight: 400; color: var(--gris); }
.controles-codigo { display: flex; align-items: center; gap: 13px; margin-top: 10px; flex-wrap: wrap; }
.captcha { display: block; flex-shrink: 0; max-width: 100%; }
.controles-codigo input { max-width: 132px; letter-spacing: .15em; }
.acciones { display: flex; flex-direction: column; align-items: flex-start; margin-top: 12px; }
.alternativas { order: -1; display: flex; flex-wrap: wrap; gap: 5px 18px; margin-bottom: 20px; }
.alternativas button, .otra { padding: 3px 0; border: 0; background: transparent; color: #3b5059; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.enviar { border: 0; border-radius: 6px; padding: 13px 19px; display: inline-flex; gap: 16px; align-items: center; justify-content: center; background: var(--naranja); color: #1b2225; font-weight: 700; cursor: pointer; }
.enviar:hover { background: #ed8e10; }
.enlace { text-decoration: none; }
.alerta, .error { font: 14px/1.4 Arial, sans-serif; color: #8c2930; }
.alerta { padding: 12px 14px; background: #fff4f3; border-left: 3px solid #b64549; margin-bottom: 20px; }
.error { display: block; margin-top: 3px; }
[aria-invalid=true] { border-color: #af4146 !important; }
.pie { border-top: 1px solid #d6dad7; }
.pie > div { display: flex; justify-content: space-between; gap: 14px; padding-top: 20px; padding-bottom: 20px; color: var(--gris); font-size: 13px; }
.constancia { max-width: 680px; margin: 50px auto 70px; padding: 0 20px; }
.confirmacion h1 { font-size: clamp(32px, 5vw, 45px); margin-top: 16px; }
.tilde { display: inline-grid; place-items: center; border-radius: 50%; width: 40px; height: 40px; color: #275941; background: #e5f2e8; font-size: 26px; }
.confirmacion .numero { color: var(--texto); background: #f1f3f1; display: inline-block; margin: 16px 0; padding: 9px 14px; border-radius: 5px; font: 700 17px/1.35 monospace; overflow-wrap: anywhere; }
.confirmacion .enviar { margin-top: 24px; }
.otra { margin: 0 0 0 14px; }
@media (max-width: 760px) {
  .barra, .contenido, .pie > div { padding-left: 20px; padding-right: 20px; }
  .barra { min-height: 66px; }
  .logo { width: 142px; height: 48px; }
  .contenido { grid-template-columns: minmax(0,1fr); gap: 20px; padding-top: 23px; padding-bottom: 30px; }
  .introduccion { padding: 0; }
  .acento { margin-bottom: 12px; height: 4px; width: 35px; }
  .introduccion h1 { font-size: 35px; margin-bottom: 9px; }
  .introduccion > p { font-size: 16px; }
  .info { margin-top: 13px; padding-top: 11px; }
  .info h2 { font-size: 15px; margin-bottom: 5px; }
  .info p { margin-bottom: 4px; font-size: 14px; }
}
@media (max-width: 480px) {
  .campos { grid-template-columns: 1fr; gap: 12px; }
  .formulario { padding: 19px 16px 23px; }
  .controles-codigo { gap: 8px; }
  .controles-codigo input { max-width: 94px; }
  .enviar { width: 100%; }
  .otra { display: block; margin: 15px 0 0; }
}
