:root {
  --ink: #101010;
  --muted: #626262;
  --paper: #0b0b0b;
  --white: #ffffff;
  --gold: #d8b516;
  --gold-bright: #f0d21e;
  --line: rgba(240, 210, 30, .18);
  --display: "Oswald", sans-serif;
  --body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #fff; background: radial-gradient(circle at 12% 20%, rgba(240,210,30,.14), transparent 25%), #0b0b0b; font-family: var(--body); font-size: 16px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 112px 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: rgba(255,255,255,.78); font-size: .76rem; font-weight: 800; letter-spacing: .18em; }
.eyebrow span { width: 34px; height: 3px; background: var(--gold); }
.eyebrow.dark { color: rgba(255,255,255,.68); }

.site-header { position: absolute; z-index: 30; top: 0; left: 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.2); }
.nav-wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { width: 240px; height: 60px; display: flex; align-items: center; overflow: hidden; background: #fff; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
nav { display: flex; align-items: center; gap: 34px; }
nav a { color: #fff; font-size: .9rem; font-weight: 700; }
nav a:not(.nav-cta) { position: relative; }
nav a:not(.nav-cta)::after { position: absolute; bottom: -8px; left: 0; width: 0; height: 2px; content: ""; background: var(--gold); transition: width .25s ease; }
nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { padding: 12px 20px; color: #111; background: var(--gold-bright); }
.menu-button { display: none; border: 0; background: transparent; }
.menu-button span { display: block; width: 27px; height: 2px; margin: 6px 0; background: white; transition: .25s; }

.hero { position: relative; min-height: 820px; display: flex; align-items: center; overflow: hidden; color: #fff; background: #111; }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { background: url("assets/tablero-electrico.jpeg") 72% 45% / cover no-repeat; transform: scale(1.03); }
.hero-shade { background: linear-gradient(112deg, rgba(4,4,4,.98) 0%, rgba(8,8,8,.88) 43%, rgba(154,126,0,.48) 76%, rgba(240,210,30,.30) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 70px; }
.hero h1 { max-width: 790px; margin: 0; font-family: var(--display); font-size: clamp(4rem, 7.2vw, 7.1rem); font-weight: 600; line-height: .95; letter-spacing: -.025em; text-transform: uppercase; }
.hero h1 em { color: var(--gold-bright); font-style: normal; }
.hero-copy { max-width: 630px; margin: 28px 0 34px; color: rgba(255,255,255,.8); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 14px 24px; border: 1px solid transparent; font-weight: 800; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #111; background: var(--gold-bright); }
.button-primary:hover { background: #ffe13b; }
.button-ghost { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(0,0,0,.16); }
.hero-foot { position: absolute; z-index: 2; bottom: 0; left: 50%; display: grid; grid-template-columns: repeat(3, 1fr); transform: translateX(-50%); border-top: 1px solid rgba(255,255,255,.2); }
.hero-foot span { padding: 21px 20px; border-right: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.78); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.section-heading { display: grid; grid-template-columns: 1.5fr .7fr; gap: 80px; align-items: end; margin-bottom: 48px; }
.section-heading h2, .about-copy h2, .contact h2 { margin: 0; font-family: var(--display); font-size: clamp(2.7rem, 5vw, 4.8rem); font-weight: 600; line-height: 1.02; text-transform: uppercase; }
.section-heading > p { max-width: 420px; margin: 0 0 5px; color: rgba(255,255,255,.62); }
.services { position: relative; background: radial-gradient(circle at 85% 18%, rgba(240,210,30,.19), transparent 28%), linear-gradient(145deg, #080808 0%, #151300 48%, #090909 100%); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 290px; padding: 34px 32px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #fff; background: rgba(255,255,255,.035); backdrop-filter: blur(8px); }
.service-card.featured { color: #111; background: linear-gradient(135deg, #ffe84b, #cfa700); }
.service-number { margin-bottom: 50px; color: var(--gold); font-family: var(--display); font-size: .95rem; }
.service-card h3 { margin: 0 0 14px; font-family: var(--display); font-size: 1.55rem; font-weight: 600; text-transform: uppercase; }
.service-card p { margin: 0; color: rgba(255,255,255,.58); font-size: .91rem; }
.service-card.featured p { color: rgba(0,0,0,.68); }
.service-card.featured .service-number { color: #111; }
.card-line { position: absolute; bottom: 0; left: 0; width: 0; height: 4px; background: var(--gold); transition: width .3s; }
.service-card:hover .card-line { width: 100%; }

.work { color: #fff; background: #111; }
.work-heading > p { color: rgba(255,255,255,.58); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 270px; gap: 14px; }
.gallery-item { position: relative; margin: 0; overflow: hidden; background: #292929; }
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-duo { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: #111; }
.gallery-duo img { min-width: 0; }
.gallery-item::after { position: absolute; inset: 35% 0 0; content: ""; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.gallery-item figcaption { position: absolute; z-index: 2; right: 24px; bottom: 22px; left: 24px; display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.gallery-item strong { font-family: var(--display); font-size: 1.25rem; font-weight: 600; text-transform: uppercase; }
.gallery-item span { color: rgba(255,255,255,.68); font-size: .75rem; }

.about { background: linear-gradient(118deg, #080808 0%, #111 58%, #382f00 100%); }
.about-grid { display: grid; grid-template-columns: .92fr 1fr; gap: 94px; align-items: center; }
.about-visual { position: relative; min-height: 590px; }
.about-visual::before { position: absolute; z-index: 0; top: -22px; right: -22px; width: 60%; height: 70%; content: ""; background: var(--gold); }
.about-logo-panel { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; overflow: hidden; padding: clamp(30px, 6vw, 72px); border: 1px solid rgba(240,210,30,.45); background: radial-gradient(circle at 82% 18%, rgba(240,210,30,.38), transparent 34%), linear-gradient(145deg, #030303 0%, #151200 62%, #433700 100%); box-shadow: 0 26px 70px rgba(0,0,0,.38); }
.about-logo-panel::before { position: absolute; inset: 18px; content: ""; border: 1px solid rgba(240,210,30,.24); }
.about-logo-panel img { position: relative; z-index: 1; width: min(100%, 470px); height: auto; object-fit: contain; padding: clamp(14px, 2.5vw, 24px); background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.46); }
.about-copy h2 { margin-bottom: 24px; }
.about-copy > p:not(.eyebrow) { color: rgba(255,255,255,.62); }
.about-copy ul { display: grid; gap: 12px; margin: 28px 0; padding: 0; list-style: none; }
.about-copy li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.about-copy li span { width: 24px; height: 24px; display: grid; place-content: center; flex: 0 0 24px; color: #111; background: var(--gold-bright); font-size: .75rem; }
.text-link { display: inline-flex; gap: 20px; align-items: center; padding-bottom: 4px; border-bottom: 2px solid var(--gold); font-weight: 800; }

.contact { position: relative; overflow: hidden; padding: 100px 0; color: white; background: linear-gradient(125deg, #020202 0%, #121000 58%, #8f7300 140%); border-top: 1px solid rgba(240,210,30,.24); }
.contact-glow { position: absolute; right: -12vw; bottom: -40%; width: 550px; height: 550px; border-radius: 50%; background: rgba(216,181,22,.22); filter: blur(100px); }
.contact-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: center; }
.contact h2 { max-width: 500px; }
.contact p:not(.eyebrow) { max-width: 470px; color: rgba(255,255,255,.62); }
.contact-actions { display: grid; gap: 12px; }
.contact-card { min-height: 84px; display: grid; grid-template-columns: 48px 1fr auto; gap: 18px; align-items: center; padding: 15px 20px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04); transition: border .2s, transform .2s; }
.contact-card:hover { transform: translateX(-4px); border-color: var(--gold); }
.contact-icon { width: 45px; height: 45px; display: grid; place-content: center; color: #111; background: var(--gold-bright); font-weight: 900; }
.contact-card span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.contact-card small { color: rgba(255,255,255,.55); font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; }
.contact-card strong { overflow-wrap: anywhere; font-size: .98rem; }
.contact-card b { color: var(--gold); font-size: 1.2rem; }

footer { padding: 28px 0; border-top: 1px solid rgba(240,210,30,.22); background: #050505; }
.footer-wrap { display: grid; grid-template-columns: 220px 1fr auto; gap: 30px; align-items: center; color: #747474; font-size: .78rem; }
.footer-wrap img { width: 220px; height: 55px; object-fit: contain; }
.footer-wrap p:last-child { text-align: right; }
.floating-whatsapp { position: fixed; z-index: 20; right: 22px; bottom: 22px; width: 58px; height: 58px; display: grid; place-content: center; border: 4px solid rgba(255,255,255,.9); border-radius: 50%; color: #fff; background: #20b65a; box-shadow: 0 12px 32px rgba(0,0,0,.26); font-weight: 900; }

@media (max-width: 900px) {
  .section { padding: 82px 0; }
  .menu-button { z-index: 32; display: block; padding: 8px; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 26px; opacity: 0; visibility: hidden; background: #111; transition: .25s; }
  nav.open { opacity: 1; visibility: visible; }
  nav a { font-family: var(--display); font-size: 1.8rem; text-transform: uppercase; }
  .hero { min-height: 780px; }
  .hero-image { background-position: 66% center; }
  .hero-shade { background: linear-gradient(112deg, rgba(4,4,4,.96), rgba(20,17,0,.76), rgba(226,189,0,.30)); }
  .hero h1 { font-size: clamp(3.5rem, 12vw, 5.8rem); }
  .hero-foot { display: none; }
  .section-heading, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 70px; }
  .about-visual { min-height: 520px; }
  .contact-actions { max-width: 620px; }
  .footer-wrap { grid-template-columns: 180px 1fr; }
  .footer-wrap p:last-child { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav-wrap { height: 76px; }
  .brand { width: 190px; height: 52px; }
  .hero { min-height: 720px; align-items: flex-end; padding-bottom: 75px; }
  .hero-content { padding-top: 130px; }
  .hero h1 { font-size: clamp(3.15rem, 14.4vw, 4.35rem); }
  .hero-copy { font-size: .94rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .section-heading { margin-bottom: 32px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 250px; }
  .service-number { margin-bottom: 34px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .gallery-item, .gallery-tall, .gallery-wide { grid-column: auto; grid-row: auto; }
  .gallery-item figcaption { display: block; }
  .gallery-item figcaption span { display: block; }
  .about-visual { min-height: 430px; }
  .about-visual::before { top: -14px; right: -8px; }
  .about-logo-panel { padding: 32px; }
  .contact { padding: 78px 0; }
  .contact-card { grid-template-columns: 44px 1fr auto; padding: 14px 12px; gap: 12px; }
  .contact-card strong { font-size: .82rem; }
  .footer-wrap { grid-template-columns: 1fr; gap: 8px; }
  .footer-wrap p { margin: 0; }
  .footer-wrap p:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
