/* ============================================================
   PODENZA — afiliados.css
   Estilos específicos de /afiliados
   Sesión 3 — Abril 2026
   ============================================================ */

/* ── HERO AFILIADOS ── */
.hero-af {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: var(--navbar-h);
  position: relative;
  overflow: hidden;
  gap: var(--space-2xl);
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
  padding-bottom: var(--space-3xl);
}

.hero-af-content {
  position: relative;
  z-index: 1;
  padding-top: var(--space-3xl);
}

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

.hero-af-subtitle {
  font-size: clamp(15px, 1.8vw, 17px);
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: var(--space-xl);
}

.hero-af-proof {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.proof-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.proof-item strong { color: var(--color-lime); font-weight: 700; }

.proof-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.hero-af-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Panel flotante */
.hero-af-panel {
  position: relative;
  z-index: 1;
  background: rgba(30,33,0,0.9);
  border: 1px solid rgba(201,255,0,0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 48px rgba(0,0,0,0.4), var(--shadow-glow-lime);
  max-width: 340px;
  margin-left: auto;
  margin-top: var(--space-3xl);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.panel-dot-green { background: var(--color-lime); animation: pulse 2s ease-in-out infinite; }

.panel-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-example { display: flex; flex-direction: column; gap: var(--space-md); }

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-item-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.panel-item-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-white);
}

.panel-highlight { color: var(--color-lime) !important; }

.panel-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: var(--space-xs) 0;
}

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

/* ── QUIÉNES SON ── */
.who-section { padding: var(--space-4xl) 0; }

.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.who-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-out);
}

.who-card:hover {
  border-color: rgba(201,255,0,0.15);
  background: rgba(201,255,0,0.03);
  transform: translateY(-4px);
}

.who-icon {
  font-size: 28px;
  margin-bottom: var(--space-md);
}

.who-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.who-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ── PASOS AFILIADOS ── */
.af-steps { padding: var(--space-4xl) 0; background: rgba(201,255,0,0.02); }

.af-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
}

.af-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
  position: relative;
  max-width: 680px;
}

.af-step:last-child { padding-bottom: 0; }

.af-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201,255,0,0.08);
  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.08em;
  flex-shrink: 0;
  margin-top: 4px;
}

.af-step-body { padding-top: 10px; }

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

.af-step-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

.af-step-line {
  position: absolute;
  left: 22px;
  top: 52px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(201,255,0,0.2), transparent);
}

/* ── CALCULADORA ── */
.calculator-section {
  padding: var(--space-4xl) 0;
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.calc-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}

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

.calc-input-wrapper:focus-within {
  border-color: rgba(201,255,0,0.4);
}

.calc-prefix {
  padding: 0 var(--space-md);
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.calc-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 13px var(--space-md);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  width: 100%;
}

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

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

/* Slider */
.calc-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

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

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  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;
}

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

.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.calc-slider-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--color-lime);
}

/* Botones de tasa */
.calc-rate-buttons {
  display: flex;
  gap: var(--space-sm);
}

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

.calc-rate-btn:hover {
  border-color: rgba(201,255,0,0.3);
  color: var(--color-white);
}

.calc-rate-btn.active {
  background: rgba(201,255,0,0.12);
  border-color: rgba(201,255,0,0.4);
  color: var(--color-lime);
}

/* Resultado */
.result-card {
  background: rgba(201,255,0,0.04);
  border: 1px solid rgba(201,255,0,0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: sticky;
  top: calc(var(--navbar-h) + 20px);
}

.result-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: var(--space-sm);
}

.result-amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  color: var(--color-lime);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-lg);
  transition: all 0.3s ease;
}

.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: var(--space-md);
}

.result-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

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

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

/* ── FORMULARIO DE REGISTRO ── */
.register-section { padding: var(--space-4xl) 0; }

.register-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.register-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.register-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
}

.register-perks {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.perk-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

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

/* Card del formulario */
.register-form-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.register-form-inner {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}

.form-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 13px var(--space-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-white);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}

.form-input::placeholder { color: rgba(255,255,255,0.25); }

.form-input:focus {
  border-color: rgba(201,255,0,0.4);
  background: rgba(201,255,0,0.04);
}

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

.form-input-prefix:focus-within {
  border-color: rgba(201,255,0,0.4);
}

.form-prefix {
  padding: 13px var(--space-md);
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  flex-shrink: 0;
}

.form-input-with-prefix {
  border: none;
  border-radius: 0;
  background: transparent;
}

.form-input-with-prefix:focus {
  border: none;
  background: transparent;
}

.form-select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  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;
}

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

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

.form-link {
  color: rgba(201,255,0,0.6);
  text-decoration: underline;
}

/* ── FAQ ── */
.faq-section { padding: var(--space-4xl) 0; }

.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.faq-item:hover { border-color: rgba(201,255,0,0.12); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: rgba(255,255,255,0.03);
  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;
}

.faq-question:hover { background: rgba(255,255,255,0.05); }

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 var(--space-xl);
  background: rgba(255,255,255,0.02);
}

.faq-answer.open {
  max-height: 200px;
  padding: var(--space-md) var(--space-xl) var(--space-lg);
}

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

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

@media (max-width: 768px) {
  .hero-af {
    grid-template-columns: 1fr;
    padding-bottom: var(--space-2xl);
  }

  .hero-af-panel {
    margin: 0 auto;
    margin-top: var(--space-lg);
    max-width: 100%;
  }

  .hero-af-content { padding-top: var(--space-xl); }

  .who-grid { grid-template-columns: 1fr 1fr; }

  .calculator-wrapper { grid-template-columns: 1fr; }
  .result-card { position: static; }

  .register-wrapper { grid-template-columns: 1fr; }

  .hero-af-cta { flex-direction: column; }
}

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

/* ===== WHO CARDS — centrado iconos ===== */
.af-who-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.af-who-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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;
  text-align: center;
}