/* ============================================================
   JONALO ESTRUCTURAS — styles.css
   Fabricación y montaje de estructuras metálicas · Madrid
   ============================================================ */


/* === TOKENS ================================================ */
/* === FUENTES LOCALES (SIL Open Font License) — sin conexión a Google Fonts === */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/barlow-condensed-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('assets/fonts/inter-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 300; font-display: swap; src: url('assets/fonts/inter-latin-300-italic.woff2') format('woff2'); }

:root {
  --bg:        #F4F4F2;
  --bg-off:    #EDEDE9;
  --dark:      #1E2328;
  --steel:     #3A3F45;
  --orange:      #D95F2B; /* vivid accent — icons, thin rules, large/bold display text (>=3:1 contexts) */
  --orange-h:    #C4531F; /* solid button/badge fill — passes 4.5:1 with white text */
  --orange-h2:   #A8451A; /* hover state for solid orange buttons */
  --orange-deep: #B24B1F; /* small orange text on light backgrounds (eyebrow, labels) — 4.5:1+ */
  --orange-warm: #DC6938; /* small orange text on dark backgrounds (eyebrow, labels) — 4.5:1+ */
  --white:     #FFFFFF;
  --text:      #1A1A1A;
  --muted:     #646A77;
  --border:    #D8D8D5;

  --f-display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --f-body:    'Inter', -apple-system, 'Helvetica Neue', sans-serif;

  --max-w:     1200px;
  --px:        clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 8vw, 7rem);
  --radius:    3px;
  --radius-lg: 14px;

  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur:       0.35s;
}

/* === RESET ================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* === UTILITY =============================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* === TYPOGRAPHY ============================================ */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  display: block;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--dark);
}
.section-title .fade { color: var(--muted); }
.differentials-header .section-title .fade { color: rgba(255,255,255,.55); }
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.7;
  margin-top: 1rem;
}

/* === BUTTONS =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: var(--orange-h);
  color: var(--white);
  border-color: var(--orange-h);
}
.btn-primary:hover {
  background: var(--orange-h2);
  border-color: var(--orange-h2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196,83,31,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}
.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn-outline-dark:hover {
  background: var(--dark);
  color: var(--white);
}

/* === HEADER ================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              padding var(--dur) var(--ease);
}
#header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.header-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}
.header-logo-mark {
  height: 2.75rem;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  transition: height var(--dur) var(--ease);
}
#header.scrolled .header-logo-mark {
  height: 2.25rem;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.12));
}
.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.2rem;
}
.logo-name {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
#header.scrolled .logo-name { color: var(--dark); }
.logo-sub {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-warm);
  transition: color var(--dur) var(--ease);
}
#header.scrolled .logo-sub { color: var(--orange-deep); }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.03em;
  transition: color var(--dur) var(--ease);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
#header.scrolled .nav-links a { color: var(--steel); }
#header.scrolled .nav-links a:hover,
#header.scrolled .nav-links a[aria-current="page"] { color: var(--dark); }
.nav-cta { display: flex; gap: 0.625rem; }
.btn-nav-call {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  white-space: nowrap;
  font-weight: 600;
  background: var(--orange-h);
  color: var(--white);
  transition: background var(--dur) var(--ease);
}
.btn-nav-call:hover { background: var(--orange-h2); }
.btn-nav-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.1);
  transition: all var(--dur) var(--ease);
}
.btn-nav-wa:hover { background: rgba(255,255,255,0.18); }
#header.scrolled .btn-nav-wa {
  color: var(--steel);
  border-color: var(--border);
  background: transparent;
}
#header.scrolled .btn-nav-wa:hover { background: var(--bg-off); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  width: 32px;
  cursor: pointer;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
#header.scrolled .nav-toggle span { background: var(--dark); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO ================================================== */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/hero.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.38;
  will-change: transform;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8rem var(--px) 5rem;
  width: 100%;
}
.hero-sello {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 2rem;
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hero-sello::before,
.hero-sello::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--orange);
  flex-shrink: 0;
}
.hero-headline {
  font-family: var(--f-display);
  font-size: clamp(4.5rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 2.25rem;
}
.hero-headline em {
  font-style: normal;
  color: var(--orange);
  display: block;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,.9);
  max-width: 58ch;
  line-height: 1.72;
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stamp {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 4rem;
  font-family: var(--f-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  font-weight: 600;
}
.hero-stamp i {
  display: block;
  width: 1px;
  height: 1.5em;
  background: rgba(255,255,255,.4);
  font-style: normal;
}

/* === MARQUEE ================================================ */
.marquee {
  background: var(--dark);
  overflow: hidden;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
.marquee-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-item {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  padding-right: 2rem;
}
.marquee-dot {
  color: var(--orange-warm);
  font-size: 0.9rem;
  padding-right: 2rem;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-inner { animation: none; }
}

/* === INTRO ================================================= */
.section-intro {
  padding: var(--section-y) var(--px);
  overflow: hidden;
}
.intro-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.intro-text .section-title { margin-top: 0.5rem; }
.intro-text p {
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.75;
  margin-top: 1.25rem;
  font-size: 1.0625rem;
}
.intro-image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--steel);
  position: relative;
}
.intro-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.intro-image:hover img { transform: scale(1.04); }
.intro-image-label {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem;
  background: rgba(30,35,40,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
}

/* === SERVICES ============================================== */
.section-services {
  padding: var(--section-y) var(--px);
  background: var(--bg-off);
}
.services-inner { max-width: var(--max-w); margin: 0 auto; }
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.services-header .section-subtitle {
  max-width: 40ch;
  margin-top: 0;
  text-align: right;
}
.services-list { border-top: 1px solid var(--border); }
.service-item {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: padding-left var(--dur) var(--ease);
}
.service-item::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  height: 1px;
  background: var(--orange);
  width: 0;
  transition: width 0.45s var(--ease);
}
.service-item:hover::after { width: 100%; }
.service-item:hover { padding-left: 0.5rem; }
.service-num {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange-deep);
  letter-spacing: 0.06em;
}
.service-body { min-width: 0; }
.service-title {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.service-desc {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 55ch;
  line-height: 1.6;
}
.service-tag {
  font-family: var(--f-body);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
  opacity: 0.7;
}
.services-note {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
}

/* === MASONRY (ALBAÑILERÍA) ================================= */
.section-masonry { padding: var(--section-y) var(--px); }
.masonry-inner { max-width: var(--max-w); margin: 0 auto; }
.masonry-header { margin-bottom: 3rem; max-width: 62ch; }
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.masonry-item {
  padding: 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
}
.masonry-item:hover { background: rgba(217,95,43,0.04); }
.masonry-icon {
  width: 2.5rem; height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217,95,43,0.08);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.masonry-icon svg { width: 1.2rem; height: 1.2rem; stroke: var(--orange); fill: none; }
.masonry-title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.masonry-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* === PROJECTS ============================================== */
.section-projects { padding: var(--section-y) var(--px); }
.projects-inner { max-width: var(--max-w); margin: 0 auto; }
.projects-header { margin-bottom: 3rem; }
/* Asymmetric "bento" mosaic instead of a uniform grid — one large feature
   cell plus mixed-size supporting cells, closer to a real portfolio wall
   than a repeated block pattern. */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, clamp(150px, 16vw, 230px));
  grid-template-areas:
    "feature feature a     b"
    "feature feature c     c"
    "d       d       e     e";
  gap: 1.25rem;
}
.project-card:nth-child(1) { grid-area: feature; }
.project-card:nth-child(2) { grid-area: a; }
.project-card:nth-child(3) { grid-area: b; }
.project-card:nth-child(4) { grid-area: c; }
.project-card:nth-child(5) { grid-area: d; }
.project-card:nth-child(6) { grid-area: e; }
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
}
/* Gradient placeholders — replace with real photos */
.project-card:nth-child(1) { background: linear-gradient(145deg, #2A3138 0%, #1A2028 100%); }
.project-card:nth-child(2) { background: linear-gradient(145deg, #283038 0%, #1C2430 100%); }
.project-card:nth-child(3) { background: linear-gradient(145deg, #252C33 0%, #1C2228 100%); }
.project-card:nth-child(4) { background: linear-gradient(145deg, #2C3240 0%, #1E2632 100%); }
.project-card:nth-child(5) { background: linear-gradient(145deg, #282E36 0%, #202830 100%); }
.project-card:nth-child(6) { background: linear-gradient(145deg, #2E3540 0%, #222A32 100%); }
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.project-card:hover img { transform: scale(1.07); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,18,21,0.85) 0%, rgba(15,18,21,0.15) 45%, transparent 70%);
  transition: background var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.project-card:hover .project-overlay { background: linear-gradient(to top, rgba(15,18,21,0.92) 0%, rgba(15,18,21,0.3) 55%, transparent 80%); }
.project-ph-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}
.project-cat {
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.3rem;
}
.project-title {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.projects-note {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* === PROCESS =============================================== */
.section-process {
  padding: var(--section-y) var(--px);
  background: var(--bg-off);
  overflow: hidden;
}
.process-inner { max-width: var(--max-w); margin: 0 auto; }
.process-header { margin-bottom: 3.5rem; }
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 2.25rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(20,25,30,0.09);
  border-color: rgba(217,95,43,0.3);
}
.process-num {
  display: block;
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(217,95,43,0.18);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: color var(--dur) var(--ease);
}
.process-step:hover .process-num { color: rgba(217,95,43,0.32); }
.process-arrow {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 2.5rem; height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.process-arrow svg { width: 1rem; height: 1rem; stroke: var(--steel); transition: stroke var(--dur) var(--ease); }
.process-step:hover .process-arrow { background: var(--orange); border-color: var(--orange); transform: rotate(45deg); }
.process-step:hover .process-arrow svg { stroke: var(--white); }
.process-step-title {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.process-step-text { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* === DIFFERENTIALS ========================================= */
.section-differentials {
  padding: var(--section-y) var(--px);
  background: var(--dark);
}
.differentials-inner { max-width: var(--max-w); margin: 0 auto; }
.differentials-header { margin-bottom: 3.5rem; }
.differentials-header .section-title { color: var(--white); }
.differentials-header .eyebrow { color: var(--orange-warm); }
.differentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid rgba(255,255,255,0.07);
  border-left: 1px solid rgba(255,255,255,0.07);
}
.diff-item {
  padding: 2rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background var(--dur) var(--ease);
}
.diff-item:hover { background: rgba(255,255,255,0.025); }
.diff-icon {
  width: 2.5rem; height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217,95,43,0.12);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.diff-icon svg { width: 1.2rem; height: 1.2rem; stroke: var(--orange); fill: none; }
.diff-title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.diff-desc { font-size: 0.875rem; color: rgba(255,255,255,0.58); line-height: 1.65; }

/* === SPECIALTY — ELEVADORES ================================ */
.section-specialty {
  padding: var(--section-y) var(--px);
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-specialty::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  background: var(--orange);
}
.specialty-inner { max-width: var(--max-w); margin: 0 auto; }
.specialty-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.specialty-headline {
  font-family: var(--f-display);
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0;
  max-width: 14ch;
}
.specialty-headline em { font-style: normal; color: var(--orange); }
.specialty-intro {
  margin-bottom: 0;
}
.specialty-desc p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.78);
  line-height: 1.8;
}
.specialty-desc p + p { margin-top: 1.25rem; }
.specialty-desc .specialty-clients-label {
  font-family: var(--f-body);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-warm);
  display: block;
  margin-bottom: 1rem;
}
.specialty-clients-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.specialty-client-tag {
  display: inline-block;
  padding: .45rem 1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,.78);
}
.specialty-manifest {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.specialty-elements-label {
  font-family: var(--f-body);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-warm);
  display: block;
  margin-bottom: 2rem;
}
.specialty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  gap: 0;
  background: none;
  border-radius: 0;
  overflow: visible;
  border-top: 1px solid rgba(255,255,255,.07);
}
.specialty-item {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0 1.25rem;
  align-items: start;
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: transparent;
  overflow: visible;
  position: relative;
  transition: none;
}
.specialty-item:nth-child(-n+4) {
  padding-right: 3.5rem;
  border-right: 1px solid rgba(255,255,255,.07);
}
.specialty-item:nth-child(n+5) {
  padding-left: 3.5rem;
}
.specialty-item:nth-child(4),
.specialty-item:nth-child(8) {
  border-bottom: none;
}
.specialty-num {
  font-family: var(--f-display);
  font-size: .875rem;
  font-weight: 700;
  color: var(--orange-warm);
  letter-spacing: .06em;
  padding-top: .25rem;
  line-height: 1;
}
.specialty-item-title {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: .5rem;
  letter-spacing: -.015em;
}
.specialty-item-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.75;
}
.specialty-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 3rem;
  flex-wrap: wrap;
}
.specialty-cta-text {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
  flex: 1;
  min-width: 220px;
  line-height: 1.2;
}

/* Featured service item */
.service-item.featured {
  background: rgba(217,95,43,.04);
  padding-left: 1.25rem;
}
.service-item.featured:hover { padding-left: 1.25rem; }
.service-item.featured::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--orange);
}
.service-item.featured .service-title { font-size: 1.5rem; }
.service-featured-badge {
  display: inline-block;
  background: var(--orange-h);
  color: var(--white);
  font-family: var(--f-body);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: .6rem;
  position: relative;
  top: -1px;
}

/* Nav specialty highlight */
.nav-links a.nav-link-specialty { color: var(--orange-warm); }
#header.scrolled .nav-links a.nav-link-specialty { color: var(--orange-deep); }
.nav-links a.nav-link-specialty:hover { color: var(--white); }
#header.scrolled .nav-links a.nav-link-specialty:hover { color: var(--orange-h); }

/* === CTA =================================================== */
.section-cta {
  padding: var(--section-y) var(--px);
  text-align: center;
  background: var(--orange-deep);
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw; height: 60vw;
  max-width: 600px; max-height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.section-cta .eyebrow { color: rgba(255,255,255,0.92); }
.section-cta .section-title { color: var(--white); }
.section-cta .section-title .fade { color: rgba(255,255,255,0.78); }
.section-cta .btn-primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark);
}
.section-cta .btn-primary:hover { background: var(--bg-off); border-color: var(--bg-off); }
.section-cta .btn-outline-dark {
  color: var(--white);
  border-color: rgba(255,255,255,0.75);
}
.section-cta .btn-outline-dark:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.section-cta .section-title { margin-top: 0.5rem; margin-bottom: 0; }
.cta-text { margin: 1.25rem 0 2.5rem; color: rgba(255,255,255,0.92); font-size: 1.0625rem; line-height: 1.7; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === SEO LOCAL ============================================= */
.section-seo {
  padding: 3.5rem var(--px);
  background: var(--bg-off);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.seo-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.seo-title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.seo-text { font-size: 0.875rem; color: var(--muted); line-height: 1.85; }

/* === CONTACT =============================================== */
.section-contact { padding: var(--section-y) var(--px); }
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact-info .section-title { margin-top: 0.5rem; }
.contact-details { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; }
.contact-detail-icon {
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-off);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 1.1rem; height: 1.1rem; stroke: var(--orange); fill: none; }
.contact-detail-label {
  font-family: var(--f-body);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
  display: block;
}
.contact-detail-value { font-size: 0.9375rem; color: var(--text); }
.contact-detail-value a:hover { color: var(--orange-deep); }
.contact-cta-buttons { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }
.map-placeholder {
  margin-top: 2rem;
  height: 180px;
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--muted);
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 2px 24px rgba(0,0,0,0.05);
}
.form-title {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group { display: flex; flex-direction: column; margin-bottom: 1rem; }
.form-group:last-of-type { margin-bottom: 0; }
.form-label {
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.5rem;
}
.form-input, .form-select, .form-textarea {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(217,95,43,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); opacity: 0.6; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}
.form-btn {
  width: 100%;
  padding: 1rem;
  background: var(--orange-h);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  margin-top: 1.25rem;
}
.form-btn:hover { background: var(--orange-h2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(196,83,31,0.3); }
.form-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
.form-note { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 1rem; }

/* === FOOTER ================================================ */
.footer { background: var(--dark); color: rgba(255,255,255,0.55); padding: 4rem var(--px) 2rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .logo-name { color: var(--white); font-size: 1.35rem; }
.footer-tagline { font-size: 0.875rem; margin-top: 0.875rem; color: rgba(255,255,255,0.58); line-height: 1.7; max-width: 30ch; }
.footer-col-title {
  font-family: var(--f-body);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-warm);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.58); transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--white); }
.footer-contact-item { font-size: 0.875rem; color: rgba(255,255,255,0.58); margin-bottom: 0.5rem; line-height: 1.6; }
.footer-contact-item a { transition: color var(--dur) var(--ease); }
.footer-contact-item a:hover { color: var(--orange-warm); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.78rem;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.5);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.5); transition: color var(--dur) var(--ease); }
.footer-legal a:hover { color: rgba(255,255,255,0.85); }

/* === FABs ================================================== */
.fab-container {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}
.fab {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 1.375rem;
  border-radius: 50px;
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.28); }
.fab svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }
.fab-call { background: var(--orange-h); color: var(--white); }
.fab-call:hover { background: var(--orange-h2); }
.fab-call svg { stroke: var(--white); fill: none; stroke-width: 2.5; }
.fab-wa { background: #25D366; color: var(--white); }
.fab-wa svg { fill: var(--white); }

/* === SCROLL REVEAL ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal-done { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.32s; }
.reveal-delay-4 { transition-delay: 0.44s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { will-change: auto; }
}

/* === RESPONSIVE ============================================ */
@media (max-width: 1024px) {
  .intro-grid { gap: 3rem; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .services-header .section-subtitle { text-align: left; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .seo-inner { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 1024px) {
  .specialty-item:nth-child(-n+4) { padding-right: 2.5rem; }
  .specialty-item:nth-child(n+5) { padding-left: 2.5rem; }
}

/* Header switches to the hamburger menu earlier than the general layout
   breakpoints — the logo mark plus 7 nav links needs more breathing room
   than a single row can give between ~1024px and ~1300px. */
@media (max-width: 1300px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  /* Mobile full-screen nav */
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 99;
    padding: 5rem 2rem 2rem;
    gap: 0;
    align-items: flex-start;
    justify-content: center;
  }
  .nav-menu.open .nav-links {
    flex-direction: column;
    gap: 0.25rem;
  }
  .nav-menu.open .nav-links a {
    font-family: var(--f-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.7);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    transition: color var(--dur) var(--ease);
  }
  .nav-menu.open .nav-links a:hover { color: var(--white); }
  .nav-menu.open .nav-links a::after { display: none; }
  .nav-menu.open .nav-cta {
    margin-top: 2.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .nav-menu.open .btn-nav-call,
  .nav-menu.open .btn-nav-wa {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: var(--white);
  }
  .nav-menu.open .btn-nav-call { background: var(--orange-h); border-color: var(--orange-h); }

}

@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-image { aspect-ratio: 16 / 10; }

  .service-item { grid-template-columns: 2.5rem 1fr; gap: 1.25rem; }
  .service-tag { display: none; }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-template-areas: none;
  }
  .project-card { grid-area: auto !important; aspect-ratio: 4 / 3; }

  .process-track { grid-template-columns: 1fr 1fr; }

  .specialty-header { grid-template-columns: 1fr; gap: 2.5rem; }
  .specialty-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-template-rows: none;
  }
  .specialty-item:nth-child(-n+4) { padding-right: 0; border-right: none; }
  .specialty-item:nth-child(n+5) { padding-left: 0; }
  .specialty-item:nth-child(4) { border-bottom: 1px solid rgba(255,255,255,.07); }
  .specialty-item:last-child { border-bottom: none; }

  .differentials-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .fab .fab-label { display: none; }
  .fab { padding: 0.875rem; }
}

@media (max-width: 540px) {
  .hero-headline { font-size: clamp(3.5rem, 16vw, 5rem); }
  .projects-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr; }
  .differentials-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FORM — privacy consent
   ============================================================ */
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.25rem 0 1.25rem; font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }
.form-consent input { margin-top: 0.2rem; width: 1rem; height: 1rem; flex-shrink: 0; accent-color: var(--orange-h); cursor: pointer; }
.form-consent a { color: var(--orange-deep); text-decoration: underline; }
.form-consent.invalid { color: #C0392B; }
.form-legal-info { font-size: 0.6875rem; color: var(--muted); line-height: 1.5; margin-top: 0.75rem; text-align: center; }
.form-legal-info a { color: inherit; text-decoration: underline; }

/* ============================================================
   LEGAL PAGES (aviso-legal, privacidad, cookies)
   ============================================================ */
.legal-page { background: var(--bg); }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--px); background: var(--white); box-shadow: 0 1px 0 var(--border); }
.legal-header .logo-name { color: var(--dark); }
.legal-header .logo-sub  { color: var(--orange-deep); }
.legal-back { font-size: 0.875rem; font-weight: 500; color: var(--dark); text-decoration: none; white-space: nowrap; }
.legal-back:hover { color: var(--orange-deep); }
.legal-main { padding: clamp(2.5rem, 6vw, 4.5rem) var(--px); }
.legal-content { max-width: 760px; margin: 0 auto; background: var(--white); padding: clamp(1.75rem, 5vw, 3.5rem); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); line-height: 1.7; font-size: 0.9375rem; }
.legal-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 0.5rem; }
.legal-content h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; color: var(--dark); text-transform: uppercase; }
.legal-updated { font-size: 0.8125rem; color: var(--muted); margin: 0.5rem 0 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.legal-content h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.375rem; color: var(--dark); margin: 2rem 0 0.75rem; }
.legal-content p { margin-bottom: 0.9rem; }
.legal-content ul { margin: 0 0 1rem 1.25rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content ul.legal-data { list-style: none; margin-left: 0; padding: 1rem 1.25rem; background: var(--bg); border-left: 3px solid var(--orange); }
.legal-content a { color: var(--orange-deep); text-decoration: underline; word-break: break-word; }
.legal-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem var(--px); background: var(--dark); color: rgba(255,255,255,0.65); font-size: 0.8125rem; }
.legal-footer nav { display: flex; gap: 1.25rem; }
.legal-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.legal-footer a:hover { color: var(--white); }
@media (max-width: 520px) { .legal-header .logo-sub { display: none; } }

/* legal pages — restore bullets removed by global reset */
.legal-content ul:not(.legal-data) { list-style: disc; padding-left: 0.25rem; }
.legal-content code { font-size: 0.85em; background: var(--bg); padding: 0.1em 0.35em; border-radius: 2px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; font-size: 0.8125rem; line-height: 1.5; }
.legal-table th, .legal-table td { border: 1px solid var(--border); padding: 0.6rem 0.7rem; text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg); font-weight: 600; color: var(--dark); }
@media (max-width: 640px) {
  .legal-table, .legal-table thead, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; }
  .legal-table thead { display: none; }
  .legal-table tr { border: 1px solid var(--border); margin-bottom: 0.75rem; }
  .legal-table td { border: none; border-bottom: 1px solid var(--border); }
  .legal-table td:last-child { border-bottom: none; }
}

/* ============================================================
   COOKIE BANNER + MAP CONSENT
   ============================================================ */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2000; max-width: 960px; margin: 0 auto; background: var(--dark); color: rgba(255,255,255,0.85); border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,0.35); opacity: 0; transform: translateY(16px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner-inner { display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem 1.5rem; }
.cookie-banner-text { flex: 1; font-size: 0.8125rem; line-height: 1.55; }
.cookie-banner-title { font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; color: var(--white); margin-bottom: 0.25rem; }
.cookie-banner a { color: var(--orange-warm); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-btn { font-family: var(--f-body); font-size: 0.875rem; font-weight: 600; padding: 0.7rem 1.4rem; border-radius: var(--radius); cursor: pointer; border: 2px solid transparent; transition: background var(--dur), color var(--dur), border-color var(--dur); }
.cookie-btn-accept { background: var(--orange-h); color: var(--white); border-color: var(--orange-h); }
.cookie-btn-accept:hover { background: var(--orange-h2); border-color: var(--orange-h2); }
.cookie-btn-reject { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.cookie-btn-reject:hover { background: var(--white); color: var(--dark); }
@media (max-width: 720px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.1rem 1.15rem; }
  .cookie-banner-actions .cookie-btn { flex: 1; }
}

.map-wrap { margin-top: 2rem; }
.map-consent { min-height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.5rem; padding: 1.5rem; background: var(--bg-off); border: 1px dashed var(--border); border-radius: var(--radius); font-size: 0.8125rem; color: var(--muted); }
.map-consent[hidden] { display: none; }
.map-consent-title { font-weight: 600; color: var(--dark); font-size: 0.9375rem; }
.map-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.map-consent-link { color: var(--orange-deep); font-weight: 500; text-decoration: underline; }
.map-wrap iframe { display: block; }
.map-wrap iframe[hidden] { display: none; }
.fab-container { transition: opacity 0.3s var(--ease); }
body.cookie-open .fab-container { opacity: 0; pointer-events: none; }
.legal-header .header-logo { min-width: 0; }
.legal-back-short { display: none; }
@media (max-width: 600px) {
  .legal-header { padding: 0.75rem 1rem; }
  .legal-header .logo-name { font-size: 1.05rem; }
  .legal-header .header-logo-mark { width: 34px; height: auto; }
  .legal-back-long { display: none; }
  .legal-back-short { display: inline; }
  .legal-main { padding: 1rem 0.75rem 2rem; }
  .legal-content { padding: 1.5rem 1.15rem; font-size: 0.9rem; }
  .legal-content ul.legal-data { padding: 0.85rem 1rem; }
  .legal-footer { flex-direction: column; padding: 1.25rem 1rem; }
  .legal-footer nav { flex-wrap: wrap; gap: 0.5rem 1.25rem; }
}
@media (max-width: 640px) {
  .legal-table td::before { content: attr(data-label); display: block; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.15rem; }
  .legal-table td:first-child { background: var(--bg); font-weight: 600; }
}

/* ============================================================
   UX / UI POLISH — v7 (revisión responsive ordenador · iPad · móvil)
   ============================================================ */

/* Anchors: headings no quedan tapados por el header fijo */
html { scroll-padding-top: 5rem; }

/* Foco visible accesible (teclado) */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible { outline: none; }

/* Selección de texto con color de marca */
::selection { background: rgba(217,95,43,0.22); }

/* Header: menú abierto siempre sobre fondo oscuro */
#header.menu-open { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
#header.menu-open .logo-name { color: var(--white); }
#header.menu-open .logo-sub { color: var(--orange-warm); }
#header.menu-open .nav-toggle span { background: var(--white); }
.nav-toggle { width: 44px; height: 44px; justify-content: center; align-items: stretch; padding: 10px; margin-right: -10px; }
@media (max-width: 1300px) {
  .nav-menu.open { overflow-y: auto; padding: 6rem var(--px) 2.5rem; justify-content: flex-start; }
  .nav-menu.open .nav-links { width: 100%; }
  .nav-menu.open .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-menu.open .nav-links a { display: block; font-size: clamp(1.75rem, 6vw, 2.5rem); padding: 0.6rem 0; }
  .nav-menu.open .nav-links a.nav-link-specialty { color: var(--orange-warm); }
  .nav-menu.open .nav-links a[aria-current="page"] { color: var(--white); }
  .nav-menu.open .nav-cta { margin-top: 2rem; }
}
@media (min-width: 769px) and (max-width: 1300px) {
  .nav-menu.open { padding-left: clamp(2rem, 8vw, 5rem); padding-top: 7.5rem; }
}

/* Header compacto en móvil pequeño */
@media (max-width: 400px) {
  #header { padding-left: 1rem; padding-right: 1rem; }
  .logo-name { font-size: 1.25rem; }
  .logo-sub { font-size: 0.52rem; letter-spacing: 0.12em; }
  .header-logo-mark { height: 2.25rem; }
  .header-logo { gap: 0.55rem; }
}

/* Hero: sello inferior sin cortes en móvil */
@media (max-width: 540px) {
  .hero-content { padding-top: 7rem; padding-bottom: 4rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 0; justify-content: center; }
  .hero-stamp { gap: 0.75rem; font-size: 0.66rem; letter-spacing: 0.1em; margin-top: 2.75rem; flex-wrap: wrap; }
  .hero-stamp span { white-space: nowrap; }
}

/* Especialidad: etiqueta "Trabajamos con" y lista en 2 columnas en iPad */
.specialty-desc .specialty-clients-label { margin-top: 2rem; font-size: .67rem; line-height: 1.4; }
@media (min-width: 641px) and (max-width: 768px) {
  .specialty-grid { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(4, auto); }
  .specialty-item:nth-child(-n+4) { padding-right: 2rem; border-right: 1px solid rgba(255,255,255,.07); }
  .specialty-item:nth-child(n+5) { padding-left: 2rem; }
  .specialty-item:nth-child(4), .specialty-item:nth-child(8) { border-bottom: none; }
}
@media (max-width: 768px) {
  .specialty-cta { flex-direction: column; align-items: stretch; }
  .specialty-cta .btn { justify-content: center; }
}

/* Servicios: alineación en móvil */
@media (max-width: 768px) {
  .service-item, .service-item.featured { align-items: start; padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .service-item.featured { padding-left: 1rem; padding-right: 1rem; }
  .service-num { padding-top: 0.3rem; }
  .service-featured-badge { display: table; margin: 0 0 0.5rem; top: 0; }
  .service-item.featured .service-title { display: flex; flex-direction: column-reverse; align-items: flex-start; font-size: 1.35rem; }
  .service-item:hover { padding-left: 0; }
  .service-item.featured:hover { padding-left: 1rem; }
}

/* Albañilería: rejilla sin huecos vacíos (3 · 2 · 1 columnas) */
.masonry-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .masonry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .masonry-grid { grid-template-columns: 1fr; } .masonry-item { padding: 1.5rem; } }

/* Por qué Jonalo: 7 tarjetas sin hueco vacío */
.differentials-grid { grid-template-columns: repeat(4, 1fr); }
.diff-item:last-child { grid-column: span 2; }
@media (max-width: 1024px) { .differentials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .differentials-grid { grid-template-columns: 1fr; }
  .diff-item:last-child { grid-column: auto; }
  .diff-item { padding: 1.5rem; }
}

/* Proyectos: tarjetas tocables y texto legible */
@media (max-width: 768px) {
  .project-card { aspect-ratio: 4 / 3; }
  .project-overlay { padding: 1.25rem; }
}
@media (hover: none) { .project-card { cursor: default; } .process-step:hover { transform: none; } }

/* Proceso: tarjetas más compactas en móvil */
@media (max-width: 540px) {
  .process-step { padding: 1.5rem 1.25rem 1.75rem; }
  .process-num { margin-bottom: 1rem; font-size: 2.25rem; }
}

/* CTA central: botones a ancho completo en móvil */
@media (max-width: 540px) {
  .cta-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* Contacto */
.contact-inner > * { min-width: 0; }
.form-input, .form-select, .form-textarea { width: 100%; min-width: 0; }
.form-textarea { min-height: 120px; }
.form-group:last-of-type { margin-bottom: 1.25rem; }
.contact-detail-value a { transition: color var(--dur) var(--ease); }
@media (min-width: 861px) and (max-width: 1024px) {
  .contact-inner { grid-template-columns: 1fr 1.25fr; gap: 3rem; }
}
@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  /* 16px evita el zoom automático de iOS al tocar un campo */
  .form-input, .form-select, .form-textarea { font-size: 16px; padding: 0.85rem 1rem; }
  .contact-form { padding: 1.75rem 1.25rem; }
  .form-title { margin-bottom: 1.5rem; }
  .contact-cta-buttons .btn { flex: 1 1 0; justify-content: center; }
  .form-btn { padding: 1.1rem; font-size: 1rem; }
}

/* SEO local: texto más legible en móvil */
@media (max-width: 540px) { .section-seo { padding: 2.75rem var(--px); } }

/* Footer */
.footer-legal { flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-legal a { white-space: nowrap; padding: 0.25rem 0; }
@media (max-width: 768px) {
  .footer { padding-bottom: 7rem; }  /* espacio para los botones flotantes */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-tagline { max-width: 40ch; }
}
@media (max-width: 380px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* Botones flotantes: tamaño táctil y separación del borde en móvil */
@media (max-width: 768px) {
  .fab-container { bottom: 1rem; right: 1rem; gap: 0.6rem; }
  .fab { width: 52px; height: 52px; justify-content: center; padding: 0; }
  .fab svg { width: 1.35rem; height: 1.35rem; }
}

/* Banner de cookies en móvil: respeta la zona segura del iPhone */
.cookie-banner { bottom: max(1rem, env(safe-area-inset-bottom)); }

/* Menú abierto: colores correctos aunque el header esté en modo "scrolled" */
#header .header-logo { position: relative; z-index: 101; }
@media (max-width: 1300px) {
  #header .nav-menu.open .nav-links a { color: rgba(255,255,255,0.72); }
  #header .nav-menu.open .nav-links a:hover,
  #header .nav-menu.open .nav-links a[aria-current="page"] { color: var(--white); }
  #header .nav-menu.open .nav-links a.nav-link-specialty { color: var(--orange-warm); }
  #header .nav-menu.open .btn-nav-wa { color: var(--white); border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); }
  #header .nav-menu.open .nav-links li:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
}
body.nav-open .fab-container { opacity: 0; pointer-events: none; }
@media (max-width: 1300px) {
  #header .nav-menu.open .nav-links a { font-size: clamp(1.5rem, min(6vw, 5vh), 2.5rem); padding: 0.5rem 0; }
}
@media (min-width: 769px) and (max-width: 1300px) and (max-height: 900px) {
  .nav-menu.open { padding-top: 5.5rem; }
}

/* Formulario: ritmo vertical uniforme entre campos */
.form-group, .form-group:last-of-type { margin-bottom: 1.15rem; }
.form-row { margin-bottom: 1.15rem; }
.form-row .form-group, .form-row .form-group:last-of-type { margin-bottom: 0; }
@media (max-width: 768px) { .form-row { gap: 1.15rem; } }

/* Footer en móvil: una sola columna para que nada se parta */
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* === 404 =================================================== */
.page-404 { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.notfound { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 760px; width: 100%; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--px); }
.notfound-code { font-family: var(--f-display); font-weight: 800; font-size: clamp(6rem, 22vw, 11rem); line-height: 0.85; color: var(--orange); letter-spacing: -0.02em; }
.notfound-title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 6vw, 3rem); color: var(--dark); margin-top: 1rem; }
.notfound-text { color: var(--muted); font-size: 1.0625rem; line-height: 1.7; max-width: 48ch; margin-top: 1rem; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
@media (max-width: 540px) { .notfound-actions .btn { flex: 1 1 100%; justify-content: center; } }

/* Sección oculta temporalmente */
section[hidden] { display: none !important; }

/* === HERO — legibilidad del texto sobre la foto ============== */
/* Velo degradado: oscuro donde está el texto (izquierda y abajo),
   deja ver la estructura a la derecha. */
.hero-bg { opacity: 0.55; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18,21,25,0.94) 0%, rgba(18,21,25,0.82) 38%, rgba(18,21,25,0.45) 68%, rgba(18,21,25,0.15) 100%),
    linear-gradient(0deg, rgba(18,21,25,0.85) 0%, rgba(18,21,25,0) 38%);
}
.hero-content { z-index: 2; }
.hero-sello { color: rgba(255,255,255,0.78); }
.hero-sub { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,0.55); }
.hero-stamp { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,0.6); }
.hero-stamp i { background: rgba(255,255,255,0.55); }
.hero .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.85);
  background: rgba(18,21,25,0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero .btn-outline:hover { background: #fff; color: var(--dark); border-color: #fff; }
@media (max-width: 768px) {
  /* En móvil el texto ocupa todo el ancho: velo más uniforme */
  .hero::after {
    background:
      linear-gradient(180deg, rgba(18,21,25,0.70) 0%, rgba(18,21,25,0.80) 45%, rgba(18,21,25,0.92) 100%);
  }
}

/* Titular hero: más aire entre líneas para que la tilde de METÁLICAS no toque la R */
.hero-headline { line-height: 0.96; }

/* ============================================================
   ESPECIALIDAD — versión clara (tarjetas + panel CTA oscuro)
   ============================================================ */
.section-specialty.specialty-cards {
  background: var(--white);
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-specialty.specialty-cards::before { display: none; }

/* Cabecera */
.specialty-cards .specialty-header { align-items: end; gap: clamp(2.5rem, 6vw, 5rem); }
.specialty-cards .specialty-headline {
  color: var(--dark);
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  line-height: 0.98;
  max-width: 13ch;
}
.specialty-cards .specialty-headline em { color: var(--orange-h); }
.specialty-cards .specialty-desc p { color: var(--muted); font-size: 1.0625rem; line-height: 1.75; }
.specialty-cards .specialty-desc .specialty-clients-label { color: var(--orange-deep); }
.specialty-cards .specialty-client-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--steel);
  font-weight: 500;
}

/* Qué fabricamos: rejilla de tarjetas */
.specialty-cards .specialty-manifest { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 0; border-top: none; }
.specialty-cards .specialty-elements-label { color: var(--orange-deep); margin-bottom: 1.5rem; }
.specialty-cards .specialty-grid {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: row;
  grid-template-rows: none;
  gap: 1rem;
  border-top: none;
}
.specialty-cards .specialty-item,
.specialty-cards .specialty-item:nth-child(-n+4),
.specialty-cards .specialty-item:nth-child(n+5),
.specialty-cards .specialty-item:nth-child(4),
.specialty-cards .specialty-item:nth-child(8),
.specialty-cards .specialty-item:last-child {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.6rem 1.5rem 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.specialty-cards .specialty-item:hover {
  transform: translateY(-4px);
  background: var(--white);
  border-color: rgba(217,95,43,0.35);
  box-shadow: 0 14px 32px rgba(20,25,30,0.08);
}
.specialty-cards .specialty-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  padding: 0;
  border-radius: 10px;
  background: rgba(217,95,43,0.1);
  color: var(--orange-deep);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.specialty-cards .specialty-item:hover .specialty-num { background: var(--orange-h); color: var(--white); }
.specialty-cards .specialty-item-title { color: var(--dark); font-size: 1.25rem; }
.specialty-cards .specialty-item-desc { color: var(--muted); line-height: 1.65; }

/* CTA: panel oscuro como acento */
.specialty-cards .specialty-cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  border-top: none;
  background: var(--dark);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  gap: 1rem 1.25rem;
}
.specialty-cards .specialty-cta::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--orange);
}
.specialty-cards .specialty-cta::after {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(217,95,43,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.specialty-cta-copy { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.specialty-cards .specialty-cta-text { color: var(--white); min-width: 0; }
.specialty-cta-sub { color: rgba(255,255,255,0.7); font-size: 0.9375rem; margin-top: 0.4rem; line-height: 1.6; }
.specialty-cards .specialty-cta .btn { position: relative; z-index: 1; }

/* Responsive */
@media (max-width: 1100px) {
  .specialty-cards .specialty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .specialty-cards .specialty-header { align-items: start; }
  .specialty-cards .specialty-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .specialty-cards .specialty-item { padding: 1.35rem 1.25rem 1.5rem; }
  .specialty-cards .specialty-cta { flex-direction: column; align-items: stretch; }
  .specialty-cards .specialty-cta .btn { justify-content: center; }
}
@media (max-width: 560px) {
  .specialty-cards .specialty-grid { grid-template-columns: 1fr; }
  .specialty-cards .specialty-item,
  .specialty-cards .specialty-item:nth-child(n) { flex-direction: row; align-items: flex-start; gap: 1rem; }
  .specialty-cards .specialty-num { flex-shrink: 0; width: 2.25rem; height: 2.25rem; }
}
@media (hover: none) { .specialty-cards .specialty-item:hover { transform: none; box-shadow: none; } }
.specialty-cards .specialty-header { align-items: start; }
.specialty-cards .specialty-desc p.specialty-clients-label { font-size: .67rem; line-height: 1.4; letter-spacing: .14em; font-weight: 700; color: var(--orange-deep); margin-top: 2rem; }
@media (max-width: 1024px) {
  .specialty-cards .specialty-header { grid-template-columns: 1fr; gap: 2rem; }
  .specialty-cards .specialty-headline { max-width: none; }
  .specialty-cards .specialty-desc { max-width: 68ch; }
}

/* ============================================================
   ESPECIALIDAD — tema OSCURO "plano técnico"
   (misma maquetación en tarjetas, colores sobre fondo grafito)
   ============================================================ */
.section-specialty.specialty-cards {
  background-color: #15181C;
  background-image:
    radial-gradient(ellipse 60% 55% at 100% 0%, rgba(217,95,43,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(217,95,43,0.07) 0%, transparent 70%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
  color: var(--white);
  border-top: none;
  border-bottom: none;
}
/* Cabecera */
.specialty-cards .eyebrow { color: var(--orange-warm); }
.specialty-cards .specialty-headline { color: var(--white); }
.specialty-cards .specialty-headline em { color: var(--orange); }
.specialty-cards .specialty-desc p { color: rgba(255,255,255,0.72); }
.specialty-cards .specialty-desc p.specialty-clients-label,
.specialty-cards .specialty-elements-label { color: var(--orange-warm); }
.specialty-cards .specialty-client-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
}
/* Tarjetas */
.specialty-cards .specialty-item,
.specialty-cards .specialty-item:nth-child(-n+4),
.specialty-cards .specialty-item:nth-child(n+5),
.specialty-cards .specialty-item:nth-child(4),
.specialty-cards .specialty-item:nth-child(8),
.specialty-cards .specialty-item:last-child {
  background: linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.09);
}
.specialty-cards .specialty-item:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.035) 100%);
  border-color: rgba(217,95,43,0.55);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}
.specialty-cards .specialty-num { background: rgba(217,95,43,0.16); color: var(--orange-warm); }
.specialty-cards .specialty-item:hover .specialty-num { background: var(--orange-h); color: var(--white); }
.specialty-cards .specialty-item-title { color: var(--white); }
.specialty-cards .specialty-item-desc { color: rgba(255,255,255,0.6); }
/* Panel CTA en naranja para contrastar */
.specialty-cards .specialty-cta { background: linear-gradient(120deg, #C4531F 0%, #A8451A 100%); }
.specialty-cards .specialty-cta::before { display: none; }
.specialty-cards .specialty-cta::after { background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%); }
.specialty-cards .specialty-cta-sub { color: rgba(255,255,255,0.88); }
.specialty-cards .specialty-cta .btn-primary { background: var(--white); border-color: var(--white); color: var(--dark); }
.specialty-cards .specialty-cta .btn-primary:hover { background: var(--bg-off); border-color: var(--bg-off); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.specialty-cards .specialty-cta .btn-outline { border-color: rgba(255,255,255,0.8); color: var(--white); background: transparent; }
.specialty-cards .specialty-cta .btn-outline:hover { background: rgba(255,255,255,0.14); }
@media (max-width: 768px) {
  .section-specialty.specialty-cards { background-size: auto, auto, 36px 36px, 36px 36px; }
}

/* Especialidad: fondo oscuro liso (como el original), sin retícula ni brillos */
.section-specialty.specialty-cards { background: var(--dark); background-image: none; }

/* ============================================================
   PREGUNTAS FRECUENTES (sustituye al bloque SEO)
   ============================================================ */
.section-faq { padding: var(--section-y) var(--px); background: var(--bg-off); }
.faq-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-header { position: sticky; top: 6rem; }
.faq-header .section-title { margin-top: 0.5rem; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; line-height: 1.25;
  color: var(--dark);
  transition: color var(--dur) var(--ease);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '';
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B24B1F' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq-q:hover { color: var(--orange-deep); }
.faq-item[open] .faq-q::after { transform: rotate(45deg); border-color: rgba(217,95,43,0.4); }
.faq-a { padding: 0 3.5rem 1.5rem 0; }
.faq-a p { color: var(--muted); font-size: 0.975rem; line-height: 1.75; max-width: 62ch; }
@media (max-width: 860px) {
  .faq-inner { grid-template-columns: 1fr; gap: 2rem; }
  .faq-header { position: static; }
}
@media (max-width: 540px) {
  .faq-q { font-size: 1.1rem; padding: 1.15rem 0; }
  .faq-a { padding-right: 0; }
}

/* Hero: WebP optimizado + versión ligera para móvil */
.hero-bg {
  background-image: url('assets/img/hero.jpg');
  background-image: image-set(url('assets/img/hero.webp') type('image/webp'), url('assets/img/hero.jpg') type('image/jpeg'));
}
@media (max-width: 768px) {
  .hero-bg {
    background-image: url('assets/img/hero-movil.jpg');
    background-image: image-set(url('assets/img/hero-movil.webp') type('image/webp'), url('assets/img/hero-movil.jpg') type('image/jpeg'));
  }
}
