/* Animario · the Ganadores plan's application page (animario.com/ganadores and /en/winners), over sitio.css.
   The landing's Ganadores band on top (ink: the exclusive tier, the plan in short), then the door's way of writing
   things down: one lifted paper label on the pulp, ruled in ink, warm-white 48px fields at 16px (no zoom on phones),
   errors in Error red under their field, and the one orange button that sends it. */

:root { --err: #b3261e; --err-soft: #f6dcd6; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ the bar: the logo and «Volver» lead back */
.sol-cab .idioma { margin-left: auto; }
.sol-volver { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; margin-right: -12px; border-radius: var(--radio); font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background-color .18s var(--ease-out), color .18s var(--ease-out); }
.sol-volver:hover { color: var(--ink); background: rgba(255, 253, 248, .5); }
.sol-volver .ic { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.sol-volver:hover .ic { transform: translateX(-3px); }

/* ------------------------------------------------------------------ the plan, in short (ink, as on the landing) */
.sol-plan { background: var(--ink); color: var(--paper); }
.sol-plan-int { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(44px, 6vw, 88px) var(--gutter) clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; }
.sol-plan-int::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) / 2); width: 1px; background: rgba(244, 240, 232, .35); }
.sol-plan .hito { background: var(--ink); color: #e8e2d6; }
.sol-plan :focus-visible { outline-color: var(--paper); }
.sol-plan h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: .95; letter-spacing: -0.024em; }
.sol-plan .lede { margin-top: 18px; max-width: 48ch; color: #d9d3c8; }
.sol-plan .ganadores-precio { margin-top: 26px; }
.sol-incluye { margin: 0; }
.sol-incluye li { font-size: 15px; padding: 10px 0; }

/* ------------------------------------------------------------------ the application: one paper label */
.sol-form-int { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(56px, 7vw, 104px); }
.etiqueta { max-width: 760px; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px; box-shadow: var(--sombra); padding: clamp(20px, 3vw, 32px) clamp(18px, 3vw, 32px) clamp(22px, 3vw, 32px); }
.etiqueta h2 { font-size: clamp(30px, 3.4vw, 40px); }
#solicitud { display: grid; gap: 22px; }
#solicitud > h2 + .sol-aviso { margin-top: -14px; }
.sol-aviso { margin: 0; font-size: 14px; color: var(--ink-2); }

.campo { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.campo > label:not(.acepto), .campo > legend, .canal label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.campo > legend { margin-bottom: 6px; }
.grupo { gap: 8px; }
.grupo > legend + .hint { margin-top: -6px; }
.opcional { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.hint { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.sol-cuenta { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: 4px; }

input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: 400 16px/1.4 var(--f-ui); color: var(--ink); background: var(--white);
  border: 1px solid var(--rule); border-radius: var(--radio); transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d1a16' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:hover, select:hover, textarea:hover { border-color: rgba(29, 26, 22, .45); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29, 26, 22, .14); }
[aria-invalid="true"] { border-color: var(--err) !important; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, .16); }

/* a channel: its platform and its @handle side by side; the 2nd and 3rd can go again */
.canal { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) auto; gap: 6px 10px; align-items: end; margin: 0; padding: 0; border: 0; min-width: 0; }
.canal[data-canal="1"] { grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); }
.canal + .canal { margin-top: 4px; }
.canal > div { display: grid; gap: 6px; min-width: 0; }
.canal .field-msg { grid-column: 1 / -1; }
.sol-quitar { min-height: 48px; padding: 0 10px; border: 0; border-radius: var(--radio); background: none; font: 600 14px/1 var(--f-ui); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sol-quitar:hover { color: var(--ink); background: rgba(29, 26, 22, .06); }
.sol-anadir { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; margin-left: -8px; border: 0; border-radius: var(--radio); background: none; font: 700 15px/1 var(--f-ui); color: var(--ink); cursor: pointer; }
.sol-anadir:hover { background: rgba(29, 26, 22, .06); }
.sol-anadir .ic { width: 18px; height: 18px; }

/* choices: ruled tabs you tick; the chosen one in ink */
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 12px; border: 1px solid var(--rule); border-radius: var(--radio); background: var(--white); font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .15s; }
.opcion:hover { border-color: rgba(29, 26, 22, .45); }
.opcion input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.opcion:has(input:checked) { border-color: var(--ink); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--ink); }
.opcion:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.opcion input:focus-visible { outline: none; }
.opcion:has([aria-invalid="true"]) { border-color: var(--err); }

.acepto { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.acepto input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.acepto a { font-weight: 600; }

.field-msg { margin: 0; font-size: 13px; line-height: 1.4; }
.field-msg:empty { display: none; }
.field-msg.err { color: var(--err); font-weight: 600; }
.ts:empty { display: none; }
#solicitud > .btn { justify-self: start; }
.sol-error { margin: 0; padding: 10px 12px; background: var(--err-soft); border: 1px solid var(--err); border-radius: var(--radio); color: #5c140f; font-size: 14px; }
#solicitud .nota { margin-top: -8px; }

/* after sending */
.hecho { display: grid; gap: 14px; justify-items: start; }
.hecho h2:focus { outline: none; }
.hecho p { margin: 0; max-width: 56ch; color: var(--ink-2); font-size: 17px; }
.hecho b { color: var(--ink); overflow-wrap: anywhere; }
.hecho .btn { margin-top: 6px; }

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 900px) {
  .sol-plan-int { grid-template-columns: 1fr; }
  .sol-cab .idioma { display: inline-flex; }
}
@media (max-width: 640px) {
  /* as on the door: the label sits 14px further in, so the stamped mark's notch has air */
  .sol-form-int { padding-left: calc(var(--gutter) + 14px); }
  .sol-volver .largo { display: none; }
  .sol-cab .cab-int { gap: 6px; }
  #solicitud { gap: 20px; }
  #solicitud > .btn { width: 100%; }
  .canal, .canal[data-canal="1"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .canal .sol-quitar { grid-column: 1 / -1; justify-self: start; min-height: 36px; margin: -2px 0 0 -10px; order: 2; }
  .canal .field-msg { order: 1; }
  .opcion { flex: 1 1 auto; }
}
