@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --navy-950: #07111f;
  --navy-900: #0b1728;
  --navy-800: #10233d;
  --navy-700: #17365d;
  --gold-500: #d9ad4f;
  --gold-400: #f0c766;
  --cream-50: #f8f4ec;
  --paper: #ffffff;
  --ink: #17202d;
  --muted: #697587;
  --line: #dfe5ee;
  --success: #1c8b61;
  --warning: #bf7b16;
  --danger: #c44949;
  --shadow: 0 24px 70px rgba(7, 17, 31, 0.16);
  --content-max: 1600px;
  color-scheme: light;
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

.contact-section {
  align-items: center;
  background: var(--navy-950);
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 30px auto 70px;
  max-width: 1296px;
  padding: clamp(28px, 5vw, 54px);
}

.contact-copy {
  max-width: 760px;
}

.contact-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.contact-actions {
  display: grid;
  gap: 10px;
  min-width: 260px;
}

.contact-actions a,
.contact-actions button {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  width: 100%;
}

.crm-page {
  background: #eef3f8;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.auth-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  min-height: 100vh;
  min-height: 100svh;
}

.auth-hero {
  background:
    linear-gradient(145deg, rgba(7, 17, 31, 0.98), rgba(23, 54, 93, 0.92)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 8px);
  color: white;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 4vh, 38px);
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(26px, 5vw, 64px);
}

.auth-brand .brand-mark {
  background: rgba(255, 255, 255, 0.1);
}

.auth-brand small,
.auth-hero .hero-text {
  color: rgba(255, 255, 255, 0.74);
}

.auth-hero h1 {
  font-size: clamp(2.35rem, 4.35vw, 4.25rem);
  line-height: 1.04;
  max-width: 780px;
}

.auth-proof {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(240, 199, 102, 0.35);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  max-width: 560px;
  padding: 14px;
}

.auth-proof strong {
  line-height: 1.25;
}

.login-card {
  align-self: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  justify-self: center;
  margin: 24px;
  max-width: 480px;
  padding: clamp(24px, 3.6vw, 40px);
  width: calc(100% - 48px);
}

.login-card h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.login-card p {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.login-form label {
  color: #3d4858;
  display: grid;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 7px;
}

.login-form input {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

.password-field {
  display: block;
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #5d6878;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.18s ease, color 0.18s ease;
  width: 40px;
}

.password-toggle:hover,
.password-toggle.is-visible {
  background: #eef3f8;
  color: var(--navy-800);
}

.password-toggle svg {
  height: 20px;
  width: 20px;
}

.check-row {
  align-items: center;
  display: flex !important;
  flex-direction: row;
  font-weight: 700 !important;
}

.check-row input {
  min-height: auto;
  width: 18px;
}

.form-error {
  color: var(--danger) !important;
  font-size: 0.9rem;
  min-height: 20px;
}

.demo-credentials {
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #3d4858;
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 12px;
}

.demo-credentials span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.crm-app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
}

.app-sidebar {
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 100vh;
  min-height: 100svh;
  position: sticky;
  top: 0;
}

.app-content {
  border: 0;
  border-radius: 0;
  min-height: 100vh;
  min-width: 0;
  padding: clamp(16px, 3vw, 30px);
}

.nav-link {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 18px;
  text-decoration: none;
}

.user-pill {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #3d4858;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 14px;
}

.crm-menu-toggle {
  display: none !important;
}

.page-loader {
  align-items: center;
  background: rgba(7, 17, 31, 0.34);
  backdrop-filter: blur(5px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 9999;
}

.page-loader-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(7, 17, 31, 0.2);
  color: var(--navy-900);
  display: grid;
  gap: 8px;
  justify-items: center;
  max-width: 320px;
  padding: 24px;
  text-align: center;
  width: min(100%, 320px);
}

.page-loader-card strong {
  font-size: 1rem;
}

.page-loader-card span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.loader-spinner {
  animation: loaderSpin 0.75s linear infinite;
  border: 3px solid #e7edf5;
  border-top-color: var(--gold-500);
  border-radius: 999px;
  height: 34px;
  width: 34px;
}

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

@media (max-width: 1100px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: auto;
    padding-block: 34px;
  }

  .auth-screen .app-sidebar {
    border-radius: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: auto;
    position: static;
  }

  .auth-screen .app-sidebar .crm-title {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .auth-screen {
    display: grid;
  }

  .auth-hero {
    gap: 22px;
    padding: 26px 18px 24px;
  }

  .auth-hero h1 {
    font-size: clamp(2rem, 10vw, 3.1rem);
    line-height: 1.05;
  }

  .auth-hero .hero-text {
    font-size: 1rem;
    line-height: 1.55;
  }

  .auth-proof {
    align-items: flex-start;
    font-size: 0.9rem;
    padding: 12px;
  }

  .login-card {
    box-shadow: 0 14px 34px rgba(7, 17, 31, 0.1);
    margin: 0;
    max-width: none;
    padding: 24px 18px 28px;
    width: 100%;
  }

  .login-card h2 {
    font-size: 1.8rem;
  }

  .login-form {
    gap: 13px;
  }

  .check-row {
    align-items: flex-start;
    gap: 10px;
    line-height: 1.35;
  }

  .demo-credentials {
    font-size: 0.95rem;
  }

  .contact-section {
    grid-template-columns: 1fr;
    margin-inline: 18px;
  }

  .contact-actions {
    min-width: 0;
  }

  .user-pill,
  .ghost-link {
    justify-content: center;
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: #f2f5f9;
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  background: rgba(7, 17, 31, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, padding 0.24s ease;
}

.site-header-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-inline: auto;
  max-width: var(--content-max);
  width: 100%;
}

.site-header.is-scrolled {
  background: rgba(7, 17, 31, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(7, 17, 31, 0.22);
  padding-block: 10px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 220px;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--gold-400);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.brand:hover .brand-mark {
  background: rgba(240, 199, 102, 0.18);
  transform: rotate(-3deg);
}

.brand-mark svg,
.icon-button svg {
  height: 24px;
  width: 24px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  margin-top: 3px;
  text-transform: uppercase;
}

.brand strong {
  color: white;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.main-nav a {
  border-radius: 6px;
  position: relative;
  padding: 8px 6px;
  transition: color 0.18s ease;
}

.main-nav a::after {
  background: var(--gold-400);
  border-radius: 999px;
  bottom: 1px;
  content: "";
  height: 2px;
  left: 6px;
  position: absolute;
  right: 6px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.nav-tab:hover {
  color: white;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions,
.hero-actions,
.toolbar-actions,
.modal-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.honduras-time {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  min-height: 42px;
  padding: 8px 12px;
  white-space: nowrap;
}

.primary-link,
.secondary-link,
.ghost-link,
.primary-button,
.secondary-button,
.danger-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  box-shadow: 0 0 0 rgba(7, 17, 31, 0);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.primary-link,
.primary-button {
  background: var(--gold-500);
  color: #1d2430;
}

.primary-link:hover,
.primary-button:hover,
.secondary-link:hover,
.secondary-button:hover {
  box-shadow: 0 14px 30px rgba(7, 17, 31, 0.16);
  transform: translateY(-1px);
}

.primary-link:focus-visible,
.secondary-link:focus-visible,
.ghost-link:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.danger-button:focus-visible,
.whatsapp-button:focus-visible,
.menu-toggle:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(240, 199, 102, 0.45);
  outline-offset: 3px;
}

.secondary-link,
.secondary-button,
.ghost-link {
  background: #ffffff;
  border-color: var(--line);
  color: var(--navy-800);
}

.danger-button {
  background: #a33b3b;
  color: white;
}

.danger-button:hover,
.danger-button:focus-visible {
  background: #812525;
  color: white;
}

.site-header .ghost-link,
.hero-section .secondary-link {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  color: white;
}

.large {
  min-height: 48px;
  padding-inline: 20px;
}

.hero-section {
  background: url("../assets/cristian.jpg") center 38% / cover;
  color: white;
  display: flex;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(78px, 11vh, 118px) clamp(18px, 4vw, 48px) clamp(28px, 6vh, 64px);
  position: relative;
}

.hero-section::after {
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.72) 0%, rgba(7, 17, 31, 0.46) 42%, rgba(7, 17, 31, 0) 100%),
    linear-gradient(0deg, rgba(7, 17, 31, 0.22), rgba(7, 17, 31, 0) 52%, rgba(7, 17, 31, 0.1));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-inner {
  align-self: center;
  margin-inline: auto;
  max-width: var(--content-max);
  position: relative;
  transform: translateY(-4vh);
  width: 100%;
  z-index: 2;
}

.hero-copy {
  max-width: min(560px, 50%);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.42);
}

.eyebrow {
  color: var(--gold-500);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.15rem, min(3.55vw, 6.8vh), 3.75rem);
  line-height: 1.04;
  margin-bottom: clamp(14px, 2.3vh, 22px);
  max-width: 680px;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.hero-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.98rem, min(1.06vw, 2.4vh), 1.06rem);
  line-height: 1.55;
  max-width: 510px;
}

.hero-actions {
  margin-top: 6px;
}

.trust-strip {
  display: grid;
  gap: clamp(8px, 1.5vh, 12px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(18px, 4vh, 34px) 0 0;
  max-width: 620px;
}

.trust-strip div {
  background: rgba(7, 17, 31, 0.28);
  border: 1px solid rgba(240, 199, 102, 0.35);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: clamp(10px, 1.8vh, 14px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.trust-strip div:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(240, 199, 102, 0.62);
  transform: translateY(-2px);
}

.trust-strip dt {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.trust-strip dd {
  color: var(--gold-400);
  font-size: clamp(0.95rem, min(1.2vw, 2.3vh), 1.1rem);
  font-weight: 800;
  margin: 0;
}

.hero-panel {
  align-self: stretch;
  color: var(--ink);
  display: grid;
  gap: 18px;
  grid-template-rows: 1fr auto;
  min-height: 520px;
}

.photo-frame,
.image-placeholder {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(16, 35, 61, 0.04), rgba(217, 173, 79, 0.14)),
    #ffffff;
  border: 1px dashed rgba(16, 35, 61, 0.32);
  border-radius: 8px;
  color: #657287;
  display: flex;
  justify-content: center;
  min-height: 260px;
  padding: 24px;
  text-align: center;
}

.main-frame {
  box-shadow: var(--shadow);
  min-height: 100%;
}

.credential-card {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(7, 17, 31, 0.12);
  display: flex;
  gap: 14px;
  padding: 16px;
}

.credential-card p {
  color: var(--muted);
  margin: 4px 0 0;
}

.status-dot {
  background: var(--success);
  border-radius: 99px;
  height: 12px;
  width: 12px;
}

.section-block,
.split-section,
.crm-shell,
.site-footer {
  margin-inline: auto;
  max-width: var(--content-max);
  padding: 78px clamp(18px, 5vw, 72px);
}

.page-hero {
  align-items: center;
  color: white;
  display: flex;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(84px, 12vh, 128px) clamp(18px, 4vw, 48px) clamp(28px, 6vh, 64px);
  position: relative;
}

.page-hero::before {
  animation: pageHeroZoom 18s ease-in-out infinite alternate;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.72) 0%, rgba(7, 17, 31, 0.38) 46%, rgba(7, 17, 31, 0.03) 100%),
    linear-gradient(0deg, rgba(7, 17, 31, 0.16), rgba(7, 17, 31, 0) 55%, rgba(7, 17, 31, 0.08)),
    var(--page-image);
  background-position: center 38%;
  background-size: cover;
  content: "";
  inset: 0;
  position: absolute;
  transform: scale(1.02);
  will-change: transform;
  z-index: 0;
}

@keyframes pageHeroZoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.1);
  }
}

.page-hero-inner {
  align-self: center;
  margin-inline: auto;
  max-width: var(--content-max);
  position: relative;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.42);
  transform: translateY(-4vh);
  width: 100%;
  z-index: 1;
}

.page-hero-inner h1 {
  font-size: clamp(2.15rem, min(3.45vw, 6.7vh), 3.7rem);
  line-height: 1.04;
  max-width: min(560px, 50%);
}

.page-hero-inner p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.98rem, min(1.05vw, 2.4vh), 1.05rem);
  line-height: 1.55;
  max-width: min(510px, 48%);
}

.services-page-hero {
  --page-image: url("../assets/cristian.jpg");
}

.legal-page-hero {
  --page-image: url("../assets/cristian.jpg");
}

.contact-page-hero {
  --page-image: url("../assets/cristian.jpg");
}

.section-heading {
  max-width: 820px;
}

.section-heading p:not(.eyebrow),
.split-copy p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.section-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.about-section {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  margin-inline: auto;
  max-width: var(--content-max);
  padding: 78px clamp(18px, 5vw, 72px) 36px;
}

.about-copy {
  max-width: 660px;
}

.about-copy p:not(.eyebrow),
.about-proof p {
  color: var(--muted);
  line-height: 1.7;
}

.about-proof {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-proof article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(7, 17, 31, 0.06);
  min-height: 190px;
  padding: 22px;
}

.about-proof span {
  color: #8b5d0e;
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.about-proof strong {
  color: var(--navy-900);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.detail-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(7, 17, 31, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 24px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.detail-card:hover {
  border-color: rgba(217, 173, 79, 0.45);
  box-shadow: 0 20px 44px rgba(7, 17, 31, 0.11);
  transform: translateY(-4px);
}

.detail-card span,
.timeline-list span {
  color: var(--gold-500);
  display: inline-block;
  font-weight: 900;
  margin-bottom: 22px;
}

.detail-card p,
.detail-card li,
.timeline-list p {
  color: var(--muted);
  line-height: 1.58;
}

.detail-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.card-link {
  align-self: flex-start;
  border-bottom: 2px solid rgba(217, 173, 79, 0.5);
  color: var(--navy-800);
  display: inline-flex;
  font-weight: 800;
  margin-top: auto;
  padding-top: 20px;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.card-link:hover {
  border-color: var(--gold-500);
  color: #8b5d0e;
  transform: translateX(2px);
}

.service-card,
.panel-card,
.integration-card,
.process-grid article,
.client-card,
.case-column {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(7, 17, 31, 0.06);
}

.panel-card,
.integration-card,
.client-card,
.case-column {
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.service-card {
  min-height: 245px;
  padding: 22px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.service-card:hover,
.process-grid article:hover,
.client-card:hover,
.case-column:hover,
.integration-card:hover {
  border-color: rgba(217, 173, 79, 0.45);
  box-shadow: 0 20px 44px rgba(7, 17, 31, 0.11);
  transform: translateY(-4px);
}

.service-icon {
  align-items: center;
  background: #f7edd7;
  border-radius: 8px;
  color: #8b5d0e;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  margin-bottom: 18px;
  width: 42px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.service-card:hover .service-icon {
  background: var(--navy-900);
  color: var(--gold-400);
  transform: scale(1.06);
}

.service-icon svg {
  height: 23px;
  width: 23px;
}

.service-card p,
.process-grid p,
.integration-card p,
.client-card p,
.case-card p {
  color: var(--muted);
  line-height: 1.55;
}

.service-card ul,
.check-list {
  color: #3d4858;
  line-height: 1.7;
  margin: 14px 0 0;
  padding-left: 20px;
}

.split-section {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: 0.9fr 1.1fr;
}

.image-placeholder.tall {
  min-height: 480px;
}

.legal-visual {
  align-items: end;
  background:
    linear-gradient(145deg, rgba(7, 17, 31, 0.2), rgba(7, 17, 31, 0.82)),
    url("../assets/cristian.jpg") center 38% / cover;
  border: 0;
  color: white;
  justify-content: start;
  overflow: hidden;
  position: relative;
  text-align: left;
}

.legal-visual::before {
  background: rgba(240, 199, 102, 0.18);
  content: "";
  inset: 18px;
  position: absolute;
}

.legal-visual div {
  max-width: 430px;
  padding: 28px;
  position: relative;
  z-index: 1;
}

.legal-visual span {
  color: var(--gold-400);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.legal-visual strong {
  display: block;
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 1.08;
}

.compact {
  padding-top: 38px;
}

.process-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.timeline-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.timeline-list article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(7, 17, 31, 0.06);
  padding: 22px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.timeline-list article:hover {
  border-color: rgba(217, 173, 79, 0.45);
  box-shadow: 0 20px 44px rgba(7, 17, 31, 0.11);
  transform: translateY(-4px);
}

.process-grid article {
  padding: 22px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.process-grid span {
  color: var(--gold-500);
  display: inline-block;
  font-weight: 900;
  margin-bottom: 26px;
}

.crm-shell {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: 244px minmax(0, 1fr);
  padding-top: 46px;
}

.crm-sidebar {
  background: var(--navy-950);
  border-radius: 8px 0 0 8px;
  color: rgba(255, 255, 255, 0.82);
  padding: 20px;
}

.crm-title {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 14px;
  padding-bottom: 18px;
}

.crm-title strong,
.crm-title span {
  display: block;
}

.crm-title span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.85rem;
  margin-top: 4px;
}

.nav-tab {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: block;
  margin: 4px 0;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.nav-tab.active {
  background: rgba(217, 173, 79, 0.18);
  color: white;
}

.crm-content {
  background: #f9fbfe;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  min-height: 760px;
  padding: 24px;
}

.crm-toolbar,
.panel-header,
.table-tools {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.crm-toolbar {
  margin-bottom: 22px;
  flex-wrap: wrap;
  min-width: 0;
}

.crm-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.crm-heading > div,
.crm-heading .eyebrow,
.crm-heading h2 {
  min-width: 0;
}

.crm-heading .eyebrow {
  margin: 0;
}

.crm-toolbar h2 {
  font-size: 1.65rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.icon-button {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy-800);
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.icon-button.is-enabled {
  background: #e9f7f1;
  border-color: rgba(28, 139, 97, 0.28);
  color: var(--success);
}

.crm-view {
  display: none;
}

.crm-view.active {
  display: block;
}

.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 18px;
}

.metric-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-card strong {
  display: block;
  font-size: 1.65rem;
  margin-top: 12px;
}

.workspace-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.panel-card {
  min-width: 0;
  padding: 18px;
}

.panel-header {
  margin-bottom: 14px;
}

.panel-header h3 {
  margin: 0;
}

.panel-header span {
  color: var(--muted);
  font-size: 0.9rem;
}

.pipeline-board {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.pipeline-column {
  background: #f3f6fa;
  border: 1px solid #e5ebf2;
  border-radius: 8px;
  min-height: 280px;
  min-width: 0;
  padding: 10px;
}

.pipeline-column h4 {
  color: #3d4858;
  font-size: 0.86rem;
  margin: 0 0 10px;
}

.lead-chip,
.task-item,
.case-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 12px;
}

.lead-chip {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 34px;
  width: 100%;
}

.lead-chip-main {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.lead-chip-main strong,
.task-item strong {
  display: block;
  margin-bottom: 5px;
}

.lead-chip-main span,
.task-item span,
.case-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.lead-chip-main em {
  color: #8b5d0e;
  display: block;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  margin-top: 7px;
}

.chip-delete-button {
  align-items: center;
  align-self: start;
  background: #fff7f7;
  border: 1px solid #f3d7d7;
  border-radius: 8px;
  color: #a33b3b;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.chip-delete-button:hover,
.chip-delete-button:focus-visible {
  background: #fdecec;
  border-color: #e7b9b9;
  color: #812525;
}

.chip-delete-button svg {
  height: 18px;
  width: 18px;
}

.task-delete-button {
  height: 42px;
  width: 42px;
}

.pipeline-more-button {
  background: white;
  border: 1px dashed #cfd9e7;
  border-radius: 8px;
  color: var(--navy-800);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  min-height: 38px;
  width: 100%;
}

.pipeline-more-button:hover,
.pipeline-more-button:focus-visible {
  background: #f9fbfe;
  border-color: var(--gold-500);
  color: var(--navy-950);
}

.task-list.expanded .task-item {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.table-tools {
  margin-bottom: 14px;
  min-width: 0;
}

.table-tools input,
.table-tools select,
.inline-form input,
.inline-form select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  min-width: 0;
  padding: 10px 12px;
}

.table-tools input {
  flex: 1;
  min-width: 220px;
}

.data-table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  border-collapse: collapse;
  min-width: 1060px;
  width: 100%;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #f5f7fb;
  color: #536174;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status-pill {
  border-radius: 99px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 9px;
}

.status-Nuevo {
  background: #eef5ff;
  color: #245c9e;
}

.status-Contactado,
.status-Cotizado,
.status-Esperando-documentos,
.status-Cotización-enviada,
.status-Pago-pendiente {
  background: #fff6df;
  color: #8b5d0e;
}

.status-Ganado,
.status-Activo,
.status-Completado,
.status-En-proceso,
.status-Entregado {
  background: #e9f7f1;
  color: #176b4d;
}

.status-Perdido,
.status-Urgente {
  background: #fdecec;
  color: #a33b3b;
}

.priority-pill {
  border-radius: 99px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 9px;
}

.priority-Normal {
  background: #eef2f7;
  color: #536174;
}

.priority-Urgente,
.priority-Falta-pago {
  background: #fdecec;
  color: #a33b3b;
}

.priority-Alto-valor {
  background: #e8f3ff;
  color: #245c9e;
}

.priority-Falta-documento {
  background: #fff6df;
  color: #8b5d0e;
}

.row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-item.is-due {
  border-color: rgba(163, 59, 59, 0.25);
}

.card-grid,
.integration-grid,
.case-board,
.template-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.client-card,
.integration-card,
.case-column,
.template-card {
  min-width: 0;
  padding: 18px;
}

.client-card strong {
  display: block;
  font-size: 1.05rem;
}

.client-meta {
  color: var(--muted);
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.case-column h3 {
  margin-bottom: 16px;
}

.case-card h4 {
  margin: 0 0 8px;
}

.template-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.template-card h3 {
  margin: 14px 0 8px;
}

.template-card p {
  color: var(--muted);
  line-height: 1.55;
}

.inline-form {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) 160px 190px auto;
  margin-bottom: 18px;
}

.integration-card code {
  background: #f3f6fa;
  border: 1px solid #e4eaf2;
  border-radius: 6px;
  display: inline-block;
  margin-top: 10px;
  padding: 7px 9px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-block: 34px;
}

.request-section {
  align-items: start;
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  margin-inline: auto;
  max-width: 1440px;
  padding: 78px clamp(18px, 5vw, 72px);
}

.request-copy {
  position: sticky;
  top: 108px;
}

.request-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.request-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.request-highlights span {
  background: #f7edd7;
  border: 1px solid rgba(217, 173, 79, 0.32);
  border-radius: 999px;
  color: #684405;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 8px 12px;
}

.request-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
}

.form-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-form label {
  color: #3d4858;
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 8px;
}

.request-form input,
.request-form select,
.request-form textarea {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 48px;
  padding: 12px 13px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.request-form textarea {
  line-height: 1.55;
  resize: vertical;
}

.request-form input:hover,
.request-form select:hover,
.request-form textarea:hover,
.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  background: white;
  border-color: rgba(217, 173, 79, 0.8);
  box-shadow: 0 0 0 4px rgba(217, 173, 79, 0.12);
}

.request-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 4px;
}

.request-status {
  color: var(--success);
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0;
  min-height: 22px;
}

.site-toast {
  background: var(--navy-950);
  border: 1px solid rgba(240, 199, 102, 0.32);
  border-radius: 8px;
  bottom: 24px;
  box-shadow: 0 18px 48px rgba(7, 17, 31, 0.22);
  color: white;
  font-weight: 800;
  left: 50%;
  max-width: min(520px, calc(100% - 32px));
  opacity: 0;
  padding: 14px 18px;
  position: fixed;
  text-align: center;
  transform: translate(-50%, 18px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 80;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-toast.error {
  background: #7f1d1d;
  border-color: rgba(255, 255, 255, 0.24);
}

.cta-band {
  align-items: center;
  background: var(--navy-950);
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 24px auto 72px;
  max-width: calc(var(--content-max) - clamp(36px, 10vw, 144px));
  padding: clamp(28px, 5vw, 54px);
}

.cta-band h2 {
  margin: 0;
  max-width: 780px;
}

.site-footer p {
  color: var(--muted);
  margin: 6px 0 0;
}

.site-footer a {
  color: var(--navy-800);
  font-weight: 800;
}

.footer-contact {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.modal {
  border: 0;
  border-radius: 8px;
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  max-width: 720px;
  overflow: auto;
  padding: 0;
  width: calc(100% - 32px);
}

.modal::backdrop {
  background: rgba(7, 17, 31, 0.55);
}

.modal-card {
  background: white;
  min-width: 0;
  padding: 22px;
}

.confirm-modal {
  max-width: 440px;
}

.password-modal {
  max-width: 460px;
}

.modal-subtext {
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
}

.confirm-card {
  display: grid;
  gap: 16px;
}

.confirm-icon {
  align-items: center;
  background: #fff7f7;
  border: 1px solid #f3d7d7;
  border-radius: 8px;
  color: #a33b3b;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.confirm-icon svg {
  height: 24px;
  width: 24px;
}

.confirm-copy h2 {
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.confirm-copy p:last-child {
  color: var(--muted);
  margin: 0;
}

.confirm-actions {
  margin-top: 2px;
}

.modal-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-header h2 {
  font-size: 1.45rem;
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label {
  color: #3d4858;
  display: grid;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 7px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 20px;
}

.detail-modal {
  max-width: 980px;
}

.lead-detail-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
}

.lead-summary {
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.lead-summary dl {
  display: grid;
  gap: 10px;
  margin: 4px 0;
}

.lead-summary div {
  border-bottom: 1px solid #e4eaf2;
  padding-bottom: 9px;
}

.lead-summary dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-summary dd {
  margin: 3px 0 0;
}

.timeline-listing {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.timeline-listing article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.timeline-listing p {
  color: var(--muted);
  line-height: 1.55;
  margin: 6px 0 0;
}

.compact-form {
  background: #f9fbfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

@media (max-width: 1100px) {
  .site-header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }

  .hero-section,
  .about-section,
  .split-section,
  .workspace-grid,
  .request-section {
    grid-template-columns: 1fr;
  }

  .request-copy {
    position: static;
  }

  .service-grid,
  .about-proof,
  .service-detail-grid,
  .process-grid,
  .timeline-list,
  .card-grid,
  .integration-grid,
  .case-board,
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-shell {
    grid-template-columns: 1fr;
  }

  .crm-sidebar {
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .crm-title {
    width: 100%;
  }

  .nav-tab {
    width: auto;
  }

  .crm-page .nav-tab {
    width: 100%;
  }

  .crm-content {
    border-left: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
  }
}

@media (max-width: 720px) {
  .header-actions {
    width: 100%;
  }

  .header-actions a {
    flex: 1;
  }

  .main-nav {
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-section {
    background-image: url("../assets/cristian_vertical.jpg");
    background-position: center top;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: 32px;
    padding-top: 92px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-inner,
  .page-hero-inner {
    transform: translateY(-2vh);
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 9.5vw, 3rem);
    line-height: 1.06;
  }

  .hero-text {
    max-width: 34rem;
  }

  .hero-actions,
  .trust-strip,
  .section-actions,
  .request-actions,
  .crm-toolbar,
  .table-tools,
  .site-footer,
  .footer-contact,
  .task-list.expanded .task-item {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-contact {
    text-align: left;
  }

  .trust-strip,
  .about-section,
  .about-proof,
  .form-row,
  .service-grid,
  .service-detail-grid,
  .metric-grid,
  .process-grid,
  .timeline-list,
  .card-grid,
  .integration-grid,
  .case-board,
  .template-grid,
  .lead-detail-layout,
  .pipeline-board,
  .form-grid,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .hero-section::after {
    background:
      linear-gradient(0deg, rgba(7, 17, 31, 0.68), rgba(7, 17, 31, 0.22)),
      linear-gradient(90deg, rgba(7, 17, 31, 0.68), rgba(7, 17, 31, 0.12));
  }

  .services-page-hero,
  .legal-page-hero,
  .contact-page-hero {
    --page-image: url("../assets/cristian_vertical.jpg");
  }

  .page-hero::before {
    background-position: center top;
  }

  .legal-visual {
    background:
      linear-gradient(145deg, rgba(7, 17, 31, 0.2), rgba(7, 17, 31, 0.82)),
      url("../assets/cristian_vertical.jpg") center top / cover;
  }

  .hero-copy {
    align-self: center;
  }

  .request-section {
    padding-block: 54px;
  }

  .crm-content {
    padding: 12px;
  }

  .toolbar-actions,
  .modal-actions {
    justify-content: stretch;
  }

  .crm-toolbar {
    gap: 12px;
    padding: 12px;
  }

  .crm-heading {
    align-items: center;
    gap: 10px;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .crm-heading .eyebrow {
    align-self: end;
    grid-column: 2;
    line-height: 1;
  }

  .crm-toolbar h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
    grid-column: 2;
    line-height: 1.05;
  }

  .crm-menu-toggle {
    grid-row: 1 / span 2;
  }

  .toolbar-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .toolbar-actions .user-pill {
    grid-column: 1 / -1;
    min-height: 40px;
  }

  .toolbar-actions .icon-button {
    height: 44px;
    width: 44px;
  }

  .toolbar-actions .primary-button {
    grid-column: 2;
  }

  .toolbar-actions .secondary-button {
    grid-column: 1 / -1;
  }

  .primary-button,
  .secondary-button,
  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .card-link {
    align-self: stretch;
    justify-content: center;
  }

  .metric-card,
  .panel-card,
  .client-card,
  .integration-card,
  .case-column,
  .template-card {
    padding: 14px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .pipeline-column {
    min-height: 0;
  }

  .table-tools input,
  .table-tools select {
    width: 100%;
  }

  .data-table-wrap {
    background: transparent;
    border: 0;
    overflow: visible;
  }

  .data-table {
    border-collapse: separate;
    border-spacing: 0 10px;
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(7, 17, 31, 0.04);
    overflow: hidden;
  }

  .data-table td {
    align-items: flex-start;
    border-bottom: 1px solid #edf1f6;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    padding: 11px 12px;
  }

  .data-table td:last-child {
    border-bottom: 0;
  }

  .data-table td::before {
    color: #536174;
    content: "";
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .data-table td:nth-child(1)::before {
    content: "Prospecto";
  }

  .data-table td:nth-child(2)::before {
    content: "Servicio";
  }

  .data-table td:nth-child(3)::before {
    content: "Estado";
  }

  .data-table td:nth-child(4)::before {
    content: "Prioridad";
  }

  .data-table td:nth-child(5)::before {
    content: "Valor";
  }

  .data-table td:nth-child(6)::before {
    content: "Responsable";
  }

  .data-table td:nth-child(7)::before {
    content: "Acciones";
  }

  .data-table .row-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .task-item,
  .task-list.expanded .task-item {
    align-items: stretch;
    display: grid;
    gap: 10px;
  }

  .row-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .client-meta {
    flex-direction: column;
    gap: 4px;
  }

  .page-hero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: 48px;
    padding-top: 112px;
  }

  .page-hero-inner h1,
  .page-hero-inner p:not(.eyebrow) {
    max-width: 100%;
  }

  .page-hero-inner h1 {
    font-size: clamp(2rem, 9.5vw, 3rem);
    line-height: 1.06;
  }

  .cta-band {
    align-items: stretch;
    flex-direction: column;
    margin-inline: 18px;
  }
}

@media (max-height: 820px) and (min-width: 721px) {
  .hero-section,
  .page-hero {
    padding-bottom: 24px;
    padding-top: 84px;
  }

  .hero-copy {
    max-width: min(560px, 50%);
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, min(3.25vw, 6.1vh), 3.25rem);
    line-height: 1.03;
  }

  .page-hero-inner h1 {
    font-size: clamp(2.05rem, min(3.2vw, 6vh), 3.25rem);
    line-height: 1.03;
    max-width: min(560px, 50%);
  }

  .hero-text,
  .page-hero-inner p:not(.eyebrow) {
    line-height: 1.52;
    max-width: 500px;
  }

  .hero-actions {
    margin-top: 2px;
  }

  .trust-strip {
    max-width: 560px;
  }
}

@media (max-height: 680px) and (min-width: 721px) {
  .hero-section,
  .page-hero {
    padding-top: 76px;
  }

  .hero-copy h1,
  .page-hero-inner h1 {
    font-size: clamp(1.9rem, min(3.15vw, 5.9vh), 3.05rem);
    margin-bottom: 12px;
  }

  .hero-text,
  .page-hero-inner p:not(.eyebrow) {
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .trust-strip {
    margin-top: 14px;
  }

  .trust-strip dt {
    margin-bottom: 3px;
  }
}

.crm-page .crm-content {
  border: 0;
  border-radius: 0;
}

.site-menu {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 24px;
  justify-content: flex-end;
}

.menu-toggle {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy-800);
  cursor: pointer;
  display: none;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 42px;
}

.menu-toggle span {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 2px;
  left: 11px;
  position: absolute;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
  width: 18px;
}

.menu-toggle span:nth-child(1) {
  top: 13px;
}

.menu-toggle span:nth-child(2) {
  top: 20px;
}

.menu-toggle span:nth-child(3) {
  top: 27px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.whatsapp-button {
  align-items: center;
  background: #1f9d63;
  border: 1px solid rgba(31, 157, 99, 0.28);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  width: 42px;
}

.site-header .whatsapp-button {
  display: none;
}

.whatsapp-button:hover {
  background: #178352;
  box-shadow: 0 14px 28px rgba(31, 157, 99, 0.24);
  transform: translateY(-1px);
}

.whatsapp-button svg,
.icon-link svg {
  height: 22px;
  width: 22px;
}

.whatsapp-button svg {
  stroke-width: 1.8;
}

.floating-whatsapp {
  align-items: center;
  border: 0;
  border-radius: 999px;
  bottom: max(20px, env(safe-area-inset-bottom));
  box-shadow: 0 18px 42px rgba(31, 157, 99, 0.32);
  display: inline-flex !important;
  height: 58px;
  justify-content: center;
  left: max(20px, env(safe-area-inset-left));
  position: fixed;
  width: 58px;
  z-index: 999;
}

.floating-whatsapp img {
  display: block;
  height: 32px;
  width: 32px;
}

.floating-whatsapp:hover {
  box-shadow: 0 22px 48px rgba(31, 157, 99, 0.38);
}

.icon-link {
  gap: 9px;
}

.icon-link svg {
  flex: 0 0 auto;
}

.site-header {
  box-shadow: 0 10px 30px rgba(7, 17, 31, 0.06);
}

@media (max-width: 1100px) {
  .site-header {
    padding-inline: 18px;
  }

  .site-header-inner {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-menu {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 52px rgba(7, 17, 31, 0.16);
    display: none;
    gap: 14px;
    grid-column: 1 / -1;
    padding: 14px;
  }

  .site-header.menu-open .site-menu {
    display: grid;
  }

  .site-menu .main-nav {
    color: #364256;
    display: grid;
    gap: 4px;
    order: initial;
    width: 100%;
  }

  .site-menu .main-nav a {
    border-radius: 8px;
    padding: 12px;
  }

  .site-menu .main-nav a:hover {
    background: #f5f7fb;
    color: var(--navy-800);
  }

  .site-menu .main-nav a[aria-current="page"] {
    background: #f7edd7;
    color: var(--navy-900);
    font-weight: 800;
  }

  .site-menu .main-nav a[aria-current="page"]::after {
    left: 12px;
    right: auto;
    width: 42px;
  }

  .site-menu .header-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    width: 100%;
  }

  .site-menu .honduras-time {
    background: #f5f7fb;
    border-color: var(--line);
    color: #364256;
  }

  .site-menu .ghost-link {
    background: #ffffff;
    border-color: var(--line);
    color: var(--navy-800);
    width: auto;
  }
}

@media (max-width: 520px) {
  .site-menu .header-actions {
    justify-content: stretch;
  }

  .site-menu .honduras-time {
    justify-content: center;
    width: 100%;
  }

  .site-menu .whatsapp-button {
    width: 100%;
  }
}

@media (max-width: 1280px) {
  .crm-app {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .app-content {
    padding: 22px;
  }

  .toolbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 960px) {
  .crm-page .crm-app {
    grid-template-columns: 1fr;
    position: relative;
  }

  .crm-page .crm-sidebar {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 54px rgba(7, 17, 31, 0.16);
    color: var(--navy-800);
    left: 18px;
    margin: 0;
    max-height: calc(100svh - 92px);
    min-height: 0;
    overflow-y: auto;
    opacity: 0;
    padding: 10px;
    pointer-events: none;
    position: fixed;
    right: 18px;
    top: 82px;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    visibility: hidden;
    z-index: 20;
  }

  .crm-page .crm-content {
    border: 0;
    border-radius: 0;
    max-width: 100%;
    padding-top: 18px;
    width: 100%;
  }

  .crm-toolbar {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(7, 17, 31, 0.06);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
    padding: 74px 12px 12px;
  }

  .crm-heading {
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, auto) minmax(0, 1fr);
    left: 0;
    margin: 0;
    padding: 10px clamp(12px, 4vw, 24px);
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 15;
  }

  .crm-heading .eyebrow {
    grid-column: auto;
    white-space: nowrap;
  }

  .crm-toolbar h2 {
    grid-column: auto;
    line-height: 1.16;
    white-space: nowrap;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px minmax(150px, auto) minmax(88px, auto);
    width: 100%;
  }

  .toolbar-actions .user-pill,
  .toolbar-actions .primary-button,
  .toolbar-actions .secondary-button {
    width: auto;
  }

  .toolbar-actions .user-pill {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .crm-menu-toggle {
    display: inline-flex !important;
    flex: 0 0 auto;
    height: 44px;
    position: relative;
    width: 44px;
  }

  .crm-menu-toggle span {
    background: currentColor;
    border-radius: 999px;
    display: block;
    height: 2px;
    left: 12px;
    position: absolute;
    transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
    width: 20px;
  }

  .crm-menu-toggle span:nth-child(1) {
    top: 14px;
  }

  .crm-menu-toggle span:nth-child(2) {
    top: 21px;
  }

  .crm-menu-toggle span:nth-child(3) {
    top: 28px;
  }

  .crm-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }

  .crm-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .crm-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }

  .crm-app.crm-nav-open .crm-menu-toggle {
    background: var(--navy-950);
    border-color: var(--navy-950);
    color: white;
  }

  .crm-page .app-sidebar {
    display: block;
    min-height: 0;
  }

  .crm-page .crm-app.crm-nav-open .app-sidebar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .crm-page .app-sidebar .crm-title {
    display: none;
  }

  .crm-page .nav-tab {
    color: #2d394b;
    margin: 2px 0;
    padding: 11px 12px;
    width: 100%;
  }

  .crm-page .nav-tab.active {
    background: #f7edd7;
    color: var(--navy-950);
    font-weight: 800;
  }

  .crm-page .nav-link {
    color: #2d394b;
    margin-top: 2px;
  }

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

  .pipeline-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inline-form {
    grid-template-columns: minmax(0, 1fr) minmax(145px, 0.6fr);
  }
}

@media (max-width: 720px) {
  .contact-section {
    grid-template-columns: 1fr;
    margin-inline: 18px;
  }

  .contact-actions {
    min-width: 0;
  }

  .crm-page .ghost-link,
  .crm-page .user-pill {
    justify-content: center;
    width: 100%;
  }

  .crm-page .toolbar-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-page .toolbar-actions .user-pill {
    grid-column: 1 / -1;
    min-height: 38px;
  }

  .crm-page .toolbar-actions .icon-button,
  .crm-page .toolbar-actions .primary-button,
  .crm-page .toolbar-actions .secondary-button {
    grid-column: auto;
    min-height: 40px;
    width: 100%;
  }

  .crm-page .toolbar-actions .icon-button {
    height: 40px;
  }

  .crm-page .app-content {
    padding: 12px;
  }

  .crm-page .crm-sidebar {
    left: 12px;
    right: 12px;
    top: 78px;
  }

  .crm-page .crm-toolbar {
    gap: 12px;
    padding: 74px 12px 12px;
  }

  .crm-page .crm-heading {
    align-items: center;
    gap: 10px;
    grid-template-columns: 44px auto minmax(0, 1fr);
  }

  .crm-page .crm-heading .eyebrow {
    align-self: center;
    grid-column: auto;
    line-height: 1;
    white-space: nowrap;
  }

  .crm-page .crm-toolbar h2 {
    font-size: clamp(1.08rem, 5vw, 1.36rem);
    grid-column: auto;
    line-height: 1.16;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .crm-page .crm-menu-toggle {
    grid-row: auto;
  }

  .crm-page .toolbar-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .crm-page .toolbar-actions .user-pill {
    grid-column: 1 / -1;
    min-height: 40px;
    width: 100%;
  }

  .crm-page .toolbar-actions .icon-button {
    height: 40px;
    width: 100%;
  }

  .crm-page .toolbar-actions .primary-button {
    grid-column: auto;
    width: 100%;
  }

  .crm-page .toolbar-actions .secondary-button {
    grid-column: auto;
    width: 100%;
  }

  .crm-page .metric-grid,
  .crm-page .workspace-grid,
  .crm-page .pipeline-board,
  .crm-page .card-grid,
  .crm-page .integration-grid,
  .crm-page .case-board,
  .crm-page .template-grid,
  .crm-page .lead-detail-layout,
  .crm-page .form-grid,
  .crm-page .inline-form {
    grid-template-columns: 1fr;
  }

  .crm-page .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-page .table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .crm-page .table-tools input,
  .crm-page .table-tools select {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .crm-page .app-content {
    padding: 10px;
  }

  .crm-page .crm-toolbar {
    padding: 72px 10px 10px;
  }

  .crm-page .toolbar-actions {
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-page .toolbar-actions .user-pill {
    grid-column: 1 / -1;
    width: 100%;
  }

  .crm-page .toolbar-actions .icon-button,
  .crm-page .toolbar-actions .primary-button,
  .crm-page .toolbar-actions .secondary-button {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  .crm-page .toolbar-actions .primary-button,
  .crm-page .toolbar-actions .secondary-button {
    font-size: 0.9rem;
    padding-inline: 10px;
  }

  .crm-page .data-table td {
    grid-template-columns: 1fr;
  }

  .crm-page .metric-grid {
    gap: 10px;
  }

  .crm-page .metric-card {
    padding: 12px;
  }

  .crm-page .metric-card span {
    font-size: 0.76rem;
  }

  .crm-page .metric-card strong {
    font-size: 1.38rem;
    margin-top: 8px;
  }

  .crm-page .modal {
    width: calc(100% - 18px);
  }

  .crm-page .modal-card {
    padding: 16px;
  }

  .crm-page .modal-header {
    gap: 12px;
  }

  .floating-whatsapp {
    bottom: max(14px, env(safe-area-inset-bottom));
    height: 52px;
    left: max(14px, env(safe-area-inset-left));
    width: 52px;
  }

  .floating-whatsapp img {
    height: 29px;
    width: 29px;
  }
}
