.account {
  max-width: 1380px;
  padding-top: 30px;
}

.gastos {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 80px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 1px solid var(--line);
}

.gastos-copy h2 {
  max-width: 620px;
}

.gastos-copy > p:not(.eyebrow):not(.gastos-status) {
  max-width: 530px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.gastos-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 25px 0 0;
  color: #4f6759;
  font-size: 13px;
  line-height: 1.55;
}

.gastos-status span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid #aac4b3;
  border-radius: 50%;
  color: var(--forest);
  font-size: 13px;
}

.gastos-flow {
  background: var(--stone);
  border: 1px solid #d7e2da;
  padding: 30px;
}

.gastos-flow > p {
  margin: 0 0 20px;
  color: var(--clay);
  font: 500 11px DM Mono, monospace;
  letter-spacing: 1.3px;
}

.gastos-flow ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gastos-flow li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 3px 13px;
  padding: 20px 0;
  border-top: 1px solid #c9d7cd;
}

.gastos-flow li b {
  grid-row: 1 / 3;
  padding-top: 2px;
  color: var(--forest);
  font: 500 11px DM Mono, monospace;
}

.gastos-flow li span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.gastos-flow li small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(39, 37, 33, .04);
}

section[id] {
  scroll-margin-top: 92px;
}

.site-header {
  justify-content: space-between;
}

.header-actions {
  display: none;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(251, 250, 246, .9);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 1px;
  background: var(--forest);
  transition: transform .2s ease;
}

body.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.site-header nav {
  position: absolute;
  top: 100%;
  right: max(28px, calc((100vw - 1440px) / 2));
  width: 360px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 12px 18px 20px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: 0 18px 36px rgba(39, 37, 33, .12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

body.menu-open .site-header nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.site-header nav > a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.mobile-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 16px;
}

.mobile-auth button {
  min-height: 44px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-login {
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--forest);
}

.mobile-create {
  color: white;
  background: var(--clay);
  border: 1px solid var(--clay);
}

/* Maqueta del producto dentro de una laptop genérica, sin marca. */
.workspace-preview {
  justify-content: center;
  transform: perspective(1200px) rotateY(-5deg) rotateX(1.2deg) rotateZ(-.35deg) translateY(-9px);
  transform-origin: center center;
}

.workspace-preview .paper-stack {
  display: none;
}

.workspace-preview .screen {
  width: calc(100% - 34px);
  border: 9px solid #353834;
  border-bottom-width: 12px;
  border-radius: 14px 14px 8px 8px;
  box-shadow: 0 22px 38px rgba(57, 51, 42, .22);
}

.workspace-preview .screen::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #747771;
  transform: translateX(-50%);
  z-index: 4;
}

.workspace-preview .laptop-base {
  left: 0;
  bottom: 11px;
  width: 100%;
  height: 24px;
  background: linear-gradient(180deg, #d7d6d0 0 42%, #aaa9a3 44% 75%, #777873 100%);
  clip-path: polygon(3% 0, 97% 0, 100% 62%, 61% 100%, 39% 100%, 0 62%);
  box-shadow: 0 9px 14px rgba(51, 48, 42, .2);
}

.workspace-preview .laptop-base::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 43%;
  width: 14%;
  height: 5px;
  border-radius: 0 0 5px 5px;
  background: #969792;
}

.account-intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: end;
  padding-bottom: 48px;
}

.account-summary {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}

.account-summary p {
  color: #555750;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 20px;
}

.account-summary span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.account-grid article {
  min-height: 240px;
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.account-grid article > b {
  color: var(--clay);
  font: 500 8px DM Mono, monospace;
}

.account-grid article > span {
  width: 38px;
  height: 38px;
  margin: 37px 0 23px;
  display: grid;
  place-items: center;
  border: 1px solid #bac6bf;
  border-radius: 50%;
  color: var(--forest);
  font-size: 15px;
}

.account-grid h3 {
  font: 500 21px var(--serif);
  margin: 0 0 9px;
}

.account-grid p {
  max-width: 240px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.account-grid .account-gastos {
  grid-column: 2 / span 2;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0 20px;
  min-height: 172px;
  align-content: center;
  background: var(--stone);
  border-left: 1px solid var(--line);
}

.account-grid .account-gastos > b {
  grid-row: 1 / 3;
}

.account-grid .account-gastos > span {
  grid-row: 1 / 3;
  grid-column: 1;
  align-self: center;
  margin: 0;
}

.account-gastos > div {
  grid-column: 2;
}

.account-gastos .account-module-label {
  margin: 0 0 7px;
  color: var(--clay);
  font: 500 10px DM Mono, monospace;
  letter-spacing: 1.2px;
}

.account-gastos h3 {
  font-size: 26px;
}

.account-gastos p:last-child {
  max-width: 420px;
  font-size: 12px;
}

.plan .price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.plan .price > span {
  font: 600 .68em var(--sans);
  margin-right: 1px;
}

.plan .price small {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-left: 4px;
}

.plan .price em {
  color: var(--clay);
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.chat-launcher {
  right: 29px;
  bottom: 29px;
  width: 60px;
  height: 60px;
  background: rgba(23, 63, 53, .78);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 18px 45px rgba(23, 63, 53, .32), 0 5px 14px rgba(23, 63, 53, .18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  font: 500 30px/1 var(--serif);
}

.chat-launcher:hover {
  transform: translateY(-5px);
  background: rgba(23, 63, 53, .86);
  box-shadow: 0 24px 55px rgba(23, 63, 53, .36), 0 8px 18px rgba(23, 63, 53, .2);
}

.chat-launcher > span {
  display: block;
  transform: translateY(-1px);
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  color: var(--forest);
  font-size: 10px;
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (max-width: 1000px) {

  .gastos {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .account-grid .account-gastos { grid-column: span 2; }
  .account-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .site-header {
    padding: env(safe-area-inset-top, 0) 18px 0;
    height: calc(68px + env(safe-area-inset-top, 0px));
    justify-content: space-between;
  }

  .site-header .brand {
    flex: 0 1 auto;
  }

  .site-header .brand img {
    width: 36px;
    height: 40px;
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(251, 250, 246, .86);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 18px;
    height: 1px;
    background: var(--forest);
    transition: transform .2s ease;
  }

  body.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  body.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px 18px 20px;
    background: #fbfaf6;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(39, 37, 33, .12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  body.menu-open .site-header nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-header nav > a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .mobile-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 16px;
  }

  .mobile-auth button {
    min-height: 44px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-login {
    color: var(--forest);
    background: transparent;
    border: 1px solid var(--forest);
  }

  .mobile-create {
    color: white;
    background: var(--clay);
    border: 1px solid var(--clay);
  }

  body.menu-open {
    overflow: hidden;
  }

  .workspace-preview {
    overflow: hidden;
    height: 326px;
    align-items: flex-start;
    padding-top: 12px;
    transform: perspective(900px) rotateY(-3deg) rotateX(1deg) rotateZ(-.25deg) translateY(-6px);
  }

  .workspace-preview .paper-stack {
    display: none;
  }

  .workspace-preview .screen {
    width: 100%;
    height: 278px;
    grid-template-columns: 86px minmax(0, 1fr);
    border: 7px solid #353834;
    border-bottom-width: 10px;
    border-radius: 12px 12px 7px 7px;
    box-shadow: 0 20px 32px rgba(57, 51, 42, .22);
  }

  .workspace-preview .screen::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #747771;
    transform: translateX(-50%);
    z-index: 4;
  }

  .workspace-preview .screen-menu,
  .workspace-preview .screen-content {
    min-height: 100%;
  }

  .workspace-preview .screen-content {
    align-self: stretch;
  }

  .workspace-preview .laptop-base {
    left: 0;
    bottom: 17px;
    width: 100%;
    height: 22px;
    background: linear-gradient(180deg, #d7d6d0 0 42%, #aaa9a3 44% 75%, #777873 100%);
    clip-path: polygon(3% 0, 97% 0, 100% 62%, 61% 100%, 39% 100%, 0 62%);
    box-shadow: 0 8px 13px rgba(51, 48, 42, .2);
  }

  .workspace-preview .laptop-base::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 43%;
    width: 14%;
    height: 4px;
    border-radius: 0 0 5px 5px;
    background: #9a9b96;
  }

  .account { padding-top: 20px; }
  .account-intro { grid-template-columns: 1fr; gap: 28px; }
  .account-summary { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .account-grid { grid-template-columns: 1fr; }
  .account-grid article { min-height: 205px; }
  .account-grid article > span { margin: 28px 0 20px; }
  .account-grid .account-gastos { grid-column: auto; min-height: 170px; }
  .plan .price { flex-wrap: wrap; }
  .chat-launcher { right: 20px; bottom: 20px; width: 57px; height: 57px; font-size: 29px; }
  .footer-legal { flex-direction: column; gap: 9px; margin: 18px 0; }
}

/* Refinamiento visual: una presencia editorial y sobria, sin cambiar la marca. */
.site-header {
  height: 72px;
  background: rgba(250, 248, 243, .94);
  box-shadow: 0 1px 0 rgba(28, 27, 24, .06);
}

.bento {
  max-width: 1280px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-rows: minmax(470px, 35vw);
  gap: 48px;
  padding: 52px 54px 72px;
  align-items: center;
}

.bento .cell.hero-cell {
  grid-row: auto;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.hero-cell h1 {
  max-width: 620px;
  font-size: clamp(48px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -2.6px;
}

.hero-description {
  max-width: 510px;
  margin: 28px 0 0;
  color: #4f544e;
  font-size: 17px;
  line-height: 1.65;
}

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

.hero-visual {
  min-height: 470px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d9ded8;
  border-radius: 4px;
  background: var(--stone);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.trust-bar {
  max-width: 1280px;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-bar article { padding: 28px 24px; }
.trust-bar h2 { font-size: 19px; }
.trust-bar p { font-size: 13px; line-height: 1.55; }

.section { padding-top: 104px; padding-bottom: 104px; }
.section-heading > p:last-child { font-size: 16px; line-height: 1.7; }

.feature-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  margin-top: 52px;
  border: 0;
}

.feature {
  min-height: 230px;
  padding: 32px;
  border: 1px solid var(--line) !important;
  border-radius: 4px;
  background: #fff;
}

.feature:first-child {
  grid-row: span 2;
  min-height: 476px;
  padding: 42px;
  background: var(--stone);
}

.feature > span { display: none; }
.line-icon { margin: 0 0 74px; }
.feature:not(:first-child) .line-icon { float: right; margin: 0 0 28px 28px; }
.feature h3 { font-size: 27px; }
.feature p { font-size: 14px; line-height: 1.7; }

.account-intro { gap: 64px; }
.account-summary p { font-size: 16px; line-height: 1.7; }
.account-summary span { font-size: 13px; line-height: 1.65; }
.account-grid article { min-height: 252px; padding: 30px; }
.account-grid article > b { font-size: 10px; }
.account-grid article > span { margin: 34px 0 26px; }
.account-grid h3 { font-size: 23px; }
.account-grid p { font-size: 13px; line-height: 1.65; }

.security-copy > p:last-child { font-size: 16px; line-height: 1.7; }
.security-list small { font-size: 13px; line-height: 1.5; }

.plan > p, .closing-card-label { font-size: 10px; }
.plan > span { font-size: 13px; }
.plan button { min-height: 42px; font-size: 12px; }

.closing-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.7; }
.closing-card li b { font-size: 13px; }
.closing-card li small { font-size: 11px; }

@media (min-width: 1001px) {
  .site-header nav {
    position: static;
    display: flex;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-header nav > a { padding: 0; border: 0; font-size: 12px; }
  .mobile-auth, .menu-toggle, .header-actions .text-button { display: none; }
  .header-actions { display: flex; }
}

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 36px;
  }

  .hero-visual { height: 390px; min-height: 0; }
  .hero-visual img { height: 390px; }
  .feature-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .feature:first-child { grid-row: auto; grid-column: span 2; min-height: 300px; }
  .feature:not(:first-child) .line-icon { float: none; margin: 0 0 34px; }
}

@media (max-width: 680px) {
  .bento { display: block; padding: 34px 22px 58px; }
  .hero-cell h1 { font-size: clamp(42px, 12vw, 54px); letter-spacing: -2px; }
  .hero-description { font-size: 16px; }
  .hero-visual { height: 295px; min-height: 0; margin-top: 40px; }
  .hero-visual img { height: 295px; }
  .trust-bar h2 { font-size: 18px; }
  .trust-bar p { font-size: 13px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature:first-child { grid-column: auto; min-height: 280px; padding: 30px; }
  .feature { min-height: 220px; padding: 28px; }
  .line-icon { margin-bottom: 42px; }
  .feature:not(:first-child) .line-icon { margin-bottom: 34px; }
  .account-grid article { min-height: 225px; padding: 26px; }
  .account-summary p, .security-copy > p:last-child, .closing-copy > p:not(.eyebrow) { font-size: 15px; }
}
