/* ============================================================
   form-placa.css — Formulario "rellena tu placa" (registro)
   Compartido por index.html y registro.html.
   ============================================================ */

/* CTA amarillo con brillo animado */
.btn-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(120deg, #FEE40D, #ffd400);
  color: #1C1C1C; font-weight: 800;
  border: none; cursor: pointer;
  border-radius: 18px;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease;
  box-shadow: 0 10px 34px -12px rgba(254,228,13,0.45);
}
.btn-cta::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -80%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3.6s ease-in-out infinite;
}
@keyframes btn-shine {
  0%, 55% { left: -80%; }
  75%, 100% { left: 130%; }
}
.btn-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 44px -12px rgba(254,228,13,0.6);
}
.btn-cta:active { transform: scale(.97); }
.btn-cta:disabled { opacity: .7; cursor: default; transform: none; }
.btn-cta .flecha { transition: transform .2s ease; }
.btn-cta:hover .flecha { transform: translateX(4px); }

/* Pasos del formulario */
.fstep { margin-bottom: 28px; }
.fstep-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.fstep-num {
  width: 26px; height: 26px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FEE40D, #ffcf00);
  color: #1C1C1C; font-weight: 900; font-size: 13px;
}
.fstep-tit { font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.fstep-opt {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.18);
  padding: 3px 9px; border-radius: 999px; margin-left: auto;
}

/* Paso plegable (contacto): cerrado de serie, se desliza al tocar */
.fstep-toggle {
  width: 100%; background: none; border: none; padding: 0;
  color: inherit; cursor: pointer; text-align: left;
  font-family: inherit;
}
.fstep-toggle .fstep-chev {
  margin-left: 8px; flex-shrink: 0;
  color: rgba(255,255,255,.5); font-size: 13px;
  transition: transform .25s ease;
}
@media (hover:hover) { .fstep-toggle:hover .fstep-tit { color: #FEE40D; } }
.fstep.abierto .fstep-chev { transform: rotate(90deg); }
.fstep-body {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .4s cubic-bezier(.22,.9,.36,1), opacity .3s ease;
}
.fstep.abierto .fstep-body {
  max-height: 520px; opacity: 1;
  padding-top: 4px;
}

/* Placa gigante editable */
.placa-form {
  display: flex; align-items: stretch;
  border-radius: 14px; overflow: hidden;
  border: 3px solid #14141a;
  background: #fff;
  box-shadow: 0 16px 44px -16px rgba(0,0,0,.75), inset 0 2px 0 rgba(255,255,255,.4);
  transition: box-shadow .25s ease, transform .2s ease;
}
.placa-form:focus-within {
  box-shadow: 0 0 0 4px rgba(254,228,13,.5), 0 16px 44px -16px rgba(0,0,0,.75);
  transform: scale(1.01);
}
.placa-form .banda {
  position: relative;
  width: 58px; flex-shrink: 0;
  background: #003DA5; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 10px 4px; cursor: pointer;
}
.placa-form .banda .estrellas { color: #FFCC00; font-size: 10px; letter-spacing: 1px; line-height: 1; }
.placa-form .banda .cod { font-weight: 900; font-size: 19px; line-height: 1; }
.placa-form .banda .dropi { font-size: 9px; opacity: .8; }
.placa-form .banda select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; appearance: none;
  /* El select es invisible, pero su LISTA desplegable no: sin esto las
     opciones heredaban color blanco de la banda y no se leían. */
  color: #1C1C1C; background: #fff;
}
.placa-form .banda select option { color: #1C1C1C; background: #fff; }
.placa-form .banda:hover { background: #0a4fd0; }
.placa-form input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  color: #14141a; caret-color: #005DF3;
  font-family: ui-monospace, 'Cascadia Code', 'Courier New', monospace;
  font-weight: 800; font-size: clamp(26px, 7.5vw, 44px);
  letter-spacing: .14em; text-align: center; text-transform: uppercase;
  padding: 16px 8px;
}
.placa-form input::placeholder { color: #c8c8cf; }
.placa-hint { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 9px; text-align: center; }

/* Tarjetas de canal con logo real */
.canal2 {
  position: relative;
  border-radius: 18px; padding: 20px 14px 16px;
  text-align: center; cursor: pointer;
  border: 2px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  transition: transform .16s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
  user-select: none;
}
.canal2 svg { width: 46px; height: 46px; margin: 0 auto 10px; display: block; }
.canal2 .nombre { font-weight: 800; font-size: 15px; }
.canal2 .desc { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 3px; }
.canal2 .check {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 999px;
  background: #22c55e; color: #fff;
  font-size: 12px; font-weight: 900; line-height: 22px;
  display: none; text-align: center;
}
.canal2.sel .check { display: block; animation: check-pop .25s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes check-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (hover:hover) { .canal2:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.3); } }
.canal2:active { transform: scale(.97); }
.canal2.tg.sel { border-color: #229ED9; background: rgba(34,158,217,.12); box-shadow: 0 12px 34px -14px rgba(34,158,217,.7); }
.canal2.wa.sel { border-color: #25D366; background: rgba(37,211,102,.10); box-shadow: 0 12px 34px -14px rgba(37,211,102,.6); }

/* Chips de contacto opcional */
.chips-contacto { display: flex; gap: 10px; flex-wrap: wrap; }
.chip-opt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1.5px dashed rgba(255,255,255,.28);
  background: transparent; color: rgba(255,255,255,.75);
  font-weight: 700; font-size: 13.5px; cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .14s ease;
}
@media (hover:hover) { .chip-opt:hover { border-color: #FEE40D; color: #fff; transform: translateY(-1px); } }
.chip-opt:active { transform: scale(.96); }
.chip-opt.on {
  border-style: solid; border-color: #FEE40D;
  background: rgba(254,228,13,.10); color: #fff;
}
.chip-opt .mas { font-size: 16px; line-height: 1; color: #FEE40D; transition: transform .2s ease; display: inline-block; }
.chip-opt.on .mas { transform: rotate(45deg); }
.campo-opt { display: none; margin-top: 14px; }
.campo-opt.visible { display: block; animation: campo-in .25s ease both; }
@keyframes campo-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.campo-opt .arroba {
  display: flex; align-items: center; justify-content: center;
  width: 46px; flex-shrink: 0; font-weight: 800; font-size: 18px;
  color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.2);
  border-right: none; border-radius: 16px 0 0 16px;
}
.campo-opt .arroba + input { border-radius: 0 16px 16px 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .btn-cta::before { animation: none; }
  .btn-cta, .canal2, .chip-opt, .placa-form, .fstep-body, .fstep-chev { transition: none; }
  .canal2.sel .check, .campo-opt.visible { animation: none; }
}

/* ============================================================
   Modal "muy pronto en tu país" (registro con país != ES).
   Usa los tokens de tema --pg-* de brand.css: claro y oscuro.
   ============================================================ */
.modal-pais-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: mp-fade .22s ease both;
}
.modal-pais {
  max-width: 420px; width: 100%;
  background: var(--pg-bg2, #141019);
  color: var(--pg-text, #f4f2ef);
  border: 1px solid var(--pg-border, rgba(255,255,255,.10));
  border-radius: 24px;
  padding: 34px 28px 28px;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.55);
  animation: mp-pop .28s cubic-bezier(.34,1.4,.64,1) both;
}
.modal-pais .mp-icono { font-size: 44px; line-height: 1; margin-bottom: 14px; }
.modal-pais h3 {
  font-size: 20px; font-weight: 800; margin: 0 0 12px;
  letter-spacing: -.01em;
}
.modal-pais p {
  font-size: 14.5px; line-height: 1.55; margin: 0 0 10px;
  color: var(--pg-soft, rgba(255,255,255,.62));
}
.modal-pais .mp-gracias { font-weight: 700; color: var(--pg-text, #f4f2ef); }
.modal-pais .btn-cta { width: 100%; margin-top: 18px; padding: 14px 20px; font-size: 15px; }
@keyframes mp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mp-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal-pais-overlay, .modal-pais { animation: none; }
}

/* ============================================================
   Botón PLACA DE MATRÍCULA (CTA principal de marca).
   Compartido por index.html y registro.html.
   Estructura: <button class="btn-placa">
     <span class="eu"><span class="est">★ ★ ★</span><span>E</span></span>
     <span class="txt">TEXTO <span class="inter"></span></span>
   </button>
   ============================================================ */
.btn-placa {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: stretch;
  padding: 0;
  border: 2.5px solid #101018;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff45c 0%, #FEE40D 45%, #eec900 100%);
  color: #14141a !important;
  font-family: ui-monospace, 'Cascadia Code', 'Courier New', monospace;
  font-weight: 800; letter-spacing: .09em;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 16px 44px -16px rgba(254,228,13,.55),
              inset 0 2px 0 rgba(255,255,255,.55),
              inset 0 -4px 8px rgba(0,0,0,.16);
  transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease;
}
.btn-placa .eu {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 11px; flex-shrink: 0;
  background: #003DA5; color: #FFCC00;
  font-size: 10px; font-weight: 900; line-height: 1;
}
.btn-placa .eu .est { letter-spacing: 2px; font-size: 8px; }
.btn-placa .txt {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 24px; flex: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
/* barrido de faro al pasar el ratón */
.btn-placa::after {
  content: '';
  position: absolute; top: -20%; bottom: -20%; left: -45%; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.8), transparent);
  transform: skewX(-18deg);
  opacity: 0; pointer-events: none;
}
.btn-placa:hover::after { animation: faro-sweep .65s ease; }
@keyframes faro-sweep {
  from { left: -45%; opacity: 1; }
  to   { left: 120%; opacity: 1; }
}
.btn-placa:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px -16px rgba(254,228,13,.75),
              inset 0 2px 0 rgba(255,255,255,.55),
              inset 0 -4px 8px rgba(0,0,0,.16);
}
/* "troquelado": al pulsar, la placa se estampa */
.btn-placa:active {
  transform: translateY(2px) scale(.985);
  box-shadow: 0 6px 18px -10px rgba(254,228,13,.5),
              inset 0 2px 0 rgba(255,255,255,.3),
              inset 0 -2px 4px rgba(0,0,0,.3),
              inset 0 0 26px rgba(0,0,0,.14);
}
.btn-placa:disabled { opacity: .7; cursor: default; transform: none; }
/* intermitente: flecha que parpadea como un coche */
.btn-placa .inter {
  width: 0; height: 0; flex-shrink: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #14141a;
}
.btn-placa:hover .inter { animation: intermitente .64s steps(1) infinite; }
@keyframes intermitente {
  0%, 100% { opacity: 1; }
  50% { opacity: .12; }
}
/* micro-vibración de motor al hover */
.btn-placa:hover .txt { animation: btn-rev .16s linear 3; }
@keyframes btn-rev {
  25% { transform: translateX(-.6px); }
  75% { transform: translateX(.6px); }
}

/* Botón SEÑAL DE AUTOPISTA (secundario) */
.btn-senal {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #0a58d6, #003DA5);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,.45), 0 14px 36px -14px rgba(0,93,243,.65);
  color: #fff; font-weight: 700; text-decoration: none;
  transition: transform .18s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-senal:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 0 0 2px rgba(0,0,0,.45), 0 20px 46px -14px rgba(0,93,243,.85);
}
.btn-senal:active { transform: scale(.97); }
.btn-senal .chev { display: inline-block; animation: chev-slide 1.5s ease-in-out infinite; }
@keyframes chev-slide {
  0%, 100% { transform: translateX(0); opacity: .8; }
  50% { transform: translateX(5px); opacity: 1; }
}

/* Botón navbar "Registrarme" = mini placa blanca */
.btn-matricula-mini {
  display: inline-flex; align-items: stretch; overflow: hidden;
  border-radius: 8px;
  border: 2px solid #0e0e14;
  background: #fff; color: #14141a;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-weight: 800; font-size: 13px; letter-spacing: .07em;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 18px -8px rgba(255,255,255,.35), inset 0 1px 0 rgba(255,255,255,.8);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-matricula-mini .mini-eu {
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px; background: #003DA5; color: #FFCC00;
  font-size: 9px; font-weight: 900;
}
.btn-matricula-mini .mini-txt { padding: 9px 13px; display: inline-flex; align-items: center; }
.btn-matricula-mini:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(254,228,13,.5); }
.btn-matricula-mini:hover .mini-txt { background: #FEE40D; }
.btn-matricula-mini:active { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
  .btn-placa::after, .btn-placa .inter, .btn-placa .txt,
  .btn-senal .chev { animation: none !important; }
  .btn-placa, .btn-senal, .btn-matricula-mini { transition: none; }
}
