/* ── BLOQUE DESVANECIDO (GATED CONTENT) ── */
.gated-content {
  filter: blur(5px);
  opacity: 0.45;
  user-select: none;
  pointer-events: none;
  max-height: 420px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  transition: all 0.4s ease;
}

.gated-content.unlocked {
  filter: blur(0);
  opacity: 1;
  user-select: auto;
  pointer-events: auto;
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
}

/* ── CAJA CTA ANTES DEL BLOQUE ── */
.gate-cta {
  background: var(--navy2);
  border: 1px solid rgba(55, 138, 221, 0.15);
  border-radius: 14px;
  padding: 40px 30px;
  text-align: center;
  max-width: 600px;
  margin: 40px auto -80px auto;
  position: relative;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gate-cta h3 {
  font-family: "DM Serif Display", serif;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 400;
}

.gate-cta p {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 24px;
  line-height: 1.6;
}

.gate-btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}

.gate-btn:hover {
  background: var(--blue-light);
}

.gate-micro {
  font-size: 12px;
  color: var(--gray);
  margin-top: 16px;
}

/* ── MODAL GATE ── */
.gate-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.gate-modal-overlay.open {
  display: flex;
}

.gate-modal {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  width: 420px;
  max-width: 90vw;
  position: relative;
  text-align: center;
}

.gate-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.gate-modal-close:hover {
  color: var(--white);
}

.gate-modal h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--white);
}

.gate-modal-fg {
  margin-bottom: 20px;
  text-align: left;
}

.gate-modal-fg input[type="email"] {
  width: 100%;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--white);
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.gate-modal-fg input[type="email"]:focus {
  border-color: var(--blue);
}

.gate-modal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--gray);
  text-align: left;
  line-height: 1.5;
  margin-bottom: 24px;
}

.gate-modal-check input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
}

.gate-modal-check a {
  color: var(--blue);
  text-decoration: underline;
}

.gate-modal-submit {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: "DM Sans", sans-serif;
}

.gate-modal-submit:hover {
  background: var(--blue-light);
}
.gate-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.gate-error {
  display: none;
  background: rgba(216, 90, 48, 0.12);
  border: 1px solid rgba(216, 90, 48, 0.3);
  color: #D85A30;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 20px;
  text-align: left;
}
.gate-error.show {
  display: block;
}

.hidden-hp {
  position: absolute;
  left: -9999px;
}
