/* ============================================
   FUNDADORES — Página de registro
   ============================================ */

/* ── Page wrapper ── */
.fundadores-page {
  min-height: 100vh;
  background: var(--black);
}

/* ── Hero / Header ── */
.fundadores-hero {
  position: relative;
  padding: 160px 60px 100px;
  overflow: hidden;
  border-bottom: 1px solid rgba(216,188,106,0.1);
}

.fundadores-hero > .back-link {
  position: absolute;
  top: 100px;
  left: 60px;
  margin-bottom: 0;
  z-index: 2;
}

.fundadores-hero::before {
  content: 'AG';
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 32vw;
  font-weight: 700;
  color: rgba(216,188,106,0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.fundadores-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.fundadores-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(216,188,106,0.3);
  padding: 8px 20px;
  margin-bottom: 40px;
}

.fundadores-badge::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.fundadores-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
}

.fundadores-headline em {
  font-style: italic;
  color: var(--gold);
}

.fundadores-subhead {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--white-faint);
  max-width: 500px;
}

/* ── Main content ── */
.fundadores-main {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  padding: 100px 40px 120px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Left: Benefits ── */
.fundadores-benefits {
  position: sticky;
  top: 100px;
}

.fundadores-benefits-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.fundadores-benefits-title em {
  font-style: italic;
  color: var(--gold);
}

.fundadores-benefits-sub {
  font-size: 0.875rem;
  color: rgba(245,240,232,0.75);
  line-height: 1.8;
  margin-bottom: 52px;
}

.fundadores-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 52px;
}

.fundadores-benefit {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.fundadores-benefit-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(216,188,106,0.3);
  background: rgba(216,188,106,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.fundadores-benefit-text strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.fundadores-benefit-text span {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--white-faint);
  line-height: 1.7;
}

.fundadores-disclaimer {
  font-size: 0.62rem;
  font-weight: 300;
  color: rgba(245,240,232,0.3);
  line-height: 1.8;
  border-top: 1px solid rgba(245,240,232,0.06);
  padding-top: 28px;
}

/* ── Right: Form ── */
.fundadores-form-wrap {
  background: var(--black-card);
  border: 1px solid rgba(216,188,106,0.1);
  padding: 52px 48px;
}

.fundadores-form-header {
  margin-bottom: 40px;
}

.fundadores-form-header h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 8px;
}

.fundadores-form-header h3 em {
  font-style: italic;
  color: var(--gold);
}

.fundadores-form-header p {
  font-size: 0.7rem;
  color: var(--white-faint);
  letter-spacing: 0.05em;
}

/* Form grid */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row .form-group {
  margin-bottom: 0;
}

/* Password strength */
.password-strength {
  margin-top: 8px;
  display: flex;
  gap: 4px;
}

.strength-bar {
  flex: 1;
  height: 2px;
  background: rgba(245,240,232,0.08);
  transition: background 0.3s;
}

.strength-bar.active-1 { background: #e74c3c; }
.strength-bar.active-2 { background: #e67e22; }
.strength-bar.active-3 { background: var(--gold); }
.strength-bar.active-4 { background: #2ecc71; }

.strength-label {
  font-size: 0.58rem;
  color: var(--white-faint);
  margin-top: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Error / success states */
.field-error {
  font-size: 0.6rem;
  color: #e74c3c;
  margin-top: 6px;
  letter-spacing: 0.05em;
  display: none;
}

.field-error.visible { display: block; }

.form-group input.invalid { border-color: rgba(231,76,60,0.5) !important; }
.form-group input.valid   { border-color: rgba(46,204,113,0.3) !important; }

/* Submit */
.fundadores-submit {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  padding: 22px;
  cursor: none;
  transition: all 0.4s;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}

.fundadores-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-light);
  transform: translateX(-100%);
  transition: transform 0.4s;
}

.fundadores-submit:hover::before  { transform: translateX(0); }
.fundadores-submit:hover          { box-shadow: 0 0 50px rgba(216,188,106,0.4); }
.fundadores-submit span           { position: relative; z-index: 1; }
.fundadores-submit:disabled       { opacity: 0.6; cursor: not-allowed; }

/* ── Success state ── */
.fundadores-success {
  display: none;
  text-align: center;
  padding: 60px 40px;
}

.fundadores-success.visible { display: block; }

.success-icon {
  width: 72px;
  height: 72px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 1.8rem;
  color: var(--gold);
}

.fundadores-success h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 16px;
}

.fundadores-success h3 em {
  font-style: italic;
  color: var(--gold);
}

.fundadores-success p {
  font-size: 0.75rem;
  color: var(--white-faint);
  line-height: 1.9;
  margin-bottom: 40px;
}

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-faint);
  text-decoration: none;
  transition: color 0.3s;
  margin-bottom: 40px;
}

.back-link:hover { color: var(--gold); opacity: 1; }

.back-link::before {
  content: '←';
  font-size: 0.9rem;
}

/* ── Teléfono ── */
.telefono-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tel-group {
  display: flex;
  align-items: stretch;
}

.tel-group:first-child { flex: 0 0 140px; }
.tel-group:last-child  { flex: 1; }

.tel-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(216,188,106,0.07);
  border: 1px solid rgba(245,240,232,0.1);
  border-right: none;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  user-select: none;
}

.tel-group input {
  margin-bottom: 0;
  min-width: 0;
}

.telefono-sep {
  color: rgba(216,188,106,0.4);
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: -2px;
}

.field-hint {
  display: block;
  font-size: 0.58rem;
  color: rgba(245,240,232,0.3);
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .fundadores-main {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 80px 40px 100px;
  }

  .fundadores-benefits {
    position: static;
    order: 2;
  }

  .fundadores-form-wrap {
    order: 1;
  }
}

@media (max-width: 600px) {
  .tel-group:first-child { flex: 0 0 100px; }
  #cod_area { padding-left: 8px; padding-right: 8px; }

  /* Selector de meses en una sola fila: 4 segmentos iguales a todo el ancho.
     Los botones tienen estilos inline → override con !important. */
  #mesesToggle {
    display: flex !important;
    width: 100%;
    flex-wrap: nowrap !important;
    gap: 3px !important;
  }
  #mesesToggle .mes-opt {
    flex: 1 1 0 !important;
    padding: 10px 2px !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap;
    text-align: center;
  }

  .fundadores-hero {
    padding: 120px 24px 60px;
  }

  .fundadores-hero > .back-link {
    left: 24px;
    top: 90px;
  }

  .fundadores-main {
    padding: 60px 24px 80px;
  }

  .fundadores-form-wrap {
    padding: 36px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ── Selector de planes ── */
.planes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.plan-card {
  cursor: pointer;
  display: block;
  min-width: 0;
}

.plan-card input[type="radio"] {
  display: none;
}

.plan-card-inner {
  border: 1px solid rgba(245,240,232,0.1);
  border-radius: 10px;
  padding: 16px;
  background: rgba(245,240,232,0.02);
  transition: border-color 0.2s, background 0.2s;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.plan-card:hover .plan-card-inner {
  border-color: rgba(216,188,106,0.3);
  background: rgba(216,188,106,0.03);
}

.plan-card input[type="radio"]:checked + .plan-card-inner {
  border-color: var(--gold);
  background: rgba(216,188,106,0.06);
}

.plan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.plan-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

.plan-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(216,188,106,0.12);
  border: 1px solid rgba(216,188,106,0.25);
  border-radius: 20px;
  padding: 2px 7px;
  white-space: nowrap;
}

.plan-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  color: var(--white-faint);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.plan-precios {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.plan-precio-original {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  color: var(--white-faint);
  text-decoration: line-through;
  opacity: 0.6;
}

.plan-precio-fundador {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
}

.plan-precio-mes {
  font-size: 0.58rem;
  font-weight: 400;
  color: var(--white-faint);
}

.plan-precio-nota {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  color: var(--white-faint);
  opacity: 0.6;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .planes-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Toggle contraseña ── */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 44px;
}

.toggle-pass {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--white-faint);
  cursor: pointer;
  transition: color 0.2s;
}

.toggle-pass:hover { color: var(--white); }

.toggle-pass svg {
  width: 16px;
  height: 16px;
}

/* ── OAuth section ── */
.oauth-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: transparent;
  border: 1px solid rgba(245,240,232,0.15);
  border-radius: 10px;
  color: var(--white-dim, #d4cfc8);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.oauth-btn:hover:not(:disabled) {
  border-color: rgba(216,188,106,0.4);
  background: rgba(216,188,106,0.04);
  color: var(--white, #f5f0e8);
}

.oauth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.oauth-btn--apple {
  color: var(--white, #f5f0e8);
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(245,240,232,0.08);
}

.oauth-divider span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--white-faint, rgba(245,240,232,0.3));
  white-space: nowrap;
}
