/* ============================================================
   WIRACOCHA — Rediseño Corporativo Premium
   Sistema: borgoña de marca + neutros cálidos + acento acero
   ============================================================ */

:root {
  /* ── Marca ── */
  --primary:      #6D0B03;
  --primary-700:  #560802;
  --primary-900:  #3A0601;
  --primary-soft: rgba(109, 11, 3, 0.07);

  /* ── Acento: tinte borgoña (tweakable) ── */
  --accent:       #9E3B2E;
  --accent-700:   #7E2D22;
  --accent-soft:  rgba(158, 59, 46, 0.10);

  /* ── Tinta / texto ── */
  --ink:          #211C19;
  --ink-soft:     #4B443D;
  --ink-faint:    #6E645C;

  /* ── Neutros cálidos (tweakable via tono) ── */
  --bg:           #FFFFFF;
  --bg-soft:      #FAF8F6;
  --bg-softer:    #F3EFEA;
  --line:         #E7E0D8;
  --line-strong:  #D8CFC4;

  /* ── Oscuro (bandas) ── */
  --dark:         #1C1815;
  --dark-2:       #2A2420;

  /* ── Tipografía (tweakable) ── */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  /* ── Sombra de tarjeta (tweakable: hairline vs elevated) ── */
  --card-shadow:  none;
  --card-border:  1px solid var(--line);

  --nav-h: 74px;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17.5px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--primary); color: #fff; }

.container { max-width: var(--maxw); }

/* ============================================================
   TIPOGRAFÍA / PRIMITIVAS
   ============================================================ */
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 22px;
}
.kicker .kicker-num {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.kicker::before {
  content: ''; width: 26px; height: 1.5px; background: var(--primary); display: inline-block;
}
body.no-numbers .kicker .kicker-num { display: none; }

.section-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 18ch;
  text-wrap: balance;
}
.section-title em { color: var(--primary); font-style: normal; }
.section-lead {
  color: var(--ink-soft);
  font-size: 1.2rem;
  max-width: 60ch;
  line-height: 1.75;
}

section { padding: 104px 0; }
.eyebrow-row { margin-bottom: 56px; }

/* ============================================================
   PLACEHOLDER (imágenes faltantes)
   ============================================================ */
.ph {
  width: 100%; height: 100%;
  min-height: 180px;
  background-color: var(--bg-softer);
  background-image: repeating-linear-gradient(135deg, rgba(109,11,3,.05) 0 12px, transparent 12px 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  text-align: center; padding: 16px;
}

/* ============================================================
   TOPBAR
   ============================================================ */
#topbar {
  background: var(--dark);
  color: rgba(255,255,255,.62);
  font-size: .86rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#topbar a { color: rgba(255,255,255,.62); text-decoration: none; transition: color .2s; }
#topbar a:hover { color: #fff; }
#topbar .tb-left span { margin-right: 22px; display: inline-flex; align-items: center; gap: 7px; }
#topbar .tb-right { text-align: right; display: flex; gap: 22px; justify-content: flex-end; }
#topbar .tb-right span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
#topbar .tb-left span { white-space: nowrap; }
#topbar i { color: var(--accent); font-size: .82em; }

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  height: var(--nav-h);
  position: sticky; top: 0; z-index: 1030;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
  padding: 0;
}
#mainNav.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 30px -18px rgba(0,0,0,.25); }
#mainNav .navbar-brand { display: flex; align-items: center; gap: 13px; padding: 0; }
#mainNav .navbar-brand .brand-logo { height: 52px; width: auto; display: block; }
#mainNav .navbar-brand img:not(.brand-logo) { height: 46px; width: auto; }
#mainNav .navbar-brand .brand-text {
  font-family: var(--font-display); color: var(--primary);
  font-size: 1.32rem; font-weight: 800; letter-spacing: .02em; line-height: 1;
}
#mainNav .navbar-brand .brand-text span {
  display: block; color: var(--ink-soft); font-size: .66rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; margin-top: 4px;
}
#mainNav .nav-link {
  color: var(--ink) !important; font-weight: 600; font-size: .96rem;
  padding: 0 15px !important; height: var(--nav-h);
  display: flex; align-items: center; position: relative;
  transition: color .2s;
}
#mainNav .nav-link::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 20px;
  height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
#mainNav .nav-link:hover, #mainNav .nav-link.active { color: var(--primary) !important; }
#mainNav .nav-link:hover::after, #mainNav .nav-link.active::after { transform: scaleX(1); }
#mainNav .dropdown-menu {
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.35);
  padding: 8px; min-width: 290px; margin-top: 6px;
}
#mainNav .dropdown-item {
  font-size: .86rem; color: var(--ink); padding: 9px 12px; border-radius: 7px;
  display: flex; align-items: center; gap: 11px; transition: background .15s, color .15s;
}
#mainNav .dropdown-item:hover { background: var(--bg-softer); color: var(--primary); }
#mainNav .dropdown-item i { width: 16px; color: var(--accent); font-size: .85em; }
#mainNav .dropdown-item.lead-item { font-weight: 700; color: var(--primary); }

#mainNav .btn-nav {
  background: var(--primary); color: #fff !important;
  border-radius: 8px; padding: 10px 20px !important; font-weight: 700 !important;
  height: auto !important; font-size: .92rem !important; margin-left: 14px;
  transition: background .2s, transform .15s;
}
#mainNav .btn-nav::after { display: none !important; }
#mainNav .btn-nav:hover { background: var(--primary-700); transform: translateY(-1px); color: #fff !important; }

.navbar-toggler { border: 1px solid var(--line-strong); color: var(--primary); padding: 7px 11px; border-radius: 8px; }

/* ============================================================
   HERO — claro, editorial, premium
   ============================================================ */
#hero {
  background: var(--bg-soft);
  padding: 0; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; min-height: calc(100vh - var(--nav-h) - 40px);
  align-items: stretch;
}
.hero-left { padding: 80px 64px 80px 0; display: flex; flex-direction: column; justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid rgba(109,11,3,.16);
  border-radius: 100px; padding: 7px 16px;
  font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge i { font-size: .55rem; color: var(--accent); }
#hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.3rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
  margin-bottom: 26px; text-wrap: balance;
}
#hero h1 em { color: var(--primary); font-style: normal; }
#hero .hero-desc { color: var(--ink-soft); font-size: 1.18rem; max-width: 46ch; line-height: 1.7; margin-bottom: 38px; }
#hero .hero-desc strong { color: var(--ink); font-weight: 700; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; }
.btn-primary-x {
  background: var(--primary); color: #fff; border: 1.5px solid var(--primary);
  border-radius: 9px; padding: 15px 30px; font-weight: 700; font-size: .96rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary-x:hover { background: var(--primary-700); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(109,11,3,.55); }
.btn-ghost-x {
  background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong);
  border-radius: 9px; padding: 15px 28px; font-weight: 700; font-size: .96rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  transition: border-color .2s, background .2s;
}
.btn-ghost-x:hover { border-color: var(--ink); background: #fff; color: var(--ink); }

.hero-stats { display: flex; gap: 44px; margin-top: 54px; padding-top: 34px; border-top: 1px solid var(--line); }
.hero-stat .num {
  font-family: var(--font-display); font-size: 2.9rem; font-weight: 800; color: var(--primary);
  line-height: 1; letter-spacing: -0.02em;
}
.hero-stat .lbl { color: var(--ink-soft); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 8px; font-weight: 600; }

.hero-right { position: relative; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media .ph { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--bg-soft) 0%, rgba(250,248,246,0) 32%);
}
.hero-credential {
  position: absolute; left: 32px; bottom: 32px; z-index: 2;
  background: rgba(28,24,21,.78); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px; padding: 20px 24px; color: #fff; max-width: 280px;
}
.hero-credential .hc-top { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 9px; }
.hero-credential p { font-size: .92rem; line-height: 1.5; color: rgba(255,255,255,.82); margin: 0; }

/* Variante hero oscuro (tweak) */
body.hero-dark #hero { background: var(--dark); border-bottom: none; }
body.hero-dark #hero h1, body.hero-dark #hero .hero-stat .num { color: #fff; }
body.hero-dark #hero h1 em { color: #E8A598; }
body.hero-dark #hero .hero-desc { color: rgba(255,255,255,.72); }
body.hero-dark #hero .hero-desc strong { color: #fff; }
body.hero-dark .hero-badge { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.16); }
body.hero-dark .hero-stats { border-top-color: rgba(255,255,255,.14); }
body.hero-dark #hero .hero-stat .lbl { color: rgba(255,255,255,.6); }
body.hero-dark .btn-ghost-x { color: #fff; border-color: rgba(255,255,255,.3); }
body.hero-dark .btn-ghost-x:hover { border-color: #fff; background: rgba(255,255,255,.06); color: #fff; }
body.hero-dark .hero-media::after { background: linear-gradient(120deg, var(--dark) 0%, rgba(28,24,21,0) 36%); }

/* ============================================================
   FRANJA DE PILARES (news-strip)
   ============================================================ */
#pillars { background: var(--bg); border-bottom: 1px solid var(--line); padding: 0; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar {
  display: flex; gap: 16px; align-items: flex-start; padding: 34px 36px;
  border-right: 1px solid var(--line);
}
.pillar:last-child { border-right: none; }
.pillar-ico {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.pillar h4 { font-size: 1.06rem; font-weight: 700; margin-bottom: 5px; }
.pillar p { font-size: .95rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ============================================================
   SERVICIOS — overview
   ============================================================ */
#services-overview { background: var(--bg-soft); }
.svc-index { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc-index-item {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 28px; display: flex; align-items: center; gap: 16px;
  background: var(--bg); transition: background .2s;
}
.svc-index-item:hover { background: var(--bg-softer); }
.svc-index-item .n { font-family: var(--font-display); font-size: .8rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.svc-index-item .t { font-size: .96rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
body.no-numbers .svc-index-item .n { display: none; }

/* ============================================================
   SERVICIOS — detalle (tarjetas)
   ============================================================ */
#services { background: var(--bg); }
.svc-card {
  background: var(--bg); border: var(--card-border); border-radius: 14px;
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.svc-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 26px 50px -28px rgba(33,28,25,.4); }
.svc-card-media { height: 192px; position: relative; overflow: hidden; flex-shrink: 0; background: var(--bg-softer); }
.svc-card-media img, .svc-card-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-card-media img { transform: scale(1.05); }
.svc-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,24,21,.72) 0%, rgba(28,24,21,.05) 60%); }
.svc-card-tag {
  position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 1;
  display: flex; align-items: center; gap: 12px;
}
.svc-card-tag .ico {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: .92rem;
}
.svc-card-tag h5 { color: #fff; font-size: 1.04rem; font-weight: 700; line-height: 1.2; margin: 0; }
.svc-card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-card-body > p { font-size: 1.04rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 16px; }
.svc-list { list-style: none; padding: 0; margin: 0 0 18px; }
.svc-list li { font-size: .98rem; color: var(--ink-soft); padding: 7px 0; padding-left: 18px; position: relative; line-height: 1.45; border-bottom: 1px solid var(--bg-softer); }
.svc-list li:last-child { border-bottom: none; }
.svc-list li::before { content: ''; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.svc-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 700; font-size: .9rem; text-decoration: none;
  transition: gap .2s;
}
.svc-link:hover { gap: 13px; color: var(--primary-700); }

/* ============================================================
   BANDA DE CIFRAS
   ============================================================ */
#stats { background: var(--dark); padding: 74px 0; }
.stat-cell { text-align: center; padding: 18px 16px; position: relative; }
.stat-cell .ico { color: var(--accent); font-size: 1.4rem; margin-bottom: 16px; }
.stat-cell .num { font-family: var(--font-display); font-size: 3.6rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.stat-cell .lbl { color: rgba(255,255,255,.6); font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 12px; font-weight: 600; }

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--bg-soft); }
.about-media { position: relative; border-radius: 16px; overflow: hidden; }
.about-media img, .about-media .ph { width: 100%; height: 100%; min-height: 460px; object-fit: cover; display: block; }

/* Composición collage de 3 fotos */
.about-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 540px;
}
.about-collage .c-cell { border-radius: 14px; overflow: hidden; }
.about-collage .c-main { grid-row: 1 / 3; }
.about-collage .c-cell img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.about-collage .c-a img { object-position: 42% center; }
@media (max-width: 575px) { .about-collage { min-height: 420px; gap: 9px; } }
.about-badge {
  position: absolute; left: 24px; bottom: 24px;
  background: var(--primary); color: #fff; border-radius: 13px; padding: 20px 26px;
  box-shadow: 0 18px 40px -20px rgba(109,11,3,.7);
}
.about-badge .big { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.about-badge small { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; opacity: .92; margin-top: 4px; font-weight: 600; }
.about-feature { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.about-feature:last-of-type { border-bottom: none; }
.about-feature-ico { width: 46px; height: 46px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.about-feature h4 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.about-feature p { font-size: 1.04rem; color: var(--ink-soft); line-height: 1.65; margin: 0; }

/* ============================================================
   EXPERIENCIA
   ============================================================ */
#experience { background: var(--bg); }
.exp-card {
  background: var(--bg); border: var(--card-border); border-radius: 14px; padding: 30px 28px;
  height: 100%; box-shadow: var(--card-shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.exp-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 26px 50px -28px rgba(33,28,25,.4); }
.exp-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.exp-card-ico { width: 50px; height: 50px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }ink: 0; }
.exp-card-head h5 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.exp-list { list-style: none; padding: 0; margin: 0; }
.exp-list li { font-size: 1rem; color: var(--ink-soft); padding: 8px 0 8px 20px; position: relative; line-height: 1.5; }
.exp-list li::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 8px; color: var(--primary); font-size: .8rem; }

/* ============================================================
   FABRICACIÓN
   ============================================================ */
#fabricacion { background: var(--bg-soft); }
.fab-photo { border-radius: 14px; overflow: hidden; box-shadow: var(--card-shadow); border: var(--card-border); }
.fab-photo img, .fab-photo .ph { width: 100%; height: 250px; object-fit: cover; display: block; transition: transform .5s; }
.fab-photo:hover img { transform: scale(1.04); }
.fab-caption { font-size: .86rem; color: var(--ink-soft); margin-top: 12px; line-height: 1.5; }
.fab-chip {
  background: var(--bg); border: var(--card-border); border-radius: 12px; padding: 22px 20px;
  height: 100%; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  transition: transform .2s, border-color .2s; box-shadow: var(--card-shadow);
}
.fab-chip:hover { transform: translateY(-4px); border-color: var(--primary); }
.fab-chip .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.fab-chip strong { font-size: .96rem; font-weight: 700; color: var(--ink); line-height: 1.35; }

/* ============================================================
   CLIENTES — sobrio, claro
   ============================================================ */
#clients { background: var(--bg); }
.client-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.client-cell {
  border: 1px solid var(--line); border-radius: 13px; height: 152px;
  display: flex; align-items: center; justify-content: center; padding: 28px;
  background: var(--bg); transition: border-color .25s, background .25s, box-shadow .25s;
}
.client-cell:hover { border-color: var(--line-strong); background: var(--bg-soft); box-shadow: 0 18px 38px -26px rgba(33,28,25,.35); }
.client-cell img { max-width: 100%; max-height: 96px; object-fit: contain; opacity: .96; transition: opacity .25s, transform .25s; }
.client-cell:hover img { opacity: 1; transform: scale(1.05); }
.client-cell--solid img { max-height: 92px; border-radius: 8px; }
.client-name { font-family: var(--font-display); color: var(--primary); font-size: 1.08rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; text-align: center; line-height: 1.3; text-wrap: balance; transition: color .25s; }
.client-cell:hover .client-name { color: var(--primary); }

/* Banda de estándares (credibilidad B2B) */
.std-band { margin-top: 66px; padding-top: 50px; border-top: 1px solid var(--line); }
.std-band-head { text-align: center; margin-bottom: 38px; }
.std-band-head h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.01em; }
.std-band-head p { color: var(--ink-soft); max-width: 58ch; margin: 10px auto 0; font-size: 1.02rem; line-height: 1.6; }
.std-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.std-item { text-align: center; padding: 30px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color .25s, transform .25s, box-shadow .25s; }
.std-item:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(33,28,25,.4); }
.std-ico { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.std-item h4 { font-size: 1.04rem; font-weight: 700; margin-bottom: 7px; }
.std-item p { font-size: .96rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
@media (max-width: 767px) { .std-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .std-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACTO
   ============================================================ */
#contact { background: var(--bg-soft); }
.contact-info {
  background: var(--dark); border-radius: 16px; padding: 40px 36px; color: #fff; height: 100%;
}
.contact-info h4 { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 28px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.05rem; }
.contact-item strong { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-bottom: 5px; font-weight: 700; }
.contact-item span, .contact-item a { font-size: 1.05rem; color: rgba(255,255,255,.9); text-decoration: none; line-height: 1.5; display: block; overflow-wrap: anywhere; }
.contact-item a:hover { color: #fff; text-decoration: underline; }
.contact-social { display: flex; gap: 10px; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.social-btn { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.75); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background .2s, color .2s; }
.social-btn:hover { background: var(--primary); color: #fff; }

.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 40px 36px; height: 100%; }
.contact-form h4 { font-size: 1.3rem; font-weight: 700; margin-bottom: 26px; }
.form-label { font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-control, .form-select {
  border: 1.5px solid var(--line); border-radius: 9px; padding: 13px 16px; font-size: .98rem;
  color: var(--ink); background: var(--bg-soft); transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control::placeholder { color: var(--ink-faint); }
.form-control:focus, .form-select:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-soft); outline: none; }
.btn-submit {
  background: var(--primary); color: #fff; border: none; border-radius: 10px;
  padding: 16px 34px; font-weight: 700; font-size: 1rem; flex: 1; cursor: pointer;
  transition: background .2s, transform .15s; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.btn-submit:hover { background: var(--primary-700); transform: translateY(-1px); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-whatsapp {
  background: #fff; color: #1f8a4c; border: 1.5px solid #25D366; border-radius: 10px;
  padding: 16px 28px; font-weight: 700; font-size: 1rem; flex: 1; cursor: pointer;
  transition: background .2s, transform .15s, color .2s; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.btn-whatsapp:hover { background: #25D366; color: #fff; transform: translateY(-1px); }
.btn-whatsapp i { font-size: 1.15em; }
.form-or { font-size: .82rem; color: var(--ink-faint); margin-top: 12px; text-align: center; }
#formSuccess { display: none; background: #eaf6ee; border: 1px solid #bfe3cb; border-radius: 9px; padding: 14px 18px; color: #1a6932; font-size: .9rem; margin-top: 16px; }
#formError { display: none; background: #fdecec; border: 1px solid #f3c6c6; border-radius: 9px; padding: 14px 18px; color: #8b1a1a; font-size: .9rem; margin-top: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { background: var(--dark); color: rgba(255,255,255,.62); padding: 76px 0 0; }
.footer-brand img { height: 54px; margin-bottom: 18px; }
.footer-logo-plaque { display: inline-flex; background: #fff; border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; box-shadow: 0 16px 36px -22px rgba(0,0,0,.6); }
.footer-logo-plaque img { height: 46px; width: auto; margin: 0; display: block; }
.footer-brand p { font-size: .96rem; line-height: 1.7; max-width: 320px; color: rgba(255,255,255,.72); }
.footer-heading { color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: rgba(255,255,255,.72); font-size: 1rem; text-decoration: none; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding: 24px 0; }
.footer-bottom p { font-size: .84rem; margin: 0; color: rgba(255,255,255,.66); }
.footer-bottom a { color: rgba(255,255,255,.66); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#backToTop {
  position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px;
  background: var(--primary); color: #fff; border: none; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(109,11,3,.6); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .2s; z-index: 999;
}
#backToTop.visible { opacity: 1; pointer-events: auto; }
#backToTop:hover { transform: translateY(-3px); background: var(--primary-700); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left { padding: 64px 0 56px; }
  .hero-right { min-height: 360px; }
  .hero-media { position: relative; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .svc-index { grid-template-columns: 1fr 1fr; }
  .client-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
  section { padding: 72px 0; }
  /* En móvil prioriza el correo/teléfono sobre la dirección */
  #topbar .d-flex { justify-content: center !important; }
  #topbar .tb-left { display: none; }
  #topbar .tb-right { width: 100%; justify-content: center; flex-wrap: wrap; gap: 6px 16px; }
  #topbar .tb-right span:last-child { display: none; }
  #topbar .tb-right a { font-size: .82rem; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .svc-index { grid-template-columns: 1fr; }
  .client-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   PALETA MINERAL DE ÍCONOS
   Azurita (azul pizarra) · Malaquita (verde) · Bronce (ocre) · Hematita (borgoña)
   ============================================================ */
:root {
  --ico-a: #3E5C76; --ico-a-soft: rgba(62, 92, 118, .12);
  --ico-b: #2F6B5E; --ico-b-soft: rgba(47, 107, 94, .12);
  --ico-c: #9A6A2F; --ico-c-soft: rgba(154, 106, 47, .14);
  --ico-d: #6D0B03; --ico-d-soft: rgba(109, 11, 3, .10);
  /* Variantes claras para fondos oscuros */
  --ico-a-lt: #88A6C2; --ico-b-lt: #6FB3A1; --ico-c-lt: #C99A5B;
}

/* Pilares (3) */
.pillars-grid .pillar:nth-child(1) .pillar-ico { background: var(--ico-a-soft); color: var(--ico-a); }
.pillars-grid .pillar:nth-child(2) .pillar-ico { background: var(--ico-b-soft); color: var(--ico-b); }
.pillars-grid .pillar:nth-child(3) .pillar-ico { background: var(--ico-c-soft); color: var(--ico-c); }

/* Nosotros — Misión / Visión / Valores (3) */
.about-feature:nth-of-type(1) .about-feature-ico { background: var(--ico-a-soft); color: var(--ico-a); }
.about-feature:nth-of-type(2) .about-feature-ico { background: var(--ico-b-soft); color: var(--ico-b); }
.about-feature:nth-of-type(3) .about-feature-ico { background: var(--ico-c-soft); color: var(--ico-c); }

/* Trayectoria (4) */
#experience .row > div:nth-child(1) .exp-card-ico { background: var(--ico-a-soft); color: var(--ico-a); }
#experience .row > div:nth-child(2) .exp-card-ico { background: var(--ico-b-soft); color: var(--ico-b); }
#experience .row > div:nth-child(3) .exp-card-ico { background: var(--ico-c-soft); color: var(--ico-c); }
#experience .row > div:nth-child(4) .exp-card-ico { background: var(--ico-d-soft); color: var(--ico-d); }

/* Fabricación — chips (8, ciclo de 4) */
#fabricacion .row.g-3 > div:nth-child(4n+1) .fab-chip .ico { background: var(--ico-a-soft); color: var(--ico-a); }
#fabricacion .row.g-3 > div:nth-child(4n+2) .fab-chip .ico { background: var(--ico-b-soft); color: var(--ico-b); }
#fabricacion .row.g-3 > div:nth-child(4n+3) .fab-chip .ico { background: var(--ico-c-soft); color: var(--ico-c); }
#fabricacion .row.g-3 > div:nth-child(4n+4) .fab-chip .ico { background: var(--ico-d-soft); color: var(--ico-d); }
#fabricacion .fab-chip:hover { border-color: var(--line-strong); }

/* Estándares (4) */
.std-grid .std-item:nth-child(1) .std-ico { background: var(--ico-a-soft); color: var(--ico-a); }
.std-grid .std-item:nth-child(2) .std-ico { background: var(--ico-b-soft); color: var(--ico-b); }
.std-grid .std-item:nth-child(3) .std-ico { background: var(--ico-c-soft); color: var(--ico-c); }
.std-grid .std-item:nth-child(4) .std-ico { background: var(--ico-d-soft); color: var(--ico-d); }
.std-item:hover { border-color: var(--line-strong); }

/* Contacto — fondo oscuro, relleno sólido + glifo blanco (4) */
.contact-item:nth-of-type(1) .contact-item-ico { background: var(--ico-a); }
.contact-item:nth-of-type(2) .contact-item-ico { background: var(--ico-b); }
.contact-item:nth-of-type(3) .contact-item-ico { background: var(--ico-c); }
.contact-item:nth-of-type(4) .contact-item-ico { background: var(--ico-d); }

/* Cifras — glifo sobre fondo oscuro, tonos claros (2) */
#stats .row > div:nth-child(1) .stat-cell .ico { color: var(--ico-a-lt); }
#stats .row > div:nth-child(2) .stat-cell .ico { color: var(--ico-b-lt); }
