/*
  Politrack · Campaign Landing
  v3 (emocional + conversión)

  Nota: esta hoja está pensada para ser usada con la vista
  app/views/tenant/landing.php (clases .pt-*)
*/

:root {
  --pt-radius: 22px;
  --pt-radius-sm: 14px;
  --pt-shadow: 0 26px 80px rgba(0, 0, 0, .28);
  --pt-shadow-soft: 0 10px 30px rgba(0, 0, 0, .18);
  --pt-border: rgba(255, 255, 255, .22);
  --pt-glass: rgba(255, 255, 255, .72);
  --pt-glass-strong: rgba(255, 255, 255, .86);
}

/* Base */
html, body {
  height: 100%;
}

body.pt-landing {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text-main);
  background: var(--bg);
}

* { box-sizing: border-box; }

a { color: inherit; }

/* Topbar */
.pt-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .6);
}

.pt-topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pt-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.pt-brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.pt-campaign-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  border: 1px solid rgba(15, 23, 42, .08);
  font-weight: 600;
  font-size: 13px;
  color: rgba(15, 23, 42, .85);
}

/* Hero */
.pt-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 56px;
  background: linear-gradient(135deg, var(--header-from), var(--header-to));
}

.pt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pt-hero-image);
  background-size: cover;
  background-position: center;
  opacity: .22;
  transform: scale(1.02);
  filter: saturate(1.15);
}

.pt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 25% 0%, rgba(255,255,255,.20), transparent 60%),
    radial-gradient(800px 420px at 70% 30%, rgba(255,255,255,.15), transparent 55%),
    linear-gradient(180deg, rgba(2, 6, 23, .25), rgba(2, 6, 23, .55));
}

.pt-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.pt-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: start;
}

/* Copy */
.pt-copy {
  color: rgba(255, 255, 255, .94);
  padding: 10px 6px;
}

.pt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2px;
}

.pt-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.pt-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255,255,255,.86);
  max-width: 60ch;
}

.pt-benefits {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.pt-benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
}

.pt-benefit-ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  opacity: .95;
}

.pt-benefits span {
  display: block;
  line-height: 1.35;
  font-size: 14px;
  color: rgba(255,255,255,.88);
}

.pt-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pt-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, .20);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}

.pt-privacy-mini {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.82);
  opacity: .9;
}


.pt-legal-mini{
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  opacity: .9;
}
.pt-legal-mini a{ color: rgba(255,255,255,.9); text-decoration: underline; text-underline-offset: 3px; }
.pt-legal-mini span{ opacity: .55; }

.pt-hero-media{
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.pt-hero-media img{
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Video de portada (YouTube) */
.pt-hero-media iframe{
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.pt-footer-sep{ opacity: .6; }

@media (max-width: 980px){
  .pt-hero-media img{ height: 210px; }
  .pt-hero-media iframe{ height: 210px; }
}

@media (max-width: 620px){
  .pt-hero-media img{ height: 190px; }
  .pt-hero-media iframe{ height: 190px; }
}
.pt-privacy-mini a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Form */
.pt-form {
  position: relative;
}

.pt-form-card {
  border-radius: var(--pt-radius);
  background: var(--pt-glass-strong);
  border: 1px solid rgba(255,255,255,.68);
  box-shadow: var(--pt-shadow);
  overflow: hidden;
}

.pt-form-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pt-form-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0;
}

.pt-steps {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pt-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, .55);
  background: rgba(15, 23, 42, .06);
  border: 1px solid rgba(15, 23, 42, .06);
}

.pt-step.active {
  background: rgba(37, 99, 235, .12);
  border-color: rgba(37, 99, 235, .22);
  color: rgba(15, 23, 42, .88);
}

.pt-form-body {
  padding: 18px;
}

.pt-alert {
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.pt-alert-danger {
  background: var(--danger-bg);
  border: 1px solid rgba(185, 28, 28, .22);
  color: var(--danger);
}

.pt-form-fields {
  display: grid;
  gap: 12px;
}

.pt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pt-field {
  display: grid;
  gap: 6px;
}

.pt-field span {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, .78);
}

.pt-field em {
  font-style: normal;
  font-weight: 700;
  color: rgba(15,23,42,.55);
}

.pt-field input,
.pt-field select,
.pt-field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.92);
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
}

.pt-field input:focus,
.pt-field select:focus,
.pt-field textarea:focus {
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}

.pt-field small {
  color: rgba(15, 23, 42, .55);
  font-size: 12px;
  line-height: 1.25;
}

.pt-checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pt-check {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.92);
  padding: 10px 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pt-check input {
  margin-top: 3px;
}

.pt-check label {
  font-size: 13px;
  line-height: 1.25;
  color: rgba(15, 23, 42, .86);
}

.pt-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.pt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .12);
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.pt-btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-color: rgba(255,255,255,.18);
  box-shadow: var(--pt-shadow-soft);
}

.pt-btn-secondary {
  background: rgba(15, 23, 42, .06);
  color: rgba(15, 23, 42, .86);
}

.pt-note {
  font-size: 12px;
  color: rgba(15, 23, 42, .62);
  line-height: 1.3;
}

.pt-link {
  word-break: break-all;
}

/* Thanks */
.pt-thanks h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.pt-thanks p {
  margin: 0 0 8px;
  color: rgba(15, 23, 42, .72);
  line-height: 1.4;
}

.pt-thanks-actions {
  margin-top: 14px;
}

/* Footer */
.pt-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.86);
  padding: 22px 0;
}

.pt-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  gap: 12px;
}

.pt-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pt-footer-role {
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 12px;
  opacity: .95;
}

.pt-footer-link {
  font-size: 12px;
  opacity: .9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pt-footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pt-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.pt-footer-copy {
  font-size: 12px;
  opacity: .8;
}

/* Responsive */
@media (max-width: 980px) {
  .pt-hero-grid { grid-template-columns: 1fr; }
  .pt-copy { padding: 8px 2px 0; }
}

@media (max-width: 620px) {
  .pt-topbar-inner { padding: 10px 14px; }
  .pt-campaign-pill { display: none; }
  .pt-grid-2 { grid-template-columns: 1fr; }
  .pt-checkbox-group { grid-template-columns: 1fr; }
  .pt-steps { grid-template-columns: 1fr 1fr 1fr; }
  .pt-step { padding: 9px 8px; }
}


/* Legal pages */
.pt-legal-grid{
  grid-template-columns: 1fr !important;
}
.pt-legal-col{
  width: 100%;
  max-width: 920px;
  justify-self: center;
}
.pt-legal-card{
  margin-top: 6px;
}
.pt-legal-title{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.pt-legal-text{
  color: var(--pt-text);
  font-size: 14px;
  line-height: 1.6;
  white-space: normal;
}
.pt-legal-text p{ margin: 0 0 10px; }
.pt-legal-text code{
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}

