/* CABELCOM – estilos del mapa y del formulario de contacto */
.cbx-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  z-index: 5;
}

.cbx-form {
  padding: 33px;
  font-family: "Inter:Regular", Inter, ui-sans-serif, system-ui, sans-serif;
  color: #1a1d2b;
}
.cbx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.cbx-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "Inter:Medium", Inter, sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #4a4f63;
}
.cbx-form .cbx-full { grid-column: 1 / -1; }
.cbx-form input,
.cbx-form select,
.cbx-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  font: inherit;
  font-family: "Inter:Regular", Inter, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #1a1d2b;
  background: #f6f7fb;
  border: 1px solid #e3e6ef;
  border-radius: 8px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.cbx-form textarea { resize: vertical; min-height: 64px; }
.cbx-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.cbx-form ::placeholder { color: #6b7280; opacity: 1; }
.cbx-form input:focus,
.cbx-form select:focus,
.cbx-form textarea:focus {
  border-color: #4f52e3;
  box-shadow: 0 0 0 3px rgba(79, 82, 227, .15);
  background: #fff;
}
.cbx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.cbx-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.cbx-form button {
  height: 48px;
  padding: 0 28px;
  font-family: "Inter:Semi Bold", Inter, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: #4f52e3;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.cbx-form button:hover { background: #3e41c9; }
.cbx-form button:disabled { opacity: .6; cursor: wait; }
.cbx-note { font-size: 12px; line-height: 1.5; color: #6b7280; }
.cbx-status { margin-top: 14px; font-size: 14px; line-height: 1.5; }
.cbx-status:empty { display: none; }
.cbx-ok { color: #12805c; }
.cbx-err { color: #c0352b; }
.cbx-status a { text-decoration: underline; }

/* ---------- Contacto: versión móvil ---------- */
#cbx-m { display: none; }
@media (max-width: 767px) {
  body.cbx-contact #container { display: none !important; }
  body.cbx-contact #cbx-m { display: block; }
  body.cbx-contact { overflow-x: hidden; background: #f4f4f8; }
}
#cbx-m {
  --navy: #071028; --accent: #4f52e3; --ink: #1a2034; --muted: #4a4f63; --soft: #f4f4f8;
  font-family: "Inter:Regular", Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--soft);
  min-height: 100vh;
}
#cbx-m a { color: inherit; text-decoration: none; }
#cbx-m .cbx-m-logo { font-family: "Sora:Bold", Sora, "Inter:Bold", sans-serif; font-weight: 700; font-size: 22px; color: #fff; letter-spacing: .2px; }

.cbx-m-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 14px 16px; background: var(--navy);
}
.cbx-m-burger { width: 40px; height: 40px; display: flex; flex-direction: column; justify-content: center; gap: 5px; align-items: center; cursor: pointer; }
.cbx-m-burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.cbx-m-open .cbx-m-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cbx-m-open .cbx-m-burger span:nth-child(2) { opacity: 0; }
.cbx-m-open .cbx-m-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.cbx-m-nav { display: none; width: 100%; flex-direction: column; padding: 10px 0 4px; }
.cbx-m-open .cbx-m-nav { display: flex; }
.cbx-m-nav a {
  padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: "Inter:Semi Bold", Inter, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .5px; color: #e2e2e6 !important;
}
.cbx-m-nav a.is-active { color: #fff !important; box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
.cbx-m-nav .cbx-m-cta {
  margin-top: 12px; border: 0; text-align: center; border-radius: 8px; padding: 14px;
  background: var(--accent); color: #fff !important;
}

.cbx-m-hero { padding: 32px 16px 24px; }
.cbx-m-hero h1 {
  margin: 0 0 12px; font-family: "Sora:Bold", Sora, sans-serif; font-weight: 700;
  font-size: 30px; line-height: 1.18; letter-spacing: -.6px; color: var(--ink);
}
.cbx-m-hero p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }

.cbx-m-body { padding: 0 16px 32px; display: flex; flex-direction: column; gap: 20px; }
.cbx-m-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(7,16,40,.06); }
#cbx-m .cbx-form { padding: 20px; }
#cbx-m .cbx-grid { grid-template-columns: 1fr; gap: 16px; }
#cbx-m .cbx-form input, #cbx-m .cbx-form select, #cbx-m .cbx-form textarea { font-size: 16px; } /* evita zoom en iOS */
#cbx-m .cbx-actions { flex-direction: column; align-items: stretch; gap: 12px; }
#cbx-m .cbx-form button { width: 100%; }
#cbx-m .cbx-note { text-align: center; }

.cbx-m-info { background: var(--navy); color: #fff; border-radius: 12px; padding: 24px 20px; }
.cbx-m-info h2 { margin: 0 0 20px; font-family: "Sora:SemiBold", Sora, sans-serif; font-weight: 600; font-size: 22px; line-height: 1.3; }
.cbx-m-info ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.cbx-m-info li { display: flex; gap: 14px; align-items: flex-start; }
.cbx-m-ico { flex: none; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #e1e0ff; }
.cbx-m-lbl { display: block; font-family: "Inter:Medium", Inter, sans-serif; font-weight: 500; font-size: 12px; color: #e2e2e6; margin-bottom: 2px; }
.cbx-m-val { display: block; font-family: "Inter:Medium", Inter, sans-serif; font-weight: 500; font-size: 16px; line-height: 1.5; color: #fff; word-break: break-word; }
.cbx-m-val a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }

.cbx-m-mapbox { border-radius: 12px; overflow: hidden; height: 300px; background: #e5e7ef; }
.cbx-m-mapbox iframe { width: 100%; height: 100%; border: 0; display: block; }

.cbx-m-foot { background: var(--navy); color: #e2e2e6; padding: 32px 16px 28px; }
.cbx-m-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; margin: 24px 0; }
.cbx-m-cols div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.4; }
.cbx-m-cols div:last-child { grid-column: 1 / -1; }
.cbx-m-cols h3 { margin: 0 0 4px; font-family: "Inter:Semi Bold", Inter, sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .7px; color: #e1e0ff; }
.cbx-m-copy { margin: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #a9abb8; }

/* ---------- Escritorio ancho: el diseño de Figma mide 1280px; se escala para llenar la pantalla ---------- */
@media (min-width: 1281px) {
  #container { zoom: var(--cbx-zoom, 1); }
  #container > div { --content-min-width: 100% !important; min-width: 0 !important; }
  body { overflow-x: hidden; }
}
