/* ================================================================
   SMART ELECTRICA Y ELECTRONICA - SITIO WEB CORPORATIVO 2026
   Direccion de Arte:
   - Fondo de la Web: Blanco Puro (#FFFFFF) con Red a Cuadros Tecnica
   - Recuadros y Tarjetas: Blanco Crudo (#FAF9F5)
   - Intro Logo Hero: 100% Homogéneo y Puro (Sin Aura, Sin Drop-Shadow)
   - Socios Comerciales: Círculos Blancos (#FFFFFF) con Logos Optimizados
   - Línea de Tiempo: Didáctica con Efecto Dimmer en Hover y Expansión Suave
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Fondo Principal: Blanco Puro con Red */
  --bg-primary: #FFFFFF;
  
  /* Recuadros / Tarjetas: Blanco Crudo */
  --bg-secondary: #FAF9F5;
  --bg-tertiary: #F3F1EC;
  --bg-card: #FAF9F5;
  --bg-card-hover: #FFFFFF;
  
  /* Textos de Alto Contraste */
  --text-main: #111216;
  --text-secondary: #3E424E;
  --text-muted: #6E7382;
  --text-light: #F4F5F8;
  
  /* Color Acento: Azul Electrico Smart #1454B8 */
  --brand-blue: #1454B8;
  --brand-blue-hover: #0E3E8A;
  --brand-blue-light: rgba(20, 84, 184, 0.08);
  --brand-blue-border: rgba(20, 84, 184, 0.28);
  
  /* Red a Cuadros sobre Fondo Blanco */
  --grid-line: rgba(0, 0, 0, 0.045);
  
  /* Bordes */
  --border-light: rgba(0, 0, 0, 0.07);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-card: rgba(0, 0, 0, 0.08);
  
  /* Tipografia */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  /* Curvas y Transiciones */
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.22s ease;
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Dimensiones */
  --container-max: 1560px;
  --section-padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 60px);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  color: var(--text-main);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

/* ── OVERLAY HERO INTRO 100% HOMOGÉNEO (SIN AURA, SIN MARCOS) ── */
.hero-logo-intro-overlay {
  position: fixed;
  inset: 0;
  background-color: #FFFFFF;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  box-shadow: none !important;
  filter: none !important;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-logo-intro-overlay.fade-out {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(-16px) scale(0.98);
  visibility: hidden;
}

.hero-intro-logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  padding: 40px;
  box-shadow: none !important;
  filter: none !important;
  animation: introLogoReveal 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-intro-logo-img {
  width: min(86vw, 680px);
  height: auto;
  max-height: 38vh;
  object-fit: contain;
  box-shadow: none !important;
  filter: none !important;
}

@keyframes introLogoReveal {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
    filter: blur(6px);
  }
  20% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: none;
  }
  80% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: none;
  }
  100% {
    opacity: 0;
    transform: scale(0.96) translateY(-14px);
    filter: blur(10px);
  }
}

/* ── HEADER / NAVIGATION ── */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  transition: background-color 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
}

header.site-header.scrolled {
  padding: 12px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.brand-wrapper {
  display: flex;
  align-items: center;
}

.brand-isotipo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-isotipo-img:hover {
  transform: scale(1.06);
}

/* Nav Menu */
nav.main-nav {
  display: flex;
  justify-content: center;
}

nav.main-nav > ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
  list-style: none;
}

nav.main-nav > ul > li {
  position: relative;
}

nav.main-nav a.nav-link {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

nav.main-nav a.nav-link svg.caret {
  transition: transform 0.25s ease;
}

nav.main-nav a.nav-link:hover,
nav.main-nav a.nav-link.active {
  color: var(--brand-blue);
}

nav.main-nav > ul > li:hover a.nav-link svg.caret {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #FAF9F5;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 330px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s var(--ease-editorial);
  list-style: none;
  z-index: 100;
}

nav.main-nav > ul > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  line-height: 1.35;
}

.nav-dropdown li a:hover {
  background-color: #FFFFFF;
  color: var(--brand-blue);
  padding-left: 24px;
}

.nav-dropdown li a.featured-link {
  font-weight: 700;
  color: var(--brand-blue);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
  padding-bottom: 12px;
}

/* CTA Right */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

.btn-cta {
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--brand-blue);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-editorial);
  box-shadow: 0 4px 14px rgba(20, 84, 184, 0.25);
}

.btn-cta:hover {
  background-color: var(--brand-blue-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 84, 184, 0.38);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
}

/* ── HERO SECTION ── */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(140px, 16vh, 190px) clamp(20px, 5vw, 60px) 70px;
  overflow: hidden;
}

.hero-cover-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 66vh;
  overflow: hidden;
  z-index: 1;
}

.hero-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.92) contrast(1.05);
  transform: scale(1.02);
  transition: transform 1.8s var(--ease-editorial);
}

.hero-cover-container:hover .hero-cover-img {
  transform: scale(1.05);
}

.hero-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.40) 40%,
    rgba(255, 255, 255, 0.95) 85%,
    var(--bg-primary) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: 24vh;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7.5vw, 6.8rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-bottom: 26px;
}

.hero-title span.accent {
  color: var(--brand-blue);
  font-style: normal;
}

.hero-sub-clean {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  max-width: 960px;
}

.hero-clean-lead {
  font-family: var(--font-sans);
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  line-height: 1.68;
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-secondary {
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-editorial);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.btn-secondary:hover {
  background: #FFFFFF;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 84, 184, 0.12);
}

/* ── STATS STRIP ── */
.stats-strip {
  padding: 36px clamp(20px, 5vw, 60px);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}

.stat-card {
  padding: 16px 16px 16px 0;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-editorial), transform 0.6s var(--ease-editorial);
}

.stat-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:last-child {
  border-right: none;
  padding-right: 0;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.stat-num span {
  color: var(--brand-blue);
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.stat-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ── SECTION COMMONS ── */
section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-tag-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.section-tag-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.section-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.6;
  text-align: right;
}

/* ── NOSOTROS HOME OVERVIEW ── */
.about-home-section {
  background-color: transparent;
}

.about-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.about-home-visual {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

.about-home-img {
  width: 100%;
  height: clamp(360px, 46vh, 520px);
  object-fit: cover;
  transition: transform 1.2s var(--ease-editorial);
}

.about-home-visual:hover .about-home-img {
  transform: scale(1.04);
}

.about-home-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(250, 249, 245, 0.96);
  backdrop-filter: blur(12px);
  padding: 16px 20px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.about-home-badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

.about-home-badge span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-home-content h3 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-main);
}

.about-home-content p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-pillars-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.apm-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 18px;
  border-radius: 6px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.apm-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}

.apm-card h5 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 4px;
}

.apm-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ── SERVICIOS HOME ── */
.services-home-section {
  background-color: transparent;
}

.services-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-editorial), box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-blue);
  background: #FFFFFF;
  box-shadow: 0 16px 36px rgba(20, 84, 184, 0.08);
}

.spc-thumb {
  height: 220px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.spc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.service-pillar-card:hover .spc-thumb img {
  transform: scale(1.06);
}

.spc-inciso {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand-blue);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}

.spc-body {
  padding: 26px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spc-body h4 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 12px;
}

.spc-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.spc-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spc-link svg {
  transition: transform 0.25s ease;
}

.service-pillar-card:hover .spc-link svg {
  transform: translateX(4px);
}

/* ── SOCIOS COMERCIALES (CÍRCULOS BLANCOS CON PROPORCIÓN ÓPTICA PERFECTA) ── */
.partners-section {
  background-color: transparent;
  text-align: center;
  padding: var(--section-padding);
}

.partners-intro {
  max-width: 760px;
  margin: 0 auto 56px auto;
}

.partners-orbit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2.5vw, 32px);
  max-width: 1460px;
  margin: 0 auto;
}

.partner-circle {
  width: clamp(130px, 10.5vw, 155px);
  height: clamp(130px, 10.5vw, 155px);
  border-radius: 50%;
  background-color: #FFFFFF !important;
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: all 0.35s var(--ease-editorial);
  cursor: default;
  position: relative;
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  overflow: hidden;
}

.partner-circle.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.partner-circle:hover {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 16px 36px rgba(20, 84, 184, 0.16);
  border-color: var(--brand-blue);
}

.partner-circle img {
  max-width: 86%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.85);
  transition: all 0.35s ease;
  background: transparent !important;
}

.partner-circle:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.06);
}

/* ── LÍNEA DE TIEMPO INTERACTIVA DIDÁCTICA CON HOVER DIMMER ── */
.timeline-section {
  padding: 80px 0;
  position: relative;
}

.timeline-spine {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-spine::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-medium);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 70px;
  display: flex;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease-editorial), transform 0.5s var(--ease-editorial), filter 0.4s ease;
}

.timeline-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Efecto Dimmer en todas las demás fotos cuando se pasa el cursor */
.timeline-spine.is-hovered .timeline-item:not(.is-active) {
  opacity: 0.28;
  filter: grayscale(80%) brightness(0.65);
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 40px);
}

.timeline-marker {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--brand-blue);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(20, 84, 184, 0.3);
  z-index: 5;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  position: relative;
  cursor: pointer;
  transition: transform 0.35s var(--ease-editorial), box-shadow 0.35s ease, border-color 0.35s ease;
}

.timeline-card:hover,
.timeline-item.is-active .timeline-card {
  transform: translateY(-6px);
  border-color: var(--brand-blue);
  background: #FFFFFF;
  box-shadow: 0 20px 48px rgba(20, 84, 184, 0.14);
}

.timeline-card-thumb {
  height: 220px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #EFEFEF;
}

.timeline-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.timeline-card:hover .timeline-card-thumb img {
  transform: scale(1.08);
}

.timeline-card-body {
  padding: 24px;
  background: #FFFFFF;
  position: relative;
  z-index: 2;
}

.timeline-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #000000;
  line-height: 1.25;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.timeline-card:hover .timeline-card-title {
  color: var(--brand-blue);
}

.timeline-card-drawer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s var(--ease-editorial), opacity 0.35s ease, padding 0.35s ease;
}

.timeline-card:hover .timeline-card-drawer,
.timeline-item.is-active .timeline-card-drawer {
  max-height: 280px;
  opacity: 1;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  margin-top: 10px;
}

.timeline-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── ORGANIZACIONES A LAS QUE PERTENECEMOS (LOGOS GRANDES Y EQUILIBRADOS) ── */
.orgs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.org-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.org-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  box-shadow: 0 16px 32px rgba(20, 84, 184, 0.1);
}

.org-logo-wrap {
  height: 105px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 4px;
}

.org-logo-wrap img {
  max-height: 82px;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  background: transparent !important;
}

.org-card:hover .org-logo-wrap img {
  transform: scale(1.06);
}

/* ── CERTIFICACIONES Y FORMACIÓN (RESPALDO TÉCNICO) ── */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.cert-card:hover {
  background: #FFFFFF;
  border-color: var(--brand-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(20, 84, 184, 0.06);
}

.cert-badge-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue-border);
  flex-shrink: 0;
}

.cert-content h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 6px;
}

.cert-issuer {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.cert-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── FOOTER LIMPIO CON MARCA DE AGUA SMART A LA IZQUIERDA ── */
footer.site-footer {
  background-color: #FAF9F5;
  border-top: 1px solid var(--border-light);
  padding: clamp(60px, 8vw, 90px) clamp(20px, 5vw, 60px) 36px;
  position: relative;
  overflow: hidden;
}

.footer-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(32px, 4vw, 60px);
  margin-bottom: 40px;
  align-items: start;
}

.footer-col-brand-watermark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-col-brand-watermark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.footer-left-watermark-img {
  max-width: min(85vw, 290px);
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-left-watermark-img:hover {
  transform: scale(1.03);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand-blue);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-contact-item svg {
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* ── SUBPAGE HERO ── */
.subpage-hero {
  padding: clamp(140px, 16vh, 180px) clamp(20px, 5vw, 60px) 50px;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}

.subpage-hero-content {
  max-width: var(--container-max);
  margin: 0 auto;
}

.subpage-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.subpage-hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 860px;
  line-height: 1.68;
}

/* ── INCISOS GRID ── */
.inciso-block {
  margin-bottom: 70px;
}

.inciso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.service-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-editorial), box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card-item:hover {
  transform: translateY(-6px);
  border-color: var(--brand-blue);
  background: #FFFFFF;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

.sci-thumb {
  height: 200px;
  width: 100%;
  overflow: hidden;
  background: var(--bg-tertiary);
  position: relative;
}

.sci-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.service-card-item:hover .sci-thumb img {
  transform: scale(1.06);
}

.sci-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-blue);
  padding: 4px 10px;
  border-radius: 3px;
}

.sci-body {
  padding: 24px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sci-num-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.sci-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.sci-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.2;
}

.sci-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.sci-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.sci-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sci-list li::before {
  content: '•';
  color: var(--brand-blue);
  font-weight: bold;
}

/* ── PROYECTOS EDITORIAL GRID & FILTERS ── */
.project-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-sans);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  background: #FFFFFF;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.filter-btn.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #FFFFFF;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 44px);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  transition: transform 0.4s var(--ease-editorial), background-color 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  background: #FFFFFF;
  border-color: var(--brand-blue);
  transform: translateY(-4px);
}

.project-card.col-12 { grid-column: span 12; }
.project-card.col-7 { grid-column: span 7; }
.project-card.col-5 { grid-column: span 5; }
.project-card.col-6 { grid-column: span 6; }
.project-card.col-4 { grid-column: span 4; }

.project-visual-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background-color: var(--bg-tertiary);
}

.project-card.col-12 .project-visual-wrapper { height: clamp(360px, 48vh, 580px); }
.project-card.col-7 .project-visual-wrapper { height: clamp(320px, 42vh, 480px); }
.project-card.col-5 .project-visual-wrapper { height: clamp(320px, 42vh, 480px); }
.project-card.col-6 .project-visual-wrapper { height: clamp(280px, 38vh, 420px); }
.project-card.col-4 .project-visual-wrapper { height: clamp(260px, 34vh, 380px); }

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-editorial);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-tag-floating {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.project-tag-floating.featured {
  background: var(--brand-blue);
  color: #FFFFFF;
}

.project-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 4px 6px;
}

.project-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.2;
  transition: color 0.2s ease;
}

.project-card:hover .project-title {
  color: var(--brand-blue);
}

.project-meta-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.project-spec-badge {
  text-align: right;
  flex-shrink: 0;
}

.project-spec-value {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 1.6vw, 1.8rem);
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1;
}

.project-spec-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── CONTACTO PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: clamp(32px, 4vw, 48px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--text-main);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: #FFFFFF;
}

/* ── MODAL DOSSIER ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 16, 0.75);
  backdrop-filter: blur(12px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #FFFFFF;
  border-radius: 8px;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-editorial);
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--brand-blue);
  color: #FFFFFF;
}

.modal-img-wrap {
  width: 100%;
  height: 380px;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 36px 32px;
}

.modal-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 16px;
}

.modal-specs-bar {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.modal-spec-item {
  display: flex;
  flex-direction: column;
}

.ms-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ms-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-scope-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.modal-scope-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-scope-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-scope-list li::before {
  content: '✓';
  color: var(--brand-blue);
  font-weight: bold;
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-card:nth-child(3) { border-right: none; }
  .services-pillars-grid { grid-template-columns: 1fr; }
  .about-home-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .orgs-grid { grid-template-columns: repeat(3, 1fr); }
  .certifications-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  header.site-header {
    grid-template-columns: auto auto;
  }
  nav.main-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #FAF9F5;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
  }
  nav.main-nav.open {
    display: block;
  }
  nav.main-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 6px 0 6px 16px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: unset;
  }
  .mobile-toggle { display: block; }
  .header-actions .btn-cta { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { border-right: none; border-bottom: 1px solid var(--border-light); padding-bottom: 16px; }
  .footer-content { grid-template-columns: 1fr; }
  .modal-scope-list { grid-template-columns: 1fr; }
  .editorial-grid .project-card { grid-column: span 12 !important; }
  .timeline-spine::before { left: 24px; }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 60px;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-marker {
    left: 24px;
  }
  .orgs-grid { grid-template-columns: repeat(2, 1fr); }
  .certifications-grid { grid-template-columns: 1fr; }
}
