/*
Theme Name: PyB Puertas Cortafuego
Theme URI: https://puertascortafuegopyb.com/
Author: Miguel Romero · Marketing Digital
Description: Tema a medida para PyB Puertas Cortafuego (Puertas y Blindajes): puertas cortafuego certificadas, servicios, certificaciones, proyectos, blog y cotización. Ligero, sin constructor visual, con SEO técnico, datos estructurados, favicon y verificación de Google Search Console.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pyb
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #0e1620;
  --steel-900: #121d28;
  --steel-800: #1a2734;
  --steel-700: #2a3947;
  --steel-500: #5b6b7a;
  --steel-300: #a9b4bf;
  --line: #e2e7ec;
  --soft: #f4f6f8;
  --white: #fff;
  --fire: #d21f23;
  --fire-dark: #a9181c;
  --ember: #ff7a1a;
  --wa: #1fae55;
  --wa-dark: #178a43;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 22, 32, .06), 0 8px 24px rgba(14, 22, 32, .08);
  --shadow-lg: 0 24px 60px rgba(14, 22, 32, .18);
  --container: 1200px;
  --font-head: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--fire); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fire-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--steel-900); color: #dfe5ea; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: 64px 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.125rem; color: var(--steel-500); }
.section--dark .section-head p { color: var(--steel-300); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fire); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--ember); }
.lead { font-size: 1.2rem; color: var(--steel-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--fire { background: var(--fire); color: #fff; box-shadow: 0 8px 20px rgba(210, 31, 35, .28); }
.btn--fire:hover { background: var(--fire-dark); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(31, 174, 85, .25); }
.btn--wa:hover { background: var(--wa-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--dark .btn--ghost, .hero .btn--ghost, .page-hero .btn--ghost, .cta-band .btn--ghost { color: #fff; }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .page-hero .btn--ghost:hover, .cta-band .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--steel-900); color: var(--steel-300); font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__items { display: flex; gap: 22px; align-items: center; }
.topbar__items span, .topbar__items a { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 15px; height: 15px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
.site-header .container { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 42px; height: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 800 1.35rem/1 var(--font-head); letter-spacing: -.02em; }
.brand__name b { color: var(--fire); font-weight: 800; }
.brand__sub { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-500); margin-top: 5px; }
.brand img.custom-logo, .brand__logo { height: 60px; width: auto; }
.site-header .brand { margin: 6px 0; }
.footer-brand .brand__logo { height: 64px; }

.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .97rem; text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav__link:hover, .nav__item:focus-within > .nav__link, .nav__link[aria-current="page"] { background: var(--soft); color: var(--ink); }
.nav__link .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav__drop {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 10px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__drop::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__item:hover > .nav__drop, .nav__item:focus-within > .nav__drop, .nav__item.is-open > .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover > .nav__link .icon, .nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
.nav__drop a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.nav__drop a:hover { background: var(--soft); }
.nav__drop strong { font-size: .95rem; }
.nav__drop small { color: var(--steel-500); font-size: .82rem; line-height: 1.35; margin-top: 2px; }
.nav__drop--wide { display: grid; grid-template-columns: 1fr 1fr; min-width: 560px; gap: 2px; }
.nav__cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #dfe5ea;
  background:
    radial-gradient(900px 520px at 78% 45%, rgba(255, 122, 26, .16), transparent 60%),
    linear-gradient(180deg, var(--steel-900), #0b131b);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero .lead { color: #b9c4ce; max-width: 600px; margin-bottom: 32px; }
.hero__trust { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; max-width: 600px; }
.hero__trust li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; color: #dfe5ea; }
.hero__trust .icon { color: var(--ember); flex: none; margin-top: 2px; width: 20px; height: 20px; }
.hero__visual { position: relative; max-width: 460px; margin-left: auto; width: 100%; }
.hero__chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-lg); font-size: .9rem; line-height: 1.25;
}
.hero__chip strong { display: block; font-size: 1rem; }
.hero__chip small { color: var(--steel-500); }
.hero__chip .icon { color: var(--fire); width: 28px; height: 28px; flex: none; }
.hero__chip--a { top: 12%; left: -8%; }
.hero__chip--b { bottom: 16%; right: -6%; }
.hero__chip--c { bottom: 2%; left: 2%; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: linear-gradient(180deg, var(--steel-900), var(--steel-800)); color: #c9d2da; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,26,.22), transparent 65%); }
.page-hero .container { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 64px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); max-width: 860px; }
.page-hero .lead { color: #b9c4ce; max-width: 720px; margin: 0; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero--split .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.page-hero__visual { max-width: 300px; margin-left: auto; width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.crumbs { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--steel-300); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--steel-500); font-size: .98rem; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(210, 31, 35, .08); color: var(--fire);
}
.card__icon .icon { width: 26px; height: 26px; }
.section--dark .card { background: var(--steel-800); border-color: #2a3947; }
.section--dark .card p { color: var(--steel-300); }
.section--dark .card__icon { background: rgba(255, 122, 26, .12); color: var(--ember); }

/* Product cards */
.product-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.product-card:hover { color: var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.product-card__media { background: linear-gradient(180deg, #f6f8fa, #eaeef2); padding: 26px 30px 0; display: grid; place-items: end center; height: 230px; position: relative; }
.product-card__media svg { height: 100%; width: auto; }
.product-card__tag { position: absolute; top: 14px; left: 14px; background: var(--ink); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; }
.product-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__body h3 { margin: 0; font-size: 1.15rem; }
.product-card__body p { margin: 0; color: var(--steel-500); font-size: .95rem; flex: 1; }
.product-card .link-arrow { color: var(--fire); margin-top: 8px; font-size: .95rem; }

/* ---------- Norma band ---------- */
.norma { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.norma__quote {
  background: var(--steel-900); color: #dfe5ea; border-radius: 20px; padding: 40px; position: relative; overflow: hidden;
}
.norma__quote::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,26,.35), transparent 65%); }
.norma__quote h3 { color: #fff; font-size: 1.5rem; }
.norma__quote p { color: #b9c4ce; }
.norma__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.norma__list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.norma__list .num { width: 44px; height: 44px; border-radius: 12px; background: var(--fire); color: #fff; display: grid; place-items: center; font: 800 1.1rem var(--font-head); }
.norma__list h3 { margin: 0 0 4px; font-size: 1.08rem; }
.norma__list p { margin: 0; color: var(--steel-500); font-size: .97rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--steel-800); border: 1px solid #2a3947; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font: 800 2.2rem/1 var(--font-head);
  color: transparent; -webkit-text-stroke: 1.5px var(--ember); margin-bottom: 16px;
}
.steps h3 { color: #fff; margin-bottom: 6px; font-size: 1.12rem; }
.steps p { margin: 0; color: var(--steel-300); font-size: .96rem; }

/* ---------- Sectors ---------- */
.sector { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.sector .card__icon { margin: 0; flex: none; }
.sector h3 { font-size: 1.08rem; margin: 2px 0 4px; }
.sector p { margin: 0; color: var(--steel-500); font-size: .94rem; }

/* ---------- Standards chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 24px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .9rem; }
.section--dark .chips li { background: rgba(255,255,255,.06); border-color: #2a3947; color: #fff; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--top { align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--fire); flex: none; margin-top: 2px; width: 22px; height: 22px; }
.section--dark .checklist .icon { color: var(--ember); }

/* ---------- Spec table ---------- */
.spec { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .98rem; }
.spec th, .spec td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 34%; background: var(--soft); font-weight: 700; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.doc-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .96rem; min-width: 640px; }
.doc-table th, .doc-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.doc-table thead th { background: var(--steel-900); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Notice ---------- */
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: #fff7ef; border: 1px solid #ffd9b8; color: #6b3a12; font-size: .96rem; }
.notice .icon { color: var(--ember); flex: none; }
.notice p { margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq--center { margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font: 700 1.05rem/1.4 var(--font-head); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--fire); border-bottom: 2px solid var(--fire); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details[open] { border-color: #d5dce3; box-shadow: var(--shadow); }
.faq .faq__a { padding: 0 22px 20px; color: var(--steel-500); }
.faq .faq__a p:last-child { margin: 0; }

/* ---------- Posts ---------- */
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.post-card:hover { color: var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-card__media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--steel-800), var(--steel-700)); overflow: hidden; display: grid; place-items: center; color: rgba(255,255,255,.4); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__media .icon { width: 48px; height: 48px; color: var(--ember); opacity: .7; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__meta { font-size: .82rem; color: var(--steel-500); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { font-size: 1.12rem; margin: 0; line-height: 1.3; }
.post-card p { color: var(--steel-500); font-size: .95rem; margin: 0; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Article ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.75rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose img { border-radius: var(--radius); height: auto; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--fire); color: var(--steel-700); }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.article__cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; }
.sidebar { position: sticky; top: 110px; display: grid; gap: 20px; }
.sidebar-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.sidebar-box--dark { background: var(--steel-900); color: #c9d2da; border: 0; }
.sidebar-box--dark h3 { color: #fff; }
.sidebar-box h3 { font-size: 1.1rem; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sidebar-box ul a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.sidebar-box ul a:hover { color: var(--fire); }
.sidebar-box .btn { width: 100%; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(110deg, var(--fire-dark), var(--fire) 45%, var(--ember)); color: #fff; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255,255,255,.08); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); font-size: 1.12rem; }
.cta-band .btn-row { position: relative; z-index: 1; }
.cta-band .btn--light { background: #fff; color: var(--fire-dark); }
.cta-band .btn--light:hover { background: var(--ink); color: #fff; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .opt { color: var(--steel-500); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #cfd7de; border-radius: 10px; padding: 12px 14px; min-height: 50px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fire); box-shadow: 0 0 0 4px rgba(210, 31, 35, .12); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--steel-500); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--fire); flex: none; }
.hp { position: absolute !important; left: -9999px !important; }
.form-msg { padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.form-msg--ok { background: #e9f8ef; color: #12663a; border: 1px solid #bfe8cf; }
.form-msg--err { background: #fdecec; color: #8c1d18; border: 1px solid #f5c2c0; }
.channels { display: grid; gap: 14px; }
.channel { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
a.channel:hover { border-color: var(--fire); color: var(--ink); }
.channel .card__icon { margin: 0; width: 46px; height: 46px; flex: none; }
.channel strong { display: block; }
.channel span { color: var(--steel-500); font-size: .94rem; }
.channel--wa .card__icon { background: rgba(31, 174, 85, .1); color: var(--wa); }

/* ---------- Footer ---------- */
.site-footer { background: #0b131b; color: #9aa7b3; font-size: .95rem; }
.site-footer a { color: #d5dce3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-main { display: grid; grid-template-columns: 1.3fr .7fr 1fr .9fr 1.5fr; gap: 36px; padding: 72px 0 48px; }
.footer-main h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); }
.footer-main ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand .brand__sub { color: var(--steel-300); }
.footer-brand p { max-width: 320px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: break-word; min-width: 0; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--ember); flex: none; margin-top: 3px; }
.social, .footer-main .social { display: flex; gap: 10px; margin-top: 20px; list-style: none; padding: 0; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #fff; }
.social a:hover { background: var(--fire); text-decoration: none; }
.social .icon { width: 19px; height: 19px; }
.footer-sister { border-top: 1px solid #1c2833; padding: 20px 0; font-size: .92rem; }
.footer-bottom { border-top: 1px solid #1c2833; padding: 22px 0; font-size: .86rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; padding: 14px 20px 14px 16px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(31, 174, 85, .4); transition: transform .2s, background .2s;
}
.wa-float:hover { color: #fff; background: var(--wa-dark); transform: translateY(-2px); }
.wa-float .icon { width: 26px; height: 26px; }

/* ---------- Misc ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.stack-lg > * + * { margin-top: 64px; }
.anchor { scroll-margin-top: 110px; }
.service-block { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); }
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block__head .card__icon { width: 60px; height: 60px; }
.empty { text-align: center; padding: 48px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--steel-500); }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption, .wp-block-image figcaption { font-size: .9rem; color: var(--steel-500); }

/* ---------- Fotos ---------- */
.hero__photo {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); border: 1px solid rgba(255,255,255,.08);
}
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,19,27,.55)); }
.hero__photo img, .hero__photo svg { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero__visual { max-width: 500px; }

.page-hero--photo {
  background:
    linear-gradient(90deg, rgba(14,22,32,.96) 0%, rgba(14,22,32,.86) 45%, rgba(14,22,32,.55) 100%),
    var(--bg, none) center / cover no-repeat,
    var(--steel-900);
}
.page-hero--photo::after { display: none; }
.page-hero--photo .container { padding-top: 72px; padding-bottom: 84px; }
.page-hero__visual--photo { max-width: 420px; filter: none; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 70px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.1); }
.page-hero__visual--photo img { width: 100%; height: 100%; object-fit: cover; }

.product-card__media--photo { padding: 0; height: 220px; display: block; background: var(--steel-800); }
.product-card__media--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card__media--photo img { transform: scale(1.05); }
.product-card__tag { z-index: 1; }

.norma__quote[style] {
  background:
    linear-gradient(180deg, rgba(14,22,32,.55) 0%, rgba(14,22,32,.92) 55%, rgba(14,22,32,.98) 100%),
    var(--bg) center / cover no-repeat;
  padding-top: 200px;
}

.steps--photo li { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.steps--photo li::before { position: absolute; top: 14px; left: 16px; z-index: 1; margin: 0; font-size: 1.9rem; -webkit-text-stroke: 0; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.steps__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--steel-700); }
.steps__img img { width: 100%; height: 100%; object-fit: cover; }
.steps__body { padding: 22px 24px 26px; }

.sector-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.sector-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.sector-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--steel-800); }
.sector-card__img img { width: 100%; height: 100%; object-fit: cover; }
.sector-card__body { position: relative; padding: 34px 24px 24px; }
.sector-card__body .card__icon { position: absolute; top: -26px; left: 24px; margin: 0; background: var(--fire); color: #fff; box-shadow: 0 8px 20px rgba(210,31,35,.35); }
.sector-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.sector-card p { margin: 0; color: var(--steel-500); font-size: .95rem; }

.gallery { display: grid; gap: 12px; }
.gallery__item { margin: 0; border-radius: 14px; overflow: hidden; background: var(--steel-800); display: block; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.gallery__item:hover img, .gallery__item:hover img { transform: scale(1.04); }
.gallery--home { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; }
.gallery--home .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--full { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
.gallery--full .gallery__item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery--strip { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; }

.photo-frame { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--steel-800); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame--sm { margin-top: 20px; aspect-ratio: 4 / 3; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav__link { padding: 10px 10px; }
}
@media (max-width: 980px) {
  .topbar__items--secondary { display: none; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(400px, 88vw); background: #fff; z-index: 200;
    padding: 88px 20px 32px; overflow-y: auto; transform: translateX(100%); visibility: hidden;
    transition: transform .28s, visibility .28s; box-shadow: var(--shadow-lg);
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav__drop, .nav__drop--wide { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 8px; min-width: 0; display: none; grid-template-columns: 1fr; }
  .nav__item.is-open > .nav__drop { display: grid; }
  .nav__item:hover > .nav__drop { display: none; }
  .nav__item.is-open:hover > .nav__drop { display: grid; }
  .nav__drop small { display: none; }
  .nav__cta { margin: 16px 0 0; }
  .nav__cta .btn { width: 100%; }
  .nav-close { position: absolute; top: 20px; right: 20px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(14,22,32,.5); z-index: 150; opacity: 0; visibility: hidden; transition: opacity .25s; }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .hero .container, .page-hero--split .container, .split, .norma, .contact, .article, .cta-band, .service-block { grid-template-columns: 1fr; }
  .hero .container { padding-top: 56px; padding-bottom: 72px; gap: 40px; }
  .hero__visual { margin: 0 auto; max-width: 380px; }
  .page-hero__visual { display: none; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery--home, .gallery--full, .gallery--strip { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .hero__photo { aspect-ratio: 4 / 3; }
  .norma__quote[style] { padding-top: 160px; }
  .section { padding: 72px 0; }
  .sidebar { position: static; }
  .cta-band { padding: 40px 28px; }
  .service-block { gap: 20px; }
}
@media (min-width: 981px) {
  .nav-close, .nav-backdrop, .nav__mobile-only { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .topbar { display: none; }
  .site-header .container { min-height: 66px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand img.custom-logo, .brand__logo { height: 48px; }
  .brand__name { font-size: 1.15rem; }
  .grid--2, .grid--3, .grid--4, .steps, .form-grid { grid-template-columns: 1fr; }
  .gallery--home, .gallery--full, .gallery--strip { grid-auto-rows: 140px; gap: 8px; }
  .page-hero--photo { background: linear-gradient(180deg, rgba(14,22,32,.88), rgba(14,22,32,.94)), var(--bg, none) center / cover no-repeat, var(--steel-900); }
  .hero__trust { grid-template-columns: 1fr; }
  .hero__chip { font-size: .8rem; padding: 10px 12px; }
  .hero__chip--a { left: -2%; }
  .hero__chip--b { right: -2%; }
  .btn-row .btn { width: 100%; }
  .form-card { padding: 24px 18px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer-main > div:last-child { grid-column: 1 / -1; }
  .wa-float span { display: none; }
  .wa-float { padding: 15px; }
  .spec th { width: 42%; }
  .spec th, .spec td { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
