/* ========================================
   ARS Ingeniería e Instalaciones — hoja de estilos
   (basada en el formato conceptual del sitio existente,
   recolorada y adaptada al dossier de ARS)
   ======================================== */

:root {
  --dark: #1a1918;
  --dark-2: #242220;
  --dark-3: #302d2a;
  --heading: #2c2a27;
  --accent: #4a453f;
  --accent-2: #cfc9c0;
  --text: #333330;
  --muted: #6b675f;
  --bg-light: #f5f4f1;
  --white: #ffffff;
  --border: #e5e2dc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 18, 15, 0.1);
  --shadow-lg: 0 20px 50px rgba(20, 18, 15, 0.22);
  --gradient-silver: linear-gradient(120deg, #e4e2dd 0%, #b9b5ac 45%, #837e73 100%);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--heading);
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }
li { margin-bottom: .4em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--white);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent); color: var(--white); box-shadow: 0 10px 22px rgba(20, 18, 15, .3); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline-dark {
  background: transparent;
  color: var(--heading);
  border-color: var(--heading);
}
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  border-top: 4px solid transparent;
  border-image: var(--gradient-silver) 1;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.logo img { height: 46px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--heading);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn-primary { padding: 10px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--heading); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .8;
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(12,11,10,.9) 15%, rgba(12,11,10,.55) 55%, rgba(12,11,10,.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 100px 0 100px;
}
.hero-logo { height: 76px; margin-bottom: 34px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: .4em;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
.hero h1 span { color: var(--accent-2); }
.hero p.lead {
  color: rgba(255,255,255,.82);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
  position: relative;
  background: var(--dark);
  color: var(--white);
  padding: 150px 0 70px;
  overflow: hidden;
}
.page-hero .hero-bg { opacity: .75; }
.page-hero .hero-gradient { background: linear-gradient(180deg, rgba(12,11,10,.55), rgba(12,11,10,.8)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: .3em; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.page-hero p { color: rgba(255,255,255,.78); max-width: 620px; font-size: 1.05rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--accent-2); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-alt { background: var(--bg-light); }

/* Decorative gradient bar — echo del dossier (barras "EMPRESA" / "SECTORES") */
.gradient-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--gradient-silver);
  width: 64px;
  margin-bottom: 22px;
}
.section-head.center .gradient-bar { margin-left: auto; margin-right: auto; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats-2 { grid-template-columns: repeat(2, 1fr); max-width: 480px; margin: 0 auto; gap: 56px; }
.stat { text-align: center; }
.stat .num { font-family: 'Poppins', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--heading); }
.stat .num span { color: var(--accent); }
.stat .label { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* Cards grid */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card img.card-photo { width: calc(100% + 56px); margin: -32px -28px 22px; border-radius: var(--radius) var(--radius) 0 0; height: 170px; object-fit: cover; }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--white);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; }
.card h3 { font-size: 1.15rem; margin-bottom: .5em; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 1.1em; }
.card .link-more { font-weight: 700; font-size: .88rem; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.card .link-more svg { width: 14px; height: 14px; }

/* About split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split-text .eyebrow { margin-bottom: .6em; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-item .dot {
  min-width: 38px; height: 38px; border-radius: 10px;
  background: rgba(74, 69, 63, .1);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 700;
}
.value-item h4 { margin-bottom: .2em; font-size: 1rem; }
.value-item p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Segments / sectores */
.segments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.segment {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  background: var(--dark-2);
}
.segment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.segment-overlay { position: relative; z-index: 2; padding: 26px 22px; color: var(--white); }
.segment-overlay .tag { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }
.segment-overlay h3 { color: var(--white); margin: .3em 0 .3em; font-size: 1.05rem; }
.segment-overlay p { color: rgba(255,255,255,.78); font-size: .86rem; margin: 0; }

/* Registros / acreditaciones */
.registros-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; margin-top: 8px; list-style: none; padding: 0; }
.registros-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .92rem; color: var(--text);
  padding: 12px 0; border-bottom: 1px dashed var(--border);
  margin-bottom: 0;
}
.registros-list svg { width: 17px; height: 17px; stroke: var(--accent); flex-shrink: 0; margin-top: 3px; }
.registros-list .code { color: var(--muted); font-size: .82rem; display: block; margin-top: 2px; }

/* Service detail blocks */
.service-block {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 96px;
}
.service-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.service-head .icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: var(--white);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-head .icon svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; }
.service-head h2 { margin: 0; }
.service-block .cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.service-block ul.check { list-style: none; padding: 0; margin: 18px 0 0; }
.service-block ul.check li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .95rem; color: var(--text);
  padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.service-block ul.check li:last-child { border-bottom: none; }
.service-block ul.check svg { width: 18px; height: 18px; stroke: var(--accent); flex-shrink: 0; margin-top: 2px; }
.service-aside {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 26px;
  align-self: start;
}
.service-aside img { border-radius: 10px; margin-bottom: 18px; height: 170px; width: 100%; object-fit: cover; }
.service-aside h4 { font-size: .95rem; margin-bottom: .8em; }
.service-aside a.mail { color: var(--accent); font-weight: 600; font-size: .92rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--dark), var(--dark-3));
  color: var(--white);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: .2em; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.contact-info-list { list-style: none; padding: 0; margin: 28px 0; }
.contact-info-list li {
  display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border);
}
.contact-info-list .icon-sm {
  width: 42px; height: 42px; border-radius: 10px; background: rgba(74, 69, 63, .1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-list .icon-sm svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; }
.contact-info-list .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.contact-info-list .value { font-size: .98rem; margin-top: 2px; }
.contact-info-list .value a:hover { color: var(--accent); }

.dept-list { margin-top: 10px; }
.dept-list .dept { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.dept-list .dept a { color: var(--accent); font-weight: 600; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: 100%;
  min-height: 420px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

form.contact-form { display: grid; gap: 16px; margin-top: 12px; }
form.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact-form label { font-size: .85rem; font-weight: 600; color: var(--heading); margin-bottom: 6px; display: block; }
form.contact-form input, form.contact-form textarea, form.contact-form select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: .95rem;
  background: var(--white);
}
form.contact-form input:focus, form.contact-form textarea:focus, form.contact-form select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74, 69, 63, .12);
}
form.contact-form textarea { resize: vertical; min-height: 130px; }

/* Galería de proyectos, agrupada por tipo de trabajo */
.proyectos-grupos { display: flex; flex-direction: column; gap: 34px; margin-top: 12px; }
.proyecto-grupo-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.proyecto-grupo-head h3 { font-size: 1.05rem; margin: 0; }
.proyecto-grupo-head .count { font-size: .8rem; color: var(--muted); }
.proyecto-fotos { display: flex; flex-wrap: wrap; gap: 10px; }
.proyecto-fotos a {
  position: relative;
  flex: 1 1 160px;
  max-width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.proyecto-fotos img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.proyecto-fotos a:hover img { transform: scale(1.06); }
.proyecto-fotos a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.25), rgba(0,0,0,0) 40%);
  opacity: 0; transition: opacity .2s ease;
}
.proyecto-fotos a:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,9,8,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(94vw, 1200px); max-height: 84vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); display: block; }
.lightbox .lightbox-caption { color: rgba(255,255,255,.85); font-size: .9rem; text-align: center; margin-top: 14px; }
.lightbox .lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  color: var(--white); font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lightbox-close:hover { background: rgba(255,255,255,.18); }
.lightbox .lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  color: var(--white); font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lightbox-nav:hover { background: rgba(255,255,255,.18); }
.lightbox .lightbox-prev { left: 18px; }
.lightbox .lightbox-next { right: 18px; }
@media (max-width: 720px) {
  .lightbox .lightbox-nav { width: 40px; height: 40px; }
  .lightbox { padding: 16px; }
}

/* Footer */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid img.logo-footer { height: 40px; margin-bottom: 16px; }
.footer-grid p { color: rgba(255,255,255,.55); font-size: .92rem; }
.footer-grid h4 { color: var(--white); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.2em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: .8em; }
.footer-grid ul a { color: rgba(255,255,255,.65); font-size: .92rem; }
.footer-grid ul a:hover { color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .82rem; color: rgba(255,255,255,.45);
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,.45); }
.footer-legal a:hover { color: var(--accent-2); }

/* Legal / policy pages */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 1.3rem; margin-top: 2em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal-content p, .legal-content li { color: var(--text); font-size: .97rem; line-height: 1.75; }
.legal-content ul { margin-bottom: 1.2em; }
.legal-content .updated { color: var(--muted); font-size: .85rem; margin-bottom: 2.5em; }
.legal-toc { background: var(--bg-light); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 3em; }
.legal-toc h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .9em; }
.legal-toc ul { list-style: none; padding: 0; margin: 0; columns: 2; gap: 24px; }
.legal-toc li { margin-bottom: .5em; }
.legal-toc a { color: var(--heading); font-weight: 600; font-size: .92rem; }
.legal-toc a:hover { color: var(--accent); }
.legal-note { background: rgba(74,69,63,.07); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 16px 20px; font-size: .88rem; color: var(--text); margin: 2em 0; }

/* Aviso de servicios de terceros (cookies) */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--dark); color: rgba(255,255,255,.85);
  box-shadow: 0 -10px 30px rgba(0,0,0,.25);
  transform: translateY(100%); transition: transform .35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 0; flex-wrap: wrap;
}
.cookie-banner-inner p { margin: 0; font-size: .88rem; line-height: 1.6; max-width: 780px; color: rgba(255,255,255,.9); }
.cookie-banner-inner a { color: var(--white); text-decoration: underline; font-weight: 600; }
.cookie-banner-inner .btn { flex: none; }

/* Utilities */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .segments { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .service-block .cols { grid-template-columns: 1fr; }
  .registros-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .legal-toc ul { columns: 1; }
  .nav-links { position: fixed; top: 92px; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; padding: 32px 24px; gap: 22px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: 0; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .segments { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .hero-content { padding: 90px 0 70px; }
  .cta-band { padding: 36px; flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  form.contact-form .row2 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .page-hero { padding: 120px 0 50px; }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; padding: 20px 0; }
  .cookie-banner-inner .btn { align-self: stretch; text-align: center; }
}
