/* ═══════════════════════════════════════════════════════════
   CTyM – Centro de Estudios en Transporte y Movilidad
   main.css
   ═══════════════════════════════════════════════════════════ */

/* ─── Tipografías ───────────────────────────────────────────────────────────── */
/* Fuentes alojadas en el propio servidor (Barlow y Barlow Condensed, licencia SIL OFL) */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/barlow-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/barlow-condensed-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-condensed-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-condensed-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ─── Tokens ─────────────────────────────────────────────────────────────────── */
:root {
  --crimson:       #8B1A2B;
  --crimson-deep:  #6B1321;
  --crimson-mid:   #a52035;
  --blue:          #1A5FAB;
  --blue-deep:     #134A88;
  --blue-mid:      #2575C4;
  --blue-glow:     #3D8EE0;
  --blue-pale:     #EBF3FC;
  --silver:        #6B7280;
  --silver-light:  #9DA3AC;
  --silver-pale:   #EDEFF2;
  --charcoal:      #2C2C30;
  --off-white:     #F8F7F5;
  --white:         #FFFFFF;
  --font-display:  'Barlow Condensed', sans-serif;
  --font-body:     'Barlow', sans-serif;
  --nav-h:         72px;
  --max-w:         1400px;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

ul { list-style: none; }

/* ─── NAV ────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
}

.nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.10); }

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--crimson);
  transition: width 0.25s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--crimson); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--crimson) !important;
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 2px;
  font-weight: 600 !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover { background: var(--crimson-deep) !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--charcoal);
  transition: 0.3s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  padding: 24px 32px;
  border-bottom: 1px solid var(--silver-pale);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 99;
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--silver-pale);
  color: var(--charcoal);
  transition: color 0.2s;
}

.nav-mobile a:last-child { border-bottom: none; }

.nav-mobile a:hover { color: var(--crimson); }

/* ─── PAGE HERO (inner pages) ────────────────────────────────────────────────── */
.page-hero {
  margin-top: var(--nav-h);
  padding: 72px 0 60px;
  background: var(--off-white);
  border-bottom: 1px solid var(--silver-pale);
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 56px;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--crimson);
  opacity: 0.04;
}

.page-hero .breadcrumb {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 16px;
}

.page-hero .breadcrumb a { color: var(--crimson); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.page-hero h1 strong { color: var(--crimson); }

.page-hero .lead {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 300;
  color: var(--silver);
  max-width: 600px;
}

/* ─── SECTION COMMONS ────────────────────────────────────────────────────────── */
.section { padding: 72px 56px; }

.section-inner { max-width: var(--max-w); margin: 0 auto; }

.label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--charcoal);
}

.section-title strong { color: var(--crimson); }

.divider {
  width: 48px; height: 3px;
  background: var(--crimson);
  margin: 10px 0 18px;
  border-radius: 0;
}

.section-lead {
  font-size: 20px;
  color: var(--silver);
  max-width: 680px;
  line-height: 1.65;
}

/* ─── BUTTONS ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 9px 32px;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn--white { background: var(--white); color: var(--crimson); }

.btn--white:hover { background: var(--silver-pale); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.07); }

.btn--outline-crimson {
  background: transparent;
  color: var(--crimson);
  border: 1px solid var(--crimson);
}

.btn--outline-crimson:hover { background: var(--crimson); color: var(--white); }

.btn--grey { background: #5A5A62; color: var(--white); }

.btn--grey:hover { background: #3A3A40; }

/* ─── SCROLL REVEAL ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── FOOTER ──────────────────────────────────────────────────────────────────── */
.footer {
  background: #1C1C1F;
}

.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 56px 48px;
  display: grid;
  grid-template-columns: 220px 1fr 180px;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: block;
  margin-bottom: 24px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--white);
}

.footer-contact-item svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--crimson-mid); }

.footer-contact-item a { color: var(--white); transition: color 0.2s; }

.footer-contact-item a:hover { color: var(--silver-light); }

/* Offices in footer */
.footer-offices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.footer-office-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-office-addr {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
}

/* Sitemap nav */
.footer-sitemap-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.footer-sitemap-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-sitemap-links a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  transition: color 0.2s;
}

.footer-sitemap-links a:hover { color: var(--silver-light); }

/* Footer bottom bar */
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

.footer-legal { display: flex; gap: 20px; }

.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.25); transition: color 0.2s; }

.footer-legal a:hover { color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   INDEX PAGE
   ═══════════════════════════════════════════════════════════ */

/* Hero */
.hero {
  /* Altura mínima (no fija): si el texto necesita más sitio, el hero crece y nunca se corta.
     svh = altura visible con las barras del navegador móvil desplegadas. */
  min-height: max(320px, calc(100vh - var(--nav-h) - 148px));
  min-height: max(320px, calc(100svh - var(--nav-h) - 148px));
  /* La barra de navegación es fija y tapa la parte alta del hero: el contenido siempre empieza por debajo de ella. */
  padding-block: calc(var(--nav-h) + 24px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(90,10,30,0.88) 0%, rgba(140,20,40,0.78) 45%, rgba(58,32,48,0.90) 100%),
    url('../../images/arte/subway-hero.jpg') center/cover no-repeat;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(70,5,20,0.55) 0%, transparent 60%);
}

.hero-network {
  position: absolute;
  right: max(56px, calc((100vw - 1064px) / 2 + 56px));
  top: 50%;
  transform: translateY(-50%);
  width: 44vw;
  max-width: 560px;
  opacity: 0.12;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1064px;
  margin: 0 auto;
  padding: 32px 56px 0;
  animation: heroFadeIn 1s ease both;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 em { font-style: normal; color: rgba(255,255,255,0.4); }

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 36px; left: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 500;
}

.hero-scroll-line { width: 40px; height: 1px; background: rgba(255,255,255,0.3); }

/* Index intro strip */
.intro-strip {
  background: var(--off-white);
  padding: 48px 56px 56px;
}

.intro-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.intro-text { 
  flex: none;
  width: 100%;
  max-width: 760px;
  text-align: justify;
  text-align-last: left;
}

.intro-text p {
  font-size: 20px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.6;
}

.intro-text p strong { color: var(--crimson); }

.intro-text .btn { margin-top: 16px; display: block; width: fit-content; margin-left: auto; margin-right: auto; }

/* Index section cards (services preview) */
/* Index services — split layout (espejo de Struppi, visual a la derecha) */
.index-services-wrap {
  background: var(--white);
}

.index-services-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--max-w);
  margin: 0 auto;
}

.services-content {
  padding: 24px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-intro {
  font-size: 16px;
  color: #5A5A62;
  line-height: 1.8;
  margin: 4px 0 12px;
  max-width: 440px;
}

.services-cta {
  width: 100%;
  max-width: 440px;            /* mismo ancho que .services-intro */
  display: flex;
  justify-content: center;
}

.services-areas {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
}

.services-area {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--silver-pale);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  position: relative;
}

.services-area:first-child { border-top: 1px solid var(--silver-pale); }

.services-area:hover .services-area-num { color: var(--crimson); }

.services-area:hover h3 { color: var(--crimson); }

.services-area-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--silver);
  min-width: 28px;
  transition: color 0.2s;
}

.services-area-body { flex: 1; }

.services-area-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2px;
  transition: color 0.2s;
}

.services-area-body p {
  font-size: 16px;
  color: #7A7A82;
  line-height: 1.75;
  margin: 0;
  display: none;
}

.services-visual {
  background: linear-gradient(135deg, var(--crimson-deep) 0%, var(--crimson) 60%, #5A1530 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.services-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.services-visual-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 40px;
}

.services-visual-label {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  color: rgba(255,255,255,0.30);
  margin-bottom: 12px;
  line-height: 1;
}

.services-visual-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.0;
}

/* Servicios — variante fondo blanco alterno para bloques pares */
.index-services-wrap--alt {
  background: var(--off-white);
}

.index-services-wrap--alt .services-visual:not(.services-visual--photo) {
  background: linear-gradient(135deg, #3A0A18 0%, var(--crimson-deep) 50%, var(--crimson) 100%);
}

.index-services-wrap--alt .services-visual--photo {
  background:
    linear-gradient(135deg, rgba(58,10,24,0.82) 0%, rgba(139,26,43,0.78) 60%, rgba(90,21,48,0.88) 100%),
    var(--bq-img) center / cover no-repeat;
}

/* Áreas de servicio sin hover (versión estática para servicios.html) */
.services-area--static {
  cursor: default;
  padding: 12px 0;
}

.services-area--static .services-area-body h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0D9488;
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}

.services-area--static:hover h3 { color: inherit; }

.services-area--static:hover .services-area-num { color: var(--silver); }

.services-area--static .services-area-body p {
  display: block;
  font-size: 16px;
  color: #5A5A62;
  line-height: 1.75;
  margin-top: 6px;
}

.services-area--static .services-area-body p::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0D9488;
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}

/* Franjas fotográficas con parallax en servicios.html */

/* CTA inferior en servicios.html */
.section-cta-wrap {
  text-align: center;
  padding: 52px 56px;
  background: var(--white);
}

/* Index team image */
.index-team-image {
  display: flex;
  width: 100%;
  /* 16:10 hasta 1920 px de pantalla; a partir de ahí la altura se queda en 600 px */
  height: clamp(300px, 31.25vw, 600px);
}

.index-team-image-half {
  flex: 1;
  overflow: hidden;
  background: var(--silver-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.index-team-image-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;   /* al cambiar la resolución, la imagen se recorta por igual por arriba y por abajo (escala desde el centro) */
  display: block;
}

@media (max-width: 600px) {
.index-team-image { flex-direction: column; height: auto; }

.index-team-image-half { height: auto; }

.index-team-image-half img { height: auto; aspect-ratio: 16 / 10; }

}

/* ── Portada: texto de presentación bajo el hero ─────────────────────── */
.intro-strip .intro-strip-inner { max-width: none; }
.intro-strip .intro-text { max-width: none; text-align: center; text-align-last: center; }
.intro-strip .intro-text p {
  font-family: var(--font-display);                            /* la misma condensada que «Nuestro Software» */
  font-size: clamp(20px, calc((100vw - 140px) / 38.75), 32px);   /* 80 % del tamaño anterior (máx. 32 px) */
  font-weight: 400;
  line-height: 1.3;
}
.intro-strip .intro-text p strong { font-weight: 700; }       /* negrita solo en lo resaltado */
.intro-strip .intro-text .btn { margin-top: 28px; }
@media (max-width: 1100px) {
  .intro-br { display: none; }                                  /* en pantallas pequeñas el texto se ajusta solo */
  .intro-strip .intro-text p { font-size: clamp(20px, 2.4vw, 25px); }
}

/* ── Portada: Servicios y Software a sangre, texto escalado y centrado en su mitad ──
   El texto crece con la pantalla (hasta 20 px, como la presentación) y la columna crece
   en la misma proporción, de modo que las líneas conservan su longitud. */
.software-lead { font-size: 16px; color: #5A5A62; line-height: 1.8; margin-bottom: 16px; }
.software-note { font-size: 15px; color: #5A5A62; line-height: 1.8; margin-bottom: 36px; }

.index-services-wrap--bleed, .index-software-wrap--bleed {
  --fs: 16px; --fs-h3: 17px; --intro-w: 440px; --pad: 52px;
}
@media (min-width: 1101px) {
  .index-services-wrap--bleed, .index-software-wrap--bleed {
    --fs: 14px; --fs-h3: 15px; --intro-w: 385px; --colw: 440px;
    --pad: calc(25vw - var(--colw) / 2);
  }
}
@media (min-width: 1500px) {
  .index-services-wrap--bleed, .index-software-wrap--bleed {
    --fs: 16px; --fs-h3: 16px; --intro-w: 440px; --colw: 496px;
  }
}
@media (min-width: 1921px) {
  .index-services-wrap--bleed, .index-software-wrap--bleed { --colw: 596px; }
}

.index-services-wrap--bleed .services-intro { font-size: var(--fs); max-width: var(--intro-w); }
.index-services-wrap--bleed .services-cta { max-width: var(--intro-w); }
.index-services-wrap--bleed .services-area { padding: calc(var(--fs) * 0.625) 0; }
.index-services-wrap--bleed .services-area-num { font-size: max(11px, calc(var(--fs) * 0.7)); }
.index-services-wrap--bleed .services-area-body h3 { font-size: var(--fs-h3); }
.index-software-wrap--bleed .software-lead { font-size: var(--fs); }
.index-software-wrap--bleed .software-note { font-size: calc(var(--fs) * 0.9375); }
.index-software-wrap--bleed .software-content .section-title,
.index-services-wrap--bleed .services-content .section-title { font-size: calc(var(--fs) * 2.25); }
.index-services-wrap--bleed .btn, .index-software-wrap--bleed .btn { font-size: max(12px, calc(var(--fs) * 0.8125)); }

/* Los bloques granates llegan hasta el borde de la pantalla, alineados con las franjas de fotos */
@media (min-width: 1101px) {
  .index-services-wrap--bleed .index-services-split { max-width: none; }
  .index-services-wrap--bleed .services-content { padding-inline: var(--pad); }
}
@media (min-width: 901px) {
  .index-software-wrap--bleed .index-software { max-width: none; }
  .index-software-wrap--bleed .software-content { padding-inline: var(--pad); }
}

/* ── Portada: bloque granate de Servicios con cifras ───────────────── */
.services-visual--stats .services-visual-inner { padding: 40px 32px; }
.services-stats-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 28px;
}
.services-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 72px);
}
.services-stat { text-align: center; }
.services-stat-label {
  font-family: var(--font-display);
  font-size: clamp(11px, 0.8vw, 15px);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--silver-light);
  margin-bottom: 8px;
}
.services-stat-num {
  font-family: var(--font-display);
  font-size: clamp(44px, 4.2vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--white);
}
.services-stats-sep {
  width: 1px;
  height: clamp(56px, 6vw, 96px);
  background: rgba(255,255,255,0.25);
}
@media (min-width: 1101px) {
  .services-stats-title { font-size: clamp(22px, 1.7vw, 32px); margin-bottom: clamp(26px, 2.6vw, 48px); }
  .services-stats { gap: clamp(20px, 3.2vw, 58px); }
  .services-stat-label { font-size: clamp(10px, 0.64vw, 12px); }
  .services-stat-num { font-size: clamp(36px, 3.4vw, 64px); }
  .services-stats-sep { height: clamp(46px, 4.8vw, 77px); }
}
@media (max-width: 1100px) {
  .services-visual.services-visual--stats { min-height: 180px; }
}
@media (max-width: 560px) {
  .services-stat-label { font-size: 10.5px; letter-spacing: 2px; }
  .services-stats { gap: 22px; }
}

/* Shared project card styles (used in proyectos.html carousels) */
.project-geo {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crimson-mid);
  margin-bottom: 10px;
}

.section-cta { margin-top: 32px; text-align: center; }

/* Proyectos – cuadrícula plana 4×3 */
.proyectos-grid-section {
  width: 100%;
  background: var(--white);
}

.proyectos-grid-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px 56px 64px;
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Tarjeta con efecto flip al hover */
.proyecto-card {
  aspect-ratio: 3 / 2;
  cursor: pointer;
  perspective: 1000px;
}

.proyecto-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.proyecto-card:hover .proyecto-card-inner,
.proyecto-card.flipped .proyecto-card-inner {
  transform: rotateY(180deg);
}

/* FRENTE Y REVERSO — base común */
.proyecto-card-front,
.proyecto-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  border-radius: 2px;
  overflow: hidden;
}

/* FRENTE: imagen + overlay + título */
.proyecto-card-front {
  background: #3A3A40 center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  -webkit-transform: translateZ(1px);
  transform: translateZ(1px);
}

.proyecto-card-thumb {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.05) 100%);
}

.proyecto-card-body {
  position: relative;
  z-index: 2;
  padding: 24px 24px 28px;
  width: 100%;
}

.proyecto-card-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin: 0;
}

/* ocultar geo y tag en el frente */
.proyecto-card-body .project-geo,
.proyecto-card-body .project-tag { display: none; }

/* REVERSO: fondo blanco con info completa */
.proyecto-card-back {
  background: var(--white);
  -webkit-transform: rotateY(180deg) translateZ(1px);
  transform: rotateY(180deg) translateZ(1px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px;
  border: 1px solid var(--silver-pale);
}

.project-geo-back {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 8px;
}

.proyecto-card-back h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.35;
  margin-bottom: 14px;
}

.project-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--silver);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.project-tag-back {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crimson);
  border: 1px solid var(--crimson);
  padding: 4px 10px;
  align-self: flex-start;
}

@media (max-width: 900px) {
.proyectos-grid-inner { padding: 40px 32px 52px; }

.proyectos-grid { grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 600px) {
.proyectos-grid-inner { padding: 32px 20px 44px; }

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

}

/* Index software teaser */
.index-software-wrap {
  background: var(--off-white);
}

.index-software {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--max-w);
  margin: 0 auto;
}

.software-content { padding: 52px 52px; }

.software-visual {
  background: linear-gradient(135deg, var(--crimson-deep) 0%, var(--crimson) 60%, #5A1530 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.software-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.software-logo-wrap { position: relative; z-index: 2; text-align: center; }

.software-logo-name {
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -2px;
}

.software-logo-sub {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 10px;
}

/* Index clients – marquesina infinita */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.index-clients {
  background: var(--silver-pale);
  padding: 52px 0;
}

.clients-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 40px;
}

.clients-marquee-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 56px;
  overflow: hidden;
  /* Fade en los bordes dentro del ancho del contenido */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.clients-marquee {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.clients-marquee:hover {
  animation-play-state: paused;
}

.client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 36px;
  text-decoration: none;
  outline-offset: 4px;
}

.client-item img {
  max-height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.5;
  transition: filter 0.3s, opacity 0.3s;
  display: block;
}

.client-item:hover img,
.clients-marquee:hover .client-item img {
  filter: grayscale(0);
  opacity: 1;
}

.client-item span {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  opacity: 0.5;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.client-item:hover span { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   QUIÉNES SOMOS
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   SERVICIOS
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   PROYECTOS
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   SOFTWARE
   ═══════════════════════════════════════════════════════════ */

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

/* Contact general strip */

/* Offices */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.office-col {
  display: flex;
  flex-direction: column;
}

.office-city {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.office-addr {
  font-size: 16px;
  color: var(--silver);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   PÁGINAS LEGALES
   ═══════════════════════════════════════════════════════════ */
.legal-page { background: var(--white); }

.legal-content { max-width: 860px; }

.legal-block {
  margin-bottom: 48px;
}

.legal-block h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--silver-pale);
}

.legal-block p {
  font-size: 16px;
  color: #3D3D44;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-block p:last-child { margin-bottom: 0; }

.legal-block a { color: var(--crimson); border-bottom: 1px solid currentColor; }

.legal-block a:hover { opacity: 0.75; }

.legal-list {
  margin: 12px 0 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-list li {
  font-size: 16px;
  color: #3D3D44;
  line-height: 1.7;
  list-style: disc;
}

.legal-list li a { color: var(--crimson); border-bottom: 1px solid currentColor; }

.legal-table {
  border: 1px solid var(--silver-pale);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 16px;
}

.legal-table-head {
  background: var(--silver-pale) !important;
  font-weight: 700 !important;
  color: var(--charcoal) !important;
}

.legal-table-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--silver-pale);
}

.legal-table-row:last-child { border-bottom: none; }

.legal-table-row > div {
  padding: 16px 20px;
  font-size: 16px;
  color: #3D3D44;
  line-height: 1.75;
}

.legal-table-row > div:first-child {
  border-right: 1px solid var(--silver-pale);
  background: var(--off-white);
}

.legal-table-row > div p { margin-bottom: 8px; }

.legal-table-row > div p:last-child { margin-bottom: 0; }

.legal-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--silver-pale);
}

@media (max-width: 600px) {
.legal-table-row { grid-template-columns: 1fr; }

.legal-table-row > div:first-child { border-right: none; border-bottom: 1px solid var(--silver-pale); }

}

@media (max-width: 1280px) and (max-height: 820px) {
.hero h1 { font-size: clamp(32px, 4.5vw, 56px); margin-bottom: 14px; }

.hero-sub { font-size: 16px; margin-bottom: 24px; line-height: 1.6; }

.hero-scroll { display: none; }

}

@media (max-width: 1100px) {
.index-services-split { grid-template-columns: 1fr; }

.services-visual { min-height: 300px; order: -1; }

.services-content { padding: 64px 32px; }

}

@media (max-width: 900px) {
.section { padding: 48px 32px; }

.intro-strip { padding: 28px 24px; }

.intro-text p { font-size: 16px; }

.index-clients { padding: 56px 0; }

.clients-marquee-wrap { padding: 0 32px; }

.nav-inner { padding: 0 24px; }

.nav-links { display: none; }

.nav-burger { display: flex; }

.hero-content { padding: 0 32px; grid-template-columns: 1fr; }

.hero-right { justify-content: flex-start; }

.hero-scroll { left: 32px; }

.page-hero { padding: 56px 0 48px; }

.page-hero-inner { padding: 0 32px; }

.index-software { grid-template-columns: 1fr; max-width: 100%; }

.software-content { padding: 64px 32px; }

.software-visual { min-height: 260px; }

.footer { padding: 36px 32px; }

.footer-main { grid-template-columns: 1fr; gap: 40px; padding: 48px 32px 36px; }

.footer-offices { grid-template-columns: 1fr; gap: 24px; }

.footer-bottom { padding: 20px 32px; flex-direction: column; text-align: center; }

  /* Contact */
.offices-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Clients marquee */
.index-clients { padding: 36px 0; }

.clients-marquee-wrap {
    padding: 0 16px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  }

.client-item { padding: 0 20px; }

.client-item img { max-height: 40px; max-width: 100px; }

}

@media (max-width: 600px) {
.services-content { padding: 48px 24px; }

.hero h1 { font-size: 38px; }

.clients-marquee-wrap {
    max-width: 100%;
    padding: 0 8px;
    -webkit-mask-image: none;
    mask-image: none;
  }

.client-item { padding: 0 16px; }

.struppi-hero-content { padding: 0 24px; }

.team-hero-quote { font-size: clamp(16px, 5vw, 24px); }

.footer-bottom { flex-direction: column; text-align: center; }

}

/* ═══════════════════════════════════════════════════════════
   TEAM PAGE - FULL PROFILES
   ═══════════════════════════════════════════════════════════ */

/* Team page - Historia/Experiencia/Visión grid */
.team-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  margin-top: 0;
}

.team-pillar-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.team-pillar-title strong {
  color: var(--crimson);
}

.team-pillars-grid p {
  font-size: 16px;
  color: #3D3D44;
  line-height: 1.8;
  margin-bottom: 16px;
}

.team-pillars-grid p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
.team-pillars-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

}

/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE - NEW DESIGN
   ═══════════════════════════════════════════════════════════ */

/* Contact hero - estilo struppi-hero */
.contact-hero {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--crimson-deep) 0%, var(--crimson) 45%, #3A2030 100%);
}

.contact-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.contact-hero-network {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 55vw;
  max-width: 700px;
  opacity: 0.08;
  pointer-events: none;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-hero-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-item svg {
  width: 24px;
  height: 24px;
  color: var(--white);
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-info-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 4px;
}

.contact-info-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  transition: opacity 0.2s;
}

.contact-info-value:hover {
  opacity: 0.8;
}

@media (max-width: 900px) {
.contact-hero {
    height: auto;
    padding: 48px 32px;
  }

.contact-hero-content {
    flex-direction: column;
    gap: 28px;
  }

.contact-hero-divider {
    width: 48px;
    height: 1px;
  }

}

/* ═══════════════════════════════════════════════════════════
   SOFTWARE PAGE
   ═══════════════════════════════════════════════════════════ */

/* Struppi mini-hero */
.struppi-hero {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 0;
}

.struppi-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--crimson-deep) 0%, var(--crimson) 45%, #3A2030 100%);
}

.struppi-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.struppi-hero-network {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 55vw;
  max-width: 700px;
  opacity: 0.08;
  pointer-events: none;
}

.struppi-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: heroFadeIn 1s ease both;
  width: 100%;
  padding: 0 56px;
}

.team-hero-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 700;
  font-style: normal;
  color: var(--white);
  letter-spacing: -0.3px;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

.struppi-hero-name {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.struppi-hero-sub {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Origen y Qué es - 2 columnas */
.software-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.software-dual-grid p {
  font-size: 16px;
  color: #3D3D44;
  line-height: 1.75;
  margin-bottom: 14px;
}

.software-dual-grid p:last-child {
  margin-bottom: 0;
}

/* Resultados - 3 columnas */
.software-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.software-result-card {
  background: var(--white);
  border: 1px solid var(--silver-pale);
  border-radius: 4px;
  overflow: hidden;
}

.software-result-img {
  width: 100%;
  height: 220px;
  background: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.software-result-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
  box-sizing: border-box;
}

.software-result-body {
  padding: 20px;
}

.software-result-body h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.software-result-body p {
  font-size: 16px;
  color: #3D3D44;
  line-height: 1.6;
}

@media (max-width: 900px) {
.software-dual-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

.software-results-grid {
    grid-template-columns: 1fr;
  }

}

/* ─── OFICINAS / DIAGRAMA DE RUTA ───────────────────────────────────────── */

/* ── Línea de vía doble ── */

/* ── Traviesas ── */

/* ── Estela del tren ── */
@keyframes train-sweep {
  0%   { left: -30%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

/* ── Paradas ── */

/* ── Tarjetas ── */

/* ─── Stats en mini-hero de Quiénes Somos ───────────────────────────────────── */

/* ─── Detalles de color sutiles – conjunto de la web ───────────────────────────
   Principio: el carmesí es el color dominante de marca. Añadimos un acento
   teal/azul (#0D9488) como segundo color funcional, siempre en detalles pequeños
   que no compitan con la jerarquía visual existente.
   ─────────────────────────────────────────────────────────────────────────────── */

/* Punto decorativo delante de cada .label */
.label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0D9488;
  margin-right: 12px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Línea inferior hover en team-cards (índice): degradado en lugar de crimson plano */

/* Foto de perfil: anillo teal muy sutil */

/* Tarjetas de equipo completo (quienes-somos): franja superior teal permanente */

/* Línea izquierda hover en service-full-card: degradado */

/* Geo tag de project cards: teal en lugar de crimson-mid */
.project-geo {
  color: #5EEAD4;
}

/* Footer: pequeño acento de color en títulos de oficina */
.footer-office-title {
  color: rgba(255,255,255,0.95);
  border-left: 2px solid #0D9488;
  padding-left: 8px;
}

/* ─── Recordatorio Daniel Maestre ───────────────────────────────────────────── */
.memorial-section {
  background: var(--off-white);
  padding: 80px 56px;
  border-top: 1px solid var(--silver-pale);
}

.memorial-inner {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 36px;
  align-items: center;
}

.memorial-photo-wrap {
  position: relative;
}

.memorial-photo {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #0D9488;
  filter: grayscale(30%);
}

.memorial-photo-placeholder {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--silver-pale);
  border: 2px solid #0D9488;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--silver);
}

.memorial-body .label { margin-bottom: 10px; }

.memorial-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.1;
  margin-bottom: 0;
}

.memorial-text {
  font-size: 16px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.8;
  max-width: 560px;
  font-style: italic;
}

@media (max-width: 700px) {
.memorial-section { padding: 56px 24px; }

.memorial-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

.memorial-photo,
.memorial-photo-placeholder {
    width: 82px;
    height: 82px;
    margin: 0 auto;
  }

.memorial-photo-placeholder { font-size: 28px; }

.memorial-text { margin: 0 auto; }

}

/* ── Toques de azul – detalles decorativos ───────────────────────────── */

/* Breadcrumb: enlace en azul */
.page-hero .breadcrumb a { color: #0D9488; }

/* Número de área en el index: azul suave */
.services-area-num { color: #0D9488; }

/* Intro-link "Conocer el equipo →" en azul */

/* Borde superior de service-card en hover: azul en lugar de crimson */

/* Número grande en bloque visual crimson: blanco suave */
.services-visual-label { color: rgba(255,255,255,0.30); }

/* page-hero-stat-num en azul */

/* Línea separadora del nav al hacer scroll */

/* ── fin toques azul ─────────────────────────────────────────────────── */

/* ── Bloque software en servicios.html ──────────────────────────────── */
.services-software-wrap {
  background: var(--white);
  padding: 56px;
  border-top: 1px solid var(--silver-pale);
}

.services-software-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.services-software-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 10px;
  text-align: center;
}

.services-software-claim {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 40px;
  max-width: 780px;
  text-align: center;
}

.services-software-marquee-wrap {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding: 0 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.services-software-marquee {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: marquee-scroll 24s linear infinite;
}

.services-software-marquee:hover {
  animation-play-state: paused;
}

.sw-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 40px;
  height: 52px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.sw-logo:hover {
  opacity: 1;
}

.sw-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  max-width: 120px;
}

@media (max-width: 768px) {
.services-software-wrap { padding: 40px 24px; }

.sw-logo { padding: 0 20px; height: 44px; }

.services-software-marquee-wrap {
    padding: 0 32px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  }

}

@media (max-width: 600px) {
.services-software-wrap { padding: 32px 0; }

.sw-logo { padding: 0 16px; height: 38px; }

.sw-logo img { max-width: 90px; }

.services-software-marquee-wrap {
    padding: 0 16px;
    -webkit-mask-image: none;
    mask-image: none;
  }

}

/* ── fin bloque software ─────────────────────────────────────────────── */

/* ── Equipo: 5 columnas verticales ──────────────────────────────────── */
/* ── fin equipo columnas ─────────────────────────────────────────────── */

/* Hero logo grande en columna derecha */
.hero-logo-large {
  width: 100%;
  max-width: 252px;
  opacity: 0.55;
  display: block;
  margin-left: auto;
}

@media (max-width: 900px) {
.hero-logo-large { max-width: 160px; margin: 0 auto; opacity: 0.15; }

}

/* ── Foto equipo con hover ───────────────────────────────────────────── */

/* ── Nombres debajo de la foto ───────────────────────────────────────── */
/* ── fin foto equipo ─────────────────────────────────────────────────── */

/* ── Quiénes somos: introducción y fichas de perfil ──────────────────── */
.team-profiles {
  background: var(--white);
  padding: 80px 56px 96px;
}

.profiles-grid {
  max-width: 845px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* la última fila (2 fichas) queda centrada */
  gap: 56px 40px;
}

.profile-card {
  flex: 0 1 calc((100% - 80px) / 3);
  min-width: 0;
}

.profile-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--silver-pale);
  border-bottom: 3px solid var(--crimson);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 22px 0 10px;
}

.profile-bio {
  font-size: 16px;
  line-height: 1.7;
  color: #3D3D44;
}

@media (max-width: 900px) {
.team-profiles { padding: 64px 32px 72px; }

.profiles-grid { max-width: 75%; }

.profile-card { flex-basis: calc((100% - 40px) / 2); }

}

@media (max-width: 560px) {
.team-profiles { padding: 48px 20px 56px; }

.profiles-grid { gap: 36px; max-width: 100%; }

.profile-card {
    flex-basis: 100%;
    display: grid;
    grid-template-columns: 84px 1fr;
    column-gap: 18px;
    align-items: start;
  }

.profile-photo { grid-row: 1 / span 2; }

.profile-name { font-size: 22px; margin: 0 0 8px; }

.profile-bio { font-size: 15px; line-height: 1.6; }

}

/* ── fin quiénes somos ───────────────────────────────────────────────── */

/* ── Oficinas tres columnas ──────────────────────────────────────────── */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.office-col {
  display: flex;
  flex-direction: column;
}

.office-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #d8d8dc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 2px;
}

.office-img-placeholder span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
}

.office-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.office-city {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--crimson);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.office-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.office-addr {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.7;
  margin: 0 0 12px;
}

.office-coords {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #bbb;
  margin: 0;
}

@media (max-width: 860px) {
.offices-grid { grid-template-columns: 1fr; gap: 48px; }

.office-img-placeholder { aspect-ratio: unset; height: auto; }

.office-img-placeholder img { height: auto; object-fit: unset; transform: none; }

.office-img-placeholder:hover img { transform: none; }

}

/* ── fin oficinas ────────────────────────────────────────────────────── */

/* ── Mejora visualización croquis oficinas ───────────────────────────── */
.office-img-placeholder {
  overflow: hidden;
  border: 1px solid #e4e4e8;
}

.office-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.08);
  transition: transform 0.4s ease;
}

.office-img-placeholder:hover img {
  transform: scale(1.13);
}

/* ── Bloques servicio con foto + degradado encima ────────────────────── */
.services-visual--photo {
  background:
    linear-gradient(135deg, rgba(58,10,24,0.82) 0%, rgba(139,26,43,0.78) 60%, rgba(90,21,48,0.88) 100%),
    var(--bq-img) center / cover no-repeat;
}

.services-visual--bq1 { --bq-img: url('../../images/bloques/bq_1.jpg'); }

.services-visual--bq2 { --bq-img: url('../../images/bloques/bq_2.jpg'); }

.services-visual--bq3 { --bq-img: url('../../images/bloques/bq_3.jpg'); }

.services-visual--bq4 { --bq-img: url('../../images/bloques/bq_4.jpg'); }

.services-visual--bq5 { --bq-img: url('../../images/bloques/bq_5.jpg'); }

/* ─────────────────────────────────────────────────────────────────────── */

/* ─── Ajuste para pantallas 1080p (≤ 1920px) ────────────────────────────────
   En 4K todo permanece igual. En 1080p se reduce la escala general
   para que el sitio se vea más fino y proporcionado.
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1920px) and (min-width: 1281px) {
:root {
    --nav-h: 64px;
    --max-w: 1200px;
  }

  /* Nav */
.nav-inner { padding: 0 40px; }

.nav-logo-img { height: 38px; }

.nav-links { gap: 28px; }

.nav-links a { font-size: 13px; letter-spacing: 1px; }

  /* Secciones */
.section { padding: 56px 40px; }

.page-hero { padding: 56px 0 48px; }

.page-hero-inner { padding: 0 40px; }

.page-hero h1 { font-size: clamp(28px, 3.5vw, 48px); }

.page-hero .lead { font-size: 15px; }

  /* Títulos */
.section-title { font-size: clamp(20px, 2.5vw, 30px); }

.label { font-size: 16px; }

.clients-title { font-size: 16px; }

  /* Hero principal */
.hero { min-height: max(320px, calc(100vh - var(--nav-h) - 100px)); min-height: max(320px, calc(100svh - var(--nav-h) - 100px)); }

.hero-content { padding: 24px 40px 0; max-width: 960px; }

  /* Footer */
.footer-main { padding: 48px 40px 36px; }

.footer-bottom { padding: 16px 40px; }

}
