*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #00843D;
  --green-dark:   #006B31;
  --green-deeper: #004D23;
  --green-light:  #E6F4EC;
  --gold:         #F5A623;
  --black:        #1A1A1A;
  --gray-dark:    #3D3D3D;
  --gray:         #6B7280;
  --gray-light:   #F3F4F6;
  --border:       #E5E7EB;
  --white:        #FFFFFF;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow:       0 4px 6px rgba(0,0,0,.06), 0 10px 28px rgba(0,0,0,.08);
  --shadow-lg:    0 10px 40px rgba(0,0,0,.14);
  --radius-sm:    8px;
  --radius:       14px;
  --t:            .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--gray-light);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ══ LOADER ═══════════════════════════════════════════════ */
.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(0,77,35,.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255,255,255,.2);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
}

/* ══ SPA VISTAS ═══════════════════════════════════════════ */
.view {
  min-height: 100vh;
  display: none;
  flex-direction: column;
}

.view.active { display: flex; }

/* ══ HEADER ═══════════════════════════════════════════════ */
header {
  background: var(--green-deeper);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; text-decoration: none; }

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(1.35) drop-shadow(0 1px 4px rgba(0,0,0,.3));
}

.header-nav { display: flex; align-items: center; gap: 2px; }

.header-nav a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 7px;
  transition: background var(--t), color var(--t);
}

.header-nav a:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* ══ HERO ═════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(160deg, var(--green-deeper) 0%, var(--green-dark) 50%, var(--green) 100%);
  padding: 52px 28px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,.04) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner { max-width: 1060px; margin: 0 auto; position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: .5px;
  margin-bottom: 18px;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 10px;
  letter-spacing: -.4px;
}

.hero p {
  font-size: 16px;
  color: rgba(255,255,255,.68);
  margin: 0 auto 32px;
  max-width: 480px;
  line-height: 1.6;
}

/* Buscador */
.search-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.search-box label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: .9px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.search-row { display: flex; gap: 10px; }

.search-input {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--black);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  font-weight: 500;
}

.search-input::placeholder { color: #C8D0D8; }

.search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0,132,61,.1);
}

.search-btn {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t), box-shadow var(--t);
  white-space: nowrap;
}

.search-btn:hover { background: var(--green-dark); box-shadow: 0 4px 14px rgba(0,107,49,.3); }
.search-btn:active { opacity: .9; }

.search-note { margin-top: 10px; font-size: 12px; color: #A8B2BB; }

/* ══ MAIN BUSQUEDA ════════════════════════════════════════ */
.search-main {
  flex: 1;
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
  padding: 32px 28px 60px;
}

/* Banner sorteo */
.sorteo-banner {
  background: var(--green-deeper);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.sorteo-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 90% 50%, rgba(245,166,35,.12) 0%, transparent 65%);
  pointer-events: none;
}

.sorteo-icon {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}

.sorteo-content { flex: 1; position: relative; z-index: 1; }

.sorteo-content h3 { font-size: 16px; font-weight: 800; color: var(--white); margin-bottom: 6px; }

.sorteo-content p { font-size: 13.5px; color: rgba(255,255,255,.75); line-height: 1.6; max-width: 680px; }

.sorteo-badge {
  background: var(--gold);
  color: #1a0a00;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: .4px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

/* Estados */
.state-msg {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 52px 24px;
  text-align: center;
  display: none;
  margin-bottom: 24px;
}

.state-msg.visible { display: block; }

.state-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--green-dark);
}

.state-icon-wrap svg { width: 28px; height: 28px; }

.state-icon-wrap.error { background: #FEF2F2; color: #C62828; }
.state-msg.error .state-icon-wrap { background: #FEF2F2; color: #C62828; }

.state-msg h3 { font-size: 17px; font-weight: 800; color: var(--black); margin-bottom: 7px; }

.state-msg p { font-size: 14px; color: var(--gray); max-width: 380px; margin: 0 auto; line-height: 1.65; }

/* ══ FOOTER ═══════════════════════════════════════════════ */
footer {
  background: var(--green-deeper);
  padding: 22px 28px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

footer span   { font-size: 13px; color: rgba(255,255,255,.45); }
footer strong { color: rgba(255,255,255,.8); font-weight: 700; }
footer a      { color: rgba(255,255,255,.6); text-decoration: none; font-size: 13px; }
footer a:hover { color: var(--white); }

/* ══ VISTA RESULTADO ══════════════════════════════════════ */

/* ── Header sticky ── */
.rp-header {
  background: var(--green-deeper);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.rp-header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  padding: 7px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: background var(--t);
}

.back-btn:hover { background: rgba(255,255,255,.18); }

.icon-back { width: 18px; height: 18px; }

.rp-guide-tag { font-size: 13px; color: rgba(255,255,255,.55); }
.rp-guide-tag strong { color: var(--white); font-weight: 800; }

/* ── Intro sorteo en main (step 1) ── */
.sorteo-intro { margin-bottom: 20px; }

.sorteo-titulo {
  font-size: 22px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 7px;
}

.sorteo-intro-text {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.65;
  max-width: 640px;
}

/* ── Cuerpo: columna central estrecha ── */
.rp-body {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 28px 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Perfil del destinatario (estilo primera captura) ── */
.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.profile-avatar {
  width: 52px;
  height: 52px;
  background: var(--gray-light);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  flex-shrink: 0;
}

.profile-avatar svg { width: 26px; height: 26px; }

.profile-info { flex: 1; min-width: 0; }

.profile-info h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-meta-badge {
  font-size: 13px;
  color: var(--gray);
}

.profile-meta-badge strong { color: var(--black); font-weight: 700; }

.profile-meta-sep { color: var(--border); }

.profile-meta span:last-child { font-size: 13px; color: var(--gray); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-recibido { background: var(--green-light); color: var(--green-dark); border: 1px solid rgba(0,107,49,.2); }

/* ── Tarjeta de detalle de guia ── */
.guide-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.guide-card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--border);
}

.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.fc {
  padding: 14px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fc:nth-child(even) { border-right: none; }

.fc.fc-full {
  grid-column: 1 / -1;
  border-right: none;
}

.fc-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #9CA3AF;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.fc-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
}

/* ── Seccion formulario (sin cajas por campo) ── */
.form-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.form-section-head {
  background: var(--green-deeper);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.form-section-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: rgba(255,255,255,.9);
}

.form-section-icon svg { width: 36px; height: 36px; }

.form-section-head h3 { font-size: 15px; font-weight: 800; color: var(--white); margin-bottom: 4px; }

.form-section-head p { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.5; }

.form-body { padding: 24px 24px 28px; }

#sorteoForm { display: flex; flex-direction: column; gap: 22px; }

/* Cada campo: label + input sin caja individual */
.ff { display: flex; flex-direction: column; gap: 7px; }

.ff label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  display: block;
  margin-bottom: 6px;
}

.fi-hint { font-size: 11.5px; font-weight: 500; color: #9CA3AF; }

/* Grid 2 columnas para el formulario */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 0;
}

.ff-full { grid-column: 1 / -1; }

/* Input bordeado redondeado — estilo referencia */
.fi {
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  outline: none;
  width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}

.fi::placeholder { color: #B0BAC4; }

.fi:hover  { border-color: #94A3B8; }

.fi:focus  {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,132,61,.1);
}

.fi.invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}

/* Campo Palabra clave */
.ff-clave { margin-top: 0; padding-top: 0; border-top: none; }

.fi-clave { border-color: #E2E8F0; }

#sorteoForm .ff-clave { margin-top: 0; }

/* Sub-título interno de sección */
.form-sub-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .9px;
  margin-bottom: 14px;
}

/* Divisor de sección de pago */
.pay-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .9px;
  margin: 20px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.pay-divider svg { width: 15px; height: 15px; flex-shrink: 0; }

.pay-gateway-logo {
  height: 18px;
  width: auto;
  object-fit: contain;
  margin-left: auto;
  opacity: .55;
  filter: grayscale(.3);
}

/* Logos de tarjetas */
.card-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cl {
  width: 44px;
  height: 26px;
  object-fit: contain;
  object-position: center;
  opacity: .3;
  filter: grayscale(1);
  transition: opacity var(--t), filter var(--t);
  cursor: default;
  flex-shrink: 0;
}

/* Cuando no hay tipo detectado: todos visibles igual */
.card-logos.neutral .cl { opacity: .55; filter: grayscale(.4); }

/* Logo activo */
.cl.active { opacity: 1; filter: grayscale(0); }

/* Input numero de tarjeta */
.fi-card { letter-spacing: 2px; font-size: 16px; font-weight: 500; }

/* Titular siempre en mayusculas */
#f-cardholder { text-transform: uppercase; }

/* Info BIN debajo del input */
.bin-info {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  flex-wrap: wrap;
  min-height: 22px;
}

.bin-bank {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-dark);
}

.bin-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green-dark);
  text-transform: capitalize;
}

.bin-badge-brand {
  background: #EEF2FF;
  color: #3730A3;
}

.bin-loading {
  font-size: 12px;
  color: #AAA;
  font-style: italic;
}

/* ── Estado: Procesando ── */
.form-processing {
  padding: 48px 24px 40px;
  text-align: center;
}

.form-processing.hidden { display: none; }

.proc-spinner-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}

.proc-spinner-svg {
  width: 72px;
  height: 72px;
  animation: spin .9s linear infinite;
}

.proc-track { stroke: var(--border); }

.proc-fill {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 30;
}

.proc-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 20px;
  min-height: 22px;
  transition: opacity .3s;
}

.proc-bar-wrap {
  width: 220px;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.proc-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  border-radius: 3px;
  width: 0%;
  transition: width 8s linear;
}

/* ── Estado: Declinado ── */
.form-declined {
  padding: 40px 24px 36px;
  text-align: center;
}

.form-declined.hidden { display: none; }

.declined-icon {
  width: 64px;
  height: 64px;
  background: #FEF2F2;
  border: 2px solid #FECACA;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: #DC2626;
}

.declined-icon svg { width: 28px; height: 28px; }

.declined-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 8px;
}

.declined-sub {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  max-width: 320px;
  margin: 0 auto 24px;
}

.retry-btn {
  background: var(--green-deeper);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t), box-shadow var(--t);
}

.retry-btn:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 14px rgba(0,107,49,.3);
}

/* ── STEP 3: Thank you ── */
.form-success { padding: 36px 24px 28px; text-align: center; }
.form-success.hidden { display: none; }

.ty-check {
  width: 64px;
  height: 64px;
  background: var(--green-light);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin: 0 auto 20px;
}

.ty-check svg { width: 30px; height: 30px; }

.ty-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 8px;
}

.ty-sub {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  max-width: 340px;
  margin: 0 auto 22px;
}

.ty-card {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--gray-dark);
  text-align: left;
  margin-bottom: 18px;
  line-height: 2;
}

.ty-card strong { color: var(--black); font-weight: 700; }

.ty-note {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.5;
}

.ty-note strong { color: var(--green-dark); }

.ferr { font-size: 12px; color: #EF4444; font-weight: 500; display: none; }
.ferr.visible { display: block; }

/* Aviso de cobro de envio */
.pay-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12.5px;
  color: #78350F;
  line-height: 1.6;
}

.pay-notice svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: #D97706; }

.pay-notice strong { font-weight: 800; color: #92400E; }

.submit-btn {
  background: var(--green-deeper);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 36px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: block;
  margin: 8px auto 0;
  transition: background var(--t), box-shadow var(--t);
}


.submit-btn:hover { background: var(--green-dark); box-shadow: 0 4px 14px rgba(0,107,49,.3); }

/* Exito */
.form-success { padding: 36px 24px; text-align: center; }
.form-success.hidden { display: none; }

.success-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin: 0 auto 16px;
}

.success-icon svg { width: 26px; height: 26px; }

.form-success h3 { font-size: 17px; font-weight: 900; margin-bottom: 8px; }
.form-success p  { font-size: 14px; color: var(--gray); line-height: 1.6; margin-bottom: 18px; }

.success-data {
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--gray-dark);
  text-align: left;
  margin-bottom: 18px;
  line-height: 1.9;
}

.success-data strong { color: var(--black); font-weight: 700; }

.back-to-search-btn {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid rgba(0,107,49,.2);
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t);
}

.back-to-search-btn:hover { background: #c4e0ce; }

/* ══ RESPONSIVE ═══════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero            { padding: 40px 20px 44px; }
  .search-box      { padding: 20px; }
  .search-row      { flex-direction: column; }
  .search-btn      { width: 100%; padding: 14px; text-align: center; }
  .search-main     { padding: 24px 16px 48px; }
  .sorteo-banner   { flex-direction: column; gap: 12px; padding: 20px; }
  .rp-body         { padding: 20px 16px 48px; }
  .rp-header-inner { padding: 0 16px; }
  .fields-grid     { grid-template-columns: 1fr; }
  .form-grid       { grid-template-columns: 1fr; }
  .ff-full         { grid-column: 1; }
  .fc              { border-right: none; }
  .rp-guide-tag    { display: none; }
  .profile-info h2 { font-size: 15px; }
}

@media (max-width: 420px) {
  .header-nav a { padding: 6px 10px; font-size: 12px; }
}