/* Hallmark · shape: Catalogue · genre: editorial · theme: brand · redesign: full
 * paper: oklch(98.6% 0.006 135) · accent: oklch(77% 0.163 64) · display: Albert Sans · body: Albert Sans · hero: Index (/), Stage (/luz-y-gas, /energia-solar, /aerotermia, /empresas), Banner (/contacto, legal) · nav: edge-aligned with the real destinations · footer: mast · signature: photographs cropped to the leaf of the logo
 * axes: light/geometric-sans/chromatic-green · posture: committed · job: hire · draw: 34b357 · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S3 R4 V4 · weakest: S, the photographs are stand-ins; the logo's leaf, Tomelloso and the service index carry the identity */
/* Hallmark · dropped #progress, #marquee, #tabs, #tab-panel · decoration, and the two audiences are now written out in full */
/* Hallmark · dropped .fab-wa · it showed WhatsApp and only scrolled the page; it returns when the number exists */
/* Hallmark · dropped "0€" · 69 the free bill review is already stated beside its action */
/* Hallmark · dropped #aerotermia, #contacto, #proceso, #servicios, #solar, #top · the one-page anchor links now open their own pages; the ids stay on the home page for old addresses */
/* Hallmark · dropped marquee, progress, tab-panel, tabs · decoration, and the tab content is written out in full */
/* Hallmark · dismissed 25 · the footer tagline is one short sentence, a caption from 28ch */
@import url("./tokens.css");
@import url("./base.css");

h1, h2, h3 { line-height: 1.08; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Cabecera */
.top { position: relative; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: var(--space-lg); }
.brand { flex-shrink: 0; }
.brand img { width: 128px; height: 64px; }
.menu { display: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-lg); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; text-decoration: none; font-weight: 400; color: var(--color-ink); }
.nav a:hover { color: var(--color-leaf); }
.nav a:active { color: var(--color-field); }
.nav a[aria-current="page"] { color: var(--color-leaf); text-decoration: underline; text-underline-offset: 0.5em; }
.nav .nav__cta { padding-inline: var(--space-md); border: var(--rule-hair) solid var(--color-leaf); border-radius: var(--radius-pill); color: var(--color-field); }

/* Acciones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 800; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-accent-hover); }
.btn:active { background: var(--color-accent); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }

.field { background: var(--color-field); color: var(--color-field-ink); }
.field :focus-visible { outline-color: var(--color-field-focus); }
.leaf { margin: 0; border-radius: 42% 0 42% 0; }
.leaf--flip { border-radius: 0 42% 0 42%; }

/* Portada */
.home { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center; padding-block: var(--space-xl); min-height: min(calc(100svh - 81px), 780px); }
.home__copy { display: grid; gap: var(--space-lg); }
.home h1 { font-size: var(--text-display-s); max-width: 18ch; }
.home .leaf { height: min(64svh, 580px); min-height: 440px; }
.index { margin: 0; padding: 0; list-style: none; }
.index li { border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-field-ink) 30%, transparent); }
.index a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: baseline; gap: var(--space-md); padding-block: var(--space-sm); text-decoration: none; }
.index b { font-size: var(--text-lg); font-weight: 800; }
.index a:hover b { text-decoration: underline; }
.index a:active b { color: var(--color-field-focus); }

.figures { margin-block: 0; padding-block: var(--section-gap-s); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-xs); padding-inline: var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); }
.figures > :first-child { padding-left: 0; border-left: 0; }
.figures dd { margin: 0; font-family: var(--font-display); font-size: var(--text-display-s); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figures dt { color: var(--color-ink-2); }

.tint { background: var(--color-paper-2); padding-block: var(--section-gap-s); }
.who { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.who__head { display: grid; gap: var(--space-md); }
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
.audiences > div { display: grid; gap: var(--space-md); align-content: start; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }

.process { padding-block: var(--section-gap); display: grid; gap: var(--space-2xl); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.steps li { counter-increment: step; display: grid; gap: var(--space-sm); align-content: start; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-size: var(--text-display-s); font-weight: 800; line-height: 1; color: var(--color-leaf); }

.close { padding-block: var(--section-gap-s); }
.close__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--space-2xl); align-items: center; }
.close__side { display: grid; gap: var(--space-lg); justify-items: start; }

/* Oficinas */
.offices { display: grid; gap: var(--space-2xl); padding-block: var(--section-gap-s); }
.offices--flush { padding-block: 0; }
.offices__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
.offices__list > div { display: grid; gap: var(--space-sm); align-content: start; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.offices address { font-size: var(--text-title); font-style: normal; line-height: 1.25; }
.process-band .process { padding-block: 0; }

/* Servicios */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; padding-block: var(--space-xl); min-height: min(calc(100svh - 81px), 780px); }
.service__copy { display: grid; gap: var(--space-lg); }
.service h1 { font-size: var(--text-display-s); }
.service .leaf { height: min(62svh, 560px); min-height: 440px; }
.service--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.service--flip .service__copy { order: 2; }
.includes { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-xl) var(--space-2xl); padding-block: var(--section-gap-s); }
.includes__body { display: grid; gap: var(--space-xl); }
.includes .list li { font-size: var(--text-title); line-height: 1.25; padding-block: var(--space-lg); }
.others { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-md) var(--space-xl); padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }

/* Contacto y legales */
.banner { padding-block: var(--space-3xl); }
.banner__in { display: grid; gap: var(--space-lg); justify-items: start; }
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl); padding-block: var(--space-3xl) var(--section-gap-s); }
.contact > div { display: grid; gap: var(--space-lg); align-content: start; justify-items: start; }
.details { width: 100%; margin: 0; }
.details > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-md); padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.details dt { font-weight: 800; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.fill { padding: 0 0.25em; border: 1px dashed var(--color-muted); border-radius: 3px; color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose { max-width: 70ch; padding-block: var(--space-2xl) var(--section-gap-s); }
.prose h1 { font-size: var(--text-display-s); }
.prose h2 { font-size: var(--text-title); margin-block: var(--space-xl) var(--space-sm); }
.prose p { margin-bottom: var(--space-md); line-height: 1.7; overflow-wrap: break-word; }

/* Pie */
.foot { padding-block: var(--space-2xl) var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.foot__mast { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); padding-bottom: var(--space-lg); }
.foot__mast img { width: 176px; height: 88px; }
.foot__mast p { font-size: var(--text-title); font-weight: 800; line-height: 1.25; max-width: 28ch; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.foot__legal { padding-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

@media (max-width: 72rem) {
  .top__in { flex-wrap: wrap; }
  .js .menu { display: inline-flex; align-items: center; min-height: 48px; padding-inline: var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); cursor: pointer; }
  .js .menu:hover { background: var(--color-paper-2); }
  .js .menu:active { background: var(--color-paper-3); }
  .js .nav { display: none; position: absolute; inset: 100% 0 auto; padding: var(--space-md) var(--gutter) var(--space-lg); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .js .nav.open { display: grid; }
  .js .nav .nav__cta { justify-content: center; margin-top: var(--space-xs); }
}
@media (max-width: 60rem) {
  .home, .service, .service--flip, .who, .close__in, .includes, .contact { grid-template-columns: minmax(0, 1fr); }
  .home, .service { min-height: 0; gap: var(--space-xl); }
  .service--flip .service__copy { order: 0; }
  .home .leaf, .service .leaf { height: auto; min-height: 0; width: 100%; aspect-ratio: 4 / 3; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .figures > div { padding-inline: 0 var(--space-md); border-left: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .audiences, .steps { grid-template-columns: minmax(0, 1fr); }
  .index a, .details > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}
@media (max-width: 40rem) {
  .offices__list { grid-template-columns: minmax(0, 1fr); }
  .offices { gap: var(--space-lg); }
}
@media (max-width: 24rem) {
  .figures { grid-template-columns: minmax(0, 1fr); }
}
