/* TelePASE high-fidelity clone styles */
:root {
  --tp-green: #7CC35B;
  --tp-green-hover: #8ad855;
  --tp-dark: #185B2E;
  --tp-ink: #0f0f0f;
  --tp-muted: #6c6c6c;
  --tp-line: #ebebeb;
  --tp-footer: #262626;
  --tp-accent: #BBE6E1;
  --tp-danger: #EF3B2D;
}
* { box-sizing: border-box; outline: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: "Quicksand", sans-serif; font-size: 16px; line-height: 1.6;
  font-weight: 500; color: var(--tp-ink); background: #fff;
  padding-top: 84px; -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--tp-dark); }

/* Header */
.tp-header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: var(--tp-dark); box-shadow: 0 0 15px rgba(0,0,0,.33); }
.tp-header-inner { display: flex; align-items: center; height: 84px; max-width: 1340px; margin: 0 auto; padding: 0 16px; }
.tp-menu-toggle { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.tp-menu-toggle img { width: 24px; }
.tp-logo { flex: 1; display: flex; justify-content: center; text-decoration: none; }
.tp-logo img { width: 158px; }
.tp-header-right { width: 44px; display: flex; justify-content: flex-end; }
.tp-header-right img { width: 34px; }
.tp-menu { display: none; background: var(--tp-green); }
.tp-menu.open { display: block; }
.tp-menu a { display: block; padding: 13px 24px; color: #fff !important; text-decoration: none !important; font-size: 17px; font-weight: 600; border-top: 1px solid rgba(255,255,255,.18); }

/* Layout */
.tp-main { flex: 1; width: 100%; }
.tp-container { width: min(1100px, 100% - 36px); margin: 0 auto; }
.tp-page { width: min(560px, 100% - 32px); margin: 0 auto; padding: 36px 0 70px; }
.tp-kicker { margin: 0 0 8px; color: var(--tp-dark); font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tp-title { margin: 0 0 14px; font-size: 27px; font-weight: 700; line-height: 1.25; }
.tp-lead { margin: 0 0 22px; color: var(--tp-muted); }
.tp-card { background: #fff; border: 1px solid var(--tp-line); border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.08); padding: 26px 20px; }
.tp-note { margin: 18px 0 0; padding: 13px 15px; border-radius: 12px; background: #e8f3eb; color: var(--tp-dark); font-size: 14px; }

/* Buttons */
.tp-btn {
  display: block; width: 100%; height: 47px; line-height: 47px; padding: 0 24px;
  border: 0; border-radius: 15px; background: var(--tp-green); color: #fff !important;
  font-family: inherit; font-size: 20px; font-weight: 600; text-align: center;
  text-decoration: none !important; cursor: pointer; transition: background-color .2s;
}
.tp-btn:hover, .tp-btn:focus { background: var(--tp-green-hover); }
.tp-btn:disabled { opacity: .7; cursor: not-allowed; }
.tp-btn-outline { background: transparent; color: var(--tp-dark) !important; border: 1.5px solid var(--tp-dark) !important; line-height: 44px; }
.tp-btn-outline:hover { background: var(--tp-dark); color: #fff !important; }
.tp-link { color: var(--tp-dark); text-decoration: underline; text-decoration-thickness: 1px; }
.tp-center { text-align: center; }

/* Forms */
.tp-field { margin-bottom: 18px; }
.tp-label { display: block; font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.tp-input {
  width: 100%; height: 44px; margin-top: 3px; padding: 0 1rem;
  background: none; border: none; border-bottom: 1px solid rgba(7,6,6,.14); border-radius: 0;
  color: var(--tp-ink); font-weight: 600; -webkit-appearance: none; appearance: none;
}
.tp-input::placeholder { color: var(--tp-muted); opacity: 1; }
select.tp-input { border: 1px solid var(--tp-line); border-radius: 14px; background: #fff; height: 48px; }
.tp-error { display: none; margin: 5px 0 0; color: var(--tp-danger); font-size: 13px; }
.tp-error.show { display: block; }
.tp-check { display: flex; align-items: center; gap: 9px; margin: 18px 0; font-size: 16px; }
.tp-check input { width: 18px; height: 18px; accent-color: var(--tp-green); }
.tp-expiry { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Vehicles */
.tp-vehicle { border: 1px solid var(--tp-line); border-radius: 16px; background: #fafaf9; padding: 15px 18px; margin-bottom: 14px; }
.tp-vehicle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; }
.tp-vehicle-row > span:first-child { color: var(--tp-muted); }
.tp-vehicle-row > span:last-child { font-weight: 700; text-align: right; }
.tp-patente { display: inline-block; min-width: 96px; padding: 1px 12px; border: 2px solid #0f0f0f; border-radius: 6px; background: #fff; font-weight: 700; letter-spacing: .12em; text-align: center; }

/* OTP */
.tp-otp-row { display: flex; gap: 8px; justify-content: space-between; margin: 24px 0 14px; }
.tp-otp {
  width: 44px; height: 56px; text-align: center; font-size: 24px; font-weight: 700;
  color: var(--tp-ink); background: var(--tp-line); border: 1px solid #b7b7b7; border-radius: 10px;
}
.tp-otp:focus { border-color: var(--tp-green); background: #fff; }

/* Success */
.tp-success-icon { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; background: var(--tp-green); color: #fff; display: grid; place-items: center; font-size: 40px; }

/* Overlay spinner */
.tp-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(255,255,255,.92); display: none; flex-direction: column; justify-content: center; align-items: center; gap: 15px; }
.tp-spinner { width: 50px; height: 50px; border-radius: 50%; background: #8bc34a24; position: relative; }
.tp-spinner::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 4px solid #08c18a; border-left-color: transparent; border-right-color: transparent;
  animation: tp-spin 2s linear infinite;
}
@keyframes tp-spin {
  0% { transform: rotate(0deg) scale(1.3); }
  50% { transform: rotate(180deg) scale(1); }
  100% { transform: rotate(360deg) scale(1.3); }
}
.tp-overlay p { margin: 0; color: #08c18a; font-weight: 600; }

/* Footer */
.tp-footer { margin-top: 60px; background: var(--tp-footer); color: #fff; font-size: 16px; padding: 34px 0 26px; line-height: 2; }
.tp-footer a { color: #fff !important; text-decoration: none !important; }
.tp-footer-logo { width: 150px; margin-bottom: 18px; }
.tp-footer h2 { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.tp-footer ul { list-style: none; margin: 0 0 16px; padding: 0; }
.tp-redes { display: flex; gap: 12px; margin-bottom: 6px; }
.tp-redes img { height: 23px; }
.tp-footer hr { border: 0; height: 2px; background: #fff; opacity: .1; margin: 22px 0 16px; }
.tp-copy { margin: 0; text-align: center; font-size: 13px; color: #ddd; line-height: 1.6; }

/* Live card preview */
.tp-cardface {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 190px; margin-bottom: 36px; padding: 18px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, #185B2E 0%, #2c7c41 58%, #7CC35B 100%);
  box-shadow: 0 14px 26px rgba(24,91,46,.26);
}
.tp-cardface::after { content: ""; position: absolute; top: -70px; right: -50px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,.09); }
.tp-cardface-head { display: flex; align-items: center; gap: 10px; }
.tp-cardface-chip { position: relative; width: 42px; height: 31px; border-radius: 6px; background: linear-gradient(135deg, #f7dd94, #c9a24a); }
.tp-cardface-chip::after { content: ""; position: absolute; inset: 6px 5px; border: 1px solid rgba(0,0,0,.2); border-radius: 3px; }
.tp-cardface-wave svg { display: block; width: 20px; height: 27px; }
.tp-cardface-brand { margin-left: auto; min-width: 40px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.tp-brand { display: none; height: 24px; width: auto; }
.tp-brand--visa { height: 24px; }
.tp-brand--mastercard, .tp-brand--maestro { height: 26px; }
.tp-cardface-brand[data-brand="visa"] .tp-brand--visa,
.tp-cardface-brand[data-brand="mastercard"] .tp-brand--mastercard,
.tp-cardface-brand[data-brand="amex"] .tp-brand--amex,
.tp-cardface-brand[data-brand="jcb"] .tp-brand--jcb,
.tp-cardface-brand[data-brand="maestro"] .tp-brand--maestro { display: block; }
.tp-cardface-brand-text { font-size: 12px; font-weight: 700; letter-spacing: .12em; }

.tp-cardface-slot { margin: 0 -6px; padding: 3px 6px; border-radius: 8px; transition: background-color .2s, box-shadow .2s; }
.tp-cardface-slot--number { margin-top: 18px; }
.tp-cardface-slot--number .tp-cardface-value { font-size: 19px; font-weight: 600; letter-spacing: .07em; }
.tp-cardface-foot { display: flex; align-items: flex-end; gap: 12px; }
.tp-cardface-slot--holder { flex: 1; min-width: 0; }
.tp-cardface-slot--holder .tp-cardface-value { white-space: normal; line-height: 1.3; overflow-wrap: anywhere; }
.tp-cardface-label { display: block; font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .72; }
.tp-cardface-value { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 700; letter-spacing: .07em; }
.tp-cardface-slot:not(.is-filled) .tp-cardface-value { opacity: .58; }
.tp-cardface-slot.is-active { background: rgba(255,255,255,.16); box-shadow: 0 0 0 2px rgba(255,255,255,.9); animation: tp-slot-pulse 1.6s ease-in-out infinite; }
@keyframes tp-slot-pulse { 0%, 100% { background: rgba(255,255,255,.08); } 50% { background: rgba(255,255,255,.24); } }

/* Warning callout */
.tp-warn { margin: 18px 0 0; padding: 13px 15px; border-left: 4px solid #e0a12b; border-radius: 0 12px 12px 0; background: #fdf4e4; color: #7a5310; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .tp-cardface-slot.is-active { animation: none; background: rgba(255,255,255,.2); }
}

@media (min-width: 992px) {
  body { padding-top: 103px; }
  .tp-header-inner { height: 103px; padding: 0 30px; }
  .tp-logo img { width: 192px; }
  .tp-title { font-size: 34px; }
}

