/* Variante de portada. Reutiliza las fuentes, la paleta y el tema de site_nuevo.css.
   Sus reglas no modifican las otras portadas ni las páginas de las herramientas. */

.home-v2 [hidden] {
  display: none !important;
}

.home-v2 .header-inner {
  /* Con letra grande, la fila puede necesitar más ancho que el máximo de .wrap. */
  min-width: min(100%, 60rem);
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav actions";
  gap: 24px;
}

.home-v2 .site-nav {
  justify-self: center;
}

.home-v2 .site-nav ul {
  gap: 4px 24px;
}

.home-v2 .site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
}

.home-v2 .header-code,
.home-v2 .theme-toggle {
  min-height: 44px;
  border-color: var(--rule);
  background: transparent;
  color: var(--ink);
}

.home-v2 .header-code {
  gap: 8px;
  border: 0;
  padding-inline: 4px;
}

.home-v2 .theme-toggle {
  width: 44px;
}

.home-v2 .header-code:hover,
.home-v2 .theme-toggle:hover {
  background: var(--tint);
  color: var(--ink);
}

.home-v2 .btn {
  gap: 10px;
  min-height: 52px;
}

.v2-hero {
  padding-block: clamp(32px, 4.7vw, 68px) clamp(40px, 5vw, 72px);
}

.v2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
}

.v2-hero-copy {
  container-type: inline-size;
}

.v2-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.v2-mark {
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--oro);
  box-shadow: 4px -4px 0 var(--cielo);
}

.v2-title {
  margin: 0 0 24px;
  font-stretch: 116%;
  font-size: clamp(1.75rem, 3.65vw, 3.875rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

@supports (font-size: 1cqi) {
  .v2-title {
    font-size: clamp(1.625rem, 10.1cqi, 3.875rem);
  }
}

.v2-title span {
  display: block;
  white-space: nowrap;
}

.v2-title span:last-child {
  color: var(--azul);
}

.v2-lead {
  max-width: 38ch;
  margin-bottom: 28px;
  font-size: clamp(1.125rem, 1rem + 0.3vw, 1.3rem);
  line-height: 1.55;
}

.v2-hero-actions {
  display: grid;
  align-items: center;
  justify-items: start;
  gap: 8px 22px;
  margin-bottom: 24px;
}

@container (min-width: 25rem) {
  .v2-hero-actions {
    grid-template-columns: auto 1fr;
  }

  .v2-hero-actions > .v2-text-link {
    grid-area: 1 / 2;
  }
}

.v2-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.v2-text-link:hover {
  text-decoration: underline;
}

.v2-text-link > span,
.home-v2 .btn > svg,
.home-v2 .btn > span {
  flex: none;
}

.v2-availability {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.v2-availability > span {
  margin-inline: 4px;
}

.v2-quick-needs {
  border-left: 2px solid var(--oro);
  padding-left: 14px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.v2-quick-needs p {
  margin: 0;
}

.v2-independent {
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: 0.8125rem;
}

/* Controles y explicación a la izquierda; la captura conserva su proporción.
   Sin JS se muestran la primera explicación y su captura. */
.v2-app-showcase {
  border-top: 1px solid var(--rule);
  background: var(--panel);
}

.v2-app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.35fr);
  align-items: start;
  gap: clamp(32px, 4vw, 56px);
}

.v2-app-copy,
.v2-preview {
  min-width: 0;
}

.v2-app-copy h2 {
  margin-bottom: 28px;
  font-size: clamp(1.875rem, 2.5vw, 2.5rem);
}

.v2-app-descriptions {
  margin-top: 24px;
}

.v2-app-descriptions h3 {
  margin-bottom: 10px;
  font-size: 1.1875rem;
}

.v2-app-descriptions p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

.v2-app-descriptions .v2-text-link {
  margin-top: 18px;
}

.v2-app-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.875rem;
  font-weight: 700;
}

.v2-preview-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 7px;
}

.v2-preview-tabs button {
  min-height: 44px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-2);
  font: 600 0.875rem/1.3 var(--font-body);
  cursor: pointer;
}

.v2-preview-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
}

.v2-preview-tabs button:hover:not([aria-selected="true"]) {
  background: var(--tint);
  color: var(--ink);
}

.v2-preview-panel {
  margin: 0;
}

.v2-preview-stage {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 22px 50px -28px rgba(20, 48, 95, 0.35);
}

.v2-preview-stage picture,
.v2-preview-stage img {
  display: block;
  width: 100%;
  height: auto;
}

.v2-preview-panel figcaption {
  padding: 15px 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.v2-preview-note {
  margin: 5px 0 0;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.v2-preview-note a {
  display: inline-block;
  margin-left: 3px;
}

.v2-requirements {
  padding-block: 32px;
  border-block: 1px solid var(--rule);
  background: var(--panel-2);
}

.v2-requirements-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.v2-requirements .v2-eyebrow {
  margin-bottom: 8px;
}

.v2-requirements h2 {
  font-size: 1.75rem;
  margin-bottom: 6px;
}

.v2-requirements .v2-text-link {
  font-size: 0.875rem;
}

.v2-requirement {
  position: relative;
  padding-left: 44px;
}

.v2-line-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 27px;
  height: 27px;
  color: var(--azul);
}

.v2-requirement h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.v2-requirement p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.5;
}

.v2-section {
  padding-block: clamp(48px, 6.5vw, 88px);
}

.v2-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px 48px;
  margin-bottom: 38px;
}

.v2-section-heading h2 {
  margin: 0;
}

.v2-section-heading > p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
}

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

.v2-workflow {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}

.v2-workflow-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.v2-workflow-heading h3 {
  margin: 0;
  font-size: 1.5rem;
}

.v2-workflow-number {
  color: var(--azul);
  font: 700 1rem/1 var(--font-mono);
}

.v2-steps {
  display: grid;
  gap: 20px;
  margin: 0 0 16px;
  padding-left: 25px;
  font-size: 1rem;
}

.v2-steps li {
  margin: 0;
  padding-left: 8px;
}

.v2-steps li::marker {
  color: var(--ink-2);
  font-size: 0.875rem;
}

.v2-steps strong,
.v2-steps span {
  display: block;
}

.v2-steps span {
  color: var(--ink-2);
}

/* Privacidad y confianza: texto crema sobre azul, con enlaces dorados. */
.v2-trust {
  background: #14305f;
  color: #f6f1e6;
  padding-block: clamp(44px, 5vw, 72px);
  --link: #f2ca66;
  --focus: #f2ca66;
}

.v2-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}

.v2-trust h2,
.v2-trust h3 {
  color: inherit;
}

.v2-trust h2 {
  font-size: clamp(1.875rem, 1.4rem + 1vw, 2.625rem);
}

.v2-trust-intro {
  container-type: inline-size;
}

@supports (font-size: 1cqi) {
  .v2-trust h2 {
    font-size: clamp(1.625rem, 9cqi, 2.75rem);
  }
}

.v2-trust .v2-eyebrow {
  color: #c2cee3;
}

.v2-trust-story {
  max-width: 38ch;
}

.v2-trust-story p {
  margin: 0 0 12px;
  color: #dbe3ef;
  font-size: 1.0625rem;
}

.v2-hero-art {
  width: 100%;
  max-width: 520px;
  min-width: 0;
  justify-self: center;
  color: var(--ink);
}

.v2-hero-art > svg {
  display: block;
  width: 100%;
  height: auto;
}

/* La composición original ocupa la primera pantalla. El papel del documento
   conserva sus colores; la línea de apoyo y el halo acompañan al tema del sitio. */
.v2-hero-art .b-sky { fill: #4b78af; }
.v2-hero-art .b-gold { fill: #f0b315; }
.v2-hero-art .b-deep { fill: #2e496a; }
.v2-hero-art .paper { fill: #fafaee; }
.v2-hero-art .outline { fill: none; stroke: #2e496a; stroke-width: 4.5; stroke-linejoin: round; }
.v2-hero-art .doc .outline { fill: #fafaee; }
.v2-hero-art .fill-sky { fill: #4b78af; }
.v2-hero-art .fill-gold { fill: #f0b315; }
.v2-hero-art .fill-ink { fill: #2e496a; }
.v2-hero-art .chip { fill: #f0b315; stroke: #2e496a; stroke-width: 3; }
.v2-hero-art .chip-lines { fill: none; stroke: #2e496a; stroke-width: 2.5; }
.v2-hero-art .fold { fill: #4b78af; stroke: #2e496a; stroke-width: 3.5; stroke-linejoin: round; }
.v2-hero-art .shackle { fill: none; stroke: #2e496a; stroke-width: 5; }
.v2-hero-art .lock { fill: #4b78af; stroke: #2e496a; stroke-width: 4; }
.v2-hero-art .ground { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.v2-hero-art .halo-color { flood-color: var(--paper); }

/* La versión estática es la base: también se ve completa sin JS o sin observer. */
.v2-hero-art .signature {
  fill: none;
  stroke: #2e496a;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .v2-hero-art[data-signature="waiting"] .signature {
    stroke-dashoffset: 1.02;
  }

  .v2-hero-art[data-signature="drawn"] .signature {
    animation: v2-signature-draw 1.6s cubic-bezier(0.55, 0.05, 0.35, 1) 0.25s both;
  }
}

@keyframes v2-signature-draw {
  from { stroke-dashoffset: 1.02; }
  to { stroke-dashoffset: 0; }
}

.v2-trust-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.v2-trust-points li {
  display: flex;
  gap: 18px;
  margin: 0;
  padding-block: 22px;
  border-bottom: 1px solid rgba(246, 241, 230, 0.22);
}

.v2-trust-points li:first-child {
  padding-top: 0;
}

.v2-trust-points li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.v2-trust-symbol {
  flex: 0 0 25px;
  color: #f2ca66;
}

.v2-trust-symbol svg {
  display: block;
  width: 25px;
  height: 25px;
}

.v2-trust-points h3 {
  margin-bottom: 7px;
  font-size: 1.125rem;
}

.v2-trust-points p {
  margin: 0;
  color: #dbe3ef;
  font-size: 1rem;
  line-height: 1.5;
}

.v2-trust a:hover {
  color: #fff5dc;
}

.v2-principles {
  border-bottom: 1px solid var(--rule);
}

.v2-principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.35fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}

.v2-principles h2 {
  margin: 0;
}

.v2-principles-copy {
  max-width: 68ch;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.15vw, 1.1875rem);
  line-height: 1.65;
}

.v2-principles-copy p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 600;
}

.v2-integrations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v2-integrations li {
  min-width: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.v2-integrations a {
  display: block;
  position: relative;
  height: 100%;
  padding: 26px 40px 28px 0;
  color: var(--ink);
  text-decoration: none;
}

.v2-integration-label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.v2-integrations h3 {
  font-size: 1.375rem;
}

.v2-integrations p {
  max-width: 43ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.5;
}

.v2-integration-arrow {
  position: absolute;
  right: 0;
  top: 44px;
  color: var(--azul);
  font-size: 1.5rem;
}

.v2-integrations a:hover h3 {
  color: var(--azul);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.v2-download {
  padding-block: clamp(44px, 6vw, 80px);
  border-block: 1px solid var(--rule);
  background: var(--panel-2);
}

.v2-download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
}

.v2-download h2 {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
}

.v2-download-grid > div > p:not(.v2-eyebrow) {
  max-width: 44ch;
  margin-bottom: 24px;
  font-size: 1rem;
}

.v2-install-link {
  margin-top: 10px;
  font-size: 0.9375rem;
}

.v2-faq h3 {
  margin-bottom: 22px;
}

.v2-faq details {
  border-top: 1px solid var(--rule);
}

.v2-faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.v2-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding-block: 16px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.v2-faq summary::-webkit-details-marker {
  display: none;
}

.v2-faq summary span {
  flex: none;
  color: var(--azul);
  font-size: 1.375rem;
  font-weight: 400;
}

.v2-faq details[open] summary span {
  transform: rotate(45deg);
}

.v2-faq details p {
  margin: 0;
  padding-bottom: 20px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

.v2-footer {
  padding-block: 48px 24px;
}

.v2-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px 64px;
  padding-bottom: 32px;
}

.v2-footer-top p {
  margin: 18px 0 0;
  max-width: 48ch;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.v2-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  align-content: start;
}

.v2-footer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  text-decoration: none;
}

.v2-footer-links a:hover {
  text-decoration: underline;
}

.v2-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.v2-footer-bottom p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.8125rem;
}

/* Los créditos se consultan en la portada. El detalle se despliega por persona. */
.v2-credit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0 48px;
}

.v2-credit-person {
  min-width: 0;
  border-top: 1px solid var(--rule);
}

.v2-credit-person summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 108px;
  padding-block: 20px;
  list-style: none;
  cursor: pointer;
}

.v2-credit-person summary::-webkit-details-marker {
  display: none;
}

.v2-credit-person summary > span:first-child {
  min-width: 0;
}

.v2-credit-person summary strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.35;
}

.v2-credit-person summary > span:first-child > span {
  display: block;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.4;
}

.v2-credit-person summary > span:last-child {
  flex: none;
  color: var(--azul);
  font-size: 1.375rem;
}

.v2-credit-person[open] summary > span:last-child {
  transform: rotate(45deg);
}

.v2-credit-person summary:hover strong {
  color: var(--azul);
}

.v2-credit-bio {
  padding-bottom: 24px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

.v2-credit-bio > :last-child {
  margin-bottom: 0;
}

.v2-credit-community {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 0.875rem;
  text-wrap: balance;
}

.v2-credit-community img {
  display: block;
  width: 4rem;
  height: auto;
}

.v2-credit-join {
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .home-v2 .header-inner {
    gap: 14px;
  }

  .home-v2 .site-nav ul {
    gap: 4px 16px;
  }

  .home-v2 .site-nav a {
    font-size: 0.9375rem;
  }

  .home-v2 .header-code {
    display: none;
  }

  .v2-hero-grid {
    gap: 32px;
  }

  .v2-preview-tabs button {
    padding-inline: 10px;
  }

  .v2-download-grid {
    gap: 48px;
  }

  .v2-trust-grid {
    gap: 48px;
  }
}

@media (max-width: 980px) {
  .v2-app-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .v2-app-copy h2 {
    max-width: 24ch;
    margin-bottom: 24px;
  }

  .v2-app-descriptions {
    max-width: 56ch;
  }
}

@media (max-width: 60em) {
  .home-v2 .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand toggle actions" "nav nav nav";
    gap: 0 10px;
  }

  .home-v2 .site-nav {
    justify-self: stretch;
  }

  .home-v2 .nav-toggle {
    min-height: 44px;
    border-color: var(--rule);
  }

  .home-v2 .site-nav ul {
    gap: 0;
    padding-top: 12px;
  }

  .home-v2 .site-nav a {
    font-size: 1rem;
  }
}

@media (max-width: 850px) {
  .v2-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
  }

  .v2-hero-art {
    max-width: 380px;
  }

  .v2-requirements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
  }

  .v2-requirements-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .v2-section-heading {
    display: block;
  }

  .v2-section-heading > p {
    margin-top: 18px;
  }

  .v2-workflows,
  .v2-integrations {
    gap: 0 36px;
  }

  .v2-download-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .v2-trust-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .v2-trust-intro {
    max-width: 540px;
  }

  .v2-principles-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .v2-footer-top,
  .v2-footer-bottom {
    flex-direction: column;
  }

  .v2-footer-links {
    max-width: 540px;
  }
}

@media (max-width: 720px) {
  .v2-hero {
    padding-top: 32px;
  }

  .v2-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .v2-hero-grid .v2-hero-copy {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
  }

  .v2-hero-art {
    max-width: 360px;
  }

  .v2-title {
    margin-bottom: 20px;
  }

  .v2-lead {
    margin-bottom: 24px;
  }

  .v2-eyebrow {
    font-size: 0.875rem;
  }

  .v2-section-heading br {
    display: none;
  }
}

@media (max-width: 560px) {
  .v2-hero-actions {
    gap: 4px 16px;
  }

  .v2-app-name {
    font-size: 0.8125rem;
  }

  .v2-preview-tabs button {
    padding-inline: 9px;
    font-size: 0.8125rem;
  }

  .v2-requirements-grid,
  .v2-workflows,
  .v2-integrations,
  .v2-credit-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .v2-requirement {
    padding-top: 24px;
    border-top: 1px solid var(--rule);
  }

  .v2-line-icon {
    top: 24px;
  }

  .v2-workflow {
    padding-top: 20px;
  }

  .v2-workflow-heading h3 {
    font-size: 1.375rem;
  }

  .v2-integrations {
    gap: 0;
  }

  .v2-credit-list {
    gap: 0;
  }

  .v2-credit-person summary {
    min-height: 100px;
  }

  .v2-trust-story p {
    font-size: 1rem;
  }

  .v2-hero-art {
    max-width: 300px;
  }

  .v2-footer-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  .v2-hero-grid,
  .v2-app-grid,
  .v2-requirements-grid,
  .v2-trust-grid,
  .v2-principles-grid,
  .v2-download-grid {
    display: block;
  }

  .v2-preview-tabs,
  .v2-hero-art {
    display: none !important;
  }

  .v2-trust {
    background: #ffffff;
    color: #000000;
    --link: #000000;
  }

  .v2-trust .v2-eyebrow,
  .v2-trust p {
    color: #333333;
  }

  .v2-section,
  .v2-trust,
  .v2-download {
    padding-block: 18pt;
  }
}
