/* ============================================================
   IYBS · Página /unete · unete.css
   Page-scoped additions — loaded after style.css
   Does NOT redefine .container, body, header, footer, etc.
   ============================================================ */

/* --- Extra variables used only on this page ---------------- */
:root {
  --teal-mid:        #267a73;
  --teal-pale:       #e8f5f3;
  --gold-light:      #e8d5a3;
  --cream:           #faf7f2;
  --muted:           #6b7280;
  --unete-border:    #d4cdc4;
  --unete-error:     #c0392b;
  --unete-error-bg:  #fdf2f2;
  --unete-error-bdr: #e88a82;
  --r-sm:            4px;
  --ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --t:               200ms;
}

/* Ensure hidden attribute works even when CSS sets display explicitly */
[hidden] { display: none !important; }

/* --- Narrow content wrapper (used on state pages) ---------- */
.unete-wrap {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ============================================================
   TWO-COLUMN SPLIT LAYOUT
   ============================================================ */

/* Shared teal zone — contains the split + proof strip */
.unete-teal-zone {
  margin-top: 72px; /* offset for fixed site-header */
  background-color: var(--teal-deep);
}

.unete-split {
  display: flex;
}

/* LEFT — value proposition */
.unete-left {
  flex: 52;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
}

.unete-left__inner {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.unete-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0;
  opacity: 0.85;
}

.unete-title {
  font-family: var(--font-serif);
  font-size: clamp(2.125rem, 4vw, 3.125rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--warm-white);
  margin: 0;
}

.unete-lead {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* Benefit bullets */
.unete-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.unete-benefits li {
  font-size: 1.0625rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.unete-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold-light);
  opacity: 0.75;
}

/* Reader count proof line */
.unete-proof {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-light);
  opacity: 0.65;
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Mobile-only CTA — visible only when stacked */
.unete-mobile-cta {
  display: none;
}

.unete-quote {
  font-size: 0.9375rem;
  color: var(--gold-light);
  opacity: 0.75;
  margin: 0;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* RIGHT — form card column */
.unete-right {
  flex: 48;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem 3rem 1.5rem;
}

.unete-right__inner {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.22);
  padding: 2.5rem 2.5rem 2.75rem;
}

/* Form header */
.unete-form-header {
  margin-bottom: 1rem;
}

.unete-form-title {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.3rem;
}

.unete-form-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.required-star {
  color: var(--gold);
  font-weight: 700;
  font-style: normal;
}

/* ============================================================
   GIFT TEASER
   ============================================================ */
.gift-teaser {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, var(--teal-pale) 0%, #d4efe9 100%);
  border: 1.5px solid rgba(38, 122, 115, 0.25);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.gift-teaser__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.gift-teaser__cover {
  flex-shrink: 0;
  width: 52px;
  height: 78px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.gift-teaser__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gift-teaser__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 0.15rem;
  opacity: 0.8;
}

.gift-teaser__name {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1.25;
}

.gift-teaser__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

.gift-teaser__cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-mid);
  margin-top: 0.2rem;
}

/* Gift teaser inside the form card — already on white, teal-pale bg is fine */
.gift-teaser--form {
  margin-top: 0.25rem;
}

/* ============================================================
   FORM — STRUCTURE
   ============================================================ */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.field-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

/* ============================================================
   INPUTS & SELECT
   ============================================================ */
.field-input,
.field-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--charcoal);
  background-color: var(--cream);
  border: 1.5px solid var(--unete-border);
  border-radius: var(--r-sm);
  outline: none;
  transition:
    border-color var(--t) var(--ease),
    background-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.field-input::placeholder {
  color: var(--muted);
  font-weight: 300;
}

.field-input:hover,
.field-select:hover {
  border-color: var(--teal-light);
}

.field-input:focus,
.field-select:focus {
  border-color: var(--teal-mid);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(38, 122, 115, 0.15);
}

.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Error state */
.field-group--error .field-input,
.field-group--error .field-select {
  border-color: var(--unete-error-bdr);
  background-color: var(--unete-error-bg);
}
.field-group--error .field-input:focus,
.field-group--error .field-select:focus {
  border-color: var(--unete-error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.field-group--success .field-input,
.field-group--success .field-select {
  border-color: var(--teal-light);
}

.field-error-msg {
  font-size: 0.875rem;
  color: var(--unete-error);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0;
}

/* ============================================================
   CUSTOM CHECKBOX
   ============================================================ */
.field-group--checkbox {
  margin-top: 0.25rem;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border: 1.5px solid var(--unete-border);
  border-radius: var(--r-sm);
  background-color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color var(--t) var(--ease),
    background-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
}

.checkbox-input:checked + .checkbox-custom {
  background-color: var(--teal-mid);
  border-color: var(--teal-mid);
}

.checkbox-input:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.checkbox-input:focus-visible + .checkbox-custom {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(38, 122, 115, 0.2);
}

.checkbox-wrapper:hover .checkbox-custom {
  border-color: var(--teal-light);
}

.field-group--error .checkbox-custom {
  border-color: var(--unete-error-bdr);
  background-color: var(--unete-error-bg);
}

.checkbox-text {
  font-size: 1.0625rem;
  color: var(--charcoal);
  line-height: 1.55;
}

.form-link {
  color: var(--teal-mid);
  font-weight: 500;
  text-decoration: underline;
}
.form-link:hover { color: var(--teal-deep); }

/* ============================================================
   SUBMIT BUTTON + TRUST LINE
   ============================================================ */
.form-submit {
  padding-top: 0.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9375rem 2rem;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #fff;
  background-color: var(--teal-mid);
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition:
    background-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease);
}

.btn-submit:hover {
  background-color: var(--teal-deep);
  box-shadow: 0 4px 20px rgba(26, 92, 87, 0.28);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 122, 115, 0.4);
}

.btn-submit--loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.unete-trust {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ============================================================
   SUCCESS STATE
   ============================================================ */
.form-success {
  text-align: center;
  padding: 2rem 0.5rem;
  animation: unete-fadeUp 350ms var(--ease) both;
}

@keyframes unete-fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--teal-pale);
  color: var(--teal-deep);
  font-size: 1.375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.success-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 1rem;
}

.success-body {
  font-size: 1rem;
  color: var(--muted);
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.success-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.success-back {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--teal-mid);
  text-decoration: none;
  border-bottom: 2px solid var(--teal-pale);
  padding-bottom: 2px;
  transition:
    color var(--t) var(--ease),
    border-color var(--t) var(--ease);
}
.success-back:hover {
  color: var(--teal-deep);
  border-color: var(--teal-mid);
}

/* ============================================================
   SOCIAL PROOF STRIP
   ============================================================ */
.unete-proof-strip {
  background: rgba(0, 0, 0, 0.18);
  padding: 2rem 2rem 2.25rem;
  text-align: center;
}

.unete-reader-quote {
  max-width: 580px;
  margin: 0 auto;
  padding: 0;
}

.unete-reader-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin-bottom: 0.625rem;
}

.unete-reader-quote cite {
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold-light);
  opacity: 0.7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   CONFIRMAR / BAJA pages
   ============================================================ */
.unete-state-page {
  padding-block: 5rem 4rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Stack to single column on tablet/mobile */
@media (max-width: 860px) {
  .unete-split {
    flex-direction: column;
  }

  .unete-proof-strip {
    padding: 1.5rem 1.5rem 2rem;
  }

  /* Left becomes a compact hero band */
  .unete-left {
    padding: 2.5rem 1.5rem 2rem;
    align-items: flex-start;
  }

  .unete-left__inner {
    max-width: 100%;
    gap: 1rem;
  }

  /* Show the anchor CTA on mobile */
  .unete-mobile-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--r-sm);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition:
      background var(--t) var(--ease),
      border-color var(--t) var(--ease);
    margin-top: 0.25rem;
  }

  .unete-mobile-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
  }

  /* Hide the decorative quote — saves space and reads awkwardly stacked */
  .unete-quote {
    display: none;
  }

  /* Form card hugs the content below the hero band */
  .unete-right {
    padding: 0 1.5rem 3rem;
    align-items: stretch;
  }

  .unete-right__inner {
    max-width: 100%;
    border-radius: 10px;
  }
}

@media (max-width: 520px) {
  .field-row--split {
    grid-template-columns: 1fr;
  }

  .unete-left {
    padding: 2rem 1.25rem 1.5rem;
  }

  .unete-right {
    padding: 0 1.25rem 2.5rem;
  }

  .unete-right__inner {
    padding: 1.75rem 1.5rem 2rem;
  }
}
