/* Hometal · rebranding. Un solo acento (el verde del logo) sobre carbón y hueso. */
:root {
  --carbon: #14181c;
  --acero: #232a31;
  --menta: #54be9a;
  --acento: #1b7a5b;
  --acento-d: #146046;
  --error: #b3261e;
  --hueso: #f4f2ee;
  --texto: #14181c;
  --suave: #3d474f;
  --wa: #13803f;
  --wa-d: #0e6a33;
  --r: 14px;
  --f-tit: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-txt: 'Barlow', system-ui, sans-serif;
  --h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--h) + 8px); }
body { margin: 0; font-family: var(--f-txt); font-size: 1.0625rem; line-height: 1.6; color: var(--texto); background: #fff; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-tit); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; text-transform: uppercase; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--suave); font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--carbon); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--menta); outline-offset: 3px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 1rem/1 var(--f-txt); padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, color .2s; min-height: 48px; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 17px 30px; font-size: 1.1rem; }
.btn--primary { background: var(--acento); color: #fff; }
.btn--primary:hover { background: var(--acento-d); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-d); }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--carbon); }
.btn--ghost-dark { background: #e6e2da; color: var(--carbon); }
.btn--ghost-dark:hover { background: var(--carbon); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: #fff; height: var(--h); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-color: var(--acento); }
.nav .btn { padding: 11px 20px; min-height: 44px; }
.burger { display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 12px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 3px; background: var(--carbon); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; color: #fff; background: var(--carbon); min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 24, 28, .88) 0%, rgba(20, 24, 28, .6) 42%, rgba(20, 24, 28, .12) 100%); /* taste-skill-ignore: velo neutro sobre foto */ }
.hero__in { position: relative; padding-block: 72px 56px; }
.hero h1 { max-width: 10em; }
.hero__lead { max-width: 52ch; font-size: 1.25rem; color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 48px 0 0; padding: 0; max-width: 820px; }
.hero__facts li { padding: 16px 18px; display: flex; flex-direction: column; background: rgba(20, 24, 28, .72); border-radius: 10px; }
.hero__facts strong { font-family: var(--f-tit); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .03em; }
.hero__facts span { color: #fff; font-size: .9rem; }

/* Secciones */
.sec { padding-block: clamp(64px, 9vw, 112px); }
.sec--bone { background: var(--hueso); }
.sec--dark { background: var(--carbon); color: #fff; }
.sec__head { max-width: 680px; margin-bottom: 44px; }
.sec__head p:last-child { font-size: 1.25rem; margin-bottom: 0; }
.sec__head--light p:last-child { color: #fff; }

/* Servicios */
.grid { display: grid; gap: 24px; }
.grid--srv { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--hueso); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s; }
.card:hover { transform: translateY(-5px); }
.card:focus-visible { outline-offset: 4px; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--acero); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 20px 20px 24px; flex: 1; }
.card__body h3 { margin-bottom: .3em; }
.card__body p { color: var(--suave); font-size: 1rem; margin: 0; }
.srv__more { margin: 32px 0 0; font-size: 1.25rem; }
.srv__more a { font-weight: 600; color: var(--acento-d); }

/* Proceso */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--acero); border-radius: var(--r); padding: 24px 22px 26px; }
.steps__n { font-family: var(--f-tit); font-size: 3.4rem; line-height: 1; font-weight: 700; color: var(--menta); display: block; margin-bottom: 6px; }
.steps h3 { color: #fff; }
.steps p { color: #fff; font-size: 1rem; margin: 0; }

/* Trabajos */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { font: 500 1rem var(--f-txt); border: 0; background: #e6e2da; color: var(--carbon); padding: 9px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; transition: background .2s, color .2s; }
.chip:hover { background: #d9d4ca; }
.chip[aria-pressed="true"] { background: var(--carbon); color: #fff; }
.grid--work { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--acero); }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work:hover img { transform: scale(1.06); }
.work figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: #fff; background: linear-gradient(to top, rgba(20, 24, 28, .9), rgba(20, 24, 28, 0)); /* taste-skill-ignore: velo neutro sobre foto */ display: flex; flex-direction: column; line-height: 1.3; }
.work strong { font-family: var(--f-tit); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
.work span { font-size: .9rem; color: #bfeadb; }

/* Videos */
.grid--reels { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.reel { aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--acero); }
.reel iframe { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.reel__play { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; height: 100%; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: #fff; position: relative; background: var(--acero) center / cover no-repeat; }
.reel__play::before { content: ""; position: absolute; inset: 0; background: rgba(20, 24, 28, .55); transition: background .3s; }
.reel__play:hover::before { background: rgba(20, 24, 28, .38); }
.reel__play > * { position: relative; }
.reel__play:focus-visible { outline: 3px solid var(--menta); outline-offset: -3px; }
.reel__icon { position: absolute !important; top: 50%; left: 50%; width: 72px; height: 72px; margin: -52px 0 0 -36px; border-radius: 50%; background: var(--acento); display: grid; place-items: center; transition: transform .2s; }
.reel__play:hover .reel__icon { transform: scale(1.1); }
.reel__icon svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.reel__play strong { font-family: var(--f-tit); font-size: 1.5rem; line-height: 1.1; text-transform: uppercase; }
.reel__play span:not(.reel__icon) { font-size: .9rem; color: #fff; }
.reel__play em { font-style: normal; font-weight: 600; color: #bfeadb; margin-top: 6px; }
.reels__more { text-align: center; margin: 36px 0 0; }

/* Taller y zona */
.taller { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.taller__img { border-radius: var(--r); overflow: hidden; }
.taller__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.taller__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.taller__list strong { display: block; font-family: var(--f-tit); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; }
.taller__list span { color: var(--suave); font-size: 1.1rem; }

/* Banda CTA */
.band { position: relative; color: #fff; text-align: center; padding-block: clamp(72px, 10vw, 120px); overflow: hidden; background: var(--carbon); }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.band__shade { position: absolute; inset: 0; background: rgba(20, 24, 28, .8); }
.band__in { position: relative; display: flex; flex-direction: column; align-items: center; }
.band p { color: #fff; font-size: 1.25rem; max-width: 46ch; }

/* Contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.clist { list-style: none; padding: 0; margin: 28px 0 20px; display: grid; gap: 4px; }
.clist li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; }
.clist span { color: var(--suave); font-size: 1rem; }
.clist a { font-weight: 600; text-decoration: none; }
.clist a:hover { color: var(--acento); text-decoration: underline; text-underline-offset: 3px; }
.clist b { font-weight: 500; }
.form { background: var(--hueso); border-radius: 20px; padding: clamp(22px, 4vw, 38px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full, .form__err, .form__ok, .form__btns { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 1rem; }
.field input, .field select, .field textarea { font: inherit; padding: 13px 14px; border: 0; border-radius: 10px; background: #fff; color: var(--texto); min-height: 48px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--acento); outline-offset: 0; }
.form__err { margin: 0; color: var(--error); font-weight: 600; }
.form__ok { margin: 0; color: var(--acento-d); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { background: var(--carbon); color: #fff; padding-top: 56px; }
.footer__in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; }
.footer__in p { max-width: 38ch; margin-top: 14px; }
.footer__logo { display: inline-block; background: #fff; padding: 8px 14px; border-radius: 10px; }
.footer__logo img { height: 44px; width: auto; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--menta); }
.footer__copy { padding-block: 20px; margin: 0 auto; font-size: .9rem; color: #e6e9ec; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Aparición suave */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* Responsivo */
@media (max-width: 1024px) {
  .grid--srv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--work, .steps, .grid--reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .taller, .contact { grid-template-columns: 1fr; }
  .taller__img img { aspect-ratio: 16 / 10; }
}
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav { position: fixed; inset: var(--h) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 24px; box-shadow: 0 20px 30px rgba(0, 0, 0, .12); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .2s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 15px 4px; font-size: 1.1rem; }
  .nav .btn { margin-top: 16px; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__shade { background: rgba(20, 24, 28, .66); }
}
@media (max-width: 600px) {
  .grid--srv, .steps { grid-template-columns: 1fr; }
  .grid--reels { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .grid--work { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .work strong { font-size: 1.1rem; }
  .form { grid-template-columns: 1fr; }
  .clist li { grid-template-columns: 1fr; gap: 2px; }
  .hero__cta .btn { width: 100%; }
  .btn--lg { padding: 15px 22px; }
}

/* Visor de trabajos */
.work { cursor: zoom-in; }
.visor { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; background: rgba(20, 24, 28, .96); color: #fff; }
.visor[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.visor::backdrop { background: rgba(20, 24, 28, .96); }
.visor__fig { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 0; min-width: 0; }
.visor__fig img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 8px; }
.visor__fig figcaption { font-family: var(--f-tit); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; text-align: center; padding-inline: 8px; }
.visor__nav, .visor__x { background: none; border: 0; color: #fff; cursor: pointer; font-size: 3rem; line-height: 1; min-height: 64px; min-width: 48px; }
.visor__nav:hover, .visor__x:hover { color: var(--menta); }
.visor__x { position: absolute; top: 8px; right: 12px; font-size: 2.6rem; z-index: 2; }
@media (max-width: 600px) { .visor[open] { grid-template-columns: 40px 1fr 40px; } .visor__nav { font-size: 2.4rem; min-width: 40px; } }
