/* ============================================================
   Ing. Ana Seoane — Ingeniería Estructural
   Paleta tomada del sitio original (WordPress):
     fondo #f9f9f9 · texto #111 · acento naranja #fc9d53 · ala gris-azul #8b9ea8
   Rediseño: misma identidad, mejor jerarquía, espaciado y orden.
   ============================================================ */
:root {
  --bg:        #f9f9f9;
  --surface:   #ffffff;
  --ink:       #111111;
  --ink-soft:  #4a4a4a;
  --ink-mute:  #8a8a8a;
  --line:      #e4e4e4;
  --accent:    #f39140;   /* naranja del logo, levemente saturado */
  --accent-dk: #d9772a;
  --steel:     #8b9ea8;   /* gris-azulado del ala */
  --steel-dk:  #5f7079;
  --maxw: 1160px;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(17,17,17,.06), 0 8px 24px rgba(17,17,17,.06);
  --shadow-hover: 0 4px 12px rgba(17,17,17,.10), 0 16px 40px rgba(17,17,17,.10);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,249,249,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.06rem; letter-spacing: .01em; }
.brand-sub  { font-size: .74rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .13em; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 9px 16px; border-radius: 8px; font-weight: 500; font-size: .95rem;
  color: var(--ink-soft); transition: background .15s, color .15s;
}
.site-nav a:hover { background: rgba(0,0,0,.045); color: var(--ink); }
.site-nav a.active { color: var(--accent-dk); font-weight: 600; }

.nav-toggle, .nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(139,158,168,.16), transparent 60%),
    radial-gradient(760px 420px at 8% 118%, rgba(243,145,64,.10), transparent 55%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-dk); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; margin: 0 0 18px; font-weight: 700; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.24rem; color: var(--ink-soft); margin: 0 0 30px; max-width: 34ch; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(340px, 80%); opacity: .92; filter: drop-shadow(0 18px 40px rgba(95,112,121,.28)); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer; transition: all .16s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--steel); color: var(--steel-dk); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Section scaffolding ---------- */
.section { padding: 78px 0; }
.section-head { max-width: 62ch; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--steel-dk); display: block; margin-bottom: 12px;
}
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 14px; font-weight: 700; letter-spacing: -.015em; }
.section p.section-intro { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Servicios grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .16s, box-shadow .16s, border-color .16s;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.svc-num { font-size: .82rem; font-weight: 700; color: var(--accent); letter-spacing: .05em; }
.svc-card h3 { font-size: 1.14rem; margin: 8px 0 10px; font-weight: 600; }
.svc-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; line-height: 1.6; }

/* ---------- Metodología (timeline) ---------- */
.method { max-width: 820px; margin: 0 auto; }
.method-step { position: relative; padding: 0 0 34px 56px; }
.method-step:last-child { padding-bottom: 0; }
.method-step::before {
  content: attr(data-n);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.method-step::after {
  content: ""; position: absolute; left: 18px; top: 40px; bottom: 2px; width: 2px;
  background: var(--line);
}
.method-step:last-child::after { display: none; }
.method-step p { margin: 6px 0 0; color: var(--ink-soft); }

/* ---------- Obras ---------- */
.obra-cat { margin-bottom: 66px; }
.obra-cat:last-child { margin-bottom: 0; }
.obra-cat-title {
  font-size: 1.34rem; font-weight: 700; margin: 0 0 24px; padding-bottom: 12px;
  border-bottom: 2px solid var(--accent); display: inline-block; letter-spacing: -.01em;
}
.obra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.obra-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .16s, box-shadow .16s; display: flex; flex-direction: column;
}
.obra-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.obra-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #eceef0; }
.obra-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.obra-card:hover .obra-media img { transform: scale(1.05); }
.obra-thumbs { display: flex; gap: 5px; padding: 8px 8px 0; }
.obra-thumbs img { width: 48px; height: 40px; object-fit: cover; border-radius: 6px; opacity: .72; cursor: pointer; transition: opacity .15s; }
.obra-thumbs img:hover { opacity: 1; }
.obra-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.obra-body h4 { margin: 0 0 8px; font-size: 1.06rem; font-weight: 600; line-height: 1.3; }
.obra-meta { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.obra-meta .loc { display: block; }
.obra-client { font-size: .84rem; color: var(--ink-mute); margin-top: auto; padding-top: 12px; }
.obra-client span { color: var(--steel-dk); font-weight: 500; }

/* ---------- Contacto ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.contact-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-ico {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; background: rgba(243,145,64,.12);
  display: flex; align-items: center; justify-content: center; color: var(--accent-dk);
}
.contact-ico svg { width: 20px; height: 20px; }
.contact-item .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); }
.contact-item .val { font-size: 1.06rem; font-weight: 500; word-break: break-word; }
.contact-item a.val:hover { color: var(--accent-dk); }
.contact-aside { padding-top: 8px; }
.contact-aside h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 14px; letter-spacing: -.015em; }
.contact-aside p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { background: #111418; color: #cfd4d8; padding: 52px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand img { height: 58px; width: auto; max-width: none; object-fit: contain; align-self: flex-start; flex: 0 0 auto; }
.footer-brand p { margin: 0; color: #9aa2a8; max-width: 30ch; font-size: .95rem; }
.footer-col h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; color: #7f888f; margin: 0 0 14px; }
.footer-col a, .footer-col p { display: block; color: #cfd4d8; padding: 4px 0; font-size: .95rem; margin: 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); font-size: .85rem; color: #7f888f; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 404 ---------- */
.err-wrap { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.err-wrap h1 { font-size: 4rem; margin: 0; color: var(--accent); }
.err-wrap p { color: var(--ink-soft); font-size: 1.15rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 200px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; cursor: pointer;
  }
  .nav-burger span { display: block; height: 2px; width: 24px; background: var(--ink); transition: .2s; }
  .site-nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px;
    gap: 2px; transform: translateY(-120%); transition: transform .22s ease; box-shadow: var(--shadow);
  }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); }
  .site-nav a { padding: 14px 16px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .obra-grid { grid-template-columns: 1fr; }
}
