@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Cabinet+Grotesk:wght@400;500;700&display=swap');




.cph-root {
  font-family: "Space Grotesk", "Cabinet Grotesk", sans-serif;
  color: var(--text);
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #d7dee7;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0ea5e9;
  --accent-2: #22c55e;
  --danger: #dc2626;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  .cph-root {
    --bg: #0d0f12;
    --surface: #141821;
    --surface-2: #1b2230;
    --border: #2a3447;
    --text: #eef2f7;
    --muted: #9aa3b2;
    --accent: #35d0ff;
    --accent-2: #72ffa9;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  }

  .cph-modal-backdrop {
    background: rgba(7, 10, 14, 0.72);
  }

  .cph-modal-card {
    background: linear-gradient(180deg, rgba(20, 24, 33, 0.95), rgba(16, 20, 28, 0.98));
  }

  .cph-modal-right {
    background: linear-gradient(160deg, rgba(45, 58, 80, 0.4), rgba(17, 22, 31, 0.95));
  }
}

.cph-launch-button {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #0b1220;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: none;
  align-items: center;
  justify-content: center;
  position: static;
  z-index: 2;
  gap: 8px;
}

.cph-launch-button.is-visible {
  display: inline-flex;
}

.cph-launch-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.35);
}

.cph-launch-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 18, 32, 0.12);
  font-size: 16px;
  line-height: 1;
}

@media (prefers-color-scheme: dark) {
  .cph-launch-button {
    background: linear-gradient(135deg, #35d0ff, #72ffa9);
    color: #0b0f14;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  }

  .cph-launch-icon {
    background: rgba(11, 15, 20, 0.2);
  }
}

.ambito-actual-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ambito-actual-wrap .cph-launch-button {
  margin-top: 2px;
}

.cph-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.2);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  overflow-y: auto;
}

.cph-modal-backdrop.is-open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.cph-modal-card {
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  margin: 24px 0;
}

.cph-modal-left {
  padding: 28px 32px 32px;
}

.cph-modal-right {
  background: linear-gradient(160deg, rgba(226, 232, 240, 0.85), rgba(248, 250, 252, 0.95));
  border-left: 1px solid var(--border);
  padding: 28px 24px;
}

.cph-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cph-modal-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.cph-close-button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cph-close-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cph-form-grid {
  display: grid;
  gap: 16px;
}

.cph-field {
  display: grid;
  gap: 8px;
}

label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

input[type="text"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  outline: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: var(--muted);
}

.cph-required {
  color: var(--danger);
  margin-left: 4px;
  font-weight: 700;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.cph-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.cph-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(53, 208, 255, 0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.cph-media-upcph-loader {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 16px;
  background: rgba(17, 22, 31, 0.7);
  display: grid;
  gap: 12px;
}

.cph-media-upcph-loader button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f14;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.cph-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

.cph-preview-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0d12;
  aspect-ratio: 1;
}

.cph-preview-card img,
.cph-preview-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cph-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}

.cph-accordion {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
}

.cph-accordion-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.cph-accordion-body {
  padding: 12px 14px 16px;
  display: none;
  gap: 12px;
  border-top: 1px solid var(--border);
}

.cph-accordion.is-open .cph-accordion-body {
  display: grid;
}

.cph-chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cph-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
}

.cph-chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.cph-error-text {
  color: var(--danger);
  font-size: 12px;
  display: none;
}

.cph-helper {
  font-size: 12px;
  color: var(--muted);
}

.cph-submit-button {
  background: linear-gradient(135deg, #2b90ff, #7bf1a8);
  color: #0c1117;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cph-submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cph-side-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: rgba(18, 24, 33, 0.7);
  display: grid;
  gap: 12px;
}

.cph-side-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.cph-pill-list {
  display: grid;
  gap: 10px;
}

.cph-pill {
  background: rgba(53, 208, 255, 0.08);
  border: 1px solid rgba(53, 208, 255, 0.2);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
}

.cph-loader {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.cph-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .cph-modal-card {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 32px);
  }

  .cph-modal-right {
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

@media (max-height: 720px) {
  .cph-modal-backdrop {
    align-items: flex-start;
  }

  .cph-modal-card {
    margin: 12px 0;
    max-height: calc(100vh - 24px);
  }
}
.cph-modal-right {
  color: var(--text);
}
.cph-modal-right .cph-pill {
  color: var(--text);
}


