@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");

/* BASE */

:root {
  color: #111;
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 21px;
  font-synthesis: none;
  --green: #111;
  --muted: #666;
  --line: #ddd;
  --rust: #e31b36;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .5; cursor: wait; }
a { color: inherit; text-decoration: none; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ffdce2;
  outline-offset: 3px;
}

img, video { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button svg, a svg { flex-shrink: 0; }

/* ESTRUCTURA */

.studio {
  min-height: 100vh;
  display: flex;
  background: #fff;
  color: #111;
  --green: #111;
  --rust: #e31b36;
  --muted: #666;
  --line: #ddd;
}

.sidebar {
  z-index: 30;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 280px;
  padding: 32px 19px 20px;
  border-right: 1px solid var(--line);
  background: #fff;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  color: #111;
  font-family: Manrope, sans-serif;
  font-size: 33px;
  font-weight: 800;
  letter-spacing: -1.3px;
}

.brand-icon {
  display: inline-flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  color: #fff;
  background: #e31b36;
  transform: rotate(-7deg);
}

.brand-icon svg { transform: rotate(7deg); }

.brand-sub {
  display: block;
  margin-top: 3px;
  color: #666;
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
}

.workspace {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 38px 0 30px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.workspace > div { min-width: 0; }

.workspace-avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #111;
  background: #f1f1f1;
  font-size: 24px;
  font-weight: 600;
}

.workspace b {
  display: block;
  font-size: 21px;
  overflow-wrap: anywhere;
}

.workspace small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 19px;
}

.workspace > svg {
  flex-shrink: 0;
  margin-left: auto;
  color: #666;
}

.nav-caption {
  margin-bottom: 13px;
  padding: 0 13px;
  color: #666;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 1.4px;
}

.sidebar nav { display: grid; gap: 5px; }

.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 14px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #333;
  font-size: 22px;
  text-align: left;
  line-height: 1.4;
}

.sidebar nav button.active {
  color: #e31b36;
  background: #fff0f2;
  font-weight: 650;
}

.sidebar nav button small {
  margin-left: auto;
  color: #777;
  font-size: 19px;
}

.nav-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: #e31b36;
}

.sidebar-bottom { margin-top: auto; padding-top: 30px; }

.tip {
  padding: 19px 17px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fafafa;
}

.tip > svg { margin-bottom: 13px; color: #e31b36; }

.tip b {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 23px;
  line-height: 1.6;
}

.tip p {
  margin-top: 10px;
  color: #666;
  font-size: 21px;
  line-height: 1.7;
}

.account-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 23px 13px 16px;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 21px;
  text-align: left;
}

.account-btn svg:last-child { margin-left: auto; }

.sidebar-credit {
  display: block;
  color: #777;
  font-size: 19px;
  text-align: center;
}

.main-shell {
  width: calc(100% - 280px);
  min-width: 0;
  margin-left: 280px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 16px 38px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: #777;
  font-size: 21px;
}

.breadcrumbs b { color: #111; font-weight: 500; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 21px;
}

.status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 20px;
}

.status i {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #111;
}

.status.unsaved i { background: #e31b36; }

.account-circle {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: #111;
  background: #f5f5f5;
}

.editor-main {
  max-width: 1550px;
  margin: auto;
  padding: 38px 38px 0;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.eyebrow {
  color: #777;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 1.8px;
}

.page-heading h1 {
  margin: 7px 0 9px;
  color: #111;
  font-family: Manrope, sans-serif;
  font-size: clamp(33px, calc(2.35vw + 10px), 46px);
  font-weight: 750;
  letter-spacing: -1.5px;
  line-height: 1.4;
}

.page-heading h1 span { color: #e31b36; }

.page-heading p {
  color: #666;
  font-size: 22px;
  line-height: 1.6;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 49px;
  height: auto;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 21px;
  font-weight: 550;
  white-space: normal;
  line-height: 1.4;
}

.btn.primary {
  color: #fff;
  background: #e31b36;
  box-shadow: 0 2px 3px #e31b3610;
}

.btn.primary:hover { background: #ba1028; }

.btn.secondary {
  color: #333;
  background: #fff;
  border-color: #ddd;
}

.demo-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
  padding: 13px 16px;
  border: 1px solid #f2cbd1;
  border-radius: 9px;
  background: #fff5f6;
  color: #555;
  font-size: 20px;
}

.demo-banner > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.demo-banner svg { flex-shrink: 0; color: #e31b36; }
.demo-banner b { color: #d71932; font-weight: 600; }

.demo-banner button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  color: #d71932;
  background: transparent;
  font-size: 20px;
  text-align: left;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(300px, 390px);
  align-items: start;
  gap: 36px;
}

.editor-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 15px #00000006;
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border-bottom: 1px solid #eee;
}

.section-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #f2cbd1;
  border-radius: 10px;
  color: #e31b36;
  background: #fff0f2;
}

.panel-heading h2 {
  color: #111;
  font-family: Manrope, sans-serif;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -.4px;
}

.panel-heading p {
  margin-top: 4px;
  color: #666;
  font-size: 20px;
  line-height: 1.5;
}

.step {
  flex-shrink: 0;
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: #777;
  font-size: 19px;
}

.panel-body { padding: 25px; }

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 17px;
}

.section-label > span {
  color: #555;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.section-label small {
  color: #777;
  font-size: 18px;
  text-align: right;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  min-height: 210px;
  padding: 19px 8px 15px;
  border: 1px dashed #ddd;
  border-radius: 9px;
  background: #fafafa;
  text-align: center;
}

.upload-zone:hover { background: #fff5f6; }

.upload-symbol {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #e31b36;
  background: #fff0f2;
}

.upload-zone b {
  margin: 0 0 5px;
  font-size: 21px;
  font-weight: 600;
}

.upload-zone small {
  color: #666;
  font-size: 18px;
  line-height: 1.5;
}

.upload-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 13px;
  color: #d71932;
  font-size: 19px;
}

.logo-upload > img {
  object-fit: contain;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 50%;
}

.cover-upload > img {
  object-fit: cover;
  width: 90px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 5px;
}

.mini-cover {
  position: relative;
  overflow: hidden;
  width: 91px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 5px;
  background: #ded5c4;
}

.mini-cover::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 10px;
  width: 32px;
  height: 60px;
  border-radius: 30px 30px 0 0;
  background: #b2b7a6;
}

.mini-cover::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -17px;
  width: 65px;
  height: 65px;
  border: 1px solid #f1ede3;
  transform: rotate(25deg);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.inline-actions button,
.text-button {
  padding: 5px;
  border: 0;
  background: transparent;
  color: #d71932;
  font-size: 20px;
  text-decoration: underline;
}

.form-divider {
  height: 1px;
  margin: 25px 0;
  background: #eee;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin-bottom: 19px;
}

.field > span {
  color: #333;
  font-size: 20px;
  font-weight: 550;
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 21px;
  line-height: 1.5;
  resize: vertical;
}

.field input { min-height: 53px; }

.field input::placeholder,
.field textarea::placeholder { color: #999; }

.field input:focus,
.field textarea:focus {
  border-color: #e31b36;
  outline: 2px solid #ffdce2;
}

.field small {
  color: #777;
  font-size: 19px;
  line-height: 1.5;
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 17px 25px;
  border-top: 1px solid #ddd;
  background: #fafafa;
  color: #666;
  font-size: 19px;
}

.panel-footer > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-footer button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #d71932;
  font-size: 20px;
}

/* VISTA PREVIA */

.preview-panel {
  position: sticky;
  top: 25px;
  min-width: 0;
  padding: 0 8px;
}

.preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1px 0 21px;
  color: #666;
  font-size: 18px;
  letter-spacing: 1px;
}

.preview-heading > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.live-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e31b36;
}

.device-toggle {
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: #555;
  font-size: 19px;
  letter-spacing: 0;
}

.phone-frame {
  position: relative;
  max-width: 344px;
  margin: auto;
  padding: 9px;
  border: 1px solid #ddd;
  border-radius: 35px;
  background: #fff;
  box-shadow: 0 15px 40px #00000010, 0 2px 4px #00000008;
}

.phone-bar {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 17px;
  transform: translateX(-50%);
}

.phone-bar > span:first-child {
  width: 45px;
  height: 4px;
  border-radius: 10px;
  background: #d7dcd1;
}

.phone-camera {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d7dcd1;
}

.phone-scroll {
  overflow: auto;
  max-height: 660px;
  padding-top: 15px;
  border-radius: 26px;
  background: #f5f2eb;
  scrollbar-width: none;
}

.phone-scroll::-webkit-scrollbar { display: none; }

.phone-url {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 12px 0 11px;
  background: #f7f7f2;
  color: #888;
  font-size: 18px;
}

.phone-url svg { position: absolute; right: 24px; }

/* TARJETA DIGITAL */

.digital-card {
  min-height: 500px;
  padding-bottom: 10px;
  background: var(--card-bg);
  color: #3f443d;
}

.cover {
  position: relative;
  overflow: hidden;
  height: 145px;
  background-position: center;
  background-size: cover;
}

.sample-cover {
  background: linear-gradient(110deg, #ddd6c6, #c8c9b7 65%, #b9c0ab);
}

.sample-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(123deg, transparent 32%, #eee9dc70 32.2%, transparent 33%),
    linear-gradient(20deg, transparent 50%, #f4eee72b 50.2%, transparent 51%);
}

.cover-arch {
  position: absolute;
  bottom: -30px;
  right: 40px;
  width: 87px;
  height: 152px;
  border-radius: 60px 60px 0 0;
  background: linear-gradient(100deg, #a0a890, #b4bba2);
  box-shadow: inset 10px 2px 20px #65785d22, 12px 12px 30px #44573819;
  transform: rotate(-8deg);
}

.cover-arch::after {
  content: "";
  position: absolute;
  inset: 17px 18px 0;
  border: 1px solid #dfe3d260;
  border-radius: 50px 50px 0 0;
}

.cover:not(.sample-cover) .cover-arch { display: none; }

.cover-brand {
  position: absolute;
  top: 25px;
  left: 22px;
  z-index: 2;
  max-width: 190px;
  color: #5a6453;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 2px;
  overflow-wrap: anywhere;
}

.cover-caption {
  position: absolute;
  bottom: 25px;
  left: 22px;
  color: #747d65;
  font-size: 15px;
  letter-spacing: 2px;
}

.card-body { padding: 0 23px; }

.avatar-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: -32px;
}

.avatar {
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 74px;
  height: 74px;
  padding: 0;
  border: 5px solid var(--card-bg);
  border-radius: 50%;
  background: #e7ded1;
  color: #9b8367;
  font-family: Manrope, serif;
  font-size: 34px;
  font-weight: 500;
}

.avatar > img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
}

.avatar-edit {
  position: absolute;
  bottom: 0;
  right: -2px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 2px solid var(--card-bg);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.available {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 22px;
  color: #97a084;
  font-size: 17px;
}

.available i {
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #97a084;
}

.digital-card h2 {
  margin-top: 12px;
  font-family: Manrope, sans-serif;
  font-size: 33px;
  font-weight: 750;
  letter-spacing: -.9px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.card-role {
  margin-top: 4px;
  color: #7a7d70;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.card-business {
  margin-top: 8px;
  color: #9c9a88;
  font-size: 17px;
  letter-spacing: 1.2px;
  overflow-wrap: anywhere;
}

.card-bio {
  margin-top: 16px;
  color: #929184;
  font-size: 20px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.save-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: 19px;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
}

.save-contact svg:last-child { margin-left: auto; opacity: .7; }
.save-contact svg:first-child { margin-right: auto; }

.quick-actions {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 22px;
}

.quick-actions > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #8d907f;
  font-size: 17px;
}

.quick-actions > a > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e2e0d4;
  border-radius: 12px;
  background: #e8e7dc;
  color: #7a816b;
}

.address {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 17px 0;
  border-bottom: 1px solid #e4e1d6;
  color: #999a8a;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.address svg:last-child { margin-left: auto; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 18px 0;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8f907f;
  font-size: 18px;
}

.social-links svg { width: 13px; height: 13px; }

.featured {
  margin-top: 17px;
  padding: 18px 15px;
  border: 1px solid #e1dfd2;
  border-radius: 8px;
  background: #e9e6db;
}

.featured .eyebrow {
  color: #a49479;
  font-size: 16px;
  letter-spacing: 1.3px;
}

.featured h3 {
  margin: 8px 0 7px;
  font-family: Manrope, sans-serif;
  font-size: 22px;
  letter-spacing: -.2px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.featured p {
  color: #96927f;
  font-size: 19px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.featured > img,
.featured > video {
  object-fit: cover;
  width: 100%;
  max-height: 250px;
  margin-bottom: 12px;
  border-radius: 6px;
}

.featured audio { width: 100%; margin-bottom: 12px; }

.section-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 19px;
}

.price {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 22px;
}

.custom-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #c7c9bb;
  border-radius: 6px;
  font-size: 21px;
  overflow-wrap: anywhere;
}

.card-footer {
  padding: 22px 0 10px;
  color: #a5a491;
  font-size: 16px;
  text-align: center;
}

.dark-card { color: #e9ecdf; background: #222c26; }

.dark-card .avatar {
  color: #dce0ce;
  background: #4f5d4e;
  border-color: #222c26;
}

.dark-card .avatar-edit { border-color: #222c26; }
.dark-card .card-role, .dark-card .card-bio { color: #acb3a2; }

.dark-card .featured {
  background: #303a30;
  border-color: #485140;
}

.dark-card .quick-actions > a > span {
  color: #bcc6ae;
  background: #364132;
  border-color: #485140;
}

.dark-card .featured p { color: #b4b9a6; }

.preview-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 23px;
  color: #777;
  font-size: 19px;
}

.preview-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 13px;
  color: #777;
  font-size: 17px;
}

.preview-features span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  padding: 28px 0;
  color: #777;
  font-size: 19px;
}

.mobile-menu,
.mobile-close,
.mobile-switch,
.mobile-break { display: none; }

/* CONTACTOS, REDES Y CONTENIDO */

.muted { color: #666; font-size: 20px; line-height: 1.7; }
.intro { margin-bottom: 20px; }

.note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 7px;
  background: #fafafa;
  color: #555;
  font-size: 20px;
  line-height: 1.7;
}

.note svg { flex-shrink: 0; }

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.preset-chips button {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  color: #333;
  font-size: 20px;
}

.preset-chips button:hover {
  background: #fff0f2;
  border-color: #e31b36;
  color: #e31b36;
}

.link-editor {
  margin-bottom: 12px;
  padding: 15px 15px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.link-row .field { flex: 1; }

.icon-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 32px;
  min-height: 32px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.icon-btn:hover { background: #fff0f2; }
.danger { color: #d71932; }

.section-editor {
  margin-bottom: 17px;
  padding: 17px;
  border: 1px solid #ddd;
  border-radius: 9px;
}

.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  color: #555;
  font-size: 20px;
}

.section-toolbar > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-number {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #fff0f2;
  color: #e31b36;
  font-size: 19px;
}

.section-toolbar > div { display: flex; }

.add-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.add-sections button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 12px;
  border: 1px dashed #ddd;
  border-radius: 7px;
  background: #fafafa;
  color: #333;
  font-size: 20px;
}

.add-sections button:hover {
  border-color: #e31b36;
  background: #fff0f2;
  color: #e31b36;
}

.add-sections button svg:last-child { margin-left: auto; }

.upload-file {
  width: 100%;
  font-size: 20px;
  white-space: normal;
}

/* DISEÑO Y COLORES */

.theme-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.theme-options > button {
  position: relative;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 20px;
}

.theme-options > button.chosen {
  border-color: #e31b36;
  background: #fff5f6;
}

.theme-options > button > svg {
  position: absolute;
  bottom: 10px;
  right: 7px;
  color: #e31b36;
}

.theme-sample {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100px;
  margin-bottom: 12px;
  padding-top: 20px;
  border-radius: 5px;
  background: #ece8dd;
}

.theme-sample > span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d1c2ac;
}

.theme-sample > i {
  width: 50px;
  height: 4px;
  border-radius: 5px;
  background: #aaa78b;
}

.theme-sample > i:last-child { width: 30px; }
.theme-sample.dark { background: #29372e; }
.theme-sample.dark > i { background: #7a8873; }

.color-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.color-row b,
.backup-row b { font-size: 21px; font-weight: 550; }

.color-row p,
.backup-row p {
  margin-top: 5px;
  color: #777;
  font-size: 19px;
  line-height: 1.6;
}

.color-input {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: #666;
  font-size: 19px;
}

.color-input input {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.swatches button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  outline: 1px solid #ddd;
  color: #fff;
}

/* COMPARTIR */

.share-intro { padding: 5px 0 25px; text-align: center; }

.share-circle {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff0f2;
  color: #e31b36;
}

.share-intro h3 {
  font: 700 31px Manrope, sans-serif;
  letter-spacing: -.7px;
}

.share-intro p {
  margin-top: 10px;
  color: #666;
  font-size: 21px;
  line-height: 1.7;
}

.url-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 7px;
  background: #fafafa;
  color: #333;
  font-size: 20px;
}

.url-box > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.url-box a { display: flex; }

.qr-box {
  margin: 20px auto;
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.qr-box img { width: 170px; height: 170px; }

.qr-box p {
  margin-top: 8px;
  color: #666;
  font-size: 20px;
}

.share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.backup-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.backup-row > div { flex: 1; min-width: 0; }

/* ACCESO Y NOTIFICACIONES */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #00000055;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.auth-modal {
  position: relative;
  overflow: auto;
  width: 480px;
  max-width: 100%;
  max-height: 94dvh;
  padding: 34px;
  border: 1px solid #ddd;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px #00000030;
}

.modal-close { position: absolute; top: 14px; right: 14px; }

.auth-modal > .brand-icon {
  width: 47px;
  height: 47px;
  margin-bottom: 23px;
}

.auth-modal > .eyebrow { display: block; }

.auth-modal h2 {
  margin: 10px 0;
  font: 750 39px/1.35 Manrope, sans-serif;
  letter-spacing: -1.2px;
}

.auth-modal > p {
  margin: 12px 0 24px;
  color: #666;
  font-size: 22px;
  line-height: 1.7;
}

.auth-modal .field { margin-bottom: 16px; }
.full { width: 100%; margin-top: 5px; }

.auth-toggle {
  margin-top: 22px;
  color: #777;
  font-size: 20px;
  text-align: center;
}

.auth-toggle button {
  padding: 7px;
  border: 0;
  background: transparent;
  color: #d71932;
  font-size: 20px;
  text-decoration: underline;
}

.auth-modal p.auth-security {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 15px 0 0;
  color: #777;
  font-size: 19px;
}

.form-error {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 5px;
  background: #fff0f2;
  color: #ba1028;
  font-size: 21px;
}

.toast,
.upload-loading {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 30px);
  padding: 16px 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 22px;
  box-shadow: 0 8px 35px #00000020;
  transform: translateX(-50%);
}

.toast button {
  padding: 3px;
  border: 0;
  background: transparent;
  color: #666;
}

.spin { animation: spin 1s linear infinite; }

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

/* TARJETA PÚBLICA */

.public-page {
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  padding: 25px 15px;
  background: #e8ece3;
}

.public-page .digital-card {
  overflow: hidden;
  align-self: flex-start;
  width: 430px;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 80px #3c51321c;
}

.public-page .cover { height: 195px; }
.public-page .card-body { padding: 0 28px; }
.public-page .digital-card h2 { font-size: 39px; }
.public-page .card-role { font-size: 23px; }
.public-page .card-business { font-size: 19px; }
.public-page .card-bio { font-size: 23px; }

.public-page .save-contact {
  min-height: 53px;
  font-size: 23px;
}

.public-page .quick-actions a { font-size: 20px; }

.public-page .quick-actions a > span {
  width: 45px;
  height: 45px;
}

.public-page .address,
.public-page .social-links a { font-size: 21px; }

.public-page .featured { padding: 20px; }
.public-page .featured h3 { font-size: 26px; }
.public-page .featured p { font-size: 22px; }
.public-page .featured .eyebrow { font-size: 18px; }
.public-page .card-footer { font-size: 19px; }

.public-share {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin: 6px auto 18px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 21px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-self: center;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.empty-state h1 { font: 700 35px Manrope, sans-serif; }
.empty-state p { color: #666; font-size: 23px; }

.empty-state a {
  color: #d71932;
  font-size: 22px;
  text-decoration: underline;
}

/* PANTALLAS GRANDES */

@media (min-width: 1500px) {
  .editor-main { padding-top: 45px; }

  .editor-grid {
    grid-template-columns: minmax(440px, 1fr) 410px;
    gap: 45px;
  }

  .panel-heading { padding: 28px; }
  .panel-body { padding: 30px; }
  .upload-zone { min-height: 230px; }
  .field input, .field textarea { font-size: 23px; }
  .field > span { font-size: 22px; }
  .section-label > span, .section-label small { font-size: 19px; }
  .panel-heading h2 { font-size: 29px; }
  .phone-frame { max-width: 365px; }
  .phone-scroll { max-height: 720px; }
  .cover { height: 160px; }
  .digital-card h2 { font-size: 36px; }
  .card-bio { font-size: 21px; }
  .featured p { font-size: 20px; }

  .digital-card .card-body {
    padding-right: 26px;
    padding-left: 26px;
  }

  .topbar {
    padding-right: 50px;
    padding-left: 50px;
  }
}

/* PORTÁTILES */

@media (max-width: 1180px) {
  .sidebar {
    width: 250px;
    padding-right: 13px;
    padding-left: 13px;
  }

  .main-shell {
    width: calc(100% - 250px);
    margin-left: 250px;
  }

  .editor-main { padding: 28px 24px 0; }

  .topbar {
    padding-right: 24px;
    padding-left: 24px;
  }

  .editor-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .panel-body, .panel-heading { padding: 20px; }

  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }

  .page-heading h1 { font-size: 40px; }
  .heading-actions { align-self: flex-start; }
  .tip { padding: 14px; }

  .preview-panel {
    position: relative;
    top: auto;
    padding: 0;
  }

  .preview-heading {
    max-width: 365px;
    margin-right: auto;
    margin-left: auto;
  }

  .demo-banner > span { font-size: 19px; }
  .demo-banner, .section-label { align-items: flex-start; }
}

/* TABLETAS */

@media (max-width: 900px) {
  .sidebar {
    width: 230px;
    padding: 26px 11px;
  }

  .brand {
    gap: 8px;
    padding: 0 7px;
    font-size: 30px;
  }

  .brand-icon { width: 36px; height: 36px; }
  .brand-sub { font-size: 16px; letter-spacing: 1.8px; }

  .sidebar nav button {
    gap: 9px;
    padding: 13px 9px;
    font-size: 20px;
  }

  .workspace { margin-top: 29px; padding: 10px 6px; }
  .workspace small { font-size: 18px; }
  .workspace b { font-size: 20px; }
  .workspace-avatar { width: 32px; height: 34px; }

  .main-shell {
    width: calc(100% - 230px);
    margin-left: 230px;
  }

  .editor-grid { grid-template-columns: 1fr; }

  .preview-panel {
    position: relative;
    top: auto;
    padding-top: 15px;
  }

  .preview-heading { max-width: 344px; margin: 0 auto 20px; }
  .page-heading h1 { font-size: 38px; }
  .editor-panel { max-width: none; }
  .tip p { font-size: 20px; }
  .tip b { font-size: 22px; }
  .preview-panel .phone-frame { max-width: 344px; }

  .demo-banner {
    flex-direction: column;
    gap: 10px;
  }

  .preview-panel .phone-scroll { max-height: 660px; }

  .form-grid,
  .upload-grid,
  .add-sections {
    grid-template-columns: 1fr;
  }
}

/* TELÉFONOS */

@media (max-width: 640px) {
  .sidebar { display: none; }

  .sidebar-open {
    display: flex;
    inset: 0 auto 0 0;
    width: min(340px, 92vw);
    padding: 27px 18px;
    overflow-y: auto;
    box-shadow: 20px 0 0 100vw #00000066;
  }

  .sidebar-open .brand { font-size: 33px; }

  .sidebar-open nav button {
    padding: 15px 12px;
    font-size: 22px;
  }

  .sidebar-open .workspace { margin-top: 32px; }
  .sidebar-open .workspace b { font-size: 22px; }
  .sidebar-open .workspace small { font-size: 20px; }

  .mobile-close {
    position: absolute;
    top: 24px;
    right: 12px;
    display: inline-flex;
  }

  .main-shell { width: 100%; margin-left: 0; }

  .topbar {
    min-height: 65px;
    padding: 10px 14px;
    gap: 8px;
  }

  .mobile-menu {
    display: flex;
    padding-left: 0;
    color: #111;
  }

  .breadcrumbs {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 20px;
  }

  .topbar-right { gap: 8px; }
  .status { font-size: 19px; }
  .account-circle { width: 34px; height: 34px; }
  .editor-main { padding: 25px 16px 0; }

  .page-heading {
    gap: 20px;
    margin-bottom: 20px;
  }

  .page-heading .eyebrow {
    font-size: 17px;
    letter-spacing: 1.7px;
  }

  .page-heading h1 {
    margin-top: 9px;
    font-size: 39px;
    letter-spacing: -1.2px;
    line-height: 1.35;
  }

  .mobile-break { display: block; }

  .page-heading p {
    max-width: 100%;
    margin-top: 10px;
    font-size: 21px;
    line-height: 1.6;
  }

  .heading-actions { gap: 10px; width: 100%; }

  .heading-actions .btn {
    min-height: 50px;
    font-size: 22px;
  }

  .heading-actions .btn.primary { flex: 1; }

  .heading-actions .btn.secondary {
    padding-right: 20px;
    padding-left: 20px;
  }

  .demo-banner {
    gap: 9px;
    margin-bottom: 18px;
    padding: 13px 14px;
  }

  .demo-banner > span {
    gap: 4px;
    font-size: 20px;
    line-height: 1.8;
  }

  .demo-banner button {
    min-height: 33px;
    padding: 4px 0;
    font-size: 21px;
  }

  .mobile-switch {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 8px 0 12px;
    border-bottom: 1px solid #ddd;
    background: #ffffffef;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .mobile-switch button {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    height: auto;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #666;
    font-size: 21px;
    line-height: 1.4;
  }

  .mobile-switch button.selected {
    border-color: #e31b36;
    background: #fff;
    color: #e31b36;
    box-shadow: 0 2px 4px #00000008;
  }

  .mobile-hidden { display: none !important; }
  .editor-grid { display: block; }
  .editor-panel { border-radius: 10px; }

  .panel-heading {
    gap: 10px;
    padding: 19px 17px;
  }

  .panel-heading h2 { font-size: 26px; }
  .panel-heading p { font-size: 20px; }
  .section-icon { width: 36px; height: 36px; }
  .step { font-size: 19px; }
  .panel-body { padding: 20px 17px; }

  .section-label {
    gap: 12px;
    margin-bottom: 15px;
  }

  .section-label > span {
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1.6;
  }

  .section-label small {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
  }

  .upload-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .upload-zone {
    min-height: 205px;
    padding: 17px 10px;
  }

  .upload-zone b { font-size: 21px; }
  .upload-zone small { font-size: 18px; line-height: 1.6; }
  .upload-link { min-height: 30px; font-size: 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .field > span { font-size: 22px; }

  .field input,
  .field textarea {
    min-height: 52px;
    padding: 12px;
    font-size: 26px;
  }

  .field small { font-size: 20px; }
  .field { margin-bottom: 19px; }

  .panel-footer {
    gap: 12px;
    padding: 15px 17px;
    font-size: 19px;
  }

  .panel-footer button {
    min-height: 37px;
    font-size: 21px;
  }

  .preview-panel { padding-top: 3px; }

  .preview-heading {
    margin: 0 auto 18px;
    font-size: 18px;
  }

  .phone-frame {
    width: 344px;
    max-width: 100% !important;
  }

  .phone-scroll { max-height: none !important; }
  .preview-note { font-size: 20px; }
  .preview-features { font-size: 18px; }

  .main-footer {
    gap: 15px;
    padding: 27px 0;
    font-size: 18px;
  }

  .preset-chips button {
    min-height: 44px;
    font-size: 21px;
  }

  .icon-btn { min-width: 40px; min-height: 40px; }
  .section-toolbar { gap: 5px; font-size: 20px; }
  .section-editor { padding: 13px; }

  .add-sections {
    grid-template-columns: 1fr;
  }

  .add-sections button {
    min-height: 59px;
    font-size: 21px;
  }

  .color-input { font-size: 20px; }
  .color-input input { width: 32px; height: 32px; }
  .color-row { flex-wrap: wrap; }
  .color-row b { font-size: 22px; }
  .color-row p { font-size: 20px; }

  .theme-options > button {
    padding-bottom: 22px;
    font-size: 20px;
  }

  .share-buttons { flex-wrap: wrap; }
  .share-buttons .btn { min-height: 50px; }
  .note { font-size: 21px; }
  .url-box { gap: 3px; font-size: 21px; }
  .backup-row b { font-size: 21px; }

  .auth-modal {
    padding: 27px 23px;
    border-radius: 15px;
  }

  .auth-modal h2 { font-size: 37px; }
  .auth-modal > .brand-icon { width: 45px; height: 45px; }
  .auth-modal > p { font-size: 22px; }
  .auth-toggle, .auth-toggle button { font-size: 21px; }

  .auth-modal .btn {
    min-height: 51px;
    font-size: 22px;
  }

  .toast,
  .upload-loading {
    bottom: 16px;
    padding: 14px;
    font-size: 21px;
    line-height: 1.6;
  }

  .public-page {
    padding: 0;
    background: #f4efe9;
  }

  .public-page .digital-card {
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .public-page .cover { height: 210px; }
  .public-page .card-body { padding: 0 25px; }
  .public-page .avatar { width: 88px; height: 88px; }
  .public-page .avatar-row { margin-top: -40px; }
  .public-page .digital-card h2 { font-size: 40px; }

  .public-page .card-bio {
    font-size: 24px;
    line-height: 1.9;
  }

  .public-page .save-contact {
    min-height: 54px;
    font-size: 24px;
  }

  .public-page .quick-actions a > span {
    width: 46px;
    height: 46px;
  }

  .public-page .quick-actions a { font-size: 21px; }
  .public-page .featured p { font-size: 23px; }

  .public-page .card-footer {
    padding: 28px 0;
    font-size: 20px;
  }

  .public-share {
    min-height: 49px;
    margin-bottom: 18px;
    font-size: 23px;
  }

  .public-page .social-links a {
    min-height: 40px;
    font-size: 22px;
  }

  .public-page .address {
    min-height: 55px;
    font-size: 22px;
  }

  .public-page .custom-action {
    min-height: 51px;
    font-size: 23px;
  }

  .public-page .section-link {
    min-height: 40px;
    font-size: 22px;
  }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
  }
}

@media (min-width: 641px) {
  .mobile-menu.icon-btn,
  .mobile-close.icon-btn {
    display: none;
  }
}

@media (max-width: 640px) {
  .mobile-menu.icon-btn,
  .mobile-close.icon-btn {
    display: inline-flex;
  }
}