/* ============================================================
   FAMIN — Sistema visual corporativo
   Referencia: notebook 1366×768 / 1440×900
   ============================================================ */

:root {
  --navy:      #071322;
  --navy-2:    #0c1f3a;
  --navy-3:    #153660;
  --gold:      #f3c316;
  --gold-2:    #f9d84a;
  --soft:      #f3f7fb;
  --line:      #dce5f0;
  --ink:       #0f1e30;
  --text:      #4a5e74;
  --muted:     #7a8da4;
  --shadow:    0 1px 10px rgba(7,19,34,.07);
  --shadow-md: 0 6px 26px rgba(7,19,34,.12);
  --radius:    14px;
  --radius-sm: 9px;
  --max:       1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }

/* ── Layout ── */
.container { width: min(calc(100% - 28px), var(--max)); margin: 0 auto; }
.section { padding: 60px 0; }
.section.soft { background: var(--soft); }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(243,195,22,.11);
  color: #6e5200;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.eyebrow.light { background: rgba(243,195,22,.16); color: var(--gold-2); }
.eyebrow.light::before { background: var(--gold-2); }

/* ── Section head ── */
.section-head { max-width: 620px; margin-bottom: 30px; }
.section-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 2.7vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.section-head p { font-size: .93rem; color: var(--text); line-height: 1.75; }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: .89rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .13s ease, background .13s ease, opacity .13s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold   { background: var(--gold); color: #0f1820; }
.btn-gold:hover   { background: var(--gold-2); }
.btn-dark   { background: var(--navy); color: #fff; }
.btn-dark:hover   { background: var(--navy-2); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-ghost  { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover  { background: var(--soft); }
.btn-sm { padding: 9px 18px; font-size: .83rem; }

/* ── Tags ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.tag { padding: 5px 10px; border-radius: 999px; background: #ecf3fb; color: #486079; font-size: .7rem; font-weight: 800; }

/* ── Topbar ── */
.topbar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  font-size: .81rem;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 38px; }
.topbar-left { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.topbar-left .tb-sep { color: rgba(255,255,255,.2); padding: 0 6px; }
.topbar-right { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.topbar-right a { color: rgba(255,255,255,.72); transition: color .13s; }
.topbar-right a:hover { color: #fff; }
.topbar-vline { width: 1px; height: 13px; background: rgba(255,255,255,.15); }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(7,19,34,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav { display: flex; align-items: center; gap: 4px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; margin-right: auto; }
.brand-logo { height: 52px; width: auto; }
.brand-sub { font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.52); }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a {
  padding: 7px 9px;
  border-radius: 999px;
  color: rgba(255,255,255,.68);
  font-size: .84rem;
  font-weight: 700;
  transition: .13s ease;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.09); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 7px; margin-left: 10px; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.35rem; cursor: pointer; padding: 8px; margin-left: 4px; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: clamp(440px, 58vh, 600px);
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(106deg,
    rgba(4,10,18,.94) 0%,
    rgba(7,19,34,.86) 40%,
    rgba(7,19,34,.58) 72%,
    rgba(7,19,34,.32) 100%);
}
.hero-inner { position: relative; z-index: 2; width: min(calc(100% - 28px), var(--max)); margin: 0 auto; padding: 44px 0 50px; }
.hero-copy { max-width: 590px; }
.hero-copy h1 {
  margin: 12px 0 11px;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: .95;
  letter-spacing: -.048em;
}
.hero-copy h1 em { font-style: normal; color: var(--gold); }
.hero-copy p {
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  line-height: 1.78;
  margin: 0 0 20px;
  max-width: 490px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  font-size: .74rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
}
.chip.gold-chip {
  background: rgba(243,195,22,.14);
  border-color: rgba(243,195,22,.3);
  color: var(--gold-2);
}

/* ── Category Strip ── */
.cat-strip { background: #fff; border-bottom: 1px solid var(--line); padding-top: 14px; }
.cat-strip-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; }
.cat-strip-head strong { font-size: .71rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; color: var(--navy); }
.cat-strip-head span { font-size: .77rem; color: var(--text); }
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); }
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 13px 8px;
  border-right: 1px solid var(--line);
  text-align: center;
  transition: background .13s;
  cursor: pointer;
}
.cat-item:last-child { border-right: none; }
.cat-item:hover { background: #f5f9ff; }
.cat-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0e2440, #163868);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 900;
  font-size: .75rem;
}
.cat-item span { font-size: .73rem; font-weight: 800; color: var(--ink); line-height: 1.2; }

/* ── Solutions Section ── */
.sol-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.sol-right { display: grid; gap: 14px; }

.sol-featured {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s;
}
.sol-featured:hover { box-shadow: var(--shadow-md); }
.sol-featured .sf-img { height: 215px; overflow: hidden; background: #d8e6f5; flex-shrink: 0; }
.sol-featured .sf-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sol-featured:hover .sf-img img { transform: scale(1.03); }
.sol-featured .sf-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.sf-label {
  display: inline-block;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--navy);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  align-self: flex-start;
}
.sol-featured h3 { font-size: 1.12rem; line-height: 1.2; margin-bottom: 6px; }
.sol-featured p { font-size: .86rem; color: var(--text); line-height: 1.7; margin-bottom: 14px; flex: 1; }

.sol-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 17px 19px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow .18s, transform .18s;
}
.sol-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.sc-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0e2440, #163868);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 900;
  font-size: .82rem;
  flex-shrink: 0;
}
.sol-card h3 { font-size: .98rem; line-height: 1.2; margin-bottom: 4px; }
.sol-card p { font-size: .83rem; color: var(--text); line-height: 1.65; }
.sol-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 800;
  color: var(--navy-3);
  margin-top: 8px;
  transition: color .13s;
}
.sol-link:hover { color: var(--navy); }

/* ── Equipment Cards ── */
.equip-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.equip-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  transition: box-shadow .18s, transform .18s;
}
.equip-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.eq-img { height: 190px; overflow: hidden; background: #d8e6f5; }
.eq-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.equip-card:hover .eq-img img { transform: scale(1.04); }
.eq-body { padding: 16px 18px 19px; }
.eq-body h3 { font-size: 1.04rem; line-height: 1.2; margin-bottom: 4px; }
.eq-body p { font-size: .84rem; color: var(--text); line-height: 1.68; margin-bottom: 11px; }

/* ── FAMIN Info ── */
.info-split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.info-copy h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 10px 0 12px;
}
.info-copy p { font-size: .9rem; color: var(--text); line-height: 1.8; margin-bottom: 10px; }
.info-copy p:last-of-type { margin-bottom: 0; }
.info-img { border-radius: var(--radius); overflow: hidden; height: 330px; background: #d8e6f5; }
.info-img img { width: 100%; height: 100%; object-fit: cover; }
.group-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: .73rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.group-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.info-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ── ObraTrack Section ── */
.ob-section {
  background: linear-gradient(130deg, #071322 0%, #0d2244 55%, #102a52 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ob-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 76% 48%, rgba(243,195,22,.055) 0%, transparent 48%);
  pointer-events: none;
}
.ob-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.ob-copy h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 10px 0 11px;
}
.ob-copy > p { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.8; margin-bottom: 20px; }
.ob-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 24px; }
.ob-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  border-radius: 11px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
}
.ob-dot {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: rgba(243,195,22,.16);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 900;
  font-size: .72rem;
  flex-shrink: 0;
}
.ob-item strong { display: block; font-size: .83rem; color: #fff; margin-bottom: 1px; }
.ob-item p { font-size: .78rem; color: rgba(255,255,255,.62); line-height: 1.5; }
.ob-visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  height: 305px;
}
.ob-visual img { width: 100%; height: 100%; object-fit: cover; }
.ob-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── News ── */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  transition: box-shadow .18s, transform .18s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.nc-img { height: 148px; overflow: hidden; background: #d8e6f5; }
.nc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .nc-img img { transform: scale(1.04); }
.nc-body { padding: 15px 17px 18px; }
.nc-label { font-size: .65rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 5px; }
.news-card h3 { font-size: .94rem; line-height: 1.28; margin-bottom: 6px; }
.news-card p { font-size: .82rem; color: var(--text); line-height: 1.65; }

/* ── CTA Band ── */
.cta-band { background: var(--navy); color: #fff; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 0;
}
.cta-inner h2 { font-size: clamp(1.2rem, 2.1vw, 1.75rem); letter-spacing: -.03em; margin-bottom: 6px; }
.cta-inner p { font-size: .88rem; color: rgba(255,255,255,.62); }
.cta-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Footer ── */
.footer { background: #050e1b; color: rgba(255,255,255,.62); padding-top: 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .85fr .75fr .9fr;
  gap: 32px;
  padding-bottom: 34px;
}
.footer h4 { color: #fff; font-size: .88rem; margin-bottom: 12px; }
.footer > div p { font-size: .84rem; color: rgba(255,255,255,.48); line-height: 1.75; }
.f-links { display: grid; gap: 8px; }
.f-links a { font-size: .84rem; color: rgba(255,255,255,.54); transition: color .13s; }
.f-links a:hover { color: #fff; }
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .76rem;
  color: rgba(255,255,255,.36);
}

/* ── WhatsApp float ── */
.wa-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.wa-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(37,211,102,.42);
  transition: transform .18s;
}
.wa-wrap .wa-btn { position: static; }
.wa-btn:hover { transform: scale(1.07); }
.wa-bubble {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 12px 12px 4px 12px;
  padding: 11px 30px 11px 14px;
  font-size: .8rem;
  font-weight: 600;
  max-width: 210px;
  box-shadow: var(--shadow-md);
  line-height: 1.55;
  position: relative;
  animation: waBubblePop .3s ease;
}
@keyframes waBubblePop {
  from { opacity: 0; transform: scale(.9) translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.wa-bubble-close {
  position: absolute;
  top: 7px;
  right: 9px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  color: var(--muted);
  padding: 0;
  line-height: 1;
  transition: color .13s;
}
.wa-bubble-close:hover { color: var(--ink); }
@media (max-width: 640px) {
  .wa-wrap { right: 12px; bottom: 12px; }
  .wa-bubble { max-width: 178px; font-size: .76rem; }
}

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .44s ease, transform .44s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Helpers ── */
.flex-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */

@media (max-width: 1100px) {
  .info-split, .ob-split { grid-template-columns: 1fr; gap: 28px; }
  .info-img { height: 255px; }
  .ob-visual { height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .sol-layout { grid-template-columns: 1fr; }
  .sol-right { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { flex-wrap: wrap; }
  .nav-links, .nav-actions { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 12px;
    border-top: 1px solid rgba(255,255,255,.07);
    order: 10;
    gap: 2px;
  }
  .nav-links.open a { padding: 9px 12px; }
  .nav-actions.open {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    padding-bottom: 12px;
    margin-left: 0;
    order: 11;
  }
  .nav-actions.open .btn { width: 100%; justify-content: center; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-item:nth-child(3) { border-right: none; }
  .cat-item:nth-child(4),
  .cat-item:nth-child(5) { border-top: 1px solid var(--line); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .ob-list { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .equip-grid { grid-template-columns: 1fr 1fr; }
  .sol-right { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .equip-grid, .grid-3, .news-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .sol-right { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 1.9rem; }
  .topbar-right { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ══════════════════════════════
   FICHA TÉCNICA — landings
══════════════════════════════ */
.ficha-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 20px;
}
.ficha-row { display: grid; grid-template-columns: 190px 1fr; background: #fff; }
.ficha-label { padding: 10px 14px; font-size: .77rem; font-weight: 800; color: var(--navy); background: var(--soft); line-height: 1.4; }
.ficha-value { padding: 10px 14px; font-size: .82rem; color: var(--text); line-height: 1.5; }
@media (max-width: 540px) {
  .ficha-row { grid-template-columns: 1fr; }
  .ficha-label { padding-bottom: 2px; border-bottom: 1px solid var(--line); }
}

/* ══════════════════════════════
   COMPONENTES PÁGINAS INTERNAS
══════════════════════════════ */

/* ── Logo brand ── */
.brand-logo { height: 52px; width: auto; }
.brand-rule { width: 1px; height: 30px; background: rgba(255,255,255,.15); flex-shrink: 0; }

/* ── Page Hero (páginas internas) ── */
.page-hero {
  background: linear-gradient(130deg, #071322 0%, #0d2244 65%, #102a52 100%);
  color: #fff;
  padding: 38px 0 42px;
  min-height: clamp(260px, 34vh, 360px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    radial-gradient(circle at 86% 50%, rgba(243,195,22,.055), transparent 42%);
  background-size: 46px 46px, 46px 46px, auto;
  pointer-events: none;
}
.ph-inner { position: relative; z-index: 1; }
.ph-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  color: rgba(255,255,255,.42);
  margin-bottom: 16px;
  font-weight: 600;
}
.ph-breadcrumb a { color: rgba(255,255,255,.42); transition: color .13s; }
.ph-breadcrumb a:hover { color: rgba(255,255,255,.78); }
.ph-breadcrumb span { color: rgba(255,255,255,.2); }
.page-hero h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.06;
  letter-spacing: -.042em;
  margin: 12px 0 10px;
  max-width: 680px;
}
.ph-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.68);
  max-width: 560px;
  line-height: 1.78;
  margin: 0;
}

/* ── Value cards (empresa) ── */
.val-card {
  padding: 20px 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.vc-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0e2440, #163868);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 900;
  font-size: .8rem;
  margin-bottom: 12px;
}
.val-card h3 { font-size: .97rem; line-height: 1.2; margin-bottom: 5px; }
.val-card p { font-size: .84rem; color: var(--text); line-height: 1.68; }

/* ── Service blocks (servicios) ── */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:first-child { padding-top: 0; }
.service-block:last-child { border-bottom: none; padding-bottom: 0; }
.sb-img { border-radius: var(--radius); overflow: hidden; height: 270px; background: #d8e6f5; }
.sb-img img { width: 100%; height: 100%; object-fit: cover; }
.sb-copy h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -.032em;
  margin: 10px 0 10px;
}
.sb-copy p { font-size: .9rem; color: var(--text); line-height: 1.78; margin-bottom: 10px; }
.sb-copy p:last-of-type { margin-bottom: 0; }
.sb-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ── Steps ── */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.step-card {
  padding: 18px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.step-num {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: .88rem;
  margin-bottom: 11px;
}
.step-card h3 { font-size: .95rem; line-height: 1.2; margin-bottom: 4px; }
.step-card p { font-size: .82rem; color: var(--text); line-height: 1.65; }

/* ── Equipment detail (equipos) ── */
.equip-section { padding: 52px 0; border-bottom: 1px solid var(--line); }
.equip-section:last-of-type { border-bottom: none; }
.equip-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.ed-img { border-radius: var(--radius); overflow: hidden; height: 275px; background: #d8e6f5; }
.ed-img img { width: 100%; height: 100%; object-fit: cover; }
.ed-copy h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -.035em;
  margin: 10px 0 10px;
  line-height: 1.1;
}
.ed-copy p { font-size: .9rem; color: var(--text); line-height: 1.78; margin-bottom: 12px; }
.ed-specs { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.ed-spec { display: flex; align-items: flex-start; gap: 9px; }
.ed-spec::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 6px; }
.ed-spec span { font-size: .88rem; color: var(--text); line-height: 1.5; }

/* ── Inarco section (empresa) ── */
.inarco-band { background: var(--navy); color: #fff; }
.inarco-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.inarco-copy h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  margin: 12px 0 11px;
}
.inarco-copy p { font-size: .9rem; color: rgba(255,255,255,.68); line-height: 1.8; margin-bottom: 10px; }
.inarco-copy p:last-of-type { margin-bottom: 0; }
.inarco-img {
  border-radius: var(--radius);
  overflow: hidden;
  height: 290px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.inarco-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Servicios intro strip ── */
.svc-intro { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc-intro-item { background: #fff; padding: 20px 18px; }
.svc-intro-item .si-ico { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #0e2440, #163868); display: grid; place-items: center; color: var(--gold); font-weight: 900; font-size: .78rem; margin-bottom: 11px; }
.svc-intro-item h3 { font-size: .94rem; line-height: 1.2; margin-bottom: 4px; }
.svc-intro-item p { font-size: .82rem; color: var(--text); line-height: 1.6; }

/* ── Responsive additions ── */
@media (max-width: 1100px) {
  .inarco-inner { grid-template-columns: 1fr; gap: 26px; }
  .inarco-img { height: 230px; }
}
@media (max-width: 900px) {
  .service-block { grid-template-columns: 1fr; gap: 22px; padding: 36px 0; }
  .sb-img { height: 215px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .equip-detail { grid-template-columns: 1fr; gap: 22px; }
  .ed-img { height: 220px; }
  .svc-intro { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.75rem; }
  .svc-intro { grid-template-columns: 1fr; }
}

/* ══════════════════════════════
   NOTICIAS
══════════════════════════════ */

.news-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.nf-pill {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  border: 1.5px solid var(--line);
  color: var(--text);
  background: #fff;
  cursor: pointer;
  transition: background .13s, color .13s, border-color .13s;
  white-space: nowrap;
}
.nf-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.nf-pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.nc-read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .77rem;
  font-weight: 800;
  color: var(--navy-3);
  margin-top: 9px;
  transition: color .13s;
}
.nc-read:hover { color: var(--navy); }

/* ══════════════════════════════
   CONTACTO
══════════════════════════════ */

.contact-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 32px;
  align-items: start;
}
.cf-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px 34px;
  box-shadow: var(--shadow);
}
.cf-card h2 { font-size: 1.22rem; letter-spacing: -.03em; margin-bottom: 5px; }
.cf-card > p { font-size: .87rem; color: var(--text); margin-bottom: 22px; line-height: 1.65; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-label { font-size: .79rem; font-weight: 700; color: var(--ink); }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: .88rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .13s, box-shadow .13s;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(21,54,96,.09);
}
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5e74' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-submit { margin-top: 20px; }
.form-note { font-size: .74rem; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.contact-sidebar h3 { font-size: 1rem; letter-spacing: -.02em; margin-bottom: 14px; }
.cs-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 19px;
  margin-bottom: 11px;
}
.cs-label { font-size: .66rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cs-value { font-size: 1rem; font-weight: 800; color: var(--ink); }
.cs-sub { font-size: .79rem; color: var(--text); margin-top: 2px; }
.wa-contact-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  background: #e8faf0;
  border: 1px solid rgba(37,211,102,.22);
  border-radius: var(--radius);
  margin-top: 14px;
  transition: background .13s;
  text-decoration: none;
}
.wa-contact-block:hover { background: #d5f5e4; }
.wac-ico {
  width: 38px; height: 38px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  color: #fff; flex-shrink: 0;
}
.wa-contact-block strong { display: block; font-size: .9rem; font-weight: 800; color: var(--ink); }
.wa-contact-block span { font-size: .77rem; color: var(--text); }

@media (max-width: 1100px) {
  .contact-layout { grid-template-columns: 1fr 0.7fr; }
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .cf-card { padding: 20px 16px 26px; }
}

/* ══════════════════════════════
   FORM: VALIDACIÓN Y ESTADOS
══════════════════════════════ */
.form-input.error,
.form-select.error,
.form-textarea.error { border-color: #d93025; box-shadow: 0 0 0 3px rgba(217,48,37,.09); }
.form-error-msg { font-size: .74rem; color: #d93025; font-weight: 600; margin-top: 3px; display: none; }
.form-error-msg.visible { display: block; }
.form-date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-radio-group { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.form-radio-label {
  display: flex; align-items: center; gap: 7px;
  font-size: .87rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.form-radio-label input[type="radio"] {
  accent-color: var(--navy); width: 17px; height: 17px; cursor: pointer; margin: 0;
}
.form-feedback {
  padding: 15px 18px; border-radius: var(--radius-sm); font-weight: 700;
  font-size: .87rem; margin-top: 16px; line-height: 1.6; display: none;
}
.form-feedback.success { background: #e6f9ed; border: 1px solid rgba(37,211,102,.3); color: #1a6e38; display: block; }
.form-feedback.error-fb { background: #fef0ee; border: 1px solid rgba(217,48,37,.25); color: #d93025; display: block; }
.form-btn-wrap { position: relative; margin-top: 20px; }
.form-spinner {
  display: none; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.form-btn-wrap.loading .form-spinner { display: block; }
.form-btn-wrap.loading button { opacity: .75; pointer-events: none; }

/* ══════════════════════════════
   FLOTA: FILTROS Y CARDS
══════════════════════════════ */
.fleet-section { padding: 52px 0; }
.fleet-filter {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1.5px solid var(--line);
}
.ff-btn {
  padding: 8px 18px; border-radius: 999px; font-size: .79rem; font-weight: 700;
  border: 1.5px solid var(--line); color: var(--text); background: #fff;
  cursor: pointer; transition: all .13s; white-space: nowrap; font-family: inherit;
}
.ff-btn.active, .ff-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fleet-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .18s, transform .18s;
  display: flex; flex-direction: column;
}
.fleet-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fleet-card.hidden { display: none !important; }
.fc-img { height: 190px; overflow: hidden; background: #e8edf3; flex-shrink: 0; }
.fc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fleet-card:hover .fc-img img { transform: scale(1.05); }
.fc-img--pair { display: flex; gap: 2px; }
.fc-img--pair img { flex: 1; min-width: 0; }
.fc-body { padding: 17px 19px 20px; display: flex; flex-direction: column; flex: 1; }
.fc-badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: .67rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--soft); color: var(--navy); margin-bottom: 9px; width: fit-content;
}
.fc-badge.izaje { background: #fff8e5; color: #7a5800; border-color: rgba(243,195,22,.4); }
.fc-badge.tierra { background: #f0f5fb; color: var(--navy-3); }
.fc-badge.reducidos { background: #eefaf4; color: #166534; border-color: rgba(22,101,52,.2); }
.fc-badge.contenedor { background: #f5f0fb; color: #5b21b6; border-color: rgba(91,33,182,.2); }
.fc-badge.flete { background: #fff7ed; color: #9a3412; border-color: rgba(154,52,18,.2); }
.fc-body h3 { font-size: .98rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 3px; }
.fc-marca { font-size: .76rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.fc-cap {
  font-size: .78rem; font-weight: 700; color: var(--navy);
  background: var(--soft); border-radius: 6px; padding: 4px 10px;
  display: inline-block; margin-bottom: 9px;
}
.fc-desc { font-size: .82rem; color: var(--text); line-height: 1.65; margin-bottom: 10px; flex: 1; }
.fc-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 13px; }
.fc-operador {
  font-size: .71rem; font-weight: 800; padding: 3px 9px;
  border-radius: 999px; white-space: nowrap;
}
.fc-operador.yes { background: #e6f9ed; color: #166534; }
.fc-operador.opt { background: #fff8e5; color: #7a5800; }
.fc-cta { display: block; width: 100%; text-align: center; margin-top: auto; }
.fleet-empty { text-align: center; padding: 52px 0; color: var(--muted); font-size: .9rem; display: none; }
.fleet-empty.visible { display: block; }

@media (max-width: 900px) { .fleet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .fleet-grid { grid-template-columns: 1fr; } .form-date-row { grid-template-columns: 1fr; } }

/* ══════════════════════════════
   BRANDS MARQUEE
══════════════════════════════ */
.brands-strip {
  padding: 32px 0; overflow: hidden;
  border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line);
  background: #fff;
}
.brands-eyebrow {
  text-align: center; margin-bottom: 20px;
  font-size: .68rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.brands-overflow { overflow: hidden; position: relative; }
.brands-overflow::before,
.brands-overflow::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 72px; z-index: 2; pointer-events: none;
}
.brands-overflow::before { left: 0; background: linear-gradient(to right, #fff 0%, transparent 100%); }
.brands-overflow::after { right: 0; background: linear-gradient(to left, #fff 0%, transparent 100%); }
.brands-track {
  display: flex; align-items: center; width: max-content;
  animation: marquee 30s linear infinite;
}
.brands-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.brand-logo-item {
  padding: 8px 34px; display: flex; align-items: center; justify-content: center;
  border-right: 1.5px solid var(--line); flex-shrink: 0; min-width: 120px;
}
.brand-logo-item:last-child { border-right: none; }
.brand-name-text {
  font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 900;
  letter-spacing: -.04em; color: #c5cdd8; white-space: nowrap;
  transition: color .2s; user-select: none;
}
.brand-logo-item:hover .brand-name-text { color: #8fa0b5; }
.brand-logo-img {
  height: 38px; width: auto; max-width: 130px;
  object-fit: contain;
  filter: grayscale(1) opacity(.45);
  transition: filter .25s;
  display: block;
}
.brand-logo-item:hover .brand-logo-img { filter: grayscale(0) opacity(1); }

/* ══════════════════════════════
   PROYECTOS DESTACADOS
══════════════════════════════ */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proj-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: var(--navy);
}
.proj-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease; opacity: .9;
}
.proj-card:hover img { transform: scale(1.06); opacity: 1; }
.proj-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,19,34,.88) 0%, rgba(7,19,34,.2) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 17px 20px;
}
.proj-label {
  font-size: .64rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.proj-overlay h3 { font-size: .93rem; font-weight: 800; color: #fff; margin: 0; line-height: 1.35; letter-spacing: -.02em; }
.proj-overlay p { font-size: .77rem; color: rgba(255,255,255,.72); margin: 4px 0 0; line-height: 1.5; }

@media (max-width: 860px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .proj-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════
   ESTÁNDARES DE SEGURIDAD
══════════════════════════════ */
.safety-strip { background: var(--navy); padding: 34px 0; }
.safety-eyebrow {
  text-align: center; font-size: .67rem; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 20px;
}
.safety-items {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
}
.safety-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 26px; border-right: 1px solid rgba(255,255,255,.1); flex-shrink: 0;
}
.safety-item:last-child { border-right: none; }
.safety-ico {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(243,195,22,.45);
  display: grid; place-items: center;
  font-size: .69rem; font-weight: 900; letter-spacing: -.02em;
  color: var(--gold); background: rgba(243,195,22,.06);
}
.safety-item span {
  font-size: .71rem; font-weight: 700; color: rgba(255,255,255,.6);
  text-align: center; line-height: 1.4; max-width: 88px;
}
@media (max-width: 700px) { .safety-item { padding: 8px 16px; } }

/* ══════════════════════════════
   MICROINTERACCIONES
══════════════════════════════ */
.val-card { transition: box-shadow .22s ease, transform .22s ease; }
.val-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step-card { transition: box-shadow .22s ease, transform .22s ease; }
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sol-card { transition: background .15s, box-shadow .22s ease, transform .22s ease; }
.sol-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card { transition: box-shadow .22s ease, transform .22s ease; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ══════════════════════════════
   TABS — Recursos para obra
══════════════════════════════ */
.res-tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.res-tab {
  padding: 9px 18px; border-radius: 999px;
  background: var(--soft); border: 1.5px solid var(--line);
  font-size: .82rem; font-weight: 800; color: var(--text);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.res-tab:hover { background: #e8f0fb; border-color: #c8d8ef; }
.res-tab.active { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.res-panel { display: none; }
.res-panel.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.res-card {
  border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  padding: 20px; background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.res-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.res-card-ico {
  width: 38px; height: 38px; border-radius: 10px; background: var(--soft);
  display: grid; place-items: center;
  font-size: .82rem; font-weight: 900; color: var(--navy-3); margin-bottom: 12px;
}
.res-card h3 { font-size: .93rem; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; margin-bottom: 6px; }
.res-card p { font-size: .82rem; color: var(--text); line-height: 1.7; margin-bottom: 14px; }
.res-card-link {
  font-size: .78rem; font-weight: 800; color: var(--navy-3);
  display: inline-flex; align-items: center; gap: 4px; transition: color .13s;
}
.res-card-link:hover { color: var(--navy); }
@media (max-width: 640px) { .res-panel.active { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .res-panel.active { grid-template-columns: 1fr; } }

/* ══════════════════════════════
   CONTACTO — dirección, mapa
══════════════════════════════ */
.addr-card {
  border-radius: var(--radius-sm); background: var(--soft);
  border: 1.5px solid var(--line); padding: 16px 18px; margin-bottom: 14px;
}
.addr-card-label { font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.addr-card-value { font-size: .93rem; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.addr-card-sub { font-size: .79rem; color: var(--text); }
.addr-card-link {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 9px;
  font-size: .8rem; font-weight: 800; color: var(--navy-3); transition: color .13s;
}
.addr-card-link:hover { color: var(--navy); }
.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1.5px solid var(--line); margin-bottom: 14px; height: 200px; background: #d4e2f5;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ══════════════════════════════
   TRABAJA CON NOSOTROS
══════════════════════════════ */
.trabaja-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 44px; align-items: start;
}
.trabaja-copy h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.035em;
  line-height: 1.15; margin: 10px 0 13px;
}
.trabaja-copy p { font-size: .93rem; color: var(--text); line-height: 1.78; margin-bottom: 13px; }
.trabaja-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 18px 0; }
.trabaja-area {
  display: flex; align-items: center; gap: 8px;
  font-size: .83rem; font-weight: 700; color: var(--ink);
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: #fff; border: 1.5px solid var(--line);
}
.trabaja-area::before { content: "✓"; color: var(--gold); font-weight: 900; }
.trabaja-form-card {
  background: #fff; border-radius: var(--radius);
  border: 1.5px solid var(--line); padding: 28px; box-shadow: var(--shadow);
}
.trabaja-form-card h3 { font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.trabaja-form-card p { font-size: .87rem; color: var(--text); line-height: 1.7; margin-bottom: 20px; }
.trabaja-mailto-btn {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%; justify-content: center;
  background: var(--navy); color: #fff;
  border-radius: 999px; padding: 13px 22px;
  font-size: .88rem; font-weight: 800;
  transition: background .15s, transform .13s;
}
.trabaja-mailto-btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.trabaja-note { font-size: .77rem; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.5; }
@media (max-width: 860px) { .trabaja-inner { grid-template-columns: 1fr; } .trabaja-areas { grid-template-columns: 1fr; } }

/* ══════════════════════════════
   TECNOLOGÍA — Perfiles de uso
══════════════════════════════ */
.perfiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perfil-card {
  border-radius: var(--radius); border: 1.5px solid var(--line);
  padding: 24px; background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.perfil-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.perfil-rol {
  font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.perfil-card h3 { font-size: 1.0rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.perfil-card ul { padding-left: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.perfil-card li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .84rem; color: var(--text); line-height: 1.5;
}
.perfil-card li::before { content: "→"; color: var(--gold); font-weight: 900; flex-shrink: 0; }
@media (max-width: 860px) { .perfiles-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════
   SERVICIOS — tipos contenedores
══════════════════════════════ */
.cont-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 20px; }
.cont-type {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--soft); border: 1.5px solid var(--line);
}
.ct-label { font-size: .71rem; font-weight: 900; color: var(--navy-3); letter-spacing: .05em; text-transform: uppercase; }
.ct-desc { font-size: .78rem; color: var(--text); line-height: 1.4; }
@media (max-width: 640px) { .cont-types { grid-template-columns: 1fr 1fr; } }

/* ══════════════════════════════
   FOOTER — dirección
══════════════════════════════ */
.footer-addr { font-size: .8rem; color: rgba(255,255,255,.42); margin-top: 3px; }

/* ══════════════════════════════
   GRUPO INARCO — enlace externo
══════════════════════════════ */
.inarco-ext-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px;
  border: 1.5px solid rgba(243,195,22,.35);
  color: rgba(255,255,255,.75); font-size: .82rem; font-weight: 800;
  transition: background .15s, border-color .15s, color .15s;
  margin-top: 8px; margin-right: 8px;
}
.inarco-ext-link:hover { background: rgba(243,195,22,.08); border-color: rgba(243,195,22,.6); color: var(--gold-2); }

/* ══════════════════════════════
   QUICK LINKS — strip final home
══════════════════════════════ */
.qlinks-strip { background: var(--navy-2); border-top: 1px solid rgba(255,255,255,.07); padding: 20px 0; }
.qlinks-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.qlinks-label { font-size: .71rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.38); }
.qlinks-item {
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  font-size: .8rem; font-weight: 800; color: rgba(255,255,255,.68);
  transition: background .13s, color .13s, border-color .13s;
}
.qlinks-item:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }

/* ══════════════════════════════
   QR — Acceso móvil ObraTrack
══════════════════════════════ */
.qr-block {
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 36px;
  padding-top: 28px;
  max-width: 680px;
  position: relative;
  z-index: 1;
}
.qr-img-wrap {
  flex-shrink: 0;
  width: 108px;
  height: 108px;
  border-radius: 10px;
  background: #fff;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-img-wrap img { width: 100%; height: 100%; display: block; object-fit: contain; }
.qr-copy h3 { color: #fff; font-size: .98rem; margin: 0 0 7px; }
.qr-copy p { color: rgba(255,255,255,.65); font-size: .84rem; line-height: 1.72; margin: 0 0 14px; }
@media (max-width: 560px) { .qr-block { flex-direction: column; } }

/* ══════════════════════════════
   PAGE HERO — Portadas por página
══════════════════════════════ */
.page-hero--empresa,
.page-hero--servicios,
.page-hero--equipos,
.page-hero--tecnologia,
.page-hero--contacto {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay: izquierda navy oscuro para texto, derecha más abierto para imagen */
.page-hero--empresa::before,
.page-hero--servicios::before,
.page-hero--equipos::before,
.page-hero--tecnologia::before,
.page-hero--contacto::before {
  background: linear-gradient(
    100deg,
    rgba(4,10,18,.90) 0%,
    rgba(7,19,34,.72) 44%,
    rgba(7,19,34,.34) 100%
  );
  background-size: auto;
}

.page-hero--empresa    { background-image: url(../img/portada_empresa.png);              background-position: center right; }
.page-hero--servicios  { background-image: url(../img/famin_hero_maquinaria_integral.png); background-position: 65% center; }
.page-hero--equipos    { background-image: url(../img/portada_equipos.png);              background-position: center right; }
.page-hero--tecnologia { background-image: url(../img/portada_tecnologia.png);           background-position: 60% center; }
.page-hero--contacto   { background-image: url(../img/portada_contacto.png);             background-position: center right; }

@media (max-width: 640px) {
  .page-hero--empresa,
  .page-hero--servicios,
  .page-hero--equipos,
  .page-hero--tecnologia,
  .page-hero--contacto { background-position: center center; }
}

/* ══════════════════════════════
   DRAWER MENU (mobile / tablet)
══════════════════════════════ */

/* Overlay — oculto por defecto */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,10,18,.58);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Drawer panel — oculto por defecto en todos los tamaños */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(82vw, 420px);
  background: var(--navy);
  z-index: 9999;
  transform: translateX(100%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s ease, opacity .3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: -8px 0 40px rgba(4,10,18,.5);
}
.drawer.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* En desktop: garantía adicional de ocultamiento */
@media (min-width: 901px) {
  .drawer, .drawer-overlay { display: none !important; }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.drawer-head a img { display: block; }

.drawer-close {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: rgba(255,255,255,.75);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.drawer-close:hover { background: rgba(255,255,255,.14); color: #fff; }

.drawer-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  flex: 1;
}
.drawer-links a {
  display: block;
  padding: 14px 22px;
  color: rgba(255,255,255,.78);
  font-size: .97rem;
  font-weight: 700;
  border-left: 3px solid transparent;
  transition: color .13s, background .13s, border-color .13s;
  letter-spacing: -.01em;
}
.drawer-links a:hover,
.drawer-links a.active {
  color: #fff;
  background: rgba(255,255,255,.055);
  border-left-color: var(--gold);
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.drawer-actions .btn {
  width: 100%;
  justify-content: center;
  font-size: .9rem;
  padding: 14px 20px;
}

.drawer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.drawer-social-label {
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-right: 2px;
}

body.drawer-open { overflow: hidden; }

/* ══════════════════════════════
   SOCIAL ICONS
══════════════════════════════ */
.social-ico-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.62);
  transition: background .15s, color .15s;
}
.social-ico-link:hover { background: rgba(255,255,255,.13); color: #fff; }

.topbar-social {
  display: inline-grid;
  place-items: center;
  color: rgba(255,255,255,.52);
  transition: color .13s;
  line-height: 0;
}
.topbar-social:hover { color: rgba(255,255,255,.88); }

.footer-social { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.footer-social-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.48);
  transition: background .15s, color .15s;
}
.footer-social-link:hover { background: rgba(255,255,255,.13); color: rgba(255,255,255,.88); }

/* ══════════════════════════════
   RESPONSIVE — Mobile & Tablet
══════════════════════════════ */

/* Topbar: ocultar texto izquierda en tablet/mobile, mostrar contacto centrado */
@media (max-width: 900px) {
  .topbar-left { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-right { display: flex !important; } /* override existing display:none at ≤640px */
}
@media (max-width: 480px) {
  .topbar { font-size: .74rem; }
  .topbar-right { gap: 10px; }
  .topbar-social { display: none; } /* en móvil pequeño, iconos solo en drawer y footer */
}

/* Header compacto en móvil */
@media (max-width: 900px) {
  .nav { min-height: 60px; }
  .brand-logo { height: 44px; }
}
@media (max-width: 480px) {
  .nav { min-height: 56px; }
  .brand-logo { height: 38px; }
  .brand-sub { font-size: .55rem; letter-spacing: .1em; }
  .brand-rule { height: 24px; }
}

/* Hero home mobile */
@media (max-width: 640px) {
  .hero { min-height: clamp(380px, 70vh, 520px); }
  .hero-inner { padding: 32px 0 36px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .chip-row { gap: 5px; }
}

/* Page hero interno mobile */
@media (max-width: 640px) {
  .page-hero { padding: 26px 0 28px; }
}

/* WhatsApp flotante: subir sobre la barra de navegación del browser */
@media (max-width: 768px) {
  .wa-bubble { display: none !important; }
  .wa-btn { bottom: 76px; right: 14px; }
  .wa-wrap { bottom: 76px !important; right: 14px !important; }
}

/* Grids tablet (769-1024px): 2 columnas para grid-3 */
@media (max-width: 1024px) and (min-width: 769px) {
  .grid-3:not(.cat-grid) { grid-template-columns: repeat(2, 1fr); }
}

/* Formulario contacto mobile */
@media (max-width: 640px) {
  .form-input, .form-textarea, .form-select { padding: 13px 14px; font-size: .9rem; }
  .map-wrap { height: 155px; }
}

/* Safety strip mobile */
@media (max-width: 480px) {
  .safety-item { padding: 8px 12px; }
  .safety-items { justify-content: center; }
}
