/* ========================================
   SPS SOLDADURA - DESIGN SYSTEM
   Branding: Industrial Premium
   ======================================== */

/* === DESIGN TOKENS === */
:root {
  /* Colores del branding SPS */
  --sps-red: #ff0000;
  --sps-blue: #0000ff;
  --sps-black: #000000;
  
  /* Backgrounds */
  --bg: #0b0b0c;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(11, 11, 11, 0.92);
  
  /* Textos */
  --text: #f4f4f5;
  --text-muted: #b8b8bd;
  --text-dimmed: rgba(255, 255, 255, 0.84);
  
  /* Bordes y sombras */
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  
  /* Layout */
  --container: 1200px;
  --gutter: clamp(18px, 3vw, 28px);
  --section-pad: clamp(48px, 6vw, 88px);
  --radius: 16px;
  --radius-sm: 12px;
  
  /* Tipografía */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Lato', sans-serif;
}

/* === BASE & RESET === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

/* Textura sutil industrial */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(255, 0, 0, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 0, 255, 0.02), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

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

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

/* === LAYOUT === */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
  border-bottom: 1px solid var(--border);
}

/* === TIPOGRAFÍA === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h1 {
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 12px;
}

h3 {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 10px;
}

p {
  margin: 0 0 16px;
  color: var(--text-dimmed);
}

.lead {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.65;
  max-width: 740px;
  color: var(--text-dimmed);
}

.meta {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  display: block;
}

/* === HEADER / NAVBAR === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.9;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  line-height: 1.3;
  text-transform: none;
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-dimmed);
  font-weight: 600;
  transition: all 0.2s;
  position: relative;
  font-size: 15px;
}

.nav a:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.nav a.active,
.nav a[aria-current="page"] {
  color: var(--sps-red);
  background: rgba(255, 0, 0, 0.10);
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--sps-red);
  border-radius: 2px;
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.menu-btn:hover {
  background: var(--bg-hover);
  border-color: var(--sps-red);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

/* Video de fondo */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay oscuro sobre el video */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Efecto de borde rojo superior */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sps-red) 0%, transparent 100%);
  z-index: 3;
}

/* Hero con imagen de fondo */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Hero con tamaño reducido para páginas internas */
.hero-image {
  min-height: 78vh;
}

.hero-image .container {
  padding-block: 48px;
}

.breadcrumb {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hero .container {
  position: relative;
  z-index: 4;
  padding-block: 64px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-dimmed);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sps-red);
  box-shadow: 0 0 8px var(--sps-red);
}

.hero h1 {
  margin-bottom: 18px;
  color: var(--text);
}

/* Resalta palabras clave en rojo */
.hero h1 br + * {
  color: var(--sps-red);
}

/* === BOTONES === */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: var(--sps-red);
  border-color: var(--sps-red);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.3);
}

.btn.primary:hover {
  background: #e60000;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.btn.more {
  padding: 10px 18px;
  font-size: 14px;
  margin-top: 14px;
}

/* === GRID DE TARJETAS === */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin-top: 32px;
}

.card {
  grid-column: span 4;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sps-red) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: rgba(255, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card:hover::before {
  opacity: 1;
}

.card-media {
  height: 200px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  margin-bottom: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.card p {
  flex: 1;
  margin-bottom: 0;
}

.card .actions {
  margin-top: auto;
  padding-top: 14px;
}

/* === LISTAS === */
.list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list li {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.2s;
}

.list li:hover {
  border-color: rgba(255, 0, 0, 0.2);
  background: var(--bg-hover);
}

.pill {
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.30);
  color: #ffd5d5;
  font-weight: 900;
  flex-shrink: 0;
}

/* === GALERÍA === */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 20px);
  margin-top: 28px;
}

.ph {
  grid-column: span 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s;
}

.ph:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 0, 0, 0.3);
  box-shadow: var(--shadow-sm);
}

.ph .img {
  height: 220px;
  background: rgba(255, 255, 255, 0.06);
  background-size: cover;
  background-position: center;
}

.ph .cap {
  padding: 14px 16px;
  color: var(--text);
  font-weight: 700;
}

.ph .cap small {
  display: block;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 6px;
  font-size: 13px;
}

/* === LOGOS DE CLIENTES === */
.logos {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.logo {
  grid-column: span 3;
  padding: 20px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
  color: var(--text);
  font-weight: 800;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.logo:hover {
  border-color: rgba(255, 0, 0, 0.3);
  background: var(--bg-hover);
  transform: scale(1.05);
}

.logo-img {
  height: 60px;
  width: 100%;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  max-width: 90%;
  max-height: 50px;
  object-fit: contain;
}

.logo-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dimmed);
}

/* === MEDIA === */
.section-media {
  height: 260px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin: 24px 0;
  overflow: hidden;
}

.section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === ESTADÍSTICAS === */
.stats-section {
  padding: 48px 0;
  background: var(--sps-red);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === CONTENT SPLIT === */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.content-text {
  max-width: 600px;
}

.content-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-media {
  position: relative;
}

.content-media img {
  box-shadow: var(--shadow);
}

/* === FEATURES GRID === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
  text-align: center;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--sps-red);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--sps-red) 0%, #cc0000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3);
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-dimmed);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* === CERTIFICACIONES === */
.cert-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.cert-badge {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s;
}

.cert-badge:hover {
  border-color: var(--sps-red);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
}

.cert-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--sps-red) 0%, #cc0000 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.3);
}

.cert-badge h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.cert-badge p {
  color: var(--text-dimmed);
  margin-bottom: 8px;
  font-size: 15px;
}

.cert-badge .meta {
  margin: 0;
}

/* Galería de certificaciones */
.cert-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.cert-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.cert-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cert-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Orientación vertical - mas alta */
.cert-vertical {
  /* La imagen determina la altura */
}

.cert-vertical img {
  /* Sin restricciones, altura natural */
}

/* Orientación horizontal - más ancha, puede ocupar 2 columnas en pantallas grandes */
.cert-horizontal {
  grid-column: span 1;
}

@media (min-width: 920px) {
  .cert-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cert-horizontal {
    grid-column: span 2;
  }
}

.cert-caption {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-caption strong {
  color: var(--text);
  font-size: 15px;
}

.cert-caption span {
  color: var(--text-muted);
  font-size: 13px;
}

/* Item de PDF */
.cert-pdf {
  background: rgba(255, 0, 0, 0.05);
  border: 2px dashed var(--sps-red);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.pdf-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
  width: 100%;
  height: 100%;
}

.pdf-link:hover {
  transform: scale(1.05);
}

.pdf-icon {
  font-size: 64px;
  line-height: 1;
}

.pdf-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdf-text strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.pdf-text span {
  color: var(--text-muted);
  font-size: 14px;
}

/* === CLIENTES === */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.client-card {
  padding: 40px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.client-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--sps-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.client-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.client-industry {
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

/* === SERVICIOS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
  position: relative;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--sps-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-number {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--sps-red) 0%, #cc0000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.service-card h3 {
  margin-bottom: 12px;
  margin-right: 56px;
  font-size: 20px;
}

.service-card p {
  color: var(--text-dimmed);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

.service-note {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 0, 0, 0.1);
  border-left: 3px solid var(--sps-red);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* Procesos de soldadura */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.process-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
  text-align: center;
}

.process-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.process-code {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--sps-red);
  margin-bottom: 8px;
}

.process-name {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-weight: 600;
}

.process-card p {
  color: var(--text-dimmed);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.process-highlight {
  background: rgba(255, 0, 0, 0.05);
  border-color: var(--sps-red);
}

/* Certificaciones NDT */
.ndt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.ndt-card {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s;
}

.ndt-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--sps-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.ndt-badge {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--sps-red) 0%, #cc0000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.3);
}

.ndt-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.ndt-detail {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  font-weight: 600;
}

.ndt-levels {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.level-badge {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dimmed);
}

/* CTA Split */
.cta-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.cta-content {
  /* Contenido del CTA */
}

.cta-image {
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

@media (max-width: 920px) {
  .cta-split {
    grid-template-columns: 1fr;
  }

  .cta-image {
    height: 300px;
  }
}

/* === PROYECTOS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--sps-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.project-content p {
  color: var(--text-dimmed);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.project-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-dimmed);
  font-size: 14px;
}

.project-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sps-red);
  font-weight: 700;
}

.project-cta {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.05) 0%, rgba(0, 0, 255, 0.05) 100%);
  border-color: var(--sps-red);
}

.project-cta:hover {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.08) 0%, rgba(0, 0, 255, 0.08) 100%);
}

@media (max-width: 920px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-image {
    height: 240px;
  }
}

/* === CONTACTO === */
.contact-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s;
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--sps-red);
}

.info-icon {
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1;
}

.info-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.info-card p {
  color: var(--text-dimmed);
  margin: 0;
  font-size: 15px;
}

.info-badge {
  display: inline-block;
  padding: 8px 16px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--sps-red) 0%, #cc0000 100%);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}

.contact-image {
  margin-top: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-header {
  margin-bottom: 32px;
}

.form-header h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.form-header p {
  color: var(--text-dimmed);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  color: var(--text-dimmed);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--sps-red);
  background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
  color: var(--text-muted);
}

select.form-input {
  cursor: pointer;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

@media (max-width: 920px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form-wrapper {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* === UTILITIES === */
.text-center {
  text-align: center;
}

/* === FOOTER === */
.footer {
  border-top: 2px solid var(--sps-red);
  padding: 32px 0;
  color: var(--text-dimmed);
  background: rgba(0, 0, 0, 0.3);
}

.footer .row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer a {
  color: var(--text);
  text-decoration: underline;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--sps-red);
}

/* === PAGE HERO === */
.page-hero {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sps-red) 0%, transparent 80%);
}

.breadcrumb {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 920px) {
  .card {
    grid-column: span 6;
  }
  
  .ph {
    grid-column: span 6;
  }
  
  .logo {
    grid-column: span 4;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 32px;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .menu-btn {
    display: inline-flex;
  }
  
  .nav {
    display: none;
    position: absolute;
    right: var(--gutter);
    top: 70px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 12px;
    flex-direction: column;
    min-width: 240px;
    box-shadow: var(--shadow);
  }
  
  .nav.open {
    display: flex;
  }
  
  .nav a {
    width: 100%;
    padding: 12px 16px;
  }
  
  .nav a.active::after {
    display: none;
  }
  
  .card {
    grid-column: span 12;
  }
  
  .ph {
    grid-column: span 12;
  }
  
  .logo {
    grid-column: span 6;
  }

  .content-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .cert-gallery {
    grid-template-columns: 1fr;
  }

  .cert-horizontal {
    grid-column: span 1;
  }

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

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

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

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

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

@media (max-width: 480px) {
  .logo {
    grid-column: span 12;
  }

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

  .actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cert-badges {
    grid-template-columns: 1fr;
  }

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

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

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