/* ING & SERVICE SPA, sistema de diseño.
   Brand Kit v1.0, Iproy Digital. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0D1B3E;
  --royal:   #1E4DB7;
  --royal-d: #17398C;
  --light:   #D6E4FF;
  --orange:  #E85D04;
  --ink:     #1A1A1A;
  --gray:    #6B7280;
  --gray-bg: #F0F2F5;
  --white:   #FFFFFF;

  --sky:     #6B8FE0;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a[href], button, input, select, textarea { cursor: pointer; }
input, select, textarea { cursor: text; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(232,93,4,.85);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.18; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3, h4 { font-weight: 600; }

p { color: var(--gray); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head);
  font-size: 13.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--royal);
}
.eyebrow::before { display: none; }
.eyebrow.on-dark { color: var(--orange); }
.eyebrow.accent { color: var(--orange); }
/* Used where the section already spends its one orange accent elsewhere (Brand Kit: max 1 orange element per piece) */
.eyebrow.on-dark-muted { color: rgba(255,255,255,.5); }

.section { padding: 100px 0; }
.section-alt { background: var(--gray-bg); }
.section-tint { background: var(--light); }
.section-navy { background: var(--navy); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4vw, 47px); margin-bottom: 16px; }
.section-head p { font-size: 18px; line-height: 1.7; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px;
  padding: 15px 28px; border-radius: 9px;
  text-decoration: none; border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.015); }
.btn:focus-visible { box-shadow: 0 0 0 5px rgba(232,93,4,.18); }
/* Destello que recorre el botón al pasar el mouse, para que se sienta "iluminado" */
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.32) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .55s ease;
  pointer-events: none;
}
.btn:hover::before { transform: translateX(120%); }
.btn-primary { background: var(--royal); color: var(--white); }
.btn-primary:hover { background: var(--royal-d); box-shadow: 0 10px 26px rgba(30,77,183,.32); }
.btn-accent { background: var(--orange); color: var(--white); }
.btn-accent:hover { background: #c94f03; box-shadow: 0 10px 26px rgba(232,93,4,.32); }
.btn-outline-dark { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline-dark:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.btn-outline-light { background: transparent; color: var(--navy); border: 1.5px solid rgba(13,27,62,.2); }
.btn-outline-light:hover { border-color: var(--royal); color: var(--royal); background: rgba(30,77,183,.05); }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: var(--navy);
  border-bottom: 1px solid rgba(13,27,62,.12);
  transition: background .2s ease;
}
.header-inner { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; overflow: visible; }
.brand img {
  height: 76px; width: auto;
  content: url('../img/prueba-logo-2.png');
  transform: scale(1.1);
  transform-origin: left center;
}
.main-nav { display: flex; align-items: center; gap: 8px; list-style: none; }
.main-nav a {
  display: block; padding: 10px 16px; border-radius: 7px;
  font-size: 16px; font-weight: 600; color: rgba(255,255,255,.78);
  text-decoration: none; transition: color .15s ease, background .15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); background: rgba(255,255,255,.14); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .site-header { background: var(--navy); }
  .header-inner { height: 78px; }
  .brand img { height: 62px; }
  .main-nav {
    position: fixed; top: 78px; left: 0; right: 0; bottom: 0;
    background: var(--navy); flex-direction: column; align-items: stretch;
    padding: 20px 24px; gap: 4px; transform: translateX(100%);
    transition: transform .25s ease; overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 15px 12px; font-size: 18px; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 42px; height: 42px; background: none; border: none; cursor: pointer;
  }
  .nav-toggle span { width: 100%; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-actions .btn-primary { display: none; }
}

/* ── Hero ── */
.hero {
  padding-top: 136px;
  background: var(--navy);
  color: var(--white);
}
/* .hero-top envuelve solo la foto + el texto, no la franja de especialidades que va debajo
   (si no, la tarjeta flotante de la foto se estira detrás de esa franja y asoma por los bordes). */
.hero-top { position: relative; }
/* Foto de fondo como pieza flotante con esquinas redondeadas y resplandor,
   en vez de un rectángulo pegado a los bordes. */
.hero-media {
  position: absolute; inset: clamp(14px, 3vw, 32px);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(13,27,62,.94) 0%, rgba(13,27,62,.82) 45%, rgba(30,77,183,.55) 100%),
    url('../img/hero-red-digital.jpg') center/cover no-repeat;
  box-shadow: 0 40px 120px -20px rgba(30,77,183,.45);
  z-index: 0;
}
.hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-media .media-note {
  position: absolute; bottom: 14px; right: 16px;
  font-family: var(--font-body); font-size: 12.5px; color: rgba(255,255,255,.4);
  letter-spacing: .04em;
}
.hero-content { position: relative; z-index: 1; padding: 108px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr; max-width: 740px; }
.hero-grid.split { grid-template-columns: 1.05fr .95fr; max-width: none; gap: 56px; }
.hero-grid.split .ph-block { min-height: 420px; }
.hero-content h1 {
  color: var(--white); font-size: clamp(43px, 5.4vw, 67px);
  max-width: 780px; margin-bottom: 22px;
}
.hero-content h1 span {
  font-size: 1.06em;
  background: linear-gradient(100deg, var(--orange) 15%, #FFA35C 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--orange);
}
.hero-content .lead {
  font-size: 20px; color: rgba(255,255,255,.68);
  max-width: 540px; line-height: 1.75; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
/* Insignias como chips tipo pildora, no como lista con puntos */
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 14.5px; color: rgba(255,255,255,.82);
}
.hero-badge .badge-check { width: 15px; height: 15px; color: var(--sky); flex-shrink: 0; }

/* ── Placeholder visual blocks (no real photography yet) ── */
.ph-block {
  position: relative;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 220px;
}
/* Rayado decorativo eliminado a pedido del cliente: los bloques sin foto quedan con el degradado navy liso. */
.ph-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.ph-label {
  position: relative; z-index: 1;
  margin: 18px; padding: 9px 14px;
  background: rgba(13,27,62,.55);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: .03em; color: rgba(255,255,255,.85);
}

/* ── Feature strip ── */
.feat-strip { background: var(--white); border-top: 1px solid rgba(30,77,183,.08); position: relative; z-index: 1; }
/* Franja de especialidades: 1 destacada + 2 compactas, no una grilla de 3 tarjetas iguales */
.feat-split { display: grid; grid-template-columns: 1.15fr 1fr; padding: 56px 0; }
.feat-lead {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 0;
  text-decoration: none; border-right: 1px solid rgba(30,77,183,.08);
  transition: background .18s ease;
}
.feat-lead:hover { background: linear-gradient(135deg, #F7F9FF 0%, var(--light) 100%); }
.feat-lead-media { border-radius: var(--radius-sm); aspect-ratio: 3 / 2; min-height: 0; margin-right: 28px; }
.feat-lead-body { padding: 12px 36px 12px 0; display: flex; flex-direction: column; justify-content: center; }
.feat-icon { flex-shrink: 0; width: 42px; height: 42px; color: var(--royal); margin-bottom: 14px; }
.feat-lead-body h3 { font-size: 20px; margin-bottom: 8px; }
.feat-lead-body p { font-size: 15px; margin-bottom: 14px; }
.feat-stack { display: flex; flex-direction: column; justify-content: center; }
.feat-compact {
  display: flex; gap: 16px; align-items: flex-start; text-decoration: none;
  padding: 26px 34px; border-bottom: 1px solid rgba(30,77,183,.08);
  transition: background .18s ease;
}
.feat-stack .feat-compact:last-child { border-bottom: none; }
.feat-compact:hover { background: linear-gradient(135deg, #F7F9FF 0%, var(--light) 100%); }
.feat-icon-sm { flex-shrink: 0; width: 30px; height: 30px; color: var(--royal); margin-top: 2px; }
.feat-compact h3 { font-size: 17px; margin-bottom: 5px; }
.feat-compact p { font-size: 15px; margin-bottom: 10px; }
.feat-link { font-size: 14.5px; font-weight: 700; color: var(--royal); text-decoration: none; }
.feat-lead:hover .feat-link, .feat-compact:hover .feat-link { color: var(--orange); }

/* ── Pillars ── */
.pillars { display: flex; flex-direction: column; gap: 14px; }
.pillar {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid rgba(30,77,183,.1);
  border-radius: 12px; padding: 20px 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.pillar:hover {
  transform: translateY(-3px); box-shadow: 0 14px 32px rgba(13,27,62,.09); border-color: rgba(30,77,183,.22);
  background: linear-gradient(135deg, var(--white) 0%, var(--light) 130%);
}
.pillar-icon { flex-shrink: 0; width: 42px; height: 42px; color: var(--royal); }
.pillar h4 { font-size: 17px; margin-bottom: 4px; }
.pillar p { font-size: 15px; }

/* ── Stat counters ── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: var(--white); border: 1px solid rgba(30,77,183,.1);
  border-radius: var(--radius-sm); padding: 30px 22px; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.stat-card:hover {
  transform: translateY(-3px) scale(1.015); box-shadow: 0 14px 32px rgba(13,27,62,.1);
  background: linear-gradient(135deg, var(--white) 0%, var(--light) 140%);
}
.stat-card.accent { background: var(--royal); border-color: var(--royal); }
.stat-card.accent:hover { background: linear-gradient(135deg, var(--royal) 0%, var(--royal-d) 140%); }
.stat-icon { width: 26px; height: 26px; color: var(--royal); margin: 0 auto 12px; }
.stat-card.accent .stat-icon { color: var(--white); }
.stat-num { font-family: var(--font-head); font-size: 45px; font-weight: 800; color: var(--navy); }
.stat-card.accent .stat-num { color: var(--white); }
.stat-lbl { font-size: 14.5px; color: var(--gray); margin-top: 8px; line-height: 1.5; }
.stat-card.accent .stat-lbl { color: rgba(255,255,255,.88); }

/* ── Compare table ── */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-col { border-radius: var(--radius-sm); overflow: hidden; }
.compare-head { padding: 18px 24px; font-family: var(--font-head); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.compare-bad .compare-head { background: rgba(255,255,255,.06); color: rgba(255,255,255,.55); }
.compare-good .compare-head { background: var(--royal); color: var(--white); }
.compare-list { list-style: none; }
.compare-list li { padding: 15px 24px; font-size: 15.5px; line-height: 1.6; display: flex; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.05); }
.compare-list li:last-child { border-bottom: none; }
.compare-bad .compare-list { background: rgba(255,255,255,.03); }
.compare-bad .compare-list li { color: rgba(255,255,255,.5); }
.compare-bad .compare-list li::before { content: '\2715'; color: rgba(255,255,255,.35); font-weight: 700; flex-shrink: 0; }
.compare-good .compare-list { background: rgba(30,77,183,.2); }
.compare-good .compare-list li { color: rgba(255,255,255,.92); }
.compare-good .compare-list li::before { content: '\2713'; color: #6FE0A8; font-weight: 700; flex-shrink: 0; }

/* ── Servicios: filas alternadas (imagen / contenido) en vez de grilla de 3 tarjetas iguales ── */
.svc-rows { display: flex; flex-direction: column; }
.svc-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 52px 0; border-bottom: 1px solid rgba(30,77,183,.08);
}
.svc-rows .svc-row:last-child { border-bottom: none; }
.svc-row.rev .svc-row-media { order: 2; }
.svc-row.rev .svc-row-content { order: 1; }
.svc-row-media { min-height: 300px; }
.svc-icon { width: 52px; height: 52px; color: var(--royal); margin-bottom: 22px; }
.svc-row-content h3 { font-size: 27px; margin-bottom: 16px; }
.svc-description { max-width: 620px; margin-bottom: 24px; color: var(--gray); font-size: 17px; line-height: 1.68; }
.svc-ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.svc-ul li { font-size: 15.5px; color: var(--gray); display: flex; gap: 9px; line-height: 1.55; }
.svc-ul li::before { content: '\2192'; color: var(--royal); font-weight: 700; flex-shrink: 0; }
.svc-more {
  font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--royal);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: gap .18s ease, color .18s ease;
}
.svc-more:hover { color: var(--orange); gap: 11px; }

/* ── Process steps ── */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  background: var(--white); border: 1px solid rgba(30,77,183,.1); border-radius: var(--radius-sm); padding: 32px 24px; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.step-card:hover {
  transform: translateY(-3px); box-shadow: 0 14px 32px rgba(13,27,62,.09);
  background: linear-gradient(135deg, var(--white) 0%, var(--light) 140%);
}
.step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--royal); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: 19px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { font-size: 15px; }

/* ── Values grid (Nosotros) ── */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card {
  background: var(--white); border: 1px solid rgba(30,77,183,.1); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.value-card:hover {
  transform: translateY(-4px); box-shadow: 0 16px 36px rgba(13,27,62,.1);
  background: linear-gradient(135deg, var(--white) 0%, var(--light) 140%);
}
.value-mark {
  width: 32px; height: 32px;
  color: var(--royal);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.value-mark svg { width: 28px; height: 28px; }
.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 15px; }

/* ── Mission/Vision cards ── */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mv-card { border-radius: var(--radius); padding: 40px 36px; }
.mv-card.navy { background: var(--navy); color: var(--white); }
.mv-card.royal { background: var(--royal); color: var(--white); }
.mv-card .eyebrow { color: var(--orange); }
.mv-card blockquote { font-family: var(--font-head); font-size: 23.5px; font-weight: 600; line-height: 1.5; color: var(--white); }

/* ── Archetype ── */
.arche-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.arche-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.arche-badge {
  background: var(--navy); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  padding: 10px 18px; border-radius: 30px;
}

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: flex-start; }
.contact-grid h2 { font-size: 28px; margin-bottom: 14px; }
.cinfo-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.cinfo-item { display: flex; align-items: center; gap: 16px; }
.cinfo-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px; background: var(--light); color: var(--royal); display: flex; align-items: center; justify-content: center; }
.cinfo-item strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--navy); }
.cinfo-item span { font-size: 15px; color: var(--gray); }

.form-card { background: var(--white); border: 1px solid rgba(30,77,183,.1); border-radius: 18px; padding: 40px; box-shadow: 0 10px 44px rgba(13,27,62,.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 7px; letter-spacing: .03em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--gray-bg); border: 1.5px solid transparent; border-radius: 9px; outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--royal); background: var(--white);
  outline: 2px solid var(--royal); outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field .error-msg { display: none; font-size: 13.5px; color: var(--orange); margin-top: 6px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--orange); }
.field.has-error .error-msg { display: block; }
.field-file { display: flex; align-items: center; gap: 12px; }
.field-file input[type="file"] { padding: 9px; background: var(--gray-bg); border-radius: 9px; font-size: 14.5px; }
.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: 14px; color: var(--gray); }
.form-success { display: none; background: var(--light); border-radius: 12px; padding: 22px 24px; margin-top: 18px; }
.form-success.show { display: block; }
.form-success p { color: var(--navy); font-size: 15.5px; }
.map-box { border-radius: var(--radius); overflow: hidden; margin-top: 28px; border: 1px solid rgba(30,77,183,.1); }
.map-box iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ── CTA band ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #0a1730 55%, var(--royal-d) 100%);
  padding: 96px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,77,183,.3) 0%, transparent 72%);
}
.cta-band .inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.cta-band h2 { color: var(--white); font-size: clamp(34px, 4vw, 47px); margin-bottom: 16px; }
.cta-band h2 span { color: var(--orange); }
.cta-band h2 .cta-line { display: block; color: inherit; white-space: nowrap; }
.cta-band p { color: rgba(255,255,255,.55); font-size: 18px; margin-bottom: 32px; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .note { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.32); }

/* ── Gallery (Proyectos) ── */
.filter-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }
.filter-btn {
  min-height: 44px;
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid rgba(30,77,183,.18);
  background: var(--white); color: var(--navy); cursor: pointer; transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--royal); }
.filter-btn.active { background: var(--royal); border-color: var(--royal); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; }
.gallery-item .ph-block { min-height: 300px; }
/* ── Gallery pair: 2 related images in one card slot ── */
.gallery-pair { cursor: pointer; user-select: none; }
.gallery-pair .pair-slide { transition: opacity .4s ease; }
.gallery-pair .pair-slide:not(.active) { opacity: 0; z-index: 0; }
.gallery-pair .pair-slide.active { opacity: 1; z-index: 1; }
.pair-nav { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; pointer-events: none; }
.pair-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); border: 1.5px solid rgba(255,255,255,.75); transition: background .25s ease; }
.pair-dot.active { background: #fff; }
.gallery-cap { padding: 22px 4px 0; }
.gallery-cap strong { display: block; font-family: var(--font-head); font-size: 18px; color: var(--navy); letter-spacing: -.01em; }
.gallery-cap span { display: block; margin-top: 4px; font-size: 14px; color: var(--gray); }

.projects-page { padding-top: 90px; }
.project-sections { display: grid; gap: 96px; }
.project-type {
  padding-bottom: 86px;
  border-bottom: 1px solid rgba(30,77,183,.12);
}
.project-type:last-child { border-bottom: 0; padding-bottom: 0; }
.project-type-head {
  max-width: 760px;
  margin-bottom: 42px;
}
.project-type-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--navy);
}
.project-folder { margin-top: 54px; }
.project-folder:first-of-type { margin-top: 0; }
.project-folder h3 {
  font-size: 26px;
  margin-bottom: 24px;
  color: var(--navy);
}
.project-gallery { margin-bottom: 10px; }

.pending-note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--gray-bg); border: 1px dashed rgba(30,77,183,.3);
  border-radius: 12px; padding: 20px 22px; margin-bottom: 48px;
}
.pending-note svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--royal); margin-top: 2px; }
.pending-note p { font-size: 15px; color: var(--navy); line-height: 1.6; }
.pending-note strong { color: var(--royal); }

/* ── Page header (interior pages) ── */
.page-head { background: var(--navy); padding: 124px 0 64px; color: var(--white); }
.page-head h1 { color: var(--white); font-size: clamp(36px, 4.4vw, 52px); max-width: 680px; }
.page-head p { color: rgba(255,255,255,.6); font-size: 18px; max-width: 560px; margin-top: 16px; line-height: 1.7; }
.services-hero {
  min-height: 470px;
  display: flex;
  align-items: center;
  padding: 118px 0 58px;
  background: var(--navy);
}
.services-hero .container {
  width: 100%;
}
.services-hero .eyebrow {
  margin-bottom: 22px;
  color: var(--orange);
}
.services-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(44px, 4.7vw, 58px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.services-hero p {
  max-width: 650px;
  color: rgba(255,255,255,.64);
  font-size: 20px;
  line-height: 1.52;
}
@media (max-width: 600px) {
  .services-hero {
    min-height: auto;
    padding: 108px 0 56px;
  }
  .services-hero p {
    font-size: 17px;
  }
}
.service-detail-hero {
  padding: 118px 0 40px;
  min-height: 360px;
}
.service-detail-hero .breadcrumb {
  margin-bottom: 28px;
}
.service-detail-hero .eyebrow {
  margin-bottom: 18px;
  color: var(--orange);
}
.service-detail-hero h1 {
  max-width: 710px;
  margin-bottom: 20px;
  font-size: clamp(46px, 6.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.service-detail-hero p {
  max-width: 650px;
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255,255,255,.66);
}
@media (max-width: 600px) {
  .service-detail-hero {
    min-height: auto;
    padding: 108px 0 50px;
  }
  .service-detail-hero h1 {
    font-size: clamp(38px, 11vw, 50px);
  }
  .service-detail-hero p {
    font-size: 17px;
  }
}
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 14.5px; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }

/* ── Service detail page ── */
.svc-detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: flex-start; }
.svc-detail-grid h2 { font-size: 26px; margin-bottom: 22px; }
.svc-detail-grid > .reveal > p { font-size: 17px; line-height: 1.75; margin-bottom: 20px; }
.svc-detail-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.svc-detail-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; color: var(--ink); line-height: 1.6; padding-bottom: 16px; border-bottom: 1px solid rgba(30,77,183,.08); }
.svc-detail-list li:last-child { border-bottom: none; padding-bottom: 0; }
.svc-detail-list .num {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  border-radius: var(--radius-sm); background: var(--light); color: var(--royal);
  display: flex; align-items: center; justify-content: center;
}
.svc-detail-list .num svg { width: 12px; height: 12px; }
.svc-sidebar { display: flex; flex-direction: column; gap: 20px; }
.svc-sidebar .ph-block { min-height: 320px; }
.other-svcs { background: var(--gray-bg); border-radius: var(--radius); padding: 26px; }
.other-svcs h4 { font-size: 15.5px; margin-bottom: 14px; }
.other-svcs a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--navy); border-bottom: 1px solid rgba(30,77,183,.08); }
.other-svcs a:last-child { border-bottom: none; }
.other-svcs a:hover { color: var(--royal); }

/* ── Footer ── */
.site-footer { background: var(--white); border-top: 1px solid rgba(30,77,183,.1); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 112px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 15px; color: var(--gray); line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(13,27,62,.38); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 15px; color: rgba(13,27,62,.7); text-decoration: none; margin-bottom: 11px; transition: color .15s ease; }
.footer-col a:hover { color: var(--royal); }
.footer-col a.accent { color: var(--orange); font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(30,77,183,.08); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { flex: 1; text-align: center; }
.footer-bottom p:first-child { text-align: left; }
.footer-bottom p:last-child { text-align: right; }
.footer-bottom p { font-size: 13.5px; color: rgba(13,27,62,.4); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: .08s; }
.reveal-2 { transition-delay: .16s; }
.reveal-3 { transition-delay: .24s; }
.reveal-4 { transition-delay: .32s; }
/* Cuando GSAP/ScrollTrigger están cargados, ellos controlan la animación de entrada;
   se desactiva la transición CSS para que no compita con el tween de la librería. */
.gsap-on .reveal { transition: none; }

/* ── Testimonios pendientes (landing) ── */
.testi-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; align-items: stretch; }
.testi-card { background: var(--white); border: 1px dashed rgba(30,77,183,.28); border-radius: var(--radius-sm); padding: 30px 28px; display: flex; flex-direction: column; }
.testi-card.featured { padding: 38px 34px; justify-content: center; }
.testi-quote-mark { width: 26px; height: 26px; color: var(--light); margin-bottom: 16px; }
.testi-skel-line { height: 9px; background: var(--gray-bg); border-radius: 4px; margin-bottom: 9px; }
.testi-skel-line.w90 { width: 90%; }
.testi-skel-line.w70 { width: 70%; }
.testi-skel-line.w45 { width: 45%; margin-top: 16px; }
.testi-skel-line.w30 { width: 30%; }
.testi-pending-tag { font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--royal); margin-top: auto; padding-top: 14px; }

/* ── Minimal landing header/footer ── */
.landing-header { padding: 30px 0; background: var(--navy); }
.landing-header img { height: 74px; }
.landing-footer { background: var(--navy); padding: 40px 0; }
.landing-footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.landing-footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.landing-footer-links a { display: flex; align-items: center; gap: 9px; font-size: 15px; color: rgba(255,255,255,.6); text-decoration: none; }
.landing-footer-links a svg { width: 16px; height: 16px; color: var(--sky); }
.landing-footer p { font-size: 13.5px; color: rgba(255,255,255,.28); }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-content { padding: 88px 0 72px; }
  .hero-grid, .hero-grid.split { grid-template-columns: 1fr; }
  .hero-grid.split .ph-block { min-height: 260px; order: -1; }
  .step-grid, .stat-grid, .value-grid, .mv-grid,
  .compare-grid, .arche-wrap, .gallery-grid, .testi-grid { grid-template-columns: 1fr; }
  .svc-row, .svc-row.rev { grid-template-columns: 1fr; gap: 22px; padding: 36px 0; }
  .svc-row .svc-row-media, .svc-row.rev .svc-row-media { order: -1; }
  .feat-split { grid-template-columns: 1fr; padding: 40px 0; }
  .feat-lead { grid-template-columns: 1fr; border-right: none; border-bottom: 1px solid rgba(30,77,183,.08); padding-bottom: 28px; }
  .feat-lead-media { min-height: 200px; margin-right: 0; margin-bottom: 20px; }
  .feat-lead-body { padding: 0 20px; }
  .contact-grid, .svc-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .page-head { padding: 108px 0 50px; }
}

/* ── Micro-interacciones 2026-07: más dinamismo pedido por el cliente ── */

/* Header que reacciona al scroll: se compacta y gana sombra al bajar. */
.header-inner { transition: height .25s ease; }
.brand img { transition: height .25s ease, transform .25s ease; }
.site-header.scrolled { background: var(--navy); box-shadow: 0 12px 34px rgba(13,27,62,.22); }
.site-header.scrolled .header-inner { height: 72px; }
.site-header.scrolled .brand img { height: 56px; }

/* Zoom suave de fotos al pasar el mouse (mismo lenguaje que .feat-card y .project-card). */
.gallery-item { transition: transform .25s ease; }
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item .ph-photo,
.svc-row-media .ph-photo,
.svc-sidebar .ph-photo { transition: transform .55s ease; }
.gallery-item:hover .ph-photo,
.svc-row:hover .svc-row-media .ph-photo,
.svc-sidebar .ph-block:hover .ph-photo { transform: scale(1.055); }
.gallery-cap strong { transition: color .2s ease; }
.gallery-item:hover .gallery-cap strong { color: var(--royal); }

/* Foco de luz que sigue al cursor dentro de las tarjetas (se activa por JS con .spot-hover). */
.spot-hover { position: relative; overflow: hidden; }
.spot-hover::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(230px circle at var(--mx, 50%) var(--my, 50%), rgba(30,77,183,.13), transparent 68%);
  transition: opacity .25s ease;
}
.spot-hover:hover::after { opacity: 1; }
.stat-card.accent.spot-hover::after {
  background: radial-gradient(230px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), transparent 68%);
}

/* Movimiento reducido: sin compactación animada ni foco de luz. */
@media (prefers-reduced-motion: reduce) {
  .gallery-item:hover,
  .gallery-item:hover .ph-photo,
  .svc-row:hover .svc-row-media .ph-photo,
  .svc-sidebar .ph-block:hover .ph-photo { transform: none; }
  .spot-hover::after { display: none; }
}

/* ── Movimiento reducido: respeta la preferencia del sistema operativo ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .pillar:hover, .value-card:hover, .stat-card:hover, .step-card:hover,
  .svc-card:hover, .feat-lead:hover, .feat-compact:hover {
    transform: none;
  }
}

/* ── Botón flotante WhatsApp ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(0,0,0,.3); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
