/* ═══════════════════════════════════════════════════════════
   NewsletterNL — shortcode styles
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────── */
.nnl-newsletter {
}

/* ── Reset interno ──────────────────────────────────────── */
.nnl-newsletter,
.nnl-newsletter *,
.nnl-newsletter *::before,
.nnl-newsletter *::after {
  box-sizing: border-box;
}

/* ── Sección ────────────────────────────────────────────── */
.nnl-newsletter {
  border-top: 1px solid var(--line-gray);
  border-bottom: 1px solid var(--line-gray);
  padding: 0px 24px;
  font-family: var(--body-font);
  width: 100%;
}

.nnl-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

/* ── Tag ────────────────────────────────────────────────── */
.nnl-tag {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nnl-tag::before,
.nnl-tag::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}

/* ── Título ─────────────────────────────────────────────── */
.nnl-h2 {
  font-family: var(--body-font);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  color: var(--text);
  margin: 0 0 16px 0;
}

.nnl-h2 span {
  color: var(--blue);
}

/* ── Párrafo (oculto en footer) ─────────────────────────── */
.nnl-p {
  display: none;
}

/* ── Formulario CF7 ─────────────────────────────────────── */
.nnl-form .wpcf7 {
  margin: 0;
  padding: 0;
}

.nnl-form .wpcf7-form {
  display: flex;
  gap: 0;
  width: 100%;
  justify-content: center;
}

.nnl-form .wpcf7-form-control-wrap {
  flex: 1 1 auto;
  display: block;
}

.nnl-form input[type="email"] {
  width: 100%;
  height: 100%;
  padding: 14px 18px;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--line-gray);
  border-right: none;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}

.nnl-form input[type="email"]:focus {
  border-color: var(--blue);
  box-shadow: none;
}

.nnl-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

/* Submit ── */
.nnl-form .wpcf7-submit {
  flex-shrink: 0;
  padding: 14px 24px;
  background: var(--blue);
  color: #fff;
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-appearance: none;
  appearance: none;
  white-space: nowrap;
}

.nnl-form .wpcf7-submit:hover {
  background: var(--blue-lt);
}

.nnl-form .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner y mensajes CF7 ── */
.nnl-form .wpcf7-spinner {
  display: none;
}

.nnl-form .wpcf7-not-valid-tip {
  font-size: 10px;
  color: #f87171;
  margin-top: 4px;
  text-align: left;
  display: block;
}

.nnl-form .wpcf7-response-output {
  margin: 10px 0 0;
  padding: 10px 14px;
  font-size: 12px;
  border: 1px solid var(--line-gray);
  color: var(--text-muted);
  background: var(--bg3);
  text-align: left;
  width: 100%;
}

.nnl-form .wpcf7-mail-sent-ok {
  border-color: var(--blue);
  color: var(--blue);
}

.nnl-form .wpcf7-validation-errors,
.nnl-form .wpcf7-mail-sent-ng,
.nnl-form .wpcf7-spam-blocked {
  border-color: #f87171;
  color: #f87171;
}

/* ── Nota final ─────────────────────────────────────────── */
.nnl-note {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin: 14px 0 0 0;
  letter-spacing: 0.3px;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .nnl-newsletter {
    padding: 48px 18px;
  }

  .nnl-form .wpcf7-form {
    flex-direction: column;
    gap: 0;
  }

  .nnl-form input[type="email"] {
    border-right: 1px solid var(--line-gray);
    border-bottom: none;
  }

  .nnl-form .wpcf7-submit {
    width: 100%;
    padding: 14px;
  }
}
