@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap");

/* ===== Paleta "Quantum Bronze" ===== */
:root {
  /* Colores base */
  --bg: #181311; /* Moca oscuro / casi negro */
  --surface: #2d2420; /* Bronce profundo / umbra */
  --surface-hi: #3a2f28; /* Superficie elevada (hover) */
  --surface-lo: #221b18; /* Fondo de campos y degradados */
  --primary: #b86b3e; /* Cobre oxidado / ámbar oscuro */
  --primary-hi: #cf7d4a; /* Cobre iluminado (hover) */
  --text: #d4b492; /* Oro suave / arena */
  --text-muted: #8c7765; /* Beige apagado */

  /* Canales RGB para composición con alpha */
  --bg-rgb: 24, 19, 17;
  --primary-rgb: 184, 107, 62;
  --text-rgb: 212, 180, 146;
  --text-muted-rgb: 140, 119, 101;

  /* Bordes sutiles: color de texto secundario semi-transparente */
  --border: 1px solid rgba(var(--text-muted-rgb), 0.22);
  --border-strong: 1px solid rgba(var(--text-muted-rgb), 0.35);

  /* Sombras cálidas en lugar de negro puro */
  --shadow-sm: 0 4px 15px rgba(var(--primary-rgb), 0.15);
  --shadow-md:
    0 10px 28px rgba(12, 8, 6, 0.55), 0 2px 10px rgba(var(--primary-rgb), 0.12);
  --shadow-lg:
    0 16px 38px rgba(12, 8, 6, 0.6), 0 4px 14px rgba(var(--primary-rgb), 0.14);
  --shadow-glow: 0 12px 32px rgba(var(--primary-rgb), 0.28);

  /* Estados de validación armonizados con la paleta */
  --danger: #e8836b;
  --danger-strong: #e2685f;
  --success: #7fb06b;

  /* Tipografía: display técnico + UI legible + mono para etiquetas */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  /* Radios consistentes en toda la interfaz */
  --radius-lg: 16px;
  --radius-md: 12px;
}

/* General Setup */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  overflow: hidden;
}

*,
*::before,
*::after {
  box-sizing: inherit; /* Inherit box-sizing for all elements */
}

body {
  background-color: var(--bg);
  /* Resplandor cobrizo muy sutil: profundidad sin negro absoluto */
  background-image:
    radial-gradient(
      900px 620px at 12% -10%,
      rgba(var(--primary-rgb), 0.1),
      transparent 60%
    ),
    radial-gradient(
      760px 520px at 100% 0%,
      rgba(var(--text-rgb), 0.05),
      transparent 55%
    );
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  /* padding-top: 80px; Removed as main handles scroll */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

::selection {
  background: rgba(var(--primary-rgb), 0.4);
  color: var(--text);
}

main {
  height: calc(
    100vh - 80px
  ); /* Main now takes full viewport height minus header */
  overflow-y: scroll;
  /* "proximity" en vez de "mandatory": encaja al acercarte al inicio de una
     sección, pero deja recorrer libremente las secciones más altas que la
     pantalla (en móvil las retículas apiladas superan el viewport). */
  scroll-snap-type: y proximity;
  margin-top: 80px; /* Push main content below fixed header */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
/* Hide scrollbar for Chrome, Safari and Opera */
main::-webkit-scrollbar {
  display: none;
}

/* Header and Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(var(--bg-rgb), 0.82);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: var(--border);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Símbolo del logo en el header */
.logo img,
.logo-img {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

/* Nombre de la marca en el header */
.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.3s ease;
}

.logo a:hover .logo-wordmark {
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600; /* Bolder font */
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hamburger Styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Sections */
section {
  min-height: calc(100vh - 80px); /* Adjust section height for fixed header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 24px;
  box-sizing: border-box;
  text-align: center;
  scroll-snap-align: start;
  /* Sin "scroll-snap-stop: always": forzaba una parada dura en cada sección,
     lo que hacía que un scroll rápido se sintiera trabado. */
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* Cada página lleva un solo <h1> (el del encabezado). Los títulos de las demás
   secciones son <h2 class="section-title"> y comparten exactamente su estilo. */
section h1,
section .section-title {
  font-size: clamp(2.1rem, 4.2vw, 3rem); /* Responsive title */
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 20ch;
}

/* Etiqueta superior de sección (mono, cobre) */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Filetes cobrizos a los costados de la etiqueta */
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.7));
}

.section-eyebrow::after {
  background: linear-gradient(270deg, transparent, rgba(var(--primary-rgb), 0.7));
}

/* Bajada descriptiva bajo el título de sección */
.section-lead {
  max-width: 62ch;
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.7;
}

/* Home Section Specifics */
#home {
  text-align: center;
  max-width: 1200px;
  margin: auto;
}
#home h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.1rem); /* Responsive home title */
  line-height: 1.08;
  font-weight: 700;
  max-width: 18ch;
  margin-bottom: 22px;
}

#home h1 span {
  display: inline-block; /* Allow transform on spans */
}

.home-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400;
  line-height: 1.75;
  max-width: 60ch;
  margin: 0 auto;
  font-family: var(--font-body);
}

/* --- Botones del hero --- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg);
  border: 1px solid var(--primary);
  box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hi);
  border-color: var(--primary-hi);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text);
  border: var(--border-strong);
}

.btn-ghost:hover {
  border-color: rgba(var(--primary-rgb), 0.6);
  color: var(--primary);
}

/* --- Chips de confianza --- */
.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(var(--bg-rgb), 0.5);
}

/* Content Wrappers for two-column layouts */
.content-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  width: 100%;
  margin-top: 40px;
}

.benefits-content-wrapper,
.services-content-wrapper {
  max-width: 1200px;
  width: 100%;
  margin-top: 40px;
}

/* Text & Image Containers */
.text-container {
  flex: 1;
  text-align: left;
}

/* Specific adjustments for items within the lists */
.services-list,
.benefits-list {
  flex: 1; /* These now take up the single column for content-wrapper */
  text-align: left;
  display: flex; /* Make them flex containers themselves */
  flex-direction: row; /* Horizontal split for desktop */
  gap: 30px; /* Space between image-half and list-half */
  align-items: stretch; /* Ambas mitades con la misma altura */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.image-container {
  flex: 1;
  position: relative; /* Added for positioning quotes */
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-image,
.benefits-image,
.services-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

/* Team Section */
.team-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Retícula fija = tarjetas simétricas */
  gap: 24px;
  max-width: 1080px;
  width: 100%;
  margin-top: 36px;
  perspective: 1000px; /* Add perspective for 3D effect */
}

.team-member-card {
  background: linear-gradient(145deg, var(--surface), var(--surface-lo));
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transform-style: preserve-3d;
  /* Altura pareja entre tarjetas de la misma fila */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Transition removed to ensure smooth GSAP 3D hover effect */
}

/* Project Section */
.project-container {
  display: grid;
  /* 6 tarjetas => 2 filas exactas de 3 */
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1140px;
  width: 100%;
  margin-top: 36px;
  perspective: 1000px; /* Add perspective for 3D effect */
}

.project-card {
  background: linear-gradient(145deg, var(--surface), var(--surface-lo));
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  text-align: left;
  transform-style: preserve-3d;
  /* Todas las tarjetas ocupan el alto de su fila */
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    background 0.4s ease-out,
    border-color 0.4s ease-out,
    box-shadow 0.4s ease-out;
}

.project-card:hover {
  background: linear-gradient(145deg, var(--surface-hi), var(--surface));
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-glow);
}

/* Icono superior de las tarjetas de capacidades */
.project-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid rgba(var(--primary-rgb), 0.28);
  color: var(--text);
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

.project-card:hover .project-icon {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.2);
}

.project-card .item-title {
  margin: 4px 0 0;
}

.project-card p {
  margin: 0;
  font-size: 0.94rem;
}

/* Tech Section - New Card Design */
.tech-card-container {
  display: grid;
  /* 8 tarjetas => 2 filas exactas de 4 */
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  width: 100%;
  margin-top: 36px;
}

.tech-card {
  background: linear-gradient(145deg, var(--surface), var(--surface-lo));
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-md);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  text-align: left;
  transform-style: preserve-3d; /* Added to enable 3D transforms */
}

.tech-card:hover {
  background: linear-gradient(145deg, var(--surface-hi), var(--surface));
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-glow);
}

/* Icono arriba y título debajo: entra limpio en 4 columnas */
.tech-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 4px;
}

.tech-card-header svg {
  color: var(--text);
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.tech-card:hover .tech-card-header svg {
  color: var(--primary);
}

.tech-card-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.tech-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Benefits Section */
.benefit-item {
  background: linear-gradient(145deg, var(--surface), var(--surface-lo));
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  flex: 1; /* Reparte la altura de la columna en partes iguales */
  box-shadow: var(--shadow-md);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  text-align: left;
  transform-style: preserve-3d; /* Added for 3D hover effect */
  margin-bottom: 0; /* Handled by parent gap */
  display: flex; /* Make it a flex container */
  align-items: center; /* Vertically center content */
  justify-content: space-between; /* Push content to ends */
  gap: 15px; /* Space between text content and icon */
}

.benefit-item:hover {
  background: linear-gradient(145deg, var(--surface-hi), var(--surface));
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-glow);
}

/* Services Section */
.service-item {
  background: linear-gradient(145deg, var(--surface), var(--surface-lo));
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  flex: 1; /* Reparte la altura de la columna en partes iguales */
  box-shadow: var(--shadow-md);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  text-align: left;
  transform-style: preserve-3d; /* Added for 3D hover effect */
  margin-bottom: 0; /* Handled by parent gap */
  display: flex; /* Make it a flex container */
  align-items: center; /* Vertically center content */
  justify-content: space-between; /* Push content to ends */
  gap: 15px; /* Space between text content and icon */
}

.service-item:hover {
  background: linear-gradient(145deg, var(--surface-hi), var(--surface));
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-glow);
}

/* --- SHARED STYLES --- */
.accent-text {
  color: var(--primary);
}

/* Párrafos descriptivos en beige apagado; los títulos quedan en oro suave */
.text-container p,
.project-card p,
.item-text-content p {
  color: var(--text-muted);
}

.section-subtitle {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 16px;
}

/* Adjust item-title for compactness */
.item-title {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 5px; /* Reduced bottom margin */
  line-height: 1.3; /* Tighter line spacing */
}

/* Numeral de etapa en la metodología */
.step-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.service-item:hover .step-badge {
  background: var(--primary);
  color: var(--bg);
}

/* Styling for the new item-text-content wrapper */
.item-text-content {
  flex: 1; /* Take up remaining space */
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.item-icon {
  /* margin-bottom: 15px; REMOVED */
  order: 2; /* Move icon to the right */
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.item-icon svg {
  color: var(--text);
  width: 40px;
  height: 40px;
  transition: color 0.3s ease;
}

.service-item:hover .item-icon svg,
.benefit-item:hover .item-icon svg {
  color: var(--primary);
}

/* Ensure the image scales correctly within its new flex parent */
.section-image,
.benefits-image,
.services-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

/* Las ilustraciones son SVG a 4:3; el borde suaviza su unión con el fondo */
.section-image,
.benefits-image,
.services-image {
  border: var(--border);
}

/* Avatar de monograma del equipo (alternativa a foto real) */
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--surface-hi), var(--surface-lo));
}

.team-initials {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.image-highlights {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
  background: var(--surface);
  border-radius: 10px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  /* width: 90%; REMOVED as its width will be controlled by its parent .image-half */
}

.image-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.image-highlight svg {
  color: var(--text);
  width: 28px;
  height: 28px;
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.image-highlight p {
  margin: 0;

  font-size: 0.95rem;

  color: rgba(var(--text-rgb), 0.88);
}

/* Specific sizing for img within .image-half */

.services-list .image-half img,
.benefits-list .image-half img {
  max-width: 100%;

  width: 100%; /* Ensure it takes full width of its half */
}

/* Specific sizing for image-highlights within .image-half */

.services-list .image-half .image-highlights,
.benefits-list .image-half .image-highlights {
  width: 100%; /* Ensure highlights take full width of its half */

  max-width: none; /* Override previous global max-width if any */
}

/* New styles for horizontal split within services-list and benefits-list */

.services-list .image-half,
.benefits-list .image-half {
  flex: 1; /* Takes up half the space */

  display: flex;

  flex-direction: column; /* Stack image and highlights vertically */

  align-items: center;

  gap: 20px;
}

.services-list .list-half,
.benefits-list .list-half {
  flex: 1; /* Takes up the other half */

  display: flex;

  flex-direction: column; /* Stack items vertically */

  gap: 20px; /* Space between list items */
}

/*  fotos y contenido interno del equipo ===== */

.team-photo-wrapper {
  width: 130px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 28px rgba(12, 8, 6, 0.45);
  border: 3px solid rgba(var(--primary-rgb), 0.35);
  background: var(--surface-lo);
}

.team-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: center;
  flex: 1; /* Empuja el contenido para igualar la altura entre tarjetas */
}

/* Rol: etiqueta técnica en cobre, no un párrafo más */
.team-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  margin: 0;
  color: var(--primary);
}

.team-experience {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  color: var(--text-muted);
  max-width: 30ch;
  margin-inline: auto;
}

.team-info h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

/* Tablet */
@media (max-width: 992px) {
  .team-photo-wrapper {
    width: 115px;
  }

  .team-experience {
    font-size: 0.92rem;
    max-width: 34ch;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .team-photo-wrapper {
    width: 105px;
    margin-bottom: 0.9rem;
  }

  .team-experience {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .team-info {
    gap: 0.5rem;
  }

  .team-info h3 {
    font-size: 1.08rem;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .team-photo-wrapper {
    width: 95px;
  }

  .team-experience {
    font-size: 0.88rem;
  }
}

/* --- RETÍCULAS: se reducen sin dejar filas huérfanas --- */
@media (max-width: 1080px) {
  .tech-card-container {
    grid-template-columns: repeat(2, 1fr); /* 8 tarjetas => 4 filas de 2 */
  }
}

@media (max-width: 960px) {
  .project-container {
    grid-template-columns: repeat(2, 1fr); /* 6 tarjetas => 3 filas de 2 */
  }

  .team-container {
    grid-template-columns: 1fr; /* 3 integrantes: 1 columna evita huérfanos */
    max-width: 460px;
  }
}

@media (max-width: 600px) {
  .project-container,
  .tech-card-container {
    grid-template-columns: 1fr;
  }
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
  .main-nav {
    height: 60px;
    padding: 0 15px;
  }

  .hamburger {
    display: flex;
  }

  .logo img,
  .logo-img {
    height: 34px;
  }

  .logo-wordmark {
    font-size: 1.15rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(var(--bg-rgb), 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.5rem;
    white-space: nowrap;
    opacity: 0.8;
  }

  .nav-links a:hover {
    opacity: 1;
  }

  main {
    height: calc(100vh - 60px);
    margin-top: 60px;
  }

  section {
    min-height: calc(100vh - 60px);
  }

  section h1,
  section .section-title {
    font-size: 2rem;
    text-align: center;
  }
  #home {
    text-align: center;
  }
  #home h1 {
    font-size: 2.5rem;
    text-align: center;
  }

  /* En móvil los items dejan de repartirse la altura: se ajustan al texto */
  .service-item,
  .benefit-item {
    flex: 0 0 auto;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .content-wrapper,
  .benefits-content-wrapper,
  .services-content-wrapper {
    flex-direction: column;
  }
  .benefits-content-wrapper,
  .services-content-wrapper {
    flex-direction: column-reverse; /* Put image on top on mobile */
  }

  .services-list,
  .benefits-list {
    flex-direction: column; /* Stack image-half and list-half vertically */
  }
  .services-list .image-half,
  .benefits-list .image-half {
    order: 2; /* Move image-half below list-half */
  }
  .services-list .list-half,
  .benefits-list .list-half {
    order: 1; /* Move list-half above image-half */
  }
}

#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999; /* A high z-index to ensure it's on top */
  pointer-events: none; /* Allows clicks/interactions to pass through to elements below */
}

/*-----------------------FORM CONTACTO-------------------------------*/

.contact-subtitle {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.contact-form {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.2rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.form-group label span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-lo);
  border: var(--border);
  border-radius: 14px;
  color: var(--text);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
  box-shadow: 0 8px 20px rgba(12, 8, 6, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(var(--text-muted-rgb), 0.75);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.22);
  background: var(--surface);
}

.txtArea-mensaje {
  min-height: 150px;
  resize: vertical;
}

.error-message {
  min-height: 18px;
  font-size: 0.82rem;
  color: var(--danger);
  line-height: 1.4;
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--danger-strong);
  box-shadow: 0 0 0 4px rgba(226, 104, 95, 0.16);
}

.form-group input.valid,
.form-group textarea.valid {
  border-color: var(--success);
}

.form-submit {
  margin-top: 0.4rem;
  align-items: flex-start;
  gap: 0.9rem;
}

/* Nota bajo el botón de envío */
.form-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.btn_enviar {
  background-color: var(--primary);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
  outline: none;
  min-width: 220px;
  width: auto;
  box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.3);
}

.btn_enviar:hover {
  background-color: var(--primary-hi);
  transform: translateY(-1px);
}

.btn_enviar:active {
  transform: translateY(1px);
  box-shadow:
    0 8px 30px rgba(var(--primary-rgb), 0.45),
    inset 0 1px 3px rgba(var(--text-rgb), 0.18);
}

.btn_enviar:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* La sección del formulario alinea arriba: con el teclado abierto en móvil el
   centrado vertical dejaba los campos fuera de vista. */
.section-contact {
  justify-content: flex-start;
  padding-top: 40px;
  padding-bottom: 40px;
}

.section-contact h1,
.section-contact .contact-subtitle,
.section-contact .contact-form {
  width: 100%;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-subtitle {
    font-size: 0.96rem;
    margin-bottom: 1.5rem;
  }

  .btn_enviar {
    width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   PÁGINAS INTERIORES
   El inicio es un one-pager: <main> es el contenedor de scroll y cada sección
   ocupa el viewport con scroll-snap. Las páginas interiores llevan
   <html class="page"> y vuelven al scroll normal del documento, para que el
   contenido largo (servicios, casos, artículos) y el footer se comporten como
   en cualquier sitio.
   ========================================================================== */
html.page {
  overflow: auto;
}

html.page body {
  overflow-x: hidden;
}

html.page main {
  height: auto;
  overflow: visible;
  scroll-snap-type: none;
}

html.page section {
  min-height: 0;
  scroll-snap-align: none;
  justify-content: flex-start;
  padding: 68px 24px;
}

/* Separador tenue entre secciones: el fondo del body es un degradado fijo, así
   que una línea sutil ordena mejor que alternar colores de fondo. */
html.page section + section {
  border-top: 1px solid rgba(var(--text-muted-rgb), 0.12);
}

@media (max-width: 768px) {
  html.page section {
    padding: 48px 18px;
  }
}

/* --- Encabezado de página interior --- */
.page-hero {
  padding-top: 86px !important;
  padding-bottom: 52px !important;
}

.page-hero h1 {
  max-width: 24ch;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  opacity: 0.45;
}

/* Contenedor genérico para el contenido de secciones interiores */
.page-wrap {
  max-width: 1140px;
  width: 100%;
}

/* Fila de botones bajo una sección */
.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* ==========================================================================
   NAVEGACIÓN MULTIPÁGINA
   ========================================================================== */
.nav-links a.is-active {
  color: var(--primary);
}

.nav-cta {
  border: 1px solid rgba(var(--primary-rgb), 0.5);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--primary);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.nav-cta:hover {
  background: rgba(var(--primary-rgb), 0.12);
  border-color: var(--primary);
}

/* Con seis entradas el menú se aprieta antes de llegar al breakpoint móvil */
@media (max-width: 1080px) and (min-width: 769px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 13.5px;
  }

  .nav-cta {
    padding: 7px 14px;
  }
}

/* ==========================================================================
   TARJETAS DE SERVICIO ENLAZABLES
   Reutilizan .project-card; solo neutralizan los estilos propios del enlace.
   ========================================================================== */
a.project-card,
a.case-card,
a.post-card {
  text-decoration: none;
  color: inherit;
}

.card-more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap 0.25s ease;
}

a.project-card:hover .card-more,
a.case-card:hover .card-more,
a.post-card:hover .card-more {
  gap: 12px;
}

/* ==========================================================================
   LISTA DE PROBLEMAS (inicio)
   ========================================================================== */
.problem-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.problem-list li {
  position: relative;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
  transform: rotate(45deg);
}

.problem-list strong {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}

.problem-list span {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   LISTA DE ENTREGABLES CON PALOMA
   ========================================================================== */
.check-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
  width: 100%;
  max-width: 1000px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(145deg, var(--surface), var(--surface-lo));
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.check-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  line-height: 1.6;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .check-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.testimonial-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1140px;
  width: 100%;
  margin-top: 36px;
  perspective: 1000px;
}

.testimonial-card {
  background: linear-gradient(145deg, var(--surface), var(--surface-lo));
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-md);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform-style: preserve-3d;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-glow);
}

.testimonial-quote {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(var(--text-rgb), 0.9);
}

.testimonial-quote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 0;
  color: var(--primary);
  margin-right: 4px;
  vertical-align: -0.35em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--surface-hi), var(--surface-lo));
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.testimonial-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.testimonial-role {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .testimonial-container {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
}

/* ==========================================================================
   CASOS DE ESTUDIO
   ========================================================================== */
.case-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1140px;
  width: 100%;
  margin-top: 36px;
  perspective: 1000px;
}

.case-container.case-container-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1000px;
}

.case-card {
  background: linear-gradient(145deg, var(--surface), var(--surface-lo));
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-md);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform-style: preserve-3d;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.case-card:hover {
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-glow);
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
}

.case-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.case-blocks {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.case-blocks dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.case-blocks dd {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: rgba(var(--text-rgb), 0.87);
}

.case-metric {
  margin-top: auto;
  padding-top: 6px;
  border-top: var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-metric strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
}

.case-metric span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .case-container,
  .case-container.case-container-wide {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
}

/* ==========================================================================
   PREGUNTAS FRECUENTES
   ========================================================================== */
.faq-list {
  max-width: 880px;
  width: 100%;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.faq-item {
  background: linear-gradient(145deg, var(--surface), var(--surface-lo));
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(var(--primary-rgb), 0.45);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.faq-answer {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1140px;
  width: 100%;
  margin-top: 36px;
  perspective: 1000px;
}

.post-card {
  background: linear-gradient(145deg, var(--surface), var(--surface-lo));
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-md);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-style: preserve-3d;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.post-card:hover {
  background: linear-gradient(145deg, var(--surface-hi), var(--surface));
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-glow);
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-meta .sep {
  opacity: 0.45;
}

.post-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
}

.post-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

@media (max-width: 960px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TEXTO LARGO (artículos y páginas de servicio)
   ========================================================================== */
.prose {
  max-width: 74ch;
  width: 100%;
  text-align: left;
}

.prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  margin: 40px 0 14px;
  line-height: 1.3;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 28px 0 10px;
}

.prose p {
  margin: 0 0 18px;
  color: var(--text-muted);
  line-height: 1.8;
}

.prose ul,
.prose ol {
  margin: 0 0 20px;
  padding-left: 1.2rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.7;
}

.prose li::marker {
  color: var(--primary);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--primary);
}

.prose blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid rgba(var(--primary-rgb), 0.5);
  color: rgba(var(--text-rgb), 0.88);
  font-style: italic;
}

/* ==========================================================================
   BLOQUE DE LLAMADO A LA ACCIÓN
   ========================================================================== */
.cta-band {
  max-width: 980px;
  width: 100%;
  margin-top: 8px;
  background: linear-gradient(145deg, var(--surface), var(--surface-lo));
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 42px 34px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 24ch;
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
  max-width: 58ch;
  line-height: 1.7;
}

.cta-band .hero-actions {
  margin-top: 10px;
}

/* ==========================================================================
   AVISO DE CONTENIDO PENDIENTE
   Marca visible para los bloques que deben sustituirse por material real
   (casos y testimonios de clientes) antes de publicar el sitio.
   ========================================================================== */
.placeholder-note {
  max-width: 74ch;
  margin: 22px auto 0;
  padding: 14px 20px;
  border: 1px dashed rgba(var(--primary-rgb), 0.55);
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.07);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-align: left;
}

.is-placeholder {
  border-style: dashed;
  border-color: rgba(var(--primary-rgb), 0.5);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: var(--border);
  background: rgba(var(--bg-rgb), 0.65);
  padding: 54px 24px 26px;
  scroll-snap-align: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
  text-align: left;
}

.footer-brand a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 38px;
  width: auto;
}

.footer-brand .logo-wordmark {
  font-size: 1.25rem;
}

.footer-tagline {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 40ch;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.footer-social a:hover {
  color: var(--primary);
  border-color: rgba(var(--primary-rgb), 0.5);
  background: rgba(var(--primary-rgb), 0.1);
}

.footer-bottom {
  max-width: 1200px;
  margin: 38px auto 0;
  padding-top: 20px;
  border-top: var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.footer-bottom a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}
