/*
 * CSCRM Landings (Solicitud + Resumen)
 * Objetivo: estilo consistente y moderno, independiente del tema.
 */

/* Base */
body.cscrm-landing {
  margin: 0;
  min-height: 100vh;
  background: #f5f7fb;
  color: #0f172a;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Evita herencias raras del tema */
body.cscrm-landing *,
body.cscrm-landing *::before,
body.cscrm-landing *::after {
  box-sizing: border-box;
}

/* Layout */
.cscrm-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cscrm-card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 22px;
}

/* Cabecera (logo + título + CTA WhatsApp) */
.cscrm-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cscrm-brand {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cscrm-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.cscrm-hero__text { flex: 1; }

.cscrm-title {
  margin: 0;
  font-size: 20px;
}

.cscrm-subtitle {
  margin: 6px 0 0;
  color: rgba(15, 23, 42, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.cscrm-cta {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(37, 99, 235, 0.10);
  color: #0f172a;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

/* WhatsApp look */
.cscrm-cta--wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.16);
  border-color: rgba(37, 211, 102, 0.45);
  color: #064e3b;
}
.cscrm-cta--wa:hover {
  filter: brightness(0.97);
}
.cscrm-cta__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(37, 211, 102, 0.22);
  color: #075e54;
}
.cscrm-cta__text { display: inline-block; }

.cscrm-cta:hover { filter: brightness(0.98); }

@media (max-width: 520px) {
  .cscrm-hero {
    flex-wrap: wrap;
  }
  .cscrm-cta {
    width: 100%;
    text-align: center;
  }
  .cscrm-cta--wa {
    justify-content: center;
  }
}

/* Tipografía básica dentro de la card */
.cscrm-card h1,
.cscrm-card h2,
.cscrm-card h3 {
  margin: 0 0 14px;
  line-height: 1.15;
}

.cscrm-card p {
  margin: 10px 0;
}

/* Labels */
.cscrm-card label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin: 12px 0 6px;
  color: rgba(15, 23, 42, 0.80);
}

/* Inputs y selects */
.cscrm-card input[type="text"],
.cscrm-card input[type="tel"],
.cscrm-card input[type="email"],
.cscrm-card input[type="date"],
.cscrm-card input[type="number"],
.cscrm-card input[type="time"],
.cscrm-card input[type="url"],
.cscrm-card select,
.cscrm-card textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  color: inherit;
  font-size: 16px;
  outline: none;
  appearance: none;
}

/* Time picker (UI tipo calendar) */
.cscrm-time-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  color: inherit;
  font-size: 16px;
  outline: none;
}

.cscrm-time-select:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.cscrm-card textarea {
  min-height: 110px;
  resize: vertical;
}

.cscrm-card input:focus,
.cscrm-card select:focus,
.cscrm-card textarea:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Botones */
.cscrm-card button,
.cscrm-card input[type="submit"],
.cscrm-card .button,
.cscrm-card a.button {
  width: 100%;
  margin-top: 16px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.cscrm-card button:hover,
.cscrm-card input[type="submit"]:hover,
.cscrm-card .button:hover,
.cscrm-card a.button:hover {
  filter: brightness(0.96);
}

.cscrm-card button:disabled,
.cscrm-card input[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Mensajes / avisos típicos */
.cscrm-card .notice,
.cscrm-card .cscrm-notice {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

/* Pequeño ajuste responsive */
@media (max-width: 420px) {
  .cscrm-shell { padding: 16px; }
  .cscrm-card { padding: 18px; border-radius: 16px; }
}

/* Background */
body.cscrm-landing::before{
  content:'';
  position:fixed;
  inset:0;
  z-index:0;
  background-image:
    linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.35)),
    url('../bg/bg1.webp'),
    url('../bg/bg2.webp');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
  filter: blur(2px) saturate(1.05);
  transform: scale(1.03);
}

/* Keep content above background */
#cscrm-landing{ position:relative; z-index:1; }

/* Hide duplicated inner header inside the shortcode card when we already show the hero */
body.cscrm-landing--solicitud .cscrm-wrap .cscrm-card-header{ display:none !important; }
