/* ============================================================
   PODENZA — afiliados.css
   Solo clases propias de /afiliados — no pisa styles.css
   ============================================================ */

/* ── HERO ── */
.af-hero {
  min-height: 100vh;
  padding: 120px var(--container-px) 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.af-hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.af-hero-copy { position: relative; z-index: 1; }

.af-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--color-white);
  margin-bottom: 20px;
}

.af-hero-subtitle {
  font-size: 17px;
  color: rgba(231,255,140,0.7);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 480px;
}

.af-proof-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.af-proof-list li {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
}

.af-proof-list strong { color: var(--color-lime); }

.af-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Panel de comisión */
.af-commission-panel {
  padding: 28px;
  position: relative;
  z-index: 1;
}

.af-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.af-panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-lime);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.af-panel-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.af-panel-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.af-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.af-panel-row span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-white);
}

.af-panel-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.af-panel-note {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  line-height: 1.5;
  margin-top: 16px;
}

/* ── ALINEACIÓN IZQUIERDA PARA TÍTULOS ── */
.af-left { text-align: left; }
.trust-sub.af-left { margin-left: 0; margin-right: 0; }

/* ── GRID DE QUIÉNES SON ── */
.af-who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.af-who-card {
  padding: 24px 20px;
}

.af-who-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.af-who-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

/* ── PASOS ── */
.af-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 600px;
}

.af-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 32px;
  position: relative;
}

.af-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(201,255,0,0.2), transparent);
}

.af-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201,255,0,0.1);
  border: 1px solid rgba(201,255,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--color-lime);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.af-step-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 6px;
  padding-top: 10px;
  letter-spacing: -0.3px;
}

/* ── CALCULADORA ── */
.af-calc-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.af-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.af-calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.af-calc-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
}

.af-input-wrap {
  display: flex;
  align-items: stretch;
  background: var(--surface-1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.af-input-wrap:focus-within {
  border-color: var(--border-active);
}

.af-input-prefix {
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.03);
  flex-shrink: 0;
}

.af-text-input {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.af-text-input:focus {
  border-color: var(--border-active);
  background: rgba(201,255,0,0.04);
}

.af-text-input::placeholder { color: rgba(255,255,255,0.2); }

/* Input dentro del wrapper de prefix */
.af-input-wrap .af-text-input {
  border: none;
  border-radius: 0;
  background: transparent;
}

.af-text-input::-webkit-outer-spin-button,
.af-text-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.af-calc-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

/* Slider */
.af-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  outline: none;
  cursor: pointer;
}

.af-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-cta);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(175,219,18,0.4);
  transition: transform 0.2s ease;
}

.af-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.af-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}

/* Botones de tasa */
.af-rate-btns {
  display: flex;
  gap: 8px;
}

.af-rate-btn {
  flex: 1;
  padding: 10px;
  background: var(--surface-1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.af-rate-btn:hover {
  border-color: var(--border-mid);
  color: var(--color-white);
}

.af-rate-active {
  background: rgba(201,255,0,0.1);
  border-color: var(--border-active) !important;
  color: var(--color-lime) !important;
}

/* Resultado calculadora */
.af-calc-result {
  padding: 28px;
  position: sticky;
  top: 80px;
}

.af-result-amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  color: var(--color-lime);
  letter-spacing: -2px;
  line-height: 1;
  margin: 8px 0 20px;
  transition: all 0.25s ease;
}

.af-result-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 12px;
}

.af-result-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.af-result-row span:last-child {
  font-weight: 600;
  color: var(--color-white);
}

.af-result-note {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  line-height: 1.5;
}

/* ── REGISTRO ── */
.af-register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.af-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.af-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.af-perk-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(201,255,0,0.1);
  border: 1px solid rgba(201,255,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-lime);
  flex-shrink: 0;
}

.af-form-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.af-form-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

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

/* Tel input con prefix */
.af-form-tel {
  display: flex;
  align-items: stretch;
  background: var(--surface-1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.af-form-tel:focus-within { border-color: var(--border-active); }

.af-tel-prefix {
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.03);
  flex-shrink: 0;
}

.af-tel-input {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  flex: 1;
}

.af-tel-input:focus { background: transparent !important; }

/* Select */
.af-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff40' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.af-select option {
  background: #1E2100;
  color: var(--color-white);
}

.af-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
}

.af-form-legal {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  text-align: center;
  line-height: 1.5;
  margin-top: -4px;
}

/* ── FAQ ── */
.af-faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.af-faq-item {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.af-faq-item:hover { border-color: var(--border-subtle); }

.af-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--surface-1);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.af-faq-q:hover { background: var(--surface-2); }

.af-faq-icon {
  font-size: 20px;
  color: var(--color-lime);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.af-faq-q[aria-expanded="true"] .af-faq-icon {
  transform: rotate(45deg);
}

.af-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.25s ease;
  padding: 0 24px;
  background: rgba(255,255,255,0.02);
}

.af-faq-a.open {
  max-height: 160px;
  padding: 14px 24px 20px;
}

.af-faq-a p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ── FOOTER ── */
.af-footer {
  border-top: 0.5px solid rgba(255,255,255,0.06);
  padding: 48px var(--container-px) 32px;
}

.af-footer-nit {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  margin: 12px 0 20px;
}

.af-footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.af-footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s ease;
}

.af-footer-nav a:hover { color: var(--color-lime); }

.af-footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .af-who-grid { grid-template-columns: repeat(2, 1fr); }
  .af-hero-grid { grid-template-columns: 1fr; }
  .af-commission-panel { max-width: 420px; }
}

@media (max-width: 768px) {
  .af-hero { padding-top: 100px; }
  .af-calc-grid { grid-template-columns: 1fr; }
  .af-calc-result { position: static; }
  .af-register-grid { grid-template-columns: 1fr; }
  .af-hero-btns { flex-direction: column; }
  .af-commission-panel { max-width: 100%; }
}

@media (max-width: 480px) {
  .af-who-grid { grid-template-columns: 1fr; }
  .af-hero-title { font-size: clamp(38px, 11vw, 52px); }
  .af-form-card { padding: 24px 20px; }
}
