:root {
  --ink: #121417;
  --paper: #f5f2eb;
  --white: #fff;
  --muted: #5f666d;
  --orange: #ed6b21;
  --orange-dark: #bf4710;
  --line: rgba(18, 20, 23, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, system-ui, sans-serif; line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.topbar { min-height: 82px; padding: 14px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(245, 242, 235, .96); border-bottom: 1px solid var(--line); }
.brand img { width: min(290px, 42vw); height: auto; }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.phone-link { font-weight: 800; text-decoration: none; white-space: nowrap; }
.hero { min-height: 690px; position: relative; display: grid; align-items: center; padding: 80px clamp(22px, 8vw, 118px); color: var(--white); background: url('../img/trabajos/electrico-tablero-industrial.jpg') center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 10, 12, .96) 0%, rgba(8, 10, 12, .82) 48%, rgba(8, 10, 12, .28) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { margin: 0 0 14px; color: #ff9b61; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.dark { color: var(--orange-dark); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(2.6rem, 6.2vw, 5.7rem); line-height: .98; letter-spacing: -.055em; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.05; letter-spacing: -.04em; }
h3 { line-height: 1.2; }
.lead { max-width: 660px; margin-bottom: 34px; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid var(--orange); border-radius: 5px; background: var(--orange); color: var(--white); font-weight: 800; text-decoration: none; }
.button:hover, .button:focus-visible { background: var(--orange-dark); border-color: var(--orange-dark); }
.button-ghost { border-color: rgba(255,255,255,.55); background: rgba(18,20,23,.38); }
.button-small { min-height: 44px; padding: 9px 16px; }
.secondary-phone { margin: 22px 0 0; color: rgba(255,255,255,.76); }
.secondary-phone a { font-weight: 800; }
.quick-facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: var(--white); }
.quick-facts article { min-height: 145px; padding: 32px clamp(20px, 3vw, 48px); border-right: 1px solid rgba(255,255,255,.12); }
.quick-facts strong, .quick-facts span { display: block; }
.quick-facts strong { margin-bottom: 5px; font-size: 1.25rem; }
.quick-facts span { color: rgba(255,255,255,.63); font-size: .9rem; }
.section { padding: clamp(70px, 10vw, 130px) clamp(22px, 8vw, 118px); }
.section-heading { max-width: 780px; margin-bottom: 46px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cards article { min-height: 280px; padding: 30px; background: var(--white); border-top: 4px solid var(--orange); }
.cards article > span { color: var(--orange-dark); font-weight: 800; }
.cards h3 { margin: 42px 0 12px; font-size: 1.3rem; }
.cards p { color: var(--muted); }
.work { background: var(--ink); color: var(--white); }
.section-heading.light p:last-child { color: rgba(255,255,255,.68); }
.gallery { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; }
.gallery figure { margin: 0; min-height: 440px; overflow: hidden; background: #222; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.025); }
.process ol { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.process li { padding: 30px 30px 10px 0; }
.process strong, .process span { display: block; }
.process strong { margin-bottom: 10px; font-size: 1.15rem; }
.process span { color: var(--muted); }
.coverage { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 8vw, 110px); padding: clamp(70px, 10vw, 130px) clamp(22px, 8vw, 118px); background: #272b30; color: var(--white); }
.coverage > div > p:last-child { max-width: 760px; color: rgba(255,255,255,.7); font-size: 1.08rem; }
.coverage aside { align-self: center; padding: 32px; border: 1px solid rgba(255,255,255,.16); }
.coverage aside strong { font-size: 1.25rem; }
.coverage aside p { color: rgba(255,255,255,.7); }
.faq { max-width: 1150px; margin: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 22px 40px 22px 0; cursor: pointer; font-weight: 800; }
.faq details p { max-width: 800px; padding: 0 0 24px; color: var(--muted); }
.final-cta { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 60px clamp(22px, 8vw, 118px); background: var(--orange-dark); color: var(--white); }
.final-cta h2 { max-width: 720px; margin-bottom: 0; }
.final-cta .button { background: var(--ink); border-color: var(--ink); }
.final-cta .button-ghost { background: transparent; border-color: rgba(255,255,255,.6); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px clamp(22px, 8vw, 118px); background: #090b0d; color: rgba(255,255,255,.66); font-size: .88rem; }
footer a { color: var(--white); }
.footer-brand { font-size: 1rem; font-weight: 800; text-decoration: none; }

@media (max-width: 920px) {
  .phone-link { display: none; }
  .hero { min-height: 620px; background-position: 58% center; }
  .hero-overlay { background: rgba(8, 10, 12, .8); }
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-wide { grid-column: 1 / -1; }
  .coverage { grid-template-columns: 1fr; }
  .final-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .topbar { min-height: 70px; padding: 12px 18px; }
  .brand img { width: 195px; }
  .button-small { min-height: 40px; padding: 8px 12px; font-size: .82rem; }
  .hero { min-height: 660px; padding: 62px 20px; }
  h1 { font-size: clamp(2.45rem, 12.5vw, 4.2rem); }
  .hero .button { width: 100%; }
  .quick-facts { grid-template-columns: 1fr 1fr; }
  .quick-facts article { min-height: 125px; padding: 24px 18px; }
  .cards, .process ol { grid-template-columns: 1fr; }
  .cards article { min-height: 225px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: auto; }
  .gallery figure { min-height: 320px; }
  .coverage aside { padding: 24px; }
  .final-cta .actions, .final-cta .button { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
