/* Ferretería AD — estilos globales del sitio */
:root {
  --fondo: #FFFFFF;
  --superficie: #F1F1F0;
  --texto: #1C1B1A;
  --texto-suave: #5A5754;
  --primario: #C2502E;
  --primario-oscuro: #9E3E20;
  --acento: #F2BE45;
  --acento-oscuro: #DEAE3F;
  --grafito: #161514;
  --linea: #D9D8D6;

  --font-heading: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;

  --fs-h1: 64px;
  --lh-h1: 68px;
  --fs-h2: 44px;
  --lh-h2: 50px;
  --fs-h3: 22px;
  --fs-body: 18px;
  --fs-small: 16px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;
  --space-7: 112px;

  --gutter: 48px;
  --maxw: 1344px;
  --radius: 4px;

  --topbar-h: 36px;
  --bar-h: 76px;
  --header-h: 112px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; width:100%; max-width: 100vw;}
body {
  width:100%;
  max-width: 100vw;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--texto);
  background: var(--fondo);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--primario); outline-offset: 3px; }

/* Gradación común de todas las fotos del sitio */
.photo {
  filter: sepia(0.14) saturate(0.86) contrast(1.04) brightness(0.96);
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; 
  font-family: var(--font-heading); font-weight: 600; font-size: 17px; line-height: 1.1;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
  white-space: nowrap;
}
.btn--accent { background: var(--acento); color: var(--texto); }
.btn--accent:hover { background: var(--acento-oscuro); }
.btn--primary { background: var(--primario); color: #fff; }
.btn--primary:hover { background: var(--primario-oscuro); }
.btn--outline { border-color: var(--texto); color: var(--texto); }
.btn--outline:hover { background: var(--texto); color: #fff; }
.btn--ghost-light { border-color: #fff; color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--fondo);
  transition: box-shadow .18s var(--ease);
}
.site-header__topbar {
  background: var(--grafito); color: #fff;
  height: var(--topbar-h); overflow: hidden;
  font-size: 14px; line-height: 20px;
  transition: height .18s var(--ease);
}
.site-header__topbar-container {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: var(--space-4);
}
.site-header__topbar-item { color: #fff; text-decoration: none; white-space: nowrap; }
.site-header__topbar-item:hover { text-decoration: underline; }
.site-header__bar { height: var(--bar-h); transition: height .18s var(--ease); }
.site-header__container {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: 100%; display: flex; align-items: center; gap: var(--space-4);
}
.site-header__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.site-header__logo { height: 52px; width: auto; transition: height .18s var(--ease); }
.site-header__name { font-family: var(--font-heading); font-weight: 700; font-size: 20px; white-space: nowrap; }
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: var(--space-4); }
.site-nav__link {
  display: block; padding: 8px 0; text-decoration: none; white-space: nowrap;
  font-size: 16px; font-weight: 500; color: var(--texto);
  border-bottom: 2px solid transparent;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.site-nav__link:hover { color: var(--primario-oscuro); }
.site-nav__link--active { border-bottom-color: var(--primario); }
.site-nav__contact { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.site-header__cta { min-height: 48px; padding: 0 20px; font-size: 16px; }
.site-header__cta-short { display: none; }
.site-header__toggle {
  display: none; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
  background: transparent; border: 1px solid var(--linea); border-radius: var(--radius);
  font: 500 16px var(--font-body); color: var(--texto); cursor: pointer;
}
.site-header.is-compact { box-shadow: 0 1px 0 var(--linea); }
.site-header.is-compact .site-header__topbar { height: 0; }
.site-header.is-compact .site-header__bar { height: 64px; }
.site-header.is-compact .site-header__logo { height: 44px; }

main { padding-top: var(--header-h); }

@media (max-width: 1279px) {
  :root { --gutter: 32px; }
  .site-header__name { display: none; }
  .site-nav__list { gap: var(--space-3); }
  .site-header__topbar-item--mail { display: none; }
  .site-header__cta-long { display: none; }
  .site-header__cta-short { display: inline; }
  .site-header__cta { min-height: 44px; }
}

@media (max-width: 1023px) {
  :root { --header-h: 76px; --gutter: 24px; }
  .site-header__topbar { display: none; }
  .site-header__logo { height: 44px; }
  .site-header__toggle { display: inline-flex; }
  .site-header__actions { margin-left: auto; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    background: var(--fondo); padding: var(--space-3) var(--gutter) var(--space-5);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
    margin: 0;
  }
  .site-header.is-compact .site-nav { top: 64px; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__link {
    font-family: var(--font-heading); font-size: 24px; font-weight: 600;
    min-height: 56px; display: flex; align-items: center; border-bottom: 1px solid var(--linea);
  }
  .site-nav__link--active { color: var(--primario-oscuro); border-bottom-color: var(--linea); }
  .site-nav__contact {
    display: flex; flex-direction: column; gap: 8px; margin-top: var(--space-4);
    font-size: 16px; color: var(--texto-suave);
  }
  .site-nav__contact a { color: var(--texto); }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; --gutter: 20px; }
  .site-header__bar, .site-header.is-compact .site-header__bar { height: 64px; }
  .site-header__logo, .site-header.is-compact .site-header__logo { height: 40px; }
  .site-header__cta { width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .site-header__cta-short { display: none; }
  .site-header__actions { gap: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: calc(100svh - var(--header-h) - 104px); min-height: 520px;
  background: var(--grafito); color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 106%; max-width: none;
  object-fit: cover; object-position: center;
}
.hero__img--1 { z-index: 3; }
.has-seq .hero__img--1 { z-index: 0; }
.has-seq .hero__img--2 { z-index: 1; }
.has-seq .hero__img--3 { z-index: 2; }
.hero__media::after { z-index: 4; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22,21,20,.85) 0%, rgba(22,21,20,.7) 35%, rgba(22,21,20,0) 62%);
}
.hero__container {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) var(--space-6);
}
.hero__content { max-width: 780px; }
.hero__title {
  font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; color: #fff;
  text-shadow: 0 1px 24px rgba(0,0,0,.25);
}
.hero__lead { margin-top: var(--space-3); max-width: 620px; font-size: 20px; line-height: 32px; color: rgba(255,255,255,.92); }
.hero__actions { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.btn--hero { min-width: 380px; min-height: 72px; font-size: 20px; padding: 0 32px; }
.btn--hero .icon { width: 26px; height: 26px; }
.btn--hero-secondary { min-height: 72px; font-size: 18px; padding: 0 32px; }
.hero__labels {
  margin: var(--space-3) 0 0; padding-left: 16px; border-left: 3px solid var(--acento);
  color: #fff;
  font-family: var(--font-accent); font-weight: 600; font-size: 16px; line-height: 20px;
}
.hero__label + .hero__label::before { content: " · "; }
.hero__label-long { display: none; }
/* Con secuencia activa (lo pone el JS) */
.has-seq .hero__labels { display: grid; }
.has-seq .hero__label { grid-area: 1 / 1; }
.has-seq .hero__label + .hero__label::before { content: none; }
.has-seq .hero__label-long { display: inline; }
.has-seq .hero__label-short { display: none; }

@media (max-width: 1279px) {
  :root { --fs-h1: 52px; --lh-h1: 58px; }
  .hero__content { max-width: 760px; }
  .hero__media::after { background: linear-gradient(0deg, rgba(22,21,20,.9) 0%, rgba(22,21,20,.6) 40%, rgba(22,21,20,.15) 65%, rgba(22,21,20,0) 100%); }
  .btn--hero { min-width: 340px; min-height: 64px; }
  .btn--hero-secondary { min-height: 64px; }
}
@media (max-width: 1023px) {
  :root { --fs-h1: 46px; --lh-h1: 52px; }
  .hero { height: auto; min-height: calc(100svh - var(--header-h) - 160px); }
  .hero__container { padding-top: 120px; padding-bottom: var(--space-5); }
}
@media (max-width: 767px) {
  :root { --fs-h1: 38px; --lh-h1: 42px; }
  .hero { min-height: calc(100svh - 136px); }
  .hero__media::after { background: linear-gradient(0deg, rgba(22,21,20,.92) 0%, rgba(22,21,20,.75) 45%, rgba(22,21,20,.2) 75%, rgba(22,21,20,0) 100%); }
  .hero__container { padding-top: 96px; padding-bottom: var(--space-4); }
  .site-footer__list a, .cierre__datum a, .site-credits a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer__list { gap: 0; }
  .hero__lead { margin-top: var(--space-2); font-size: 16px; line-height: 24px; }
  .hero__actions { margin-top: var(--space-3); gap: 12px; }
  .btn--hero { width: 100%; min-width: 0; min-height: 60px; font-size: 18px; }
  .btn--hero-secondary { width: 100%; min-height: 52px; font-size: 16px; }
  .hero__labels { margin-top: var(--space-2); font-size: 14px; }
}
@media (max-width: 380px), (max-height: 700px) and (max-width: 767px) {
  :root { --fs-h1: 34px; --lh-h1: 38px; }
  .hero__lead { font-size: 15px; line-height: 22px; }
  .hero__container { padding-top: 48px; }
}

/* ---------- Líneas ---------- */
.lineas { background: var(--fondo); border-bottom: 1px solid var(--linea); }
.lineas__container {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: stretch; min-height: 104px;
}
.lineas__title {
  flex: none; align-self: center; width: 120px; padding-right: var(--space-3);
  font-family: var(--font-accent); font-size: 15px; line-height: 20px; font-weight: 600;
  color: var(--texto-suave); letter-spacing: 0;
}
.lineas__grid { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); }
.lineas__item { border-left: 1px solid var(--linea); }
.lineas__link {
  height: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  text-decoration: none; color: var(--texto);
}
.lineas__icon {
  width: 32px; height: 32px; flex: none; fill: none; stroke: var(--primario); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; transition: stroke .16s var(--ease);
}
.lineas__name { font-family: var(--font-heading); font-weight: 600; font-size: 18px; line-height: 22px; }
.lineas__arrow { margin-left: auto; color: var(--primario); transition: transform .16s var(--ease); }
.lineas__link:hover .lineas__arrow { transform: translateX(4px); }
.lineas__link:hover .lineas__icon { stroke: var(--texto); }

@media (max-width: 1279px) {
  .lineas__title { width: 96px; }
  .lineas__link { padding: 14px; gap: 10px; }
  .lineas__name { font-size: 16px; line-height: 20px; }
  .lineas__arrow { display: none; }
}
@media (max-width: 1023px) {
  .lineas__container { flex-direction: column; padding-top: var(--space-3); padding-bottom: var(--space-3); }
  .lineas__title { width: auto; margin-bottom: 12px; align-self: flex-start; }
  .lineas__grid { grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--linea); }
  .lineas__item { grid-column: span 2; border-left: 0; border-bottom: 1px solid var(--linea); }
  .lineas__item:nth-child(n+4) { grid-column: span 3; }
  .lineas__item:nth-child(2), .lineas__item:nth-child(3), .lineas__item:nth-child(5) { border-left: 1px solid var(--linea); }
  .lineas__link { min-height: 80px; }
}
@media (max-width: 767px) {
  .lineas__grid { grid-template-columns: repeat(3, 1fr); border-top: 0; row-gap: var(--space-2); }
  .lineas__item, .lineas__item:nth-child(n+4) { grid-column: auto; border: 0; }
  .lineas__item:nth-child(2), .lineas__item:nth-child(3), .lineas__item:nth-child(5) { border-left: 0; }
  .lineas__link { flex-direction: column; justify-content: flex-start; text-align: center; padding: 8px 4px; min-height: 0; gap: 8px; }
  .lineas__icon { width: 36px; height: 36px; }
  .lineas__name { font-size: 14px; line-height: 18px; }
}

/* ---------- Destacados ---------- */
.destacados { padding: var(--space-7) 0; }
.destacados__container {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 0 0;
  display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-6); align-items: start;
}
.destacados__media { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
.destacados__img { width: 100%; height: 100%; object-fit: cover; }
.destacados__title { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.destacados__intro { margin-top: var(--space-2); max-width: 600px; color: var(--texto-suave); font-size: 18px; line-height: 29px; }
.destacados__list { margin: var(--space-4) 0 var(--space-4); border-top: 1px solid var(--linea); }
.destacados__row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 18px 0; border-bottom: 1px solid var(--linea);
}
.destacados__name { font-size: var(--fs-h3); line-height: 28px; font-weight: 600; }
.destacados__use { margin-top: 2px; font-size: 16px; line-height: 24px; color: var(--texto-suave); }
.destacados__link {
  flex: none; color: var(--primario); font-weight: 600; font-size: 16px;
  text-decoration: none; text-underline-offset: 4px;
}
.destacados__link:hover { text-decoration: underline; color: var(--primario-oscuro); }

/* ---------- Asesoría ---------- */
.asesoria { background: var(--superficie); }
.asesoria__banner { position: relative; width: 100%; aspect-ratio: 21 / 9; overflow: hidden; background: var(--grafito); }
.asesoria__img { width: 100%; height: 100%; object-fit: cover; }
.asesoria__banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(22,21,20,.88) 0%, rgba(22,21,20,.55) 40%, rgba(22,21,20,0) 75%);
}
.asesoria__banner-text {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) var(--space-6); color: #fff;
}
.asesoria__title { font-size: var(--fs-h2); line-height: var(--lh-h2); max-width: 760px; }
.asesoria__lead { margin-top: var(--space-2); max-width: 640px; font-size: 20px; line-height: 30px; color: rgba(255,255,255,.92); }
.asesoria__row {
  max-width: var(--maxw); margin: 0 auto; padding: var(--space-6) var(--gutter) var(--space-7);
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: var(--space-5); align-items: stretch;
}
.asesoria__col { border-top: 3px solid var(--texto); padding-top: var(--space-3); }
.asesoria__col--f { border-top-color: var(--primario); }
.asesoria__col--a { border-top-color: var(--acento); }
.asesoria__col-title { font-size: var(--fs-h3); line-height: 28px; font-weight: 600; }
.asesoria__col-text { margin-top: 12px; font-size: 17px; line-height: 27px; color: var(--texto-suave); }
.asesoria__cta { padding-top: 27px; }

/* ---------- Ecosistema ---------- */
.ecosistema { background: var(--grafito); color: #fff; padding: var(--space-7) 0; }
.ecosistema__container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.ecosistema__head { max-width: 860px; }
.ecosistema__title { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.ecosistema__lead { margin-top: var(--space-2); font-size: 18px; line-height: 29px; color: rgba(255,255,255,.8); }
.ecosistema__list { margin-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.18); }
.ecosistema__item { border-bottom: 1px solid rgba(255,255,255,.18); }
.ecosistema__link {
  display: grid; grid-template-columns: 4fr 5fr 3fr 32px; gap: var(--space-3); align-items: baseline;
  padding: 26px 0; text-decoration: none; color: #fff;
}
.ecosistema__name { font-family: var(--font-heading); font-weight: 600; font-size: 28px; line-height: 34px; }
.ecosistema__link--store .ecosistema__name { color: var(--acento); }
.ecosistema__desc { font-size: 17px; line-height: 26px; color: rgba(255,255,255,.8); }
.ecosistema__domain { font-family: var(--font-accent); font-weight: 600; font-size: 16px; color: var(--acento); overflow-wrap: anywhere; }
.ecosistema__arrow { font-size: 22px; text-align: right; transition: transform .16s var(--ease); }
.ecosistema__link:hover .ecosistema__arrow { transform: translate(3px, -3px); }
.ecosistema__link:hover .ecosistema__name { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- Cierre ---------- */
.cierre { padding: var(--space-7) 0; background: var(--fondo); }
.cierre__container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.cierre__title { font-size: var(--fs-h2); line-height: var(--lh-h2); max-width: 1000px; }
.cierre__lead { margin-top: var(--space-2); max-width: 680px; color: var(--texto-suave); font-size: 18px; line-height: 29px; }
.cierre__actions { margin-top: var(--space-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.cierre__link { font-weight: 600; color: var(--primario-oscuro); text-underline-offset: 4px; }
.cierre__data {
  margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--linea);
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6);
}
.cierre__datum { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.cierre__datum .icon { color: var(--primario); }
.cierre__datum a { text-decoration: none; }
.cierre__datum a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--superficie); color: var(--texto); font-size: 14px; line-height: 20px; }
.site-footer__container {
  max-width: var(--maxw); margin: 0 auto; padding: var(--space-6) var(--gutter) var(--space-5);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-5);
}
.site-footer__logo { height: 72px; width: auto; }
.site-footer__heading { font-family: var(--font-accent); font-weight: 600; font-size: 15px; color: var(--texto-suave); margin-bottom: 12px; }
.site-footer__list { display: flex; flex-direction: column; gap: 10px; }
.site-footer__list a { text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; }
.site-footer__bottom {
  max-width: var(