/* SetGantt — layout.css
   Structural layout: container, header, sections, grids, footer.
   Composition/rhythm inspired by Referencia #6 (centered hero above a large
   product visual, alternating two-column detail blocks, full-bleed emphasis
   band, generous whitespace) combined with the written direction in #06
   (sobriety, product as protagonist, no decorative clutter). */

/* ---- Container ---- */
.site-header__inner,
.section,
.hero,
.site-footer__top,
.trademark-disclaimer,
.copyright {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* Anchor targets (#product, #pricing, etc. — #10 §62): without this, the
   sticky header covers the top of the section when a browser jumps to the
   URL fragment (direct link, back/forward, or the language switch's anchor
   preservation in nav.js). Applied to every element that actually carries
   one of the nav/footer anchor IDs. */
.hero,
.section {
  scroll-margin-top: var(--header-height);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg); /* fallback for browsers without color-mix() */
  background-color: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  line-height: 1.1;
  margin-right: auto;
}

.brand__logo {
  height: 32px;
  width: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text-primary);
}

.brand__by {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* Secondary brand info, one level down from .brand__name and same muted
   tier as .brand__by, but sized/spaced for a full sentence (SetFile ↔
   Claris Partner attribution) rather than a short label. Not fine-print:
   this is brand-identity copy, not legal/supplementary text. */
.brand__meta {
  font-size: var(--fs-tiny);
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-top: 0.15rem;
}

/* ---- Primary navigation ----
   Mobile-first: the full link list is always real markup in the DOM (works
   with JS disabled), but starts visually collapsed under the header. nav.js
   toggles the `.is-open` class + `#nav-toggle[aria-expanded]`. At >=960px
   (responsive.css) it switches to the always-visible static horizontal
   bar and .nav-toggle is hidden. */
.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: max-height var(--transition-fast);
}

.primary-nav.is-open {
  max-height: 70vh;
  overflow-y: auto;
}

.primary-nav ul {
  display: flex;
  flex-direction: column;
  padding: var(--space-2) var(--container-padding) var(--space-4);
}

.primary-nav li {
  border-top: 1px solid var(--color-border);
}

.primary-nav li:first-child {
  border-top: none;
}

.primary-nav a {
  display: block;
  padding: var(--space-3) 0;
  font-weight: 600;
  color: var(--color-text-primary);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ---- Main sections ---- */
.section {
  padding-block: var(--space-12);
}

.section--tinted {
  background-color: var(--color-surface-alt);
}

/* Lighter section for content that should read as reassurance, not as a
   pillar of equal weight to Product/Integration/Developers (e.g. Support). */
.section--compact {
  padding-block: var(--space-8);
}

.section--compact .section__intro {
  margin-bottom: var(--space-6);
}

.section__intro {
  max-width: 720px;
  margin: 0 auto var(--space-8) auto;
  text-align: center;
}

.section__subtitle {
  font-size: var(--fs-lead);
}

/* ---- Hero ---- */
.hero {
  padding-block: var(--space-12) var(--space-10);
  text-align: center;
}

.hero__content {
  max-width: 760px;
  margin-inline: auto;
}

.hero__subtitle {
  font-size: var(--fs-lead);
  max-width: 620px;
  margin-inline: auto;
}

.hero__supporting {
  max-width: 620px;
  margin-inline: auto;
}

.hero__asset {
  /* Full container width: the product screenshot is the protagonist of the
     hero, not a supporting illustration (#06 §9, §49; Nico Paso 2 review). */
  max-width: var(--container-max);
  margin: var(--space-10) auto 0 auto;
}

/* ---- Demo blocks (alternating two-column) ---- */
.demo-block {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-8);
}

.demo-block__text {
  max-width: 480px;
}

/* ---- Two column generic layout ---- */
.two-col {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-6);
}

/* ---- Capability grid ---- */
.capability-grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

/* ---- Process steps ---- */
.process-steps {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.process-steps > li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

/* ---- Sequence list (developer problem chain) ---- */
.sequence-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block: var(--space-4);
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: var(--space-3);
}

/* ---- Contact ---- */
.contact-section .section__intro {
  margin-bottom: var(--space-6);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-6);
}

.contact-form {
  max-width: 560px;
  margin: var(--space-8) auto 0 auto;
  display: grid;
  gap: var(--space-4);
}

/* ---- Contacto en columnas (intro+datos | formulario), adaptado de
   web_setconta/web_setfilecloud (metodología SetFile, 2026-09-13) — en
   vez de todo apilado y centrado con botones CTA encima. La altura del
   bloque la marca la columna del formulario (Name* → botón Send), la
   izquierda no la supera. */
.contact-layout {
  display: grid;
  gap: var(--space-8);
}

.contact-layout__intro h2 {
  margin-bottom: var(--space-3);
}

.contact-layout__info {
  margin-top: var(--space-6);
}

.contact-info-item {
  margin-bottom: var(--space-3);
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-1);
}

.contact-info-item p {
  margin-bottom: 0;
}

.contact-layout__form .contact-form {
  max-width: none;
  margin: 0;
}

/* ---- Footer ----
   Tightened after Nico's review: less top padding under the separator
   line, brand as a horizontal logo+wordmark lockup instead of a stacked
   column, nav/legal links as clean single-column lists instead of an
   uneven wrap, and the legal fine print visually de-emphasized (smaller
   type) below everything else. */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-surface-alt);
  padding-block: var(--space-6) var(--space-5);
}

.site-footer__top {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-4);
}

/* ---- Commercial footer (en/es/ca — index.html) ----
   Structure (per Nico's DevTools review + follow-up spec):
     .site-footer__top                 (page-width container — shared rule above)
       .site-footer__row               (brand block left, nav columns right)
         .site-footer__brand-block
         .site-footer__columns
       .site-footer__legal-text        (copyright + disclaimer, own full-width
                                         row below .site-footer__row, two
                                         plain <div>s — not <p>, not nested
                                         inside the narrower brand column)
   Mobile-first: everything stacks in one column by default: brand block,
   then the 3 nav columns each full-width, then legal text. Widens into the
   side-by-side layout from 700px up (responsive.css) — see that file for
   why 700px and why a fixed gap instead of justify-content: space-between
   (that stretched the two groups to the far edges of the container on wide
   viewports, leaving a huge empty gap in the middle — reported by Nico). */
.site-footer__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.site-footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

/* Marca en columna (logo arriba, texto debajo) en vez de fila horizontal
   — alineado con el pie de setfilecloud.com (metodología SetFile §6,
   2026-09-13). El badge de Claris Partner Platinum se retira de aquí:
   ya está afirmado como texto en .brand__meta y en .trademark-disclaimer,
   duplicarlo como imagen no aporta y no es el patrón de los sitios
   hermanos (SetFile/SetConta/SetFileCloud no muestran el badge en el
   pie). */
.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.site-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.site-footer__brand-text p {
  margin: 0;
}

/* Línea separadora pegada a la fila de arriba (marca + columnas), sin
   ningún bloque de texto a ancho completo que la distancie del resto —
   mismo patrón que setfilecloud.com. El disclaimer de marcas va debajo,
   fuera de .site-footer__top, como párrafo centrado independiente. */
.site-footer__divider {
  border-top: 1px solid var(--color-border);
}

.site-footer__columns {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Neutral/muted like the header's primary-nav, instead of inheriting the
   global link color (bright accent blue) — the footer nav is wayfinding,
   the same family as the header nav, not body copy with a link in it. Same
   treatment for the legal column so all three columns read as one family. */
.site-footer__col a {
  color: var(--color-text-primary);
  font-size: var(--fs-small);
  font-weight: 600;
}

.site-footer__col a:hover {
  color: var(--color-accent-hover);
}

.site-footer__logo {
  height: 40px;
  width: auto;
}

/* ---- Intercambio de logo según tema claro/oscuro (mismo patrón que
   web_setfilecloud: dos <img>, una por tema, alternadas con display).
   setfile-logo.png (gris+azul) para tema claro; setfile-logo-dark.png
   (blanco+azul, reutilizado del asset ya usado en coming-soon) para
   tema oscuro — el gris de "Set" pierde contraste sobre fondo oscuro. */
.theme-logo--dark {
  display: none;
}

[data-theme="dark"] .theme-logo--light {
  display: none;
}

[data-theme="dark"] .theme-logo--dark {
  display: block;
}

/* ---- Fila de logos de certificación Claris Partner (sección "About
   SetFile") — mismo patrón que web_setconta/web_setfilecloud, clases
   propias en vez de copiar literalmente "hero-partners" (aquí no vive
   dentro de un hero). ---- */
.partner-logos {
  display: flex;
  justify-content: center;
  padding-inline: 0.8rem;
}

.partner-logos__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-8);
  width: 100%;
}

.partner-logos img {
  height: 34px;
  width: auto;
}

/* claris-partner-platinum.png y claris-partner-reseller.png llevan, dentro
   del propio PNG, una segunda línea de texto ("PLATINUM"/"RESELLER") bajo
   el icono+wordmark que no tiene el logo base (claris-partner-logo.png) —
   mismo ancho de lienzo (768px) pero más alto. A igual altura en CSS esa
   franja extra "roba" tamaño al wordmark; se compensa dándoles más alto
   para que el wordmark quede a la misma escala visual que el logo base
   (mismo criterio ya aplicado en web_setconta). */
.partner-logos__tier {
  height: 54px;
}

.trademark-disclaimer,
.copyright {
  color: var(--color-text-muted);
  font-size: var(--fs-tiny);
}

/* Simplified footer top row for privacy.html/terms.html/cookies.html: just
   brand + the three legal cross-links, no partner badge, no commercial
   nav column (#10 review — legal pages don't need to replicate the
   commercial navigation). Mobile-first single column; two columns once
   there's room, same breakpoint as the full footer grid. */
.site-footer__top--legal {
  grid-template-columns: 1fr;
}
