/* Programa de representantes — estilo corporativo B2B */
.representatives-section {
  --rep-navy: #1d3557;
  --rep-navy-deep: #152a45;
  --rep-line: rgba(29, 53, 87, 0.1);
  --rep-line-strong: rgba(29, 53, 87, 0.18);
  --rep-surface: #ffffff;
  --rep-bg: #eef1f6;
  scroll-margin-top: 96px;
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5.5rem;
  background:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(29, 53, 87, 0.07), transparent 55%),
    linear-gradient(180deg, var(--rep-bg) 0%, #e8ecf3 100%);
  overflow: hidden;
}

.representatives-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(29, 53, 87, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 53, 87, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 65%);
  pointer-events: none;
}

.representatives-section .container {
  position: relative;
  z-index: 1;
}

.representatives-section .section-tag {
  display: inline-block;
  background: rgba(29, 53, 87, 0.08);
  color: var(--rep-navy);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid var(--rep-line);
}

.representatives-section #rep-heading {
  color: var(--rep-navy-deep);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.representatives-section .section-subtitle {
  max-width: 34rem;
  margin: 0 auto 2.75rem;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-dark);
}

/* Barra de credibilidad */
.rep-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  padding: 1rem 1.25rem;
  margin: -0.5rem auto 2.75rem;
  max-width: 52rem;
  background: var(--rep-surface);
  border: 1px solid var(--rep-line);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(29, 53, 87, 0.06);
}

.rep-trust-bar .rep-trust-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--gray-dark);
}

.rep-trust-bar .rep-trust-val {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rep-navy);
  letter-spacing: -0.02em;
}

.rep-trust-bar .rep-trust-label {
  color: var(--gray-color);
  font-weight: 500;
}

.rep-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.25rem;
}

@media (max-width: 991px) {
  .rep-value-grid {
    grid-template-columns: 1fr;
  }
}

.rep-value-card {
  background: var(--rep-surface);
  border-radius: 16px;
  padding: 1.65rem 1.5rem;
  border: 1px solid var(--rep-line);
  box-shadow: 0 4px 24px rgba(29, 53, 87, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
}

.rep-value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--rep-navy), rgba(29, 53, 87, 0.35));
  opacity: 0.85;
}

.rep-value-card:hover {
  transform: translateY(-3px);
  border-color: var(--rep-line-strong);
  box-shadow: 0 12px 40px rgba(29, 53, 87, 0.1);
}

.rep-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  padding: 10px;
  border-radius: 12px;
  background: rgba(29, 53, 87, 0.06);
  color: var(--rep-navy);
  border: 1px solid var(--rep-line);
}

.rep-value-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--rep-navy-deep);
  letter-spacing: -0.02em;
}

.rep-value-card > p {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 0;
  color: var(--gray-color);
}

.highlight-stat {
  margin-top: 1.15rem;
  padding: 0.65rem 1rem;
  background: rgba(29, 53, 87, 0.05);
  color: var(--rep-navy);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--rep-line);
}

/* Subtítulos de bloque */
.rep-block-heading {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--rep-navy-deep);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.rep-block-heading span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-color);
  margin-bottom: 0.35rem;
}

/* Proceso */
.rep-process {
  margin-bottom: 3.25rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

@media (min-width: 992px) {
  .process-steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rep-line-strong), transparent);
    z-index: 0;
  }
}

@media (max-width: 991px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.process-steps .step {
  background: var(--rep-surface);
  padding: 1.35rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--rep-line);
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 12px rgba(29, 53, 87, 0.04);
  transition: border-color 0.2s ease;
}

.process-steps .step:hover {
  border-color: var(--rep-line-strong);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rep-navy);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  border: 3px solid var(--rep-bg);
  box-shadow: 0 0 0 1px var(--rep-line);
}

.process-steps .step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--rep-navy-deep);
}

.process-steps .step p {
  font-size: 0.8125rem;
  margin: 0;
  color: var(--gray-color);
  line-height: 1.5;
}

/* Zonas */
.rep-zones {
  margin-bottom: 3.25rem;
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.zone-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  background: var(--rep-surface);
  border-radius: 12px;
  border: 1px solid var(--rep-line);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.zone-item:hover {
  background: #fafbfd;
  border-color: var(--rep-line-strong);
}

.zone-item img {
  width: 36px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.zone-item span:nth-of-type(1) {
  flex: 1;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-dark);
}

.zone-badge {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.zone-badge.available {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.zone-badge.limited {
  background: rgba(180, 83, 9, 0.08);
  color: #9a3412;
  border: 1px solid rgba(180, 83, 9, 0.2);
}

/* Testimonios representantes */
.rep-testimonials {
  margin-bottom: 2rem;
}

.rep-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 767px) {
  .rep-testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.rep-testimonial-card {
  background: var(--rep-surface);
  padding: 1.65rem 1.5rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--rep-line);
  box-shadow: 0 6px 28px rgba(29, 53, 87, 0.06);
  position: relative;
}

.rep-testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 0.85rem;
  right: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
  color: rgba(29, 53, 87, 0.12);
  pointer-events: none;
}

.rep-quote-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rep-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rep-navy), #457b9d);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.rep-testimonial-card blockquote {
  font-style: normal;
  margin: 0 0 1rem;
  color: var(--gray-dark);
  font-size: 0.9375rem;
  line-height: 1.7;
  padding-right: 1.5rem;
}

.rep-testimonial-card cite {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-color);
  font-style: normal;
  font-weight: 600;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rep-line);
}

/* Formulario postulación */
.rep-form-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--rep-surface);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(29, 53, 87, 0.04),
    0 24px 56px rgba(29, 53, 87, 0.12);
  border: 1px solid var(--rep-line-strong);
}

.rep-form-head {
  background: linear-gradient(135deg, var(--rep-navy) 0%, var(--rep-navy-deep) 100%);
  color: #fff;
  padding: 2rem 2rem 1.75rem;
  text-align: center;
  position: relative;
}

.rep-form-head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.9), transparent);
  opacity: 0.9;
}

.rep-form-head h3 {
  color: #fff;
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.rep-form-head p {
  margin: 0;
  font-size: 0.9375rem;
  opacity: 0.88;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.rep-form {
  padding: 2rem 2rem 2.25rem;
}

@media (max-width: 575px) {
  .rep-form {
    padding: 1.5rem 1.25rem 1.75rem;
  }
  .rep-form-head {
    padding: 1.5rem 1.25rem 1.35rem;
  }
}

.rep-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 575px) {
  .rep-form .form-row {
    grid-template-columns: 1fr;
  }
}

.rep-form .form-group {
  margin-bottom: 1rem;
}

.rep-form .form-group.full-width {
  grid-column: 1 / -1;
}

.rep-form label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 0.4rem;
  color: var(--rep-navy-deep);
  letter-spacing: 0.01em;
}

.rep-form input,
.rep-form select,
.rep-form textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  font-size: 0.9375rem;
  color: var(--dark-color);
  background: #fafbfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rep-form input:hover,
.rep-form select:hover,
.rep-form textarea:hover {
  border-color: #c5ccd8;
}

.rep-form input:focus,
.rep-form select:focus,
.rep-form textarea:focus {
  outline: none;
  border-color: var(--rep-navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 53, 87, 0.15);
}

.rep-form textarea {
  resize: vertical;
  min-height: 110px;
}

.rep-form .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray-dark);
}

.rep-form .checkbox-label input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--rep-navy);
}

.rep-btn-submit {
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 12px !important;
  padding-top: 0.95rem !important;
  padding-bottom: 0.95rem !important;
  background: linear-gradient(180deg, var(--rep-navy) 0%, var(--rep-navy-deep) 100%) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(29, 53, 87, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.rep-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(29, 53, 87, 0.4);
  background: linear-gradient(180deg, #254a73 0%, var(--rep-navy-deep) 100%) !important;
  color: #fff !important;
}

.rep-btn-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(29, 53, 87, 0.45);
}

.form-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-color);
  margin-top: 1.15rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.form-success {
  text-align: center;
  padding: 2rem 1rem;
}

.form-success .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
