:root {
  --dark: #1b232c;
  --dark-2: #232d38;
  --dark-3: #2e3a47;
  --orange: #e8782a;
  --orange-dark: #cc6418;
  --light: #f4f2ee;
  --white: #fff;
  --text: #333b44;
  --muted: #7a8490;
  --line: #e4e0d8;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 22, 30, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Open Sans', system-ui, sans-serif; color: var(--text); background: var(--light); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; line-height: 1.15; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn { display: inline-block; background: var(--orange); color: #fff; padding: .85rem 1.6rem; border-radius: 4px; border: 2px solid var(--orange); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn--line { background: transparent; border-color: rgba(255,255,255,.6); }
.btn--line:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn--sm { padding: .55rem 1rem; font-size: .75rem; }

/* Section headings */
.heading { text-align: center; margin-bottom: 2.5rem; }
.heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; text-transform: uppercase; color: var(--dark); display: inline-flex; align-items: center; gap: 1rem; }
.heading h2::before, .heading h2::after { content: ''; width: 50px; height: 2px; background: var(--orange); }
.heading h2 span { color: var(--orange); }
.heading p { color: var(--muted); margin-top: .5rem; }
.heading--light h2 { color: #fff; }
.heading--light p { color: #b8c0c9; }
.kicker { color: var(--orange); font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; margin-bottom: .6rem; }

/* ===== NAV ===== */
.nav { position: sticky; top: 0; z-index: 50; background: var(--dark); transition: box-shadow .2s; }
.nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.35); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__brand { background: #fff; border-radius: 8px; padding: 4px 10px; }
.nav__brand img { height: 50px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a:not(.btn) { color: #dfe4ea; text-decoration: none; font-size: .9rem; font-weight: 600; padding: .3rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav__links a:not(.btn):hover, .nav__links a.active { color: #fff; border-bottom-color: var(--orange); }
.nav__call { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); place-items: center; }
.nav__call svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Menú inferior (solo móvil) */
.tabbar { display: none; }

/* ===== HERO ===== */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; padding: 4.5rem 0 8rem; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; filter: grayscale(.4); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--dark) 35%, rgba(27,35,44,.4)); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero__kicker { color: var(--orange); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.hero h1 span { display: block; color: var(--orange); font-size: .5em; margin-top: .3rem; letter-spacing: .08em; }
.hero__lead { font-size: 1.15rem; font-weight: 400; line-height: 1.7; color: #aeb8c3; margin: 1.6rem 0 2.2rem; max-width: 44ch; padding-left: 1.1rem; border-left: 3px solid var(--orange); }
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__img img { width: 100%; max-width: 440px; margin-left: auto; border-radius: 220px 220px var(--radius) var(--radius); box-shadow: 0 25px 60px rgba(0,0,0,.5); border: 4px solid rgba(255,255,255,.08); }

/* ===== SERVICES (overlap) ===== */
.services { position: relative; z-index: 2; margin-top: -4.5rem; background: var(--dark); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.svc { display: flex; gap: 1rem; align-items: flex-start; padding: 1.8rem 1.6rem; border-right: 1px solid var(--line); transition: background .2s; }
.svc:last-child { border-right: 0; }
.svc:hover { background: #fff8f2; }
.svc__icon { flex: none; width: 54px; height: 54px; border-radius: 50%; background: #fdeee2; display: grid; place-items: center; }
.svc__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 1rem; color: var(--dark); margin-bottom: .25rem; }
.svc p { font-size: .88rem; color: var(--muted); }

/* ===== WHY ===== */
.why { background: var(--dark); color: #cfd6de; padding: 5rem 0 4.5rem; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.why__item { background: var(--dark-2); border: 1px solid var(--dark-3); border-radius: var(--radius); padding: 2rem 1.4rem; text-align: center; transition: transform .2s, border-color .2s; }
.why__item:hover { transform: translateY(-4px); border-color: var(--orange); }
.why__item svg { width: 44px; height: 44px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 1rem; }
.why__item h3 { color: #fff; font-size: 1rem; margin-bottom: .5rem; }
.why__item p { font-size: .88rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3rem; border-top: 1px solid var(--dark-3); padding-top: 2.5rem; text-align: center; }
.stats strong { display: block; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--orange); }
.stats span { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }

/* ===== WORKS ===== */
.works { padding: 5rem 0; }
.works__panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(2rem, 4vw, 3.5rem); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.filter { font: 600 .85rem 'Montserrat', sans-serif; background: var(--light); color: var(--text); border: 0; border-radius: 999px; padding: .6rem 1.2rem; cursor: pointer; transition: background .2s, color .2s; }
.filter:hover { background: #fdeee2; }
.filter.active { background: var(--orange); color: #fff; }
.works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.work { cursor: zoom-in; border-radius: var(--radius); overflow: hidden; background: var(--light); box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; }
.work[hidden] { display: none; }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work figcaption { padding: .9rem 1rem; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .95rem; color: var(--dark); text-align: center; }
.work figcaption small { display: block; font-family: 'Open Sans', sans-serif; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: .15rem; }

/* ===== FLEET ===== */
.fleet { padding: 1rem 0 5rem; }
.fleet__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.unit { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--dark); }
.unit--big { grid-column: span 2; grid-row: span 2; }
.unit img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.unit:hover img { transform: scale(1.06); }
.unit figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .7rem; color: #fff; font: 700 .85rem 'Montserrat', sans-serif; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.unit figcaption::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--orange); border-radius: 50%; margin-right: .5rem; }

/* ===== ABOUT ===== */
.about { background: #fff; padding: 5rem 0; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--dark); margin-bottom: 1.2rem; }
.about__text p + p { margin-top: 1rem; }
.about__cards { display: grid; gap: 1rem; }
.mvv { background: var(--light); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.mvv h3 { color: var(--dark); font-size: 1rem; text-transform: uppercase; margin-bottom: .35rem; }
.mvv p { font-size: .92rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .3rem; }
.chips li { background: #fff; border: 1px solid var(--line); padding: .25rem .8rem; border-radius: 999px; font-size: .85rem; }

/* ===== CONTACT ===== */
.contact { position: relative; background: var(--dark); color: #fff; padding: 5rem 0; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .15; }
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; text-transform: uppercase; }
.contact__text > p { color: #cfd6de; margin: .8rem 0 1.8rem; font-size: 1.05rem; }
.contact__list { list-style: none; display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: .8rem; }
.contact__list svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--orange); }
.contact__people { margin-top: 1.8rem; display: grid; gap: .7rem; max-width: 380px; }
.contact__person { padding: .85rem 1.2rem; border-left: 3px solid var(--orange); background: rgba(255,255,255,.06); border-radius: 0 var(--radius) var(--radius) 0; }
.contact__person span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); font-weight: 600; }
.contact__person strong { font-family: 'Montserrat', sans-serif; font-size: 1.05rem; }
.form { background: #fff; border-radius: var(--radius); padding: 2rem; display: grid; gap: .8rem; box-shadow: 0 25px 60px rgba(0,0,0,.4); }
.form input, .form select, .form textarea { font: inherit; font-size: .92rem; width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 4px; background: #fafafa; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.form .btn { justify-self: end; }
.btn--wa { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; background: #25d366; border-color: #25d366; }
.btn--wa:hover { background: #1ebe5a; border-color: #1ebe5a; }
.btn--wa svg { width: 20px; height: 20px; fill: currentColor; }
.form__error { color: #d93025; font-size: .85rem; }

/* ===== FOOTER ===== */
.footer { background: #12181e; color: #8d97a2; padding: 1.5rem 0; font-size: .85rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__logo { height: 44px; background: #fff; border-radius: 6px; padding: 3px 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--orange); }

/* ===== VOLVER ARRIBA ===== */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 50px; height: 50px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, transform .3s, visibility .3s, background .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange-dark); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ===== LIGHTBOX ===== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,14,18,.92); display: grid; place-items: center; align-content: center; gap: 1rem; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(900px, 100%); max-height: 78vh; border-radius: var(--radius); }
.lightbox__cap { color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.lightbox__close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .fleet__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 68px; }
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* Barra superior: logo + botón de llamada */
  .nav__inner { height: 64px; }
  .nav__brand img { height: 40px; }
  .nav__links { display: none; }
  .nav__call { display: grid; }

  /* Menú inferior flotante */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70;
    height: 66px; padding: 0 6px 8px; background: #fff; border-radius: 22px;
    box-shadow: 0 10px 35px rgba(15, 22, 30, .25), 0 0 0 1px rgba(0,0,0,.04);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: #8a939d; font: 600 .68rem 'Montserrat', sans-serif; -webkit-tap-highlight-color: transparent; transition: color .2s; }
  .tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
  .tabbar a.active { color: var(--orange); }
  .tabbar a.active svg { transform: translateY(-2px); }
  .tabbar a:active svg { transform: scale(.9); }
  .tabbar__main i { display: grid; place-items: center; width: 58px; height: 58px; margin-top: -30px; border-radius: 50%; background: var(--orange); border: 5px solid #fff; box-shadow: 0 6px 16px rgba(232, 120, 42, .45); }
  .tabbar__main i svg { stroke: #fff; width: 24px; height: 24px; }
  .tabbar__main span { color: var(--orange); }
  .to-top { bottom: calc(96px + env(safe-area-inset-bottom)); right: 16px; width: 44px; height: 44px; }

  /* Hero */
  .hero { padding: 2.2rem 0 6.5rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__kicker { font-size: .75rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero__lead { font-size: 1.02rem; margin: 1.2rem 0 1.6rem; }
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
  .hero__actions .btn { text-align: center; padding: .95rem .6rem; border-radius: 12px; }
  .hero__img img { max-width: 300px; margin: 0 auto; }

  /* Servicios como tarjetas compactas */
  .services { margin-top: -4rem; }
  .services__grid { grid-template-columns: 1fr; border-radius: 18px; }
  .svc { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.2rem; align-items: center; }
  .svc:last-child { border-bottom: 0; }
  .svc__icon { width: 48px; height: 48px; border-radius: 14px; }

  .why { padding: 3.5rem 0; }
  .why__item { padding: 1.4rem 1rem; border-radius: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }

  .heading { margin-bottom: 1.8rem; }
  .heading h2 { display: block; }
  .heading h2::before, .heading h2::after { display: none; }

  /* Realizaciones: filtros deslizables */
  .works { padding: 3rem 0; }
  .works__panel { padding: 1.6rem 1rem; border-radius: 18px; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.5rem; }
  .filter { padding: .7rem .5rem; font-size: .8rem; border-radius: 12px; text-align: center; }
  .works__grid { gap: .8rem; }
  .work { border-radius: 14px; }
  .work figcaption { padding: .7rem .6rem; font-size: .82rem; }

  .fleet { padding: 0 0 3rem; }
  .unit { border-radius: 14px; }
  .about { padding: 3.5rem 0; }
  .about__grid, .contact__inner { grid-template-columns: 1fr; }
  .contact { padding: 3.5rem 0; }
  .form { padding: 1.4rem; border-radius: 18px; }
  .form input, .form select, .form textarea { border-radius: 10px; font-size: 16px; }
  .form .btn { justify-self: stretch; text-align: center; border-radius: 12px; }
  .footer__inner { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .why__grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .why__item p { font-size: .8rem; }
  .why__item h3 { font-size: .9rem; }
  .works__grid { grid-template-columns: 1fr 1fr; }
  .work figcaption small { display: none; }
  .fleet__grid { grid-auto-rows: 150px; gap: .7rem; }
  .unit--big { grid-column: span 2; grid-row: span 1; }
  .unit figcaption { font-size: .75rem; padding: 1.5rem .6rem .5rem; }
}
