/* ============================================================
   Dromo Lead Manager — landing.css
   Estilos de las landing pages de campaña.
   Se registra via hookDisplayHeader cuando la página actual
   es una CMS de campaña.
   ============================================================ */

/* ── Wrapper principal ────────────────────────────────────── */
.dromo-landing-wrap,
.dr-wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Hero / imagen de cabecera ───────────────────────────── */
.dromo-hero img,
.dr-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 1.5rem;
}

/* ── Subtítulo ───────────────────────────────────────────── */
.dromo-subtitle {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 1rem;
}

/* ── Contenido superior e inferior ──────────────────────── */
.dromo-content-top {
  margin-bottom: 2rem;
}

.dromo-content-bottom {
  margin-top: 2rem;
}

/* ── Layout de urgencia / beneficios ────────────────────── */
.dr-urgency {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #555;
}

.dr-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.dr-benefits li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 0.95rem;
  color: #333;
}

.dr-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

/* ── Caja del formulario ─────────────────────────────────── */
#dromo-box {
  max-width: 460px;
  margin: 2rem auto;
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .09);
}

/* ── Campos del formulario ───────────────────────────────── */
.dromo-field {
  margin-bottom: 12px;
}

.dromo-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: .9rem;
}

.dromo-field input[type="text"],
.dromo-field input[type="email"],
.dromo-field input[type="tel"],
.dromo-field input[type="number"],
.dromo-field textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: .9rem;
}

.dromo-field input[type="text"]:focus,
.dromo-field input[type="email"]:focus,
.dromo-field input[type="tel"]:focus,
.dromo-field textarea:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, .15);
}

.dromo-field-checkbox {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.dromo-field-checkbox input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.dromo-field-checkbox label {
  cursor: pointer;
  font-weight: normal;
  margin: 0;
  font-size: .9rem;
}

/* ── Botón de envío ──────────────────────────────────────── */
#dromo-btn {
  width: 100%;
  padding: 10px;
  color: #fff;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s;
}

#dromo-btn:hover {
  filter: brightness(1.1);
}

#dromo-btn:disabled {
  opacity: .7;
  cursor: default;
}

/* ── Mensaje de error/validación ─────────────────────────── */
#dromo-msg {
  margin: 8px 0;
  padding: 10px;
  border-radius: 4px;
  font-size: .9rem;
}

#dromo-msg.error {
  background: #f8d7da;
  color: #721c24;
}

#dromo-msg.success {
  background: #d4edda;
  color: #155724;
}

/* ── Pantalla de éxito ───────────────────────────────────── */
#dromo-ok {
  text-align: center;
  padding: 2rem 0;
}

#dromo-ok .dromo-ok-icon {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: .5rem;
}

#dromo-ok h3 {
  margin: .5rem 0;
}

#dromo-ok p {
  color: #555;
  font-size: .95rem;
}

/* ── Enlace de descarga ──────────────────────────────────── */
.dromo-download-btn {
  display: inline-block;
  margin-top: .5rem;
  padding: 10px 20px;
  background: #28a745;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.dromo-download-btn:hover {
  background: #218838;
  color: #fff;
}

/* ── Código de descuento ─────────────────────────────────── */
.dromo-code {
  font-size: 1.4rem;
  letter-spacing: 2px;
  font-weight: bold;
  color: #007bff;
}

/* ── Texto legal / privacidad ────────────────────────────── */
.dromo-privacy {
  font-size: .75rem;
  color: #888;
  margin-top: 8px;
  text-align: center;
}

.dromo-privacy a {
  color: inherit;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  #dromo-box {
    padding: 1.25rem;
  }

  .dromo-hero img,
  .dr-hero img {
    border-radius: 4px;
  }
}
