:root {
  --bg: #f4f8ff;
  --bg2: #eef5ff;

  --card: #ffffff;
  --stroke: rgba(16, 73, 160, .14);
  --stroke2: rgba(16, 73, 160, .10);

  --txt: #0b2342;
  --muted: rgba(11, 35, 66, .72);

  --blue-700: #0f4aa6;
  --blue-600: #1667d9;
  --blue-500: #1e78ff;

  --shadow: 0 10px 30px rgba(11, 35, 66, .10);
  --shadow2: 0 8px 20px rgba(15, 74, 166, .10);

  --radius: 18px;
  --radius-sm: 14px;
  --focus: 0 0 0 .25rem rgba(30, 120, 255, .18);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--txt);
  background:
    radial-gradient(900px 500px at 10% 0%, #ffffff 0%, var(--bg) 50%, var(--bg2) 100%);
  overflow-x: hidden;
}

/* Card corporativa (sin glass exagerado) */
.cardx {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cardx-head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--stroke2);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.cardx-body {
  padding: 18px 22px 22px;
}

.title {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.subtitle {
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.35;
  font-size: .95rem;
}

/* badge */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(30, 120, 255, .10);
  border: 1px solid rgba(30, 120, 255, .22);
  color: var(--blue-700);
  font-weight: 800;
  font-size: .85rem;
}

/* labels */
.form-label {
  font-weight: 800;
  color: rgba(11, 35, 66, .82);
  font-size: .86rem;
  margin-bottom: .45rem;
}

/* Inputs clean + animación profesional */
.field-wrap {
  position: relative;
}

.field {
  border-radius: 16px !important;
  border: 1px solid rgba(16, 73, 160, .18) !important;
  background: #fff !important;
  padding: .85rem .95rem !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.field::placeholder {
  color: rgba(11, 35, 66, .42);
}

.field:focus {
  box-shadow: var(--focus) !important;
  border-color: rgba(30, 120, 255, .55) !important;
  transform: translateY(-1px);
}

.field:disabled {
  background: #f6f9ff !important;
  opacity: .78;
}

/* action button */
.with-action .field {
  padding-right: 3rem !important;
}

.icon-action {
  position: absolute;
  right: .55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(30, 120, 255, .25);
  background: rgba(30, 120, 255, .08);
  color: var(--blue-700);
  display: grid;
  place-items: center;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.icon-action:hover {
  transform: translateY(-50%) scale(1.03);
  background: rgba(30, 120, 255, .12);
  box-shadow: var(--shadow2);
}

.icon-action:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* checks */
.checks .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: .35rem;
  border: 1px solid rgba(16, 73, 160, .25);
}

.checks .form-check-input:checked {
  background-color: var(--blue-600);
  border-color: var(--blue-600);
}

.checks .form-check-label {
  color: rgba(11, 35, 66, .82);
  font-weight: 700;
}

.link-soft {
  color: var(--blue-600);
  text-decoration: none;
  border-bottom: 1px dashed rgba(22, 103, 217, .45);
}

.link-soft:hover {
  color: var(--blue-500);
  border-bottom-color: rgba(22, 103, 217, .75);
}

/* buttons */
.btn-gradient {
  border: none !important;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-600), var(--blue-500));
  box-shadow: 0 12px 26px rgba(15, 74, 166, .20);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.btn-gradient:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 34px rgba(15, 74, 166, .24);
}

.btn-soft {
  border-width: 1px !important;
  border-color: rgba(30, 120, 255, .35) !important;
  color: #0f4aa6;
  background: #fff !important;
  transition: transform .16s ease, box-shadow .16s ease;
}

.btn-soft:hover {
  transform: translateY(-1px);
  color: #fff;
  background: #0f4aa6 !important;
  box-shadow: var(--shadow2);
}

.btn-soft:disabled {
  background: #0f4aa6 !important;
}

/* Brand block: logo + redes */
.brand-block {
  border: 1px solid var(--stroke2);
  border-radius: var(--radius);
  padding: 14px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 8px 18px rgba(11, 35, 66, .06);
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px 12px;
}

.brand-logo img {
  max-width: 210px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.social-btn {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(16, 73, 160, .18);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(11, 35, 66, .06);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  background: rgba(30, 120, 255, .06);
  box-shadow: 0 12px 24px rgba(15, 74, 166, .12);
}

.social-btn i {
  font-size: 1.05rem;
}

/* right panel boxes */
.info-stack {
  display: grid;
  gap: 14px;
}

.info-box {
  padding: 16px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--stroke2);
  box-shadow: 0 10px 22px rgba(11, 35, 66, .07);
}

.info-title {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 900;
  color: rgba(11, 35, 66, .92);
}

.info-title i {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(30, 120, 255, .08);
  border: 1px solid rgba(30, 120, 255, .18);
  color: var(--blue-700);
}

.info-text {
  margin-top: .55rem;
  color: rgba(11, 35, 66, .72);
  line-height: 1.42;
}

.side-footer {
  border-top: 1px solid var(--stroke2);
  padding-top: 16px;
  color: rgba(11, 35, 66, .62);
  font-size: .92rem;
}

/* Animaciones clean */
.animate-in {
  opacity: 0;
  transform: translateY(10px);
  animation: in .5s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.check-anim {
  animation: pop .45s cubic-bezier(.2, .8, .2, 1) both;
}

.check-anim:nth-child(1) {
  animation-delay: 220ms;
}

.check-anim:nth-child(2) {
  animation-delay: 260ms;
}

@keyframes pop {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* responsive */
@media (max-width: 575.98px) {
  .cardx-head {
    padding: 18px 16px 12px;
  }

  .cardx-body {
    padding: 14px 16px 18px;
  }

  .badge-verified {
    width: 100%;
    justify-content: center;
  }

  .brand-logo img {
    max-width: 180px;
  }

  .brand-socials {
    grid-template-columns: repeat(2, 1fr);
  }
}


.label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.label-with-icon i {
  color: #0f4aa6;
  /* azul corporativo */
  font-size: .95rem;
  line-height: 1;
}

/*  Input-group Cédula: que se vea como UNA sola pieza */
.cedula-group .form-control.field {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.cedula-group .btn {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}


/* ===========================
   PRIVACY PREVIEW (BLUR + OJO)
=========================== */
.privacy-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.privacy-img {
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  /* Por defecto REVELADO NO, o sea: borroso */
  filter: blur(10px);
  transform: scale(1.03);
  /* para que el blur no deje bordes raros */
  transition: filter .18s ease, transform .18s ease;
}

/* capa oscura encima (cuando está oculto) */
.privacy-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  transition: opacity .18s ease;
  pointer-events: none;
  opacity: 1;
}

/* botón ojo centrado */
.privacy-toggle {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .35);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform .15s ease, background .15s ease;
  z-index: 3;
}

.privacy-toggle:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, .45);
}

/* Estado REVELADO */
.privacy-preview.is-revealed .privacy-img {
  filter: blur(0);
  transform: scale(1);
}

.privacy-preview.is-revealed::after {
  opacity: 0;
}

.privacy-preview.is-revealed .privacy-toggle i {
  /* cambias el icono en JS, esto es opcional */
}