/* =====================================================================
   Ingeniería Estructural Plus — ingenieria.octplus.es
   Sitio estático, sin framework. Familia visual de octplus.es e informatica.octplus.es
   (papel crema, tinta, acento naranja y azul petróleo; Inter Tight + Geist Mono, marca en Oswald).
   ===================================================================== */
/* Tipografías autoalojadas (antes Google Fonts): Geist Mono, Inter Tight, Oswald. Licencia SIL Open Font License 1.1 (assets/fonts/*-OFL.txt). Subconjuntos latin y latin-ext. */
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/geist-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/geist-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/inter-tight-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/inter-tight-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url('../fonts/oswald-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url('../fonts/oswald-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f5f5ed; --paper-2: #ebebe2; --white: #fff;
  --ink: #282828; --ink-2: #414140; --muted: #72726f;
  --line: #d9d9d1; --border: #b3b3af;
  --accent: #e2560a; --accent-700: #c44a08; --accent-soft: rgba(226, 86, 10, .12);
  --ui: #0d3342; --ui-900: #0a2733; --ok: #2e7d4f;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px); --nav-h: 72px; --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 8px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.kicker { color: var(--muted); margin-bottom: 20px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1; font-weight: 700; }
h2 { font-size: clamp(36px, 5vw, 64px); max-width: 16ch; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 3px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .3s var(--ease), background .3s, border-color .3s; }
.btn--dark { background: var(--ui); color: var(--paper); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-700); }
.btn--ghost { border-color: var(--border); }
.btn--ghost:hover { border-color: var(--ink); }
.btn:hover { transform: translateY(-2px); }

/* ---------- Cabecera ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(245, 245, 237, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.brand svg { width: 34px; height: 34px; flex: 0 0 auto; }
.brand b { color: var(--accent); font-weight: 800; }
.brand small { display: block; white-space: nowrap; font: 500 9.5px/1 var(--mono); letter-spacing: .12em; color: var(--muted); margin-top: 4px; }
.nav__links { display: flex; gap: clamp(16px, 2vw, 26px); font-size: 15px; font-weight: 500; margin-left: auto; white-space: nowrap; }
.nav__links a { transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--accent); }
.nav__cta { white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 3px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-nav { display: none; }
@media (max-width: 1120px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .mobile-nav { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 29; background: var(--paper); padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .menu-open .mobile-nav { opacity: 1; transform: none; visibility: visible; }
  .mobile-nav a { font-size: 26px; font-weight: 700; letter-spacing: -.02em; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 24px; font-size: 16px; justify-content: center; border-bottom: 0; }
  .menu-open { overflow: hidden; }
}

/* ---------- Portada: hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(48px, 7.4vw, 104px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 28px 0 36px; max-width: 34em; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Cinta con los cinco principios */
.claims { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--ui); color: var(--paper); }
.claims ul { display: flex; gap: 48px; padding: 18px 0; width: max-content; animation: cinta 45s linear infinite; }
.claims li { white-space: nowrap; display: flex; gap: 14px; align-items: center; }
.claims li::before { content: "→"; color: var(--accent); }
@keyframes cinta { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .claims ul { animation: none; flex-wrap: wrap; width: auto; padding-inline: var(--gutter); } }

/* ---------- Servicios (rejilla) ---------- */
.head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.head p { max-width: 30em; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.svc { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 24px 32px; min-height: 230px; display: flex; flex-direction: column; gap: 12px; transition: background .3s; }
.svc:hover { background: var(--paper-2); }
.svc .mono { display: flex; justify-content: space-between; color: var(--muted); }
.svc .mono b { color: var(--accent); font-weight: 500; transition: transform .3s var(--ease); }
.svc:hover .mono b { transform: translateX(4px); }
.svc h3 { font-size: 23px; margin-top: auto; }
.svc p { color: var(--ink-2); font-size: 15px; }
.svc--cta { background: var(--accent); color: #fff; }
.svc--cta:hover { background: var(--accent-700); }
.svc--cta .mono, .svc--cta .mono b, .svc--cta p { color: rgba(255, 255, 255, .88); }
/* 6 servicios en 4 columnas: la tarjeta de contacto ocupa el hueco de la segunda fila */
.svc--cta { grid-column: span 2; }
@media (max-width: 1000px) { .svc--cta { grid-column: auto; } }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } .svc { min-height: 0; } }

/* ---------- Mantenimiento evolutivo ---------- */
.evo .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.evo .intro { color: var(--ink-2); margin-top: 24px; max-width: 30em; }
.evo .intro + .intro { margin-top: 14px; }
.flow { display: grid; gap: 14px; }
.flow li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.flow .n { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); font: 500 13px var(--mono); border-radius: 50%; }
.flow h3 { font-size: 21px; margin-bottom: 6px; letter-spacing: -.02em; }
.flow p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 960px) { .evo .wrap { grid-template-columns: 1fr; } }

/* ---------- Cómo trabajamos ---------- */
.method { background: var(--paper-2); }
.method .lead { margin-top: 24px; max-width: 36em; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 56px; border-top: 2px solid var(--ink); }
.steps li { padding: 22px 20px 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; }
.steps .mono { color: var(--accent); }
.steps h3 { font-size: 19px; margin: 14px 0 8px; letter-spacing: -.02em; line-height: 1.15; }
.steps p { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq__list { margin-top: 48px; border-top: 1px solid var(--border); max-width: 980px; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 48px 1fr 28px; gap: 12px; align-items: center; padding: 22px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .mono { color: var(--accent); }
.faq__item h3 { font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -.02em; line-height: 1.25; }
.faq__icon { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%; position: relative; transition: transform .3s var(--ease), background .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq__item[open] .faq__icon { background: var(--accent); border-color: var(--accent); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__body { padding: 0 40px 24px 60px; color: var(--ink-2); }
.faq__body p + p, .faq__body p + ul { margin-top: 10px; }
.faq__body ul { display: grid; gap: 6px; }
.faq__body li { padding-left: 18px; position: relative; }
.faq__body li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--accent); }
.faq__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) { .faq__item summary { grid-template-columns: 34px 1fr 28px; } .faq__body { padding: 0 0 22px 46px; } }

/* ---------- Grupo Octplus ---------- */
.group .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.group__intro { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 24px; flex-wrap: wrap; }
.group__intro p { max-width: 32em; color: var(--ink-2); }
.card { border: 1px solid var(--border); border-radius: 4px; padding: 28px; display: grid; gap: 12px; align-content: start; background: var(--white); }
.card.is-here { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.card h3 { font-size: 22px; letter-spacing: -.02em; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .mono { color: var(--muted); }
.card.is-here .mono, .card a.mono { color: var(--accent); }
@media (max-width: 900px) { .group .wrap { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.cta { background: var(--ui); color: var(--paper); border-top: 0; }
.cta .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.cta h2 { max-width: 15ch; }
.cta p { color: rgba(245, 245, 237, .75); margin: 24px 0 36px; max-width: 34em; }
.cta .mono { color: var(--accent); }
.cta dl { display: grid; gap: 18px; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 24px; }
.cta dt { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(245, 245, 237, .55); }
.cta dd { font-size: 18px; margin-top: 4px; }
.cta dd a:hover { color: var(--accent); }
@media (max-width: 900px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- Páginas interiores (servicios) ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { color: var(--border); }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 88px); max-width: 14ch; }
.page-hero .lead { margin-top: 24px; max-width: 38em; }
.page-body { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.page-body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); max-width: none; letter-spacing: -.03em; line-height: 1.1; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; margin-top: 28px; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.7; }
.prose strong { color: var(--ink); }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 9px; height: 2px; background: var(--accent); }
.prose .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prose .box { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 22px; }
.prose .box h3 { margin-top: 0; margin-bottom: 10px; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; font-size: 19px; color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 8px; font: 500 12px var(--mono); color: var(--muted); font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { .prose .cols { grid-template-columns: 1fr; } }
.aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 16px; }
.aside .box { border: 1px solid var(--border); border-radius: 4px; padding: 24px; background: var(--white); }
.aside .box--cta { background: var(--ui); color: var(--paper); border-color: var(--ui); }
.aside .box--cta p { color: rgba(245, 245, 237, .78); margin: 10px 0 18px; font-size: 15px; }
.aside .box--cta h3 { font-size: 22px; letter-spacing: -.02em; }
.aside .mono { color: var(--muted); display: block; margin-bottom: 12px; }
.aside ul { display: grid; }
.aside li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; transition: color .2s; }
.aside li:last-child a { border-bottom: 0; }
.aside li a:hover, .aside li a[aria-current] { color: var(--accent); }
.aside li a span { color: var(--accent); }
@media (max-width: 960px) { .page-body .wrap { grid-template-columns: 1fr; } .aside { position: static; } }

/* ---------- Páginas legales ---------- */
.legal-body .wrap { display: block; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.legal-tabs a { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--ink-2); }
.legal-tabs a[aria-current] { background: var(--ui); border-color: var(--ui); color: var(--paper); }
.prose dl { display: grid; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 6px 22px; }
.prose dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 12px 0; }
.prose dl > div + div { border-top: 1px solid var(--line); }
.prose dt { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 3px; }
.prose dd { color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 560px) { .prose dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- 404 ---------- */
.notfound { padding: clamp(64px, 10vw, 140px) 0; }
.notfound h1 { font-size: clamp(48px, 8vw, 112px); max-width: 12ch; }
.notfound .lead { margin: 24px 0 36px; max-width: 34em; }

/* ---------- Pie ---------- */
.footer { background: var(--ui-900); color: rgba(245, 245, 237, .75); padding: 56px 0 28px; font-size: 14.5px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .mono { color: var(--accent); margin-bottom: 14px; display: block; }
.footer li + li { margin-top: 7px; }
.footer .footer__sub { margin-top: 26px; }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; line-height: 1.6; }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 12px var(--mono); letter-spacing: .03em; }
.footer__legal nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Selector de idioma (ES · CA · EN) ---------- */
.lang { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 99px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.lang a { padding: 4px 9px; border-radius: 99px; color: var(--muted); transition: color .25s, background .25s; }
.lang a:hover { color: var(--ink); background: var(--paper-2); }
.lang a.is-current { color: var(--paper); background: var(--ui); font-weight: 600; }
.lang--mobile { align-self: flex-start; margin-top: 20px; font-size: 13px; }
.lang--mobile a { padding: 7px 14px; font-size: 13px; border-bottom: 0 !important; font-weight: 500; letter-spacing: .04em; }
@media (max-width: 1120px) { .nav .lang { display: none; } }

/* ---------- Aviso de idioma (main.js): sugiere la versión en el idioma del navegador ---------- */
.aviso-idioma {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; width: min(400px, calc(100vw - 32px));
  background: var(--ui); color: var(--paper); padding: 18px 44px 18px 20px; border-radius: 3px;
  box-shadow: 6px 6px 0 rgba(13, 51, 66, .25); font-size: 15px; line-height: 1.45;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.aviso-idioma.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.aviso-idioma p { margin: 0 0 12px; }
.aviso-idioma__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.aviso-idioma__ir { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; border-radius: 3px; }
.aviso-idioma__ir:hover { filter: brightness(1.08); }
.aviso-idioma__no { background: none; border: 0; padding: 0; color: rgba(255,255,255,.75); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.aviso-idioma__no:hover { color: #fff; }
.aviso-idioma__x { position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; background: none; border: 0; color: rgba(255,255,255,.7); font-size: 22px; line-height: 1; cursor: pointer; }
.aviso-idioma__x:hover { color: #fff; }

/* =====================================================================
   Piezas propias de Ingeniería Estructural Plus
   ===================================================================== */
/* Marca: palabra en Oswald, como el logotipo de OCTPLUS */
.brand { font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 700; font-size: 21px; letter-spacing: .01em; }
.brand small { font-family: var(--mono); font-weight: 500; }
.footer .brand-name { font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: .01em; color: var(--paper); display: block; margin-bottom: 10px; }
.footer .brand-name b { color: var(--accent); }

/* Hero: hoja de cálculo «a mano» sobre papel milimetrado */
.sheet { background-color: var(--white); background-image: linear-gradient(rgba(13, 51, 66, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 51, 66, .07) 1px, transparent 1px); background-size: 16px 16px; border: 1px solid var(--border); border-radius: 4px; box-shadow: 10px 10px 0 var(--paper-2); }
.sheet__bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--white); color: var(--muted); font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.sheet__bar b { color: var(--accent); font-weight: 500; }
.sheet svg { width: 100%; height: auto; padding: 8px 12px 0; }
.sheet__note { padding: 12px 16px 16px; border-top: 1px dashed var(--line); background: var(--white); font: 13px/1.5 var(--mono); color: var(--ink-2); }
.sk-l { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sk-thin { fill: none; stroke: var(--muted); stroke-width: 1; }
.sk-beam { fill: var(--ui); }
.sk-acc { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sk-area { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.8; }
.sk-dot { fill: var(--white); stroke: var(--ink); stroke-width: 1.4; }
.sk-t { font-family: var(--mono); font-size: 11.5px; fill: var(--ink-2); letter-spacing: .02em; }
.sk-t--acc { fill: var(--accent); font-weight: 600; }

/* Método: la fórmula */
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; font-family: var(--mono); font-size: clamp(13px, 1.1vw, 15px); }
.formula span { padding: 8px 12px; border: 1px solid var(--border); border-radius: 3px; background: var(--white); }
.formula .is-result { background: var(--ui); border-color: var(--ui); color: var(--paper); }
.formula i { font-style: normal; color: var(--accent); font-size: 1.3em; }
.quote { margin-top: 28px; padding-left: 18px; border-left: 3px solid var(--accent); font-size: 18px; color: var(--ink); max-width: 32em; }
.quote cite { display: block; margin-top: 8px; font: 500 12px var(--mono); color: var(--muted); font-style: normal; letter-spacing: .04em; text-transform: uppercase; }

/* Tipos de proyecto */
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.types .card h3 { font-size: 20px; }
.types ul { display: grid; gap: 6px; }
.types li { position: relative; padding-left: 16px; color: var(--ink-2); font-size: 15px; }
.types li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 2px; background: var(--accent); }
.clients { margin-top: 32px; color: var(--ink-2); max-width: 46em; }
@media (max-width: 1000px) { .types { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .types { grid-template-columns: 1fr; } }

/* Guías: tarjetas de la portada y del índice */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.guide-card { border: 1px solid var(--border); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 12px; background: var(--white); transition: border-color .3s, transform .3s var(--ease); }
.guide-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-card .mono { color: var(--accent); display: flex; justify-content: space-between; }
.guide-card h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.guide-card p { color: var(--ink-2); font-size: 15px; }
.guides__more { margin-top: 28px; }
@media (max-width: 900px) { .guides { grid-template-columns: 1fr; } }

/* Páginas de guía */
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--muted); }
.toc ol { display: grid; counter-reset: toc; }
.toc li a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.35; transition: color .2s; }
.toc li:last-child a { border-bottom: 0; }
.toc li a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font: 500 12px/1.9 var(--mono); color: var(--accent); }
.toc li a:hover { color: var(--accent); }
.prose .note { background: var(--paper-2); border-left: 3px solid var(--ui); padding: 16px 20px; border-radius: 0 4px 4px 0; font-size: 15.5px; }
.prose .note strong { color: var(--ui); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); border: 1px solid var(--line); }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.prose td:last-child { font-family: var(--mono); white-space: nowrap; }
.prose .table-wrap { overflow-x: auto; }
.prose ol.steps-list { display: grid; gap: 10px; counter-reset: paso; }
.prose ol.steps-list li { position: relative; padding-left: 36px; counter-increment: paso; }
.prose ol.steps-list li::before { content: counter(paso, decimal-leading-zero); position: absolute; left: 0; top: .1em; font: 500 13px var(--mono); color: var(--accent); }
.related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.related .guides { margin-top: 20px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .related .guides { grid-template-columns: 1fr; } }

/* Servicios complementarios del grupo */
.extra { grid-column: 1 / -1; margin-top: 24px; border-top: 1px solid var(--border); padding-top: 28px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; }
.extra h3 { font-size: 22px; letter-spacing: -.02em; }
.extra p { color: var(--ink-2); margin-top: 10px; font-size: 15px; }
.extra ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.extra li { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; }
.extra li b { display: block; font-size: 16px; margin-bottom: 4px; letter-spacing: -.01em; }
.extra li span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 900px) { .extra { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .extra ul { grid-template-columns: 1fr; } }

/* Logotipo completo en el pie (como el de OCTPLUS: isotipo + palabra en Oswald + línea en mono) */
.footer__brand { display: grid; gap: 16px; align-content: start; justify-items: start; }
.footer__logo { display: block; }
.logo-pie { display: block; height: 46px; width: auto; aspect-ratio: 470 / 73; overflow: visible; }
.lp-esc, .lp-a { fill: var(--paper); }
.lp-acc, .lp-b { fill: var(--accent); }
.lp-word { font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 700; font-size: 61px; }
.lp-sub { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .32em; fill: rgba(245, 245, 237, .7); }

/* Banda con la foto de cada servicio y de «Somos diferentes» */
.page-banner { margin: 0 0 clamp(40px, 6vw, 72px); }
.page-banner img { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--paper-2); }
.page-banner + .page-body { border-top: 0; padding-top: 0; }

/* Dibujo a mano de «Somos diferentes» */
.prose .drawing { margin: 28px 0; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 12px; }
.prose .drawing img { display: block; width: 100%; height: auto; }
.prose .drawing figcaption { margin-top: 10px; font: 13px/1.5 var(--mono); color: var(--muted); }
.prose .formula small { font-size: .85em; color: var(--muted); flex-basis: 100%; }
.more { margin-top: 28px; }

/* Aparición suave al hacer scroll (main.js añade .is-in) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
@media print { .nav, .mobile-nav, .claims, .footer { display: none; } .reveal { opacity: 1; transform: none; } }
