:root {
  --bg: #111820;
  --bg-2: #151e28;
  --panel: #18232e;
  --panel-2: #1c2935;
  --border: rgba(255,255,255,.09);
  --text: #f2f5f7;
  --muted: #9aabb9;
  --accent: #55d7c5;
  --accent-2: #79a7ff;
  --purple: #b38cff;
  --green: #7de0a7;
  --orange: #ffb26b;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(52, 115, 142, .16), transparent 26%),
    radial-gradient(circle at 8% 45%, rgba(51, 91, 124, .12), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 75%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section { padding: 108px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(17, 24, 32, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-right: auto;
}

.brand-logo {
  width: 36px;
  height: 36px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.footer-brand .brand-logo {
  width: 32px;
  height: 32px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(85,215,197,.35);
  border-radius: 9px;
  color: var(--accent);
  background: rgba(85,215,197,.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: #b4c0ca;
  font-size: 13px;
}
.nav-links a:hover { color: #fff; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 0 17px; font-size: 12px; }
.button-outline { border: 1px solid var(--border); background: rgba(255,255,255,.02); }
.button-outline:hover { border-color: rgba(85,215,197,.45); }
.button-primary {
  color: #09201d;
  background: var(--accent);
  box-shadow: 0 16px 50px rgba(85,215,197,.12);
}
.button-primary:hover { background: #70e2d2; }

.menu-button, .mobile-menu { display: none; }

.hero { padding-top: 124px; min-height: 760px; display: flex; align-items: center; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 78px;
  align-items: center;
}

.eyebrow, .section-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 27px; }
.dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 5px rgba(85,215,197,.08);
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 25px;
  font-size: clamp(54px, 6vw, 84px);
  line-height: .98;
  letter-spacing: -.065em;
}
h1 span, h2 span { color: var(--accent); }

.hero-text {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.72;
  color: #afbdc8;
  margin-bottom: 32px;
}
.hero-actions { display: flex; align-items: center; gap: 30px; }
.text-link { color: #d2dae0; font-size: 13px; font-weight: 600; }
.text-link span { margin-left: 8px; color: var(--accent); }

.hero-note {
  display: flex; align-items: center; gap: 9px;
  color: #768996; font-size: 11px; margin-top: 28px;
}
.status { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }

.hero-visual { position: relative; min-height: 480px; display: flex; align-items: center; }
.code-window {
  width: 100%;
  transform: rotate(1.1deg);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(20,30,40,.86);
  box-shadow: 0 35px 90px rgba(0,0,0,.28);
}
.window-top {
  height: 50px;
  padding: 0 17px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  color: #6f8290;
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; background: #53606a; border-radius: 50%; }
.window-top > span:nth-child(2) { text-align: center; }
.live { text-align: right; color: #6bcfa7; }
.code-body {
  padding: 36px 27px 42px;
  font: 12px/2 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.code-line { display: grid; grid-template-columns: 32px 105px 1fr; white-space: nowrap; }
.code-line:nth-last-child(1), .code-line:nth-last-child(2) { grid-template-columns: 32px auto 1fr; }
.muted { color: #42515c; }.cyan { color: var(--accent); }.purple { color: var(--purple); }
.green { color: var(--green); }.orange { color: var(--orange); }.blue { color: var(--accent-2); }
.white { color: #c8d2d9; }.comment { color: #60717c; font-style: italic; }
.code-spacer { height: 16px; }
.blink { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.floating-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  background: rgba(27,39,51,.94);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,.25);
}
.floating-card b { display: block; font-size: 11px; margin-bottom: 3px; }
.floating-card small { color: #768996; font-size: 9px; }
.mini-icon {
  width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px;
  color: var(--accent); background: rgba(85,215,197,.08); font-size: 12px;
}
.card-a { right: -30px; top: 50px; }
.card-b { left: -34px; bottom: 52px; }

.ai-section { padding-top: 60px; }
.section-label { margin-bottom: 24px; }
.ai-panel {
  display: grid;
  grid-template-columns: 120px 1fr .7fr;
  gap: 45px;
  padding: 52px;
  border: 1px solid rgba(85,215,197,.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(85,215,197,.065), transparent 40%),
    var(--panel);
  position: relative;
  overflow: hidden;
}
.ai-panel::after {
  content: "";
  width: 340px; height: 340px;
  border: 1px solid rgba(85,215,197,.08);
  border-radius: 50%;
  position: absolute; right: -120px; top: -160px;
}
.ai-icon-wrap { display: flex; justify-content: center; }
.ai-icon {
  width: 68px; height: 68px; display: grid; place-items: center; border-radius: 18px;
  color: var(--accent); font-size: 27px;
  background: rgba(85,215,197,.08); border: 1px solid rgba(85,215,197,.18);
}
.kicker { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .13em; margin-bottom: 14px; }
.ai-content h2, .section-head h2, .cta h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.ai-content > p:not(.kicker) { color: #a7b5c0; line-height: 1.7; font-size: 14px; max-width: 620px; }
.ai-content strong { color: #e9f0f4; }
.ai-statement {
  align-self: end;
  border-left: 1px solid rgba(255,255,255,.12);
  padding-left: 28px;
  color: #8699a6;
  font-size: 12px;
  line-height: 1.65;
}
.ai-statement b { display: block; color: var(--accent); margin-top: 12px; font-size: 13px; }

.section-head {
  display: grid; grid-template-columns: 1fr .55fr; gap: 80px; align-items: end;
  margin-bottom: 46px;
}
.section-head h2 { margin-bottom: 0; }
.section-head > p { color: #93a4b0; line-height: 1.75; font-size: 13px; margin-bottom: 6px; }

.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.service-card {
  min-height: 410px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(24,35,46,.72);
  display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(85,215,197,.22);
  background: rgba(27,40,52,.9);
}
.service-card.featured {
  background: linear-gradient(160deg, rgba(85,215,197,.05), rgba(24,35,46,.85));
}
.service-number { color: #536571; font-size: 10px; margin-bottom: 38px; }
.service-symbol {
  width: 47px; height: 47px; display: grid; place-items: center;
  border: 1px solid rgba(85,215,197,.18); border-radius: 12px; color: var(--accent);
  background: rgba(85,215,197,.05); margin-bottom: 24px; font-size: 20px;
}
.service-card h3 { font-size: 20px; letter-spacing: -.035em; margin-bottom: 15px; }
.service-card p { color: #91a3af; font-size: 13px; line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 18px; }
.tags span {
  padding: 7px 9px; border-radius: 6px; border: 1px solid rgba(255,255,255,.07);
  color: #7f929f; font-size: 9px; text-transform: uppercase; letter-spacing: .06em;
}

.process { background: rgba(10,15,21,.16); }
.process-list { border-top: 1px solid var(--border); }
.process-item {
  display: grid;
  grid-template-columns: 80px 72px 1fr;
  gap: 18px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--border);
}
.process-index { color: #536571; font: 10px ui-monospace, monospace; }
.process-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.08); color: var(--accent); background: rgba(255,255,255,.02);
}
.process-item h3 { font-size: 16px; margin: 0 0 6px; }
.process-item p { color: #8395a2; font-size: 12px; line-height: 1.6; margin: 0; max-width: 780px; }

.flow { padding-top: 40px; padding-bottom: 65px; }
.flow-box {
  padding: 29px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.015);
}
.flow-title { color: #60727e; font-size: 9px; letter-spacing: .15em; margin-bottom: 23px; }
.flow-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  color: #c6d0d6; font-size: 11px; font-weight: 600;
}
.flow-row i { color: #46606a; font-style: normal; }

.cta { padding-top: 55px; }
.cta-box {
  padding: 66px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255,255,255,.14), transparent 25%),
    linear-gradient(135deg, #48cbb9, #2e9f95);
  color: #08231f;
  box-shadow: 0 30px 90px rgba(50,180,164,.14);
}
.cta-grid { display: grid; grid-template-columns: 1fr .72fr; gap: 80px; align-items: center; }
.cta h2 { margin-bottom: 0; color: #09231f; }
.cta h2 span { color: rgba(8,35,31,.62); }
.light-label { color: rgba(8,35,31,.58); }
.cta-copy p { font-size: 14px; line-height: 1.75; color: rgba(8,35,31,.75); margin-bottom: 25px; }
.button-light { background: #f2f8f7; color: #15302d; }
.cta-copy small { display: block; margin-top: 13px; color: rgba(8,35,31,.52); font-size: 9px; }

footer { padding: 28px 0 45px; }
.footer-row {
  display: flex; align-items: center; gap: 30px; color: #60727e; font-size: 10px;
}
.footer-brand { color: #afbdc7; }
.footer-row p { margin: 0 auto 0 0; }
.footer-row > span { font-family: ui-monospace, monospace; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .section { padding: 82px 0; }
  .nav-links, .nav .button-outline { display: none; }
  .menu-button {
    display: grid; width: 42px; height: 42px; place-content: center; gap: 5px;
    border: 1px solid var(--border); background: transparent; border-radius: 9px;
  }
  .menu-button span { width: 16px; height: 1px; background: #d6dde2; }
  .mobile-menu {
    position: absolute; left: 20px; right: 20px; top: 68px;
    padding: 16px; border: 1px solid var(--border); border-radius: 12px;
    background: #17212b; box-shadow: 0 22px 60px rgba(0,0,0,.28);
  }
  .mobile-menu.open { display: grid; }
  .mobile-menu a { padding: 12px 8px; color: #b5c1c9; font-size: 13px; }
  .hero { padding-top: 75px; min-height: auto; }
  .hero-grid, .section-head, .cta-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-visual { min-height: 420px; }
  .ai-panel { grid-template-columns: 1fr; gap: 28px; padding: 36px; }
  .ai-icon-wrap { justify-content: flex-start; }
  .ai-statement { border-left: 0; border-top: 1px solid var(--border); padding: 20px 0 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 330px; }
  .section-head { align-items: start; }
  .section-head > p { max-width: 560px; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 26px), var(--max)); }
  .section { padding: 68px 0; }
  .brand { font-size: 13px; }
  h1 { font-size: 51px; }
  .hero-text { font-size: 15px; line-height: 1.65; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 19px; }
  .hero-visual { min-height: 360px; }
  .code-body { padding: 28px 15px; font-size: 9px; overflow: hidden; }
  .code-line { grid-template-columns: 24px 80px 1fr; }
  .floating-card { display: none; }
  .ai-panel { padding: 27px 22px; }
  .ai-content h2, .section-head h2, .cta h2 { font-size: 39px; }
  .process-item { grid-template-columns: 38px 50px 1fr; gap: 10px; padding: 22px 0; }
  .process-item p { font-size: 11px; }
  .flow-row { justify-content: flex-start; line-height: 2; }
  .cta-box { padding: 38px 25px; border-radius: 18px; }
  .footer-row { flex-wrap: wrap; }
  .footer-row p { width: 100%; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------------------------------
   Contacto
------------------------------------------------------- */

.contact-page {
  min-height: 100vh;
}

.back-link {
  color: #9fb0bc;
  font-size: 12px;
  font-weight: 600;
  transition: color .18s ease;
}

.back-link:hover {
  color: var(--text);
}

.contact-main {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  padding: 78px 0 100px;
}

.contact-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 90px;
  align-items: center;
}

.contact-intro h1 {
  margin-bottom: 28px;
  font-size: clamp(54px, 6vw, 78px);
}

.contact-intro > p {
  max-width: 520px;
  color: #9dafbb;
  font-size: 15px;
  line-height: 1.8;
}

.contact-points {
  margin-top: 42px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.contact-points > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}

.contact-points > div > span {
  padding-top: 2px;
  color: #546874;
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.contact-points p {
  margin: 0;
  color: #7f929e;
  font-size: 11px;
  line-height: 1.6;
}

.contact-points strong {
  color: #cad4da;
  font-size: 12px;
}

.contact-card {
  padding: 42px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(85,215,197,.045), transparent 32%),
    rgba(24,35,46,.88);
  box-shadow: 0 35px 90px rgba(0,0,0,.20);
}

.form-heading {
  margin-bottom: 30px;
}

.form-step {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.form-heading h2 {
  margin: 10px 0 9px;
  font-size: 27px;
  letter-spacing: -.04em;
}

.form-heading p {
  margin: 0;
  color: #81939f;
  font-size: 12px;
}

.idea-form {
  display: grid;
  gap: 18px;
}

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

.field {
  position: relative;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: #aebbc4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .035em;
}

.field label span {
  color: var(--accent);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  outline: none;
  background: #121c25;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.field input,
.field select {
  min-height: 48px;
  padding: 0 14px;
}

.field textarea {
  min-height: 156px;
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(85,215,197,.55);
  background: #14212b;
  box-shadow: 0 0 0 3px rgba(85,215,197,.06);
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6d818d 50%),
    linear-gradient(135deg, #6d818d 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field-help {
  margin-top: 6px;
  color: #536570;
  font-size: 9px;
  text-align: right;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #748893;
  font-size: 10px;
  line-height: 1.55;
  cursor: pointer;
}

.privacy-check input {
  accent-color: var(--accent);
  margin-top: 2px;
}

.form-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  margin-top: 2px;
}

.form-submit:disabled {
  opacity: .58;
  cursor: wait;
  transform: none;
}

.form-message {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.55;
}

.form-message.success {
  display: block;
  color: #9be6c0;
  border: 1px solid rgba(125,224,167,.18);
  background: rgba(125,224,167,.06);
}

.form-message.error {
  display: block;
  color: #ffb4ad;
  border: 1px solid rgba(255,135,126,.18);
  background: rgba(255,135,126,.06);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .contact-main {
    padding-top: 55px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 55px;
    max-width: 720px;
  }

  .contact-intro > p {
    max-width: 650px;
  }
}

@media (max-width: 600px) {
  .contact-main {
    padding: 42px 0 70px;
  }

  .back-link {
    font-size: 10px;
  }

  .contact-intro h1 {
    font-size: 49px;
  }

  .contact-card {
    padding: 27px 20px;
  }

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

/* -------------------------------------------------------
   Dashboard
------------------------------------------------------- */

.dashboard-page {
  min-height: 100vh;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-user {
  color: #7f929f;
  font-size: 11px;
}

.dashboard-main {
  padding: 80px 0 100px;
}

.dashboard-login {
  min-height: calc(100vh - 240px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(100%, 430px);
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(85,215,197,.045), transparent 35%),
    rgba(24,35,46,.9);
  box-shadow: 0 30px 80px rgba(0,0,0,.2);
}

.login-card h1 {
  margin: 10px 0 10px;
  font-size: 42px;
}

.login-card > p {
  margin-bottom: 28px;
  color: #8395a2;
  font-size: 12px;
  line-height: 1.6;
}

.dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.dashboard-heading h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 62px);
}

.dashboard-summary {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-bottom: 6px;
}

.dashboard-summary span {
  color: var(--accent);
  font-size: 28px;
  font-weight: 800;
}

.dashboard-summary small {
  color: #687b87;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contacts-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(24,35,46,.72);
}

.contacts-toolbar {
  display: flex;
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid var(--border);
}

.contacts-toolbar input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  outline: none;
  background: #121c25;
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.contacts-toolbar input:focus {
  border-color: rgba(85,215,197,.45);
}

.dashboard-state {
  padding: 35px 20px;
  color: #718490;
  font-size: 12px;
  text-align: center;
}

.dashboard-error {
  color: #ffaaa3;
}

.contacts-table-wrap {
  overflow-x: auto;
}

.contacts-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.contacts-table th,
.contacts-table td {
  padding: 17px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: top;
  text-align: left;
}

.contacts-table th {
  color: #657984;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}

.contacts-table td {
  color: #95a7b2;
  font-size: 11px;
  line-height: 1.55;
}

.contacts-table tbody tr:last-child td {
  border-bottom: 0;
}

.contacts-table tbody tr:hover {
  background: rgba(255,255,255,.015);
}

.contacts-table strong {
  display: block;
  color: #dbe3e7;
  font-size: 12px;
  margin-bottom: 4px;
}

.contacts-table a {
  color: #82a4b5;
}

.contacts-table a:hover {
  color: var(--accent);
}

.contact-date {
  width: 120px;
  color: #677a86 !important;
  white-space: nowrap;
}

.contact-type {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid rgba(85,215,197,.12);
  border-radius: 6px;
  color: var(--accent);
  background: rgba(85,215,197,.045);
  font-size: 9px;
  text-transform: uppercase;
}

.contact-idea {
  min-width: 290px;
  max-width: 460px;
  white-space: pre-wrap;
}

@media (max-width: 600px) {
  .dashboard-main {
    padding-top: 50px;
  }

  .login-card {
    padding: 28px 21px;
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .dashboard-actions .dashboard-user {
    display: none;
  }

  .contacts-toolbar {
    flex-direction: column;
  }

  .contacts-toolbar .button {
    width: 100%;
  }
}

/* -------------------------------------------------------
   CRM tabs / cards
------------------------------------------------------- */

.crm-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.crm-tab {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  color: #81939f;
  padding: 10px 14px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.crm-tab span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #647783;
  font-size: 9px;
}

.crm-tab.active {
  border-color: rgba(85,215,197,.35);
  color: var(--text);
  background: rgba(85,215,197,.06);
}

.crm-tab.active span {
  color: var(--accent);
  background: rgba(85,215,197,.1);
}

.crm-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.crm-card {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: #151f29;
  padding: 20px;
}

.crm-card-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.crm-date {
  display: block;
  color: #5e717d;
  font-size: 9px;
  margin-bottom: 6px;
}

.crm-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.crm-contact-links {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

.crm-contact-links a {
  color: #7f96a3;
  font-size: 10px;
}

.crm-contact-links a:hover {
  color: var(--accent);
}

.crm-idea,
.crm-followup {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.crm-idea > span,
.crm-followup > span {
  display: block;
  color: #60737f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.crm-idea p,
.crm-followup p {
  margin: 0;
  color: #9aacb7;
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.crm-followup {
  border: 1px solid rgba(85,215,197,.1);
  border-radius: 9px;
  padding: 13px;
  background: rgba(85,215,197,.035);
}

.crm-followup > span {
  color: var(--accent);
}

.crm-card-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 18px;
}

.crm-action {
  min-height: 38px;
  padding: 0 14px;
  font-size: 10px;
}

.crm-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.crm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,10,14,.72);
  backdrop-filter: blur(5px);
}

.crm-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #18232e;
  padding: 30px;
  box-shadow: 0 35px 90px rgba(0,0,0,.35);
}

.crm-modal-card h2 {
  margin: 9px 0 8px;
  font-size: 26px;
}

.crm-modal-card > p {
  color: #7f929f;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.crm-modal-close {
  position: absolute;
  right: 15px;
  top: 13px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #71838e;
  font-size: 23px;
  cursor: pointer;
}

.crm-modal-close:hover {
  color: var(--text);
}

.crm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 600px) {
  .crm-card-top {
    flex-direction: column;
  }

  .crm-card-actions {
    justify-content: stretch;
  }

  .crm-card-actions .button {
    width: 100%;
  }

  .crm-modal-card {
    padding: 25px 19px;
  }

  .crm-modal-actions {
    flex-direction: column-reverse;
  }

  .crm-modal-actions .button {
    width: 100%;
  }
}


/* Fuerza el comportamiento correcto del atributo hidden.
   Debe ir al final para evitar que .crm-modal { display: grid } lo sobrescriba. */
[hidden] {
  display: none !important;
}

/* Result code line fix */
.code-line.result-line {
  display: flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}

.code-line.result-line .muted {
  flex: 0 0 32px;
}

.code-line.result-line .white {
  flex: 0 0 auto;
}

.code-line.result-line .green {
  flex: 0 0 auto;
  margin-left: 0.7ch;
}

.code-line.result-line .blink {
  flex: 0 0 auto;
  margin-left: 0.15ch;
}
