/* SLE CRM — popup «Contáctenos». Usa las variables de color/tipografía del tema (con valores de respaldo). */
.sle-cp[hidden] { display: none; }
.sle-cp { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: 'Montserrat', sans-serif; cursor: auto; }
.sle-cp *, .sle-cp *::before, .sle-cp *::after { box-sizing: border-box; cursor: auto; }
.sle-cp button, .sle-cp input[type="checkbox"], .sle-cp a { cursor: pointer; }
.sle-cp-backdrop { position: absolute; inset: 0; background: rgba(10, 9, 8, 0.78); backdrop-filter: blur(4px); }
.sle-cp-panel { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--ink, #0a0908); color: var(--paper, #f5f0e8); border: 1px solid var(--rule-paper, rgba(245, 240, 232, 0.15)); padding: 44px 44px 36px; outline: none; }
.sle-cp-x { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; background: none; color: inherit; font-size: 30px; line-height: 1; opacity: 0.7; }
.sle-cp-x:hover { opacity: 1; color: var(--red-300, #f28585); }
.sle-cp-eyebrow { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-300, #f28585); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sle-cp-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red, #d90707); }
.sle-cp-title { margin: 0 0 10px; font-weight: 300; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.sle-cp-title em { font-style: italic; color: var(--red-300, #f28585); }
.sle-cp-lead { margin: 0 0 24px; font-size: 15px; line-height: 1.5; opacity: 0.8; }
.sle-cp-form { display: grid; gap: 16px; }
.sle-cp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sle-cp-form label { display: grid; gap: 6px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.95; }
.sle-cp-form input[type="text"], .sle-cp-form input[type="email"], .sle-cp-form input[type="tel"], .sle-cp-form textarea { width: 100%; font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; color: inherit; background: rgba(245, 240, 232, 0.06); border: 1px solid var(--rule-paper, rgba(245, 240, 232, 0.15)); border-radius: 0; padding: 12px 14px; transition: border-color 0.2s, background 0.2s; }
.sle-cp-form textarea { resize: vertical; min-height: 84px; }
.sle-cp-form input:focus, .sle-cp-form textarea:focus { outline: none; border-color: var(--red, #d90707); background: rgba(245, 240, 232, 0.1); }
.sle-cp-form [aria-invalid="true"] { border-color: var(--red-300, #f28585); }
.sle-cp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sle-cp-form .sle-cp-check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: 12px; letter-spacing: 0; text-transform: none; line-height: 1.45; }
.sle-cp-check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--red, #d90707); }
.sle-cp-check a { color: var(--red-300, #f28585); text-decoration: underline; }
.sle-cp-status { min-height: 20px; font-size: 13px; line-height: 1.4; }
.sle-cp-status.is-error { color: var(--red-300, #f28585); }
.sle-cp-status.is-ok { color: #9fd9a8; }
.sle-cp-submit { justify-self: start; font: inherit; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: var(--red, #d90707); border: 1px solid var(--red, #d90707); padding: 15px 28px; transition: background 0.2s, border-color 0.2s; }
.sle-cp-submit:hover:not(:disabled) { background: var(--red-700, #a30505); border-color: var(--red-700, #a30505); }
.sle-cp-submit:disabled { opacity: 0.6; cursor: wait; }
.sle-cp-submit:focus-visible, .sle-cp-x:focus-visible, .sle-cp-check a:focus-visible { outline: 2px solid var(--red-300, #f28585); outline-offset: 3px; }
body.sle-cp-open { overflow: hidden; }
@media (max-width: 640px) {
  .sle-cp { padding: 0; align-items: flex-end; }
  .sle-cp-panel { max-height: 94vh; padding: 36px 20px 24px; }
  .sle-cp-row { grid-template-columns: 1fr; }
  .sle-cp-submit { justify-self: stretch; }
}
@media (prefers-reduced-motion: no-preference) {
  .sle-cp:not([hidden]) .sle-cp-panel { animation: sle-cp-in 0.25s ease-out; }
  @keyframes sle-cp-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
