:root {
  --color-primary: #0b3d91;
  --color-primary-dark: #082c69;
  --color-accent: #f59e0b;
  --color-bg: #f4f6fb;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-success: #16a34a;
  --color-error: #dc2626;
  --color-whatsapp: #25d366;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(11, 61, 145, 0.08);
  --shadow-strong: 0 14px 40px rgba(11, 61, 145, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 18px 80px;
  flex: 1;
}

.footer {
  text-align: center;
  padding: 16px;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.footer a {
  color: var(--color-muted);
  text-decoration: underline;
}

.footer a:hover { color: var(--color-primary); }

h1 {
  font-size: 1.6rem;
  margin: 12px 0 8px;
  color: var(--color-primary-dark);
  text-align: center;
}

.lead {
  text-align: center;
  color: var(--color-muted);
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.5;
}

/* ---- Index hero ---- */
.hero { padding-top: 16px; }

.brand-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 18px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand-logo {
  max-height: 70px;
  max-width: 140px;
  object-fit: contain;
}

.brand-logo-chigo {
  max-height: 70px;
  max-width: 140px;
}

.brand-logo-longtime {
  max-height: 110px;
  max-width: 210px;
}

.pitch {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #334155;
  margin: 0 0 20px;
  padding: 0 4px;
}

.pitch strong {
  color: var(--color-primary-dark);
}

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

.benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(11, 61, 145, 0.05);
  border-left: 4px solid var(--color-success);
  font-size: 0.95rem;
  line-height: 1.35;
}

.benefits li small {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.benefit-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-success);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.zone-title-h2 {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin: 8px 0 14px;
}

.zone-selector {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.zone-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: white;
  padding: 22px 22px 22px 70px;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.zone-card:active {
  transform: scale(0.99);
}

.zone-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.zone-card-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.zone-card-secondary {
  background: linear-gradient(135deg, #475569 0%, #1f2937 100%);
}

.zone-number {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.zone-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.zone-sub {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* ---- Form ---- */
.form-section {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.form-header { text-align: center; }

.form-logo {
  max-height: 72px;
  max-width: 200px;
  object-fit: contain;
  margin: 8px auto 8px;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary-dark);
}

.field input {
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fafbfc;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.15);
  background: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.15s;
  font-family: inherit;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-primary);
  color: white;
  margin-top: 6px;
}

.btn-primary:hover { background: var(--color-primary-dark); }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: white;
  margin-top: 6px;
}

.btn-whatsapp:hover { filter: brightness(0.95); }

/* ---- Consents ---- */
.consents {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
  cursor: pointer;
}

.consent-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.consent-item a {
  color: var(--color-primary);
  font-weight: 600;
}

.consent-item em {
  color: var(--color-muted);
  font-style: normal;
  font-size: 0.82rem;
}

.consent-required {
  border-left: 3px solid var(--color-primary);
  padding-left: 10px;
}

/* ---- Política ---- */
.policy-section {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  line-height: 1.6;
}

.policy-section h1 { text-align: left; margin-bottom: 4px; }

.policy-section h2 {
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  margin: 22px 0 8px;
}

.policy-section p, .policy-section li {
  color: #334155;
  font-size: 0.95rem;
}

.policy-section ul { padding-left: 20px; }

.policy-version {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 0 0 18px;
}

/* ---- Phone card ---- */
.phone-card {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.phone-label {
  color: #92400e;
  font-weight: 600;
  font-size: 0.9rem;
}

.phone-number {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.phone-number:hover { text-decoration: underline; }

.back-link {
  text-align: center;
  margin-top: 22px;
}

.back-link a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link a:hover { color: var(--color-primary); }

/* ---- Servicall (legacy) ---- */
.servicall-section {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: var(--shadow);
  text-align: center;
}

.servicall-image {
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border-radius: 10px;
  display: block;
}

/* ---- City selector ---- */
.city-form {
  display: grid;
  gap: 14px;
  background: var(--color-surface);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sr-label {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.city-select {
  width: 100%;
  padding: 14px 14px;
  font-size: 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  background: white;
  font-family: inherit;
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230b3d91' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.city-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.15);
}

.btn-full { width: 100%; }

/* ---- City pill ---- */
.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dbeafe;
  color: var(--color-primary-dark);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 8px 0;
}

.city-pill-icon { font-size: 1rem; }

/* ---- Installer card (externos) ---- */
.installer-section {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.installer-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 14px;
  padding: 26px 20px;
  margin: 18px 0;
  text-align: center;
  border: 1px solid #cbd5e1;
  box-shadow: 0 6px 18px rgba(11, 61, 145, 0.08);
}

.installer-logo {
  max-height: 100px;
  max-width: 220px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}

.installer-name {
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin: 4px 0 14px;
  text-align: center;
}

.installer-phone {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: none;
  margin: 8px 0 16px;
  letter-spacing: 0.5px;
}

.installer-phone:hover { text-decoration: underline; }

.installer-note {
  margin-top: 18px;
  padding: 14px;
  background: #fef3c7;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #92400e;
  text-align: center;
  line-height: 1.5;
}

.installer-note a {
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.installer-note a:hover { text-decoration: underline; }

/* ---- Thanks ---- */
.thanks-section {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px 22px;
  box-shadow: var(--shadow);
  text-align: center;
}

.check-circle {
  margin: 14px auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--color-success);
  color: white;
  font-size: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

/* ---- Flashes ---- */
.flashes { margin-bottom: 16px; }

.flash {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.flash-error {
  background: #fee2e2;
  color: var(--color-error);
  border-left: 4px solid var(--color-error);
}

.flash-success {
  background: #dcfce7;
  color: var(--color-success);
  border-left: 4px solid var(--color-success);
}

/* ---- Responsive ---- */
@media (max-width: 380px) {
  h1 { font-size: 1.35rem; }
  .phone-number { font-size: 1.5rem; }
  .brand-logo-chigo { max-height: 56px; max-width: 120px; }
  .brand-logo-longtime { max-height: 88px; max-width: 180px; }
}
