/* ============================================================
   GIA HIDRÁULICA — Hoja de estilos principal
   Colores: azul #0d2d52 · acento #f0a500
   Tipografías: Barlow Condensed (títulos) + Source Sans 3 (cuerpo)
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --blue-dark: #0d2d52;
  --blue-mid: #1a4a7c;
  --blue-light: #2566a8;
  --yellow: #f0a500;
  --gray-dark: #2a2a2a;
  --gray-mid: #5a5a5a;
  --gray-light: #e8e8e8;
  --white: #ffffff;
  --bg: #f3f4f6;
  --bg-alt: #eceef1;

  --font-head: "Barlow Condensed", sans-serif;
  --font-body: "Source Sans 3", sans-serif;

  --radius: 4px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);

  --transition: 0.2s ease;
  --container: 1200px;
}

/* ── Reset / base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-dark);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
address {
  font-style: normal;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--blue-dark);
  border-top: 3px solid var(--yellow);
  z-index: 9999;
  padding: 18px 24px;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner__inner p {
  flex: 1 1 300px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}
.cookie-banner__inner p a {
  color: var(--yellow);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-cookie {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: opacity var(--transition);
}
.btn-cookie:hover {
  opacity: 0.85;
}
.btn-cookie--primary {
  background: var(--yellow);
  color: var(--blue-dark);
}
.btn-cookie--outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--yellow) 0%, transparent 60%) 1;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  color: var(--blue-dark);
  letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-icon--sm {
  width: 34px;
  height: 34px;
  font-size: 12px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text span:first-child {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  color: var(--white);
  letter-spacing: 0.5px;
}
.logo-text span:last-child {
  font-size: 10px;
  color: var(--yellow);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Nav */
.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.main-nav a.active {
  border-bottom: 2px solid var(--yellow);
}
.main-nav a.nav-cta {
  background: var(--yellow);
  color: var(--blue-dark);
  border-bottom: none;
}
.main-nav a.nav-cta:hover {
  opacity: 0.88;
  background: var(--yellow);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   PAGE HERO INTERIOR (páginas interiores)
   ============================================================ */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--blue-dark) 0%,
    var(--blue-mid) 100%
  );
  padding: 60px clamp(20px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--yellow), transparent);
}
.page-hero__label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-hero__label::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--yellow);
}
.page-hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 54px);
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  line-height: 1.6;
}

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section {
  padding: 72px clamp(20px, 5vw, 60px);
}
.section--alt {
  background: var(--white);
}
.section--dark {
  background: var(--blue-dark);
  color: var(--white);
}
.section--mid {
  background: var(--blue-mid);
  color: var(--white);
}

.section-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--yellow);
}
.section--dark .section-label,
.section--mid .section-label {
  color: var(--yellow);
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  text-transform: uppercase;
  color: var(--blue-dark);
  line-height: 1.05;
  margin-bottom: 20px;
}
.section--dark .section-title,
.section--mid .section-title {
  color: var(--white);
}

.section-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-mid);
  max-width: 600px;
}
.section--dark .section-body {
  color: rgba(255, 255, 255, 0.7);
}

/* Grids */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ============================================================
   HERO INICIO
   ============================================================ */
.hero {
  position: relative;
  min-height: 500px;
  background: linear-gradient(
    135deg,
    var(--blue-dark) 0%,
    var(--blue-mid) 60%,
    var(--blue-light) 100%
  );
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 60px);
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(255, 255, 255, 0.018) 30px,
      rgba(255, 255, 255, 0.018) 31px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 30px,
      rgba(255, 255, 255, 0.018) 30px,
      rgba(255, 255, 255, 0.018) 31px
    );
}
.hero-accent {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(240, 165, 0, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--yellow) 0%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--yellow);
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 em {
  color: var(--yellow);
  font-style: normal;
  display: block;
}
.hero p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  position: absolute;
  right: clamp(20px, 5vw, 60px);
  bottom: 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 2;
}
.stat {
  text-align: center;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.stat-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 34px;
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============================================================
   SERVICES STRIP (tira 4 columnas bajo el hero)
   ============================================================ */
.services-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--blue-mid);
}
.service-tab {
  padding: 24px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  display: block;
  transition: background var(--transition);
  position: relative;
}
.service-tab:last-child {
  border-right: none;
}
.service-tab:hover {
  background: var(--blue-light);
}
.service-tab-icon {
  font-size: 24px;
  margin-bottom: 8px;
}
.service-tab h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.service-tab p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--blue-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  opacity: 0.88;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition:
    border-color var(--transition),
    color var(--transition);
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-dark:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   FEATURE CARD
   ============================================================ */
.feature-card {
  padding: 28px 24px;
  background: var(--bg);
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.feature-card h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray-mid);
}

/* ============================================================
   VALUE PILLARS
   ============================================================ */
.value-pillar {
  text-align: center;
  padding: 40px 24px;
  background: var(--blue-dark);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.value-pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
}
.value-pillar-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  position: absolute;
  top: 8px;
  right: 12px;
}
.value-pillar-icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.value-pillar h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.value-pillar p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--blue-dark);
  padding: 52px clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--yellow);
}
.cta-banner__text h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 32px);
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}
.cta-banner__text h2 em {
  color: var(--yellow);
  font-style: normal;
}
.cta-banner__text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

/* ============================================================
   IMAGE PLACEHOLDER
   ============================================================ */
.img-placeholder {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #c8d5e8 0%, #a0b8d0 100%);
}
.img-placeholder img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--blue-mid);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  min-height: 260px;
}
.img-ph-icon {
  font-size: 40px;
  opacity: 0.4;
}

/* ============================================================
   TAGS / BADGES
   ============================================================ */
.tag-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.tag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  background: var(--bg-alt);
  color: var(--blue-mid);
  border: 1px solid var(--gray-light);
}
.iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 5px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  font-family: var(--font-head);
  font-weight: 600;
  margin-top: 14px;
}
.iso-badge--dark {
  border-color: var(--gray-light);
  color: var(--gray-mid);
}

/* Cert badge */
.cert-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 20px;
}
.cert-badge-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-dark);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  color: var(--yellow);
}
.cert-badge div h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.cert-badge div p {
  font-size: 12px;
  color: var(--gray-mid);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 44px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--yellow), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 28px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--yellow);
}
.timeline-year {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--blue-mid);
  margin-bottom: 2px;
}
.timeline-item h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 4px;
}
.timeline-item p {
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.55;
}

/* ============================================================
   UNIDADES DE NEGOCIO (Business units cards)
   ============================================================ */
.bu-card {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--yellow);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.bu-card:hover {
  box-shadow: var(--shadow-md);
}
.bu-card__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 40px;
  color: var(--gray-light);
  line-height: 1;
  margin-bottom: 12px;
}
.bu-card h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.bu-card p {
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.6;
}

/* ============================================================
   SERVICE CARDS (Servicios)
   ============================================================ */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-card__header {
  background: var(--blue-dark);
  padding: 28px 28px 20px;
  position: relative;
}
.service-card__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 52px;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 8px;
  right: 12px;
  line-height: 1;
  pointer-events: none;
}
.service-card__header h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 6px;
}
.service-card__header p {
  font-size: 12px;
  color: var(--yellow);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-head);
  font-weight: 600;
}
.service-card__body {
  padding: 28px;
}
.service-card__body > p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-mid);
  margin-bottom: 16px;
}
.service-list {
  list-style: none;
}
.service-list li {
  font-size: 13px;
  color: var(--gray-dark);
  padding: 5px 0 5px 18px;
  border-bottom: 1px solid var(--gray-light);
  position: relative;
}
.service-list li::before {
  content: "▸";
  color: var(--yellow);
  position: absolute;
  left: 0;
  font-size: 11px;
  top: 6px;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.process-step {
  padding: 32px 24px;
  background: var(--white);
  border-right: 1px solid var(--gray-light);
  position: relative;
}
.process-step:last-child {
  border-right: none;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 48px;
  color: var(--gray-light);
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}
.process-step h4 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.6;
}
.process-step::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 32px;
  font-size: 18px;
  color: var(--yellow);
  z-index: 1;
}
.process-step:last-child::after {
  display: none;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
}
.product-card__img {
  height: 180px;
  background: linear-gradient(135deg, #c8d5e8 0%, #a0b8d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.product-card__body {
  padding: 20px;
}
.product-cat {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 6px;
}
.product-card h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 8px;
  line-height: 1.1;
}
.product-card p {
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.55;
  margin-bottom: 14px;
}
.product-card a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow);
  text-decoration: none;
}
.product-card a:hover {
  text-decoration: underline;
}

/* Featured product */
.featured-product__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.featured-product__tags span {
  padding: 4px 12px;
  background: var(--blue-dark);
  color: var(--yellow);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
}
.press-variant {
  background: var(--bg);
  border-left: 3px solid var(--yellow);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 12px;
}
.press-variant h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 4px;
}
.press-variant p {
  font-size: 13px;
  color: var(--gray-mid);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.contact-info {
  background: var(--blue-dark);
  border-radius: var(--radius);
  padding: 36px 32px;
  color: var(--white);
}
.contact-info h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}
.contact-info .subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
}
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.contact-detail-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.contact-detail-text p:first-child {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 2px;
}
.contact-detail-text p:last-child {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}
.contact-detail-text a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.contact-detail-text a:hover {
  color: var(--yellow);
}

/* Formulario */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.form-card h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 11px 14px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-dark);
  background: var(--bg);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(37, 102, 168, 0.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-legal {
  font-size: 12px;
  color: var(--gray-mid);
  line-height: 1.5;
  margin-bottom: 20px;
}
.form-legal a {
  color: var(--blue-light);
  text-decoration: underline;
}
.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}
.form-msg--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}
.form-msg--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}
/* El atributo HTML [hidden] debe ganar sobre display:block de las clases */
.form-msg[hidden] {
  display: none !important;
}

/* Mapa */
.map-block {
  background: linear-gradient(135deg, #c8d5e8 0%, #a0b8d0 100%);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--blue-mid);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.map-block span {
  font-size: 40px;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px clamp(20px, 5vw, 60px);
}
.legal-content h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 36px;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.legal-content .updated {
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 36px;
}
.legal-content h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin: 32px 0 10px;
}
.legal-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-mid);
  margin-bottom: 14px;
}
.legal-content ul {
  margin: 8px 0 14px 24px;
}
.legal-content ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-mid);
  margin-bottom: 4px;
}
.legal-content a {
  color: var(--blue-light);
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0a1e38;
  padding: 48px clamp(20px, 5vw, 60px) 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}
.footer-col--brand .logo {
  margin-bottom: 14px;
}
.logo--footer .logo-text span:first-child {
  font-size: 17px;
}
.footer-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 260px;
}
.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-col nav a,
.footer-address p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col nav a:hover {
  color: rgba(255, 255, 255, 0.85);
}
.footer-address a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}
.footer-address a:hover {
  color: var(--yellow);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}
.footer-bottom em {
  color: rgba(255, 255, 255, 0.4);
  font-style: normal;
}
.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Logo imagen (árbol GIA) */
.logo-img {
  display: block;
  width: auto;
  max-height: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* blanco sobre fondo oscuro */
}
.logo-img--footer {
  max-height: 36px;
  filter: brightness(0) invert(1) opacity(0.75);
}
.logo-img--footer:hover {
  filter: brightness(0) invert(1);
}

/* Mapa iframe */
.map-block--iframe {
  margin: 0;
  background: none;
  height: auto;
  display: block;
}
.map-block--iframe iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Kit Digital / NextGenerationEU */
.footer-kitdigital {
  padding: 20px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-kitdigital__logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.footer-kitdigital__logos img {
  height: 52px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}
.footer-kitdigital__text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  max-width: 680px;
}

/* Botón volver arriba */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  color: var(--blue-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition:
    opacity var(--transition),
    transform var(--transition),
    background var(--transition);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--blue-light);
  color: var(--white);
  transform: translateY(-3px);
}

@media (max-width: 960px) {
  .four-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-step::after {
    display: none;
  }
  .hero-stats {
    position: static;
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    flex-direction: column;
    padding: 12px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 4px;
    z-index: 99;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    padding: 10px 14px;
    border-radius: var(--radius);
  }
  .site-header {
    position: sticky;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 40px;
    min-height: auto;
  }
  .hero-stats {
    position: static;
    margin-top: 24px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .stat {
    flex: 1 1 120px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
  .three-col {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info {
    padding: 24px 20px;
  }
  .form-card {
    padding: 24px 20px;
  }
  .form-group input,
  .form-group textarea,
  .form-group select {
    min-width: 0;
    width: 100%;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-banner {
    text-align: center;
    justify-content: center;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .services-strip {
    grid-template-columns: 1fr 1fr;
  }
  .four-col {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    justify-content: center;
  }
  .footer-kitdigital {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-kitdigital__logos {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .footer-kitdigital__logos img {
    height: 40px;
    max-width: 100%;
    width: auto;
  }
}
