/* ===== RESET Y VARIABLES ===== */
:root {
  /* Colores principales */
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --secondary-color: #2ecc71;
  --secondary-dark: #27ae60;
  --accent-color: #e74c3c;
  --brand-navy: #06184a;
  --brand-blue: #1397ee;
  --brand-violet: #a72bed;
  --scroll-bg-image: url('../img/tecprotech-scroll-bg.jpeg');

  /* Colores neutrales */
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --gray-color: #95a5a6;
  --gray-light: #f8f9fa;
  --gray-dark: #7f8c8d;

  /* Colores de texto */
  --text-color: #333333;
  --text-light: #666666;
  --text-on-dark: #ffffff;

  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.18);

  /* Bordes */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 20px;

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Tipografía */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Roboto', sans-serif;

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #f7faff;
  scroll-behavior: smooth;
}

/* Custom Variables */
:root {
  --bs-primary: #4e73df;
  --bs-primary-rgb: 78, 115, 223;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 249, 255, 0.86) 34%, rgba(255, 255, 255, 0.9) 66%, rgba(244, 248, 255, 0.86) 100%),
    var(--scroll-bg-image);
  background-attachment: scroll, fixed;
  background-position: center;
  background-size: cover;
  font-family: 'Poppins', sans-serif;
  color: #2d3436;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  background:
    linear-gradient(115deg, rgba(19, 151, 238, 0.08), transparent 30%, rgba(167, 43, 237, 0.06) 64%, transparent 100%),
    repeating-linear-gradient(120deg, rgba(6, 24, 74, 0.035) 0 1px, transparent 1px 56px);
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  will-change: transform, opacity, clip-path;
}

p {
  margin-bottom: var(--spacing-md);
  will-change: transform, opacity, clip-path;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.highlight {
  color: var(--primary-color);
}

/* ===== COMPONENTES REUTILIZABLES ===== */

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: var(--transition-normal);
  border: 2px solid transparent;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bg-light,
.bg-white {
  background: transparent !important;
}

/* Ajuste en Hero para Grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

/* Ajuste en About Info */
.about-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* Mejora visual de las Skill Bars */
.skill-bar {
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 5px;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  width: 0;
  transition: width 1.5s cubic-bezier(0.1, 0, 0.2, 1);
}

/* Project Card Overlay Fix */
.project-overlay {
  background: rgba(44, 62, 80, 0.9); /* Un color más elegante */
}
/* Secciones */
.section {
  padding: var(--spacing-xxl) 0;
}

section[id] {
  scroll-margin-top: 112px;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin: var(--spacing-sm) auto var(--spacing-lg);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
  font-size: 1.1rem;
}

/* Tarjetas */
.card {
  background: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  isolation: isolate;
  z-index: 5000;
  padding: 1rem 0;
  transition: padding 0.35s ease, transform 0.35s ease;
}

.navbar.scrolled {
  padding: 0.65rem 0;
}

.navbar .container {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0;
  box-shadow: 0 12px 34px rgba(6, 24, 74, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  padding: 0.55rem 1rem;
  transition: background-color 0.35s ease, border-radius 0.35s ease, box-shadow 0.35s ease, max-width 0.35s ease, padding 0.35s ease, transform 0.35s ease;
}

.navbar.scrolled .container {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(6, 24, 74, 0.1);
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(6, 24, 74, 0.18);
  max-width: min(1120px, calc(100% - 2rem));
  padding: 0.45rem 1rem;
  transform: translateY(2px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 300px;
  padding: 0;
}

.site-logo {
  flex: 0 0 auto;
  width: 152px;
  height: 52px;
  object-fit: contain;
  transition: width 0.35s ease, height 0.35s ease;
}

.navbar.scrolled .site-logo {
  width: 134px;
  height: 44px;
}

.brand-slogan {
  border-left: 1px solid rgba(6, 24, 74, 0.18);
  color: rgba(6, 24, 74, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  max-width: 130px;
  padding-left: 0.85rem;
  text-transform: uppercase;
  transition: color 0.35s ease, border-color 0.35s ease;
}

.navbar.scrolled .brand-slogan {
  border-color: rgba(6, 24, 74, 0.22);
  color: rgba(6, 24, 74, 0.82);
}

.site-nav-list {
  align-items: center;
  gap: 0.25rem;
  position: relative;
  z-index: 5001;
}

.nav-link {
  border-radius: 999px;
  color: rgba(6, 24, 74, 0.76);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.65rem 0.95rem !important;
  position: relative;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.nav-link::after {
  display: none;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(19, 151, 238, 0.09);
  color: var(--brand-navy) !important;
  transform: translateY(-1px);
}

.nav-cta-item {
  margin-left: 0.5rem;
}

.nav-cta {
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  white-space: nowrap;
}

.site-menu-toggle {
  border: 1px solid rgba(6, 24, 74, 0.12);
  border-radius: 12px;
  padding: 0.7rem;
}

.site-menu-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(19, 151, 238, 0.15);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--dark-color);
  background: none;
}

/* === REFINAMIENTO DE HERO === */
.hero {
  min-height: 100svh;
  background: var(--brand-navy);
  position: relative;
  overflow: hidden;
  padding: 7.25rem 0 3.5rem;
}

.hero-bg {
  background:
    linear-gradient(180deg, rgba(6, 24, 74, 0.08), rgba(6, 24, 74, 0.18)),
    url('../img/AdobeStock_1962824352-hero-fallback.jpeg'),
    var(--brand-navy);
  background-position: center;
  background-size: cover;
  overflow: hidden;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-video {
  display: block;
  filter: saturate(1.22) contrast(1.08) brightness(1.28);
  height: 100%;
  left: 0;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: none;
  transition: opacity 0.35s ease;
  visibility: hidden;
  width: 100%;
  z-index: 1;
}

.hero-bg.is-video-playing .hero-bg-video {
  opacity: 1;
  visibility: visible;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 24, 74, 0.3) 0%, rgba(6, 24, 74, 0.22) 52%, rgba(6, 24, 74, 0.44) 100%),
    linear-gradient(90deg, rgba(6, 24, 74, 0.46) 0%, rgba(6, 24, 74, 0.12) 52%, rgba(6, 24, 74, 0.2) 100%),
    radial-gradient(900px circle at 56% 42%, rgba(19, 151, 238, 0.07), transparent 44%),
    radial-gradient(circle at 74% 28%, rgba(167, 43, 237, 0.05), transparent 32%),
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.02) 1px, transparent 0);
  background-size: auto, auto, auto, auto, 42px 42px;
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero .row.min-vh-100 {
  min-height: calc(100svh - 10.75rem) !important;
}

/* Títulos con impacto */
.display-1 {
  font-size: clamp(2.75rem, 6.4vw, 4.85rem); /* Se ajusta al tamaño de pantalla */
  line-height: 1.06;
  letter-spacing: 0;
}

.text-gradient {
  background: linear-gradient(90deg, #3dd8ff, #67a7ff 48%, #d67cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-eyebrow {
  color: #7be0ff;
}

.hero-subtitle,
.hero-copy {
  color: rgba(255, 255, 255, 0.82);
}

.hero-content {
  max-width: 820px;
  text-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
}

.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-capabilities span {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  text-shadow: none;
}

.hero-capabilities i {
  color: #7be0ff;
  font-size: 0.78rem;
}

.hero-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-proof-item {
  align-items: flex-start;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-width: 145px;
  padding: 0.9rem 1rem;
  text-shadow: none;
}

.hero-proof-item span {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.hero-proof-item small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.35rem;
  text-transform: uppercase;
}

.hero-system-panel {
  backdrop-filter: blur(22px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(19, 151, 238, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
  color: #ffffff;
  margin-left: auto;
  max-width: 430px;
  overflow: hidden;
  padding: 1.35rem;
  position: relative;
}

.hero-system-panel::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(123, 224, 255, 0.22), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 58px);
  content: '';
  inset: 0;
  position: absolute;
}

.hero-system-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.hero-panel-header span {
  color: rgba(255, 255, 255, 0.62);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.hero-panel-header strong {
  color: #ffffff;
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
}

.hero-system-node {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  display: flex;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
  padding: 0.9rem;
}

.hero-system-node i {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: #7be0ff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.hero-system-node strong,
.hero-system-node small {
  display: block;
}

.hero-system-node strong {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.hero-system-node small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hero-system-node.node-primary {
  background: linear-gradient(135deg, rgba(19, 151, 238, 0.24), rgba(167, 43, 237, 0.16));
}

.hero-panel-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-panel-footer span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.65rem;
  text-transform: uppercase;
}

/* ===== TECPROTECH ===== */
.tracking-widest,
.tracking-wider {
  letter-spacing: 0.08em;
}

.scroll-transition {
  background: var(--brand-navy);
  min-height: 230px;
  overflow: hidden;
  position: relative;
}

.scroll-transition-bg {
  background-image:
    linear-gradient(90deg, rgba(6, 24, 74, 0.86) 0%, rgba(6, 24, 74, 0.52) 44%, rgba(6, 24, 74, 0.8) 100%),
    var(--scroll-bg-image);
  background-position: center;
  background-size: cover;
  inset: 0;
  opacity: 1;
  position: absolute;
  transform: scale(1.04);
}

.scroll-transition::before,
.scroll-transition::after {
  content: '';
  left: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.scroll-transition::before {
  background: linear-gradient(180deg, rgba(6, 24, 74, 0.56), transparent);
  height: 70px;
  top: 0;
}

.scroll-transition::after {
  background: linear-gradient(0deg, rgba(246, 249, 255, 0.9), rgba(6, 24, 74, 0));
  bottom: 0;
  height: 80px;
}

.scroll-transition .container {
  min-height: 230px;
  position: relative;
  z-index: 2;
}

.scroll-transition-content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 230px;
  max-width: 720px;
}

.scroll-transition-content span {
  color: rgba(174, 230, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.scroll-transition-content strong {
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.feature-card,
.premium-card {
  --card-rotate-x: 0deg;
  --card-rotate-y: 0deg;
  background:
    linear-gradient(145deg, rgba(6, 24, 74, 0.88), rgba(6, 24, 74, 0.58)),
    url('../img/feature-gold-texture.jpg');
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(247, 210, 116, 0.34);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(6, 24, 74, 0.18);
  color: #ffffff;
  min-height: 245px;
  overflow: hidden;
  padding: 1.45rem;
  position: relative;
  transform: perspective(900px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y));
  transform-style: preserve-3d;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature-card::before,
.premium-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--glow-x, 30%) var(--glow-y, 25%), rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 42%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.feature-card::after,
.premium-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 1;
}

.feature-card:hover,
.premium-card:hover {
  border-color: rgba(255, 225, 143, 0.78);
  box-shadow: 0 30px 80px rgba(6, 24, 74, 0.28), 0 0 34px rgba(211, 160, 57, 0.18);
}

.feature-card:hover::before,
.premium-card:hover::before {
  opacity: 1;
}

.feature-card > *,
.premium-card > * {
  position: relative;
  z-index: 2;
}

.feature-number,
.premium-number {
  color: rgba(255, 235, 180, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  position: absolute;
  right: 1.25rem;
  top: 1.15rem;
}

.feature-icon,
.premium-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 235, 180, 0.32);
  border-radius: 14px;
  color: #ffe7a3;
  display: inline-flex;
  font-size: 1.45rem;
  height: 52px;
  justify-content: center;
  margin-bottom: 1.2rem;
  width: 52px;
}

.feature-card h4,
.premium-card h3,
.premium-card h4 {
  margin-bottom: 0.75rem;
}

.feature-card h4,
.premium-card h3,
.premium-card h4 {
  color: #ffffff;
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.2;
}

.feature-card p,
.premium-card p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.2rem;
}

.feature-card small,
.premium-card small {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 238, 190, 0.88);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding-top: 0.85rem;
  text-transform: uppercase;
}

.premium-card {
  min-height: 270px;
  padding: 1.6rem;
}

.premium-card.mission-card {
  background:
    linear-gradient(145deg, rgba(6, 24, 74, 0.91), rgba(25, 42, 92, 0.6)),
    url('../img/feature-gold-texture.jpg');
  border-top: 1px solid rgba(247, 210, 116, 0.34) !important;
}

.premium-card.service-card {
  background:
    linear-gradient(145deg, rgba(6, 24, 74, 0.9), rgba(19, 151, 238, 0.34)),
    url('../img/feature-gold-texture.jpg');
  backdrop-filter: blur(16px);
  background-blend-mode: overlay;
  border-color: rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  min-height: 365px;
  padding: 1rem;
}

.service-card-media {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  height: 132px;
  margin: 0 0 1rem;
  overflow: hidden;
  position: relative;
}

.service-card-media::after {
  background:
    linear-gradient(180deg, transparent 28%, rgba(6, 24, 74, 0.72) 100%),
    linear-gradient(135deg, rgba(19, 151, 238, 0.18), rgba(167, 43, 237, 0.16));
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.service-card-media img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease;
  width: 100%;
}

.premium-card.service-card:hover .service-card-media img {
  transform: scale(1.08);
}

.premium-card.service-card .premium-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #aee6ff;
  height: 48px;
  margin-bottom: 0.9rem;
  width: 48px;
}

.premium-card.service-card p {
  flex: 1 1 auto;
  font-size: 0.94rem;
  line-height: 1.52;
  margin-bottom: 1rem;
}

.premium-card.service-card small {
  color: rgba(190, 234, 255, 0.9);
}

.premium-card.service-card::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(90deg, transparent, rgba(126, 224, 255, 0.12), transparent);
  border-color: rgba(255, 255, 255, 0.1);
}

#nosotros,
#mision-vision,
#proyectos,
#contacto {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 249, 255, 0.78)),
    var(--scroll-bg-image) !important;
  background-attachment: scroll, fixed !important;
  background-position: center !important;
  background-size: cover !important;
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

#nosotros .container,
#mision-vision .container,
#proyectos .container,
.methodology-section .container,
#contacto .container {
  position: relative;
  z-index: 1;
}

#nosotros::before,
#mision-vision::before,
#proyectos::before,
.methodology-section::before,
#contacto::before {
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

#nosotros::before {
  background:
    linear-gradient(115deg, rgba(19, 151, 238, 0.11), transparent 34%, rgba(167, 43, 237, 0.06) 72%, transparent),
    repeating-linear-gradient(90deg, rgba(6, 24, 74, 0.04) 0 1px, transparent 1px 96px);
}

#nosotros::after {
  background:
    linear-gradient(90deg, transparent 0%, rgba(19, 151, 238, 0.13) 48%, transparent 100%);
  bottom: 0;
  content: '';
  height: 1px;
  left: 8%;
  position: absolute;
  right: 8%;
}

#mision-vision::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 248, 255, 0.56)),
    linear-gradient(135deg, rgba(247, 210, 116, 0.1), transparent 32%, rgba(19, 151, 238, 0.08) 68%, transparent);
  background-position: center;
  background-size: cover;
  opacity: 0.95;
}

#servicios + #proyectos {
  box-shadow: inset 0 80px 120px rgba(6, 24, 74, 0.04);
}

#servicios {
  background:
    linear-gradient(180deg, rgba(6, 24, 74, 0.78), rgba(8, 18, 62, 0.82)),
    url('../img/tecprotech-services-bg.jpeg') !important;
  background-attachment: scroll, scroll !important;
  background-position: center top !important;
  background-size: cover !important;
  color: #ffffff;
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.services-bg {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.services-bg::before {
  background:
    linear-gradient(90deg, rgba(19, 151, 238, 0.08), transparent 32%, rgba(167, 43, 237, 0.08) 78%, transparent);
  content: '';
  inset: 0;
  position: absolute;
}

.services-bg::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(61, 216, 255, 0.12), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(167, 43, 237, 0.1), transparent 28%);
  content: '';
  filter: blur(1px);
  inset: -12%;
  position: absolute;
}

.services-orbit {
  border: 1px solid rgba(126, 224, 255, 0.16);
  border-radius: 50%;
  position: absolute;
}

.orbit-one {
  height: 420px;
  right: -110px;
  top: 60px;
  width: 420px;
}

.orbit-two {
  bottom: -160px;
  height: 520px;
  left: -140px;
  width: 520px;
}

#servicios .container {
  position: relative;
  z-index: 1;
}

.services-title {
  color: #ffffff;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.services-title span {
  background: linear-gradient(90deg, #7be0ff, #d67cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-copy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  max-width: 720px;
}

.services-context {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
}

.services-context i {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet));
  border-radius: 16px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.35rem;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.services-context strong,
.services-context span {
  display: block;
}

.services-context strong {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.services-context span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.section-lead {
  max-width: 720px;
}

.tech-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 246, 255, 0.82)),
    var(--scroll-bg-image);
  background-attachment: scroll, fixed;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  position: relative;
}

.tech-grid,
.why-grid,
.stats-grid,
.contact-info-grid,
.project-card-grid {
  display: grid;
  gap: 1rem;
}

.tech-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tech-card,
.why-card,
.stat-card,
.contact-info-card,
.project-card {
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(6, 24, 74, 0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tech-card::after,
.why-card::after,
.stat-card::after,
.contact-info-card::after,
.project-card::after {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 34%, rgba(126, 224, 255, 0.1));
  border-radius: inherit;
  content: '';
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.3s ease;
}

.tech-card:hover,
.why-card:hover,
.stat-card:hover,
.contact-info-card:hover,
.project-card:hover {
  box-shadow: 0 26px 70px rgba(6, 24, 74, 0.16);
  transform: translateY(-6px);
}

.tech-card:hover::after,
.why-card:hover::after,
.stat-card:hover::after,
.contact-info-card:hover::after,
.project-card:hover::after {
  opacity: 1;
}

.tech-card {
  align-items: center;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tech-accent, var(--brand-blue)) 10%, transparent), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.92));
  border: 1px solid rgba(6, 24, 74, 0.08);
  border-top: 3px solid color-mix(in srgb, var(--tech-accent, var(--brand-blue)) 72%, #ffffff);
  color: var(--brand-navy);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 118px;
  padding: 1.1rem 0.75rem;
  text-align: center;
}

.tech-card:hover {
  box-shadow: 0 24px 58px rgba(6, 24, 74, 0.14);
}

.tech-card i,
.why-card i,
.contact-info-card i {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet));
  border-radius: 14px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.2rem;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.tech-card i[class^='devicon-'],
.tech-card i[class*=' devicon-'] {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(6, 24, 74, 0.08);
  box-shadow:
    0 12px 26px rgba(6, 24, 74, 0.08),
    0 0 0 4px rgba(6, 24, 74, 0.03);
  color: inherit;
  font-size: 2rem;
}

.tech-card > i:not([class^='devicon-']):not([class*=' devicon-']) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--tech-accent, var(--brand-blue)) 86%, #ffffff), var(--brand-blue));
  box-shadow: 0 0 0 4px rgba(6, 24, 74, 0.03);
}

.tech-card .devicon-github-original {
  color: var(--tech-accent, var(--brand-navy));
}

.tech-ai-icon {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem !important;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.tech-card span {
  font-size: 0.88rem;
  font-weight: 800;
}

.project-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.project-card {
  background: #ffffff;
  border: 1px solid rgba(6, 24, 74, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-card figure {
  background: linear-gradient(135deg, rgba(19, 151, 238, 0.16), rgba(167, 43, 237, 0.18));
  height: 155px;
  margin: 0;
  overflow: hidden;
}

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

.project-illustration {
  align-items: center;
  color: #ffffff;
  display: flex;
  justify-content: center;
}

.project-illustration i {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet));
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(19, 151, 238, 0.28);
  display: inline-flex;
  font-size: 2rem;
  height: 74px;
  justify-content: center;
  width: 74px;
}

.project-card > div {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.15rem;
}

.project-kicker {
  color: var(--brand-blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.project-card h3,
.why-card h3 {
  color: var(--brand-navy);
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.project-card p,
.why-card p {
  color: rgba(6, 24, 74, 0.68);
  flex: 1 1 auto;
  font-size: 0.92rem;
  line-height: 1.55;
}

.why-section {
  background: #ffffff;
  overflow: hidden;
}

.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.why-card {
  background: linear-gradient(180deg, #ffffff, rgba(246, 249, 255, 0.9));
  border: 1px solid rgba(6, 24, 74, 0.08);
  min-height: 210px;
  padding: 1.35rem;
}

.why-card i {
  margin-bottom: 1rem;
}

.stats-section {
  background:
    linear-gradient(135deg, rgba(6, 24, 74, 0.95), rgba(16, 48, 106, 0.92)),
    var(--scroll-bg-image);
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-section .stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  color: #ffffff;
  min-height: 150px;
  padding: 1.45rem;
  text-align: center;
}

.stats-eyebrow {
  color: #7be0ff;
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.stats-copy {
  color: rgba(255, 255, 255, 0.72);
  max-width: 720px;
}

.stats-section .stat-card strong {
  color: #ffffff;
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stats-section .stat-card span:last-child {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 750;
}

.contact-response {
  color: var(--brand-navy);
  font-size: 1.08rem;
  font-weight: 800;
}

.contact-info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid rgba(6, 24, 74, 0.08);
  color: var(--brand-navy);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 170px;
  padding: 1.25rem;
  text-decoration: none;
}

.contact-info-card span {
  color: rgba(6, 24, 74, 0.58);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
  text-transform: uppercase;
}

.contact-info-card strong {
  color: var(--brand-navy);
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-footer {
  background:
    linear-gradient(145deg, rgba(6, 24, 74, 0.98), rgba(8, 31, 74, 0.96)) !important;
}

.site-footer h3 {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.site-footer a,
.site-footer span,
.footer-copy {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  margin-bottom: 0.65rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: #7be0ff;
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-links a {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #ffffff;
  display: inline-flex;
  font-size: 1.1rem;
  height: 44px;
  justify-content: center;
  margin: 0;
  width: 44px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

.legal-page {
  background:
    linear-gradient(135deg, rgba(6, 24, 74, 0.94), rgba(8, 31, 74, 0.88)),
    var(--scroll-bg-image);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.legal-hero {
  min-height: 100svh;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.legal-brand {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  margin-bottom: 1.5rem;
  padding: 0.55rem 0.9rem;
}

.legal-brand img {
  height: 44px;
  object-fit: contain;
  width: 150px;
}

.legal-back-link {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.72rem 1rem;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.legal-back-link:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  color: #ffffff;
  transform: translateY(-2px);
}

.legal-document {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
  color: var(--brand-navy);
  max-width: 980px;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.legal-eyebrow {
  color: var(--brand-blue);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.legal-document h1 {
  color: var(--brand-navy);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.legal-updated {
  color: rgba(6, 24, 74, 0.58);
  font-weight: 700;
  margin-bottom: 2rem;
}

.legal-document h2 {
  color: var(--brand-navy);
  font-size: 1.2rem;
  font-weight: 850;
  margin-top: 1.7rem;
  margin-bottom: 0.6rem;
}

.legal-document p {
  color: rgba(6, 24, 74, 0.72);
  line-height: 1.75;
}

.legal-document a:not(.btn) {
  color: var(--brand-blue);
  font-weight: 800;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.methodology-section {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(238, 245, 255, 0.78)),
    repeating-linear-gradient(90deg, rgba(19, 151, 238, 0.055) 0 1px, transparent 1px 72px),
    var(--scroll-bg-image);
  background-attachment: scroll, scroll, fixed;
  background-position: center;
  background-size: auto, auto, cover;
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.methodology-section::before {
  background:
    linear-gradient(120deg, transparent 0%, rgba(19, 151, 238, 0.08) 38%, rgba(167, 43, 237, 0.08) 62%, transparent 100%),
    repeating-linear-gradient(0deg, rgba(6, 24, 74, 0.035) 0 1px, transparent 1px 86px);
}

.methodology-note {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(6, 24, 74, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(6, 24, 74, 0.09);
  color: rgba(6, 24, 74, 0.78);
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
}

.methodology-note i {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet));
  border-radius: 14px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.2rem;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.methodology-map {
  align-items: stretch;
  display: grid;
  gap: 1.25rem;
  grid-template-areas:
    "discovery requirements design"
    "support core development"
    ". delivery testing";
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: auto;
  position: relative;
}

.methodology-map::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(19, 151, 238, 0.2), transparent 16%),
    linear-gradient(90deg, transparent 8%, rgba(19, 151, 238, 0.18) 20%, rgba(167, 43, 237, 0.18) 50%, rgba(19, 151, 238, 0.18) 80%, transparent 92%),
    linear-gradient(0deg, transparent 10%, rgba(6, 24, 74, 0.1) 50%, transparent 90%);
  border-radius: 999px;
  content: '';
  filter: blur(0.2px);
  height: 76%;
  left: 4%;
  opacity: 0.85;
  position: absolute;
  right: 4%;
  top: 12%;
  z-index: 0;
}

.methodology-map::after {
  background:
    linear-gradient(90deg, rgba(19, 151, 238, 0.18), rgba(167, 43, 237, 0.18)),
    linear-gradient(0deg, rgba(19, 151, 238, 0.12), rgba(167, 43, 237, 0.12));
  background-position: center;
  background-repeat: no-repeat;
  background-size: 82% 2px, 2px 74%;
  content: '';
  inset: 0;
  position: absolute;
  z-index: 0;
}

.methodology-core,
.methodology-step {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(6, 24, 74, 0.09);
  box-shadow: 0 18px 48px rgba(6, 24, 74, 0.1);
  position: relative;
  z-index: 1;
}

.methodology-core {
  border-radius: 24px;
  grid-area: core;
  height: 100%;
  left: auto;
  min-height: 250px;
  padding: 1.65rem;
  text-align: center;
  top: auto;
  transform: none;
  width: auto;
}

.methodology-core::before,
.methodology-step::before {
  background: linear-gradient(135deg, rgba(19, 151, 238, 0.95), rgba(167, 43, 237, 0.92));
  border-radius: inherit;
  content: '';
  inset: -1px;
  opacity: 0;
  position: absolute;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.methodology-core:hover::before,
.methodology-step:hover::before {
  opacity: 0.12;
}

.methodology-core span {
  color: rgba(6, 24, 74, 0.58);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.methodology-core i {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet));
  border-radius: 18px;
  color: #ffffff;
  display: inline-flex;
  font-size: 1.55rem;
  height: 62px;
  justify-content: center;
  margin-bottom: 1.1rem;
  width: 62px;
}

.methodology-core h3 {
  color: var(--brand-navy);
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.methodology-core p {
  color: rgba(6, 24, 74, 0.66);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.methodology-step {
  border-radius: 18px;
  min-height: 192px;
  padding: 1.18rem;
  width: auto;
}

.methodology-step::after {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet));
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(6, 24, 74, 0.16);
  content: '';
  height: 18px;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 18px;
}

.step-discovery {
  grid-area: discovery;
}

.step-requirements {
  grid-area: requirements;
}

.step-design {
  grid-area: design;
}

.step-development {
  grid-area: development;
}

.step-testing {
  grid-area: testing;
}

.step-delivery {
  grid-area: delivery;
}

.step-support {
  grid-area: support;
}

.step-discovery::after,
.step-support::after {
  right: 1rem;
  top: 1rem;
}

.step-requirements::after {
  bottom: auto;
  left: auto;
}

.step-design::after,
.step-development::after {
  left: auto;
  top: 1rem;
}

.step-testing::after,
.step-delivery::after {
  left: auto;
  top: 1rem;
}

.methodology-step span {
  color: rgba(6, 24, 74, 0.32);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.methodology-step i {
  align-items: center;
  background: var(--brand-navy);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(6, 24, 74, 0.18);
  color: #ffffff;
  display: flex;
  font-size: 1.15rem;
  height: 52px;
  justify-content: center;
  margin: 0.85rem 0 1.1rem;
  width: 52px;
}

.methodology-step h3 {
  color: var(--brand-navy);
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.methodology-step p {
  color: rgba(6, 24, 74, 0.64);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.methodology-core,
.methodology-step {
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.methodology-core:hover {
  box-shadow: 0 28px 70px rgba(6, 24, 74, 0.16);
}

.methodology-step:hover {
  border-color: rgba(19, 151, 238, 0.28);
  box-shadow: 0 26px 64px rgba(6, 24, 74, 0.15);
}

.project-slide img {
  backface-visibility: hidden;
  height: 100%;
  image-rendering: auto;
  min-height: 100%;
  transform: none !important;
}

#projectCarousel,
#projectCarousel .carousel-inner,
#projectCarousel .carousel-item,
.project-slide {
  min-height: clamp(500px, 48vw, 590px);
}

#projectCarousel .carousel-item {
  height: clamp(500px, 48vw, 590px);
}

.project-slide {
  height: 100%;
  min-height: 0;
}

.project-slide > [class*="col-"] {
  height: 100%;
  min-height: clamp(500px, 48vw, 590px);
}

.project-media-col {
  background: var(--brand-navy);
  overflow: hidden;
  position: relative;
}

.project-media-col::after {
  background:
    linear-gradient(90deg, transparent 64%, rgba(6, 24, 74, 0.35)),
    linear-gradient(180deg, rgba(6, 24, 74, 0.08), rgba(6, 24, 74, 0.32));
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.project-water-image {
  background: #f8fbff;
  height: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center;
  padding: clamp(0.85rem, 2vw, 1.45rem);
  width: 100%;
}

.project-content-col {
  background:
    radial-gradient(circle at 20% 18%, rgba(19, 151, 238, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(6, 24, 74, 1), rgba(8, 38, 86, 0.98));
}

.project-slide .col-lg-5 > div {
  max-width: 430px;
}

.contact-email-link {
  color: var(--brand-blue);
  display: inline-flex;
  font-weight: 700;
  margin-top: 0.35rem;
}

.contact-email-link:hover {
  color: var(--brand-violet);
}

.footer-logo {
  background: #ffffff;
  border-radius: 14px;
  height: 82px;
  object-fit: contain;
  padding: 0.5rem 0.75rem;
  width: 250px;
}

.bg-dark {
  background-color: var(--brand-navy) !important;
}

.site-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: min(420px, calc(100vw - 40px));
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  color: #ffffff;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.3s ease;
}

.site-alert-success {
  background: var(--secondary-dark);
}

.site-alert-error {
  background: var(--accent-color);
}

.site-alert.is-leaving {
  animation: fadeOut 0.3s ease forwards;
}

.hero-content.animate,
.feature-card.animate,
.premium-card.animate,
.mission-card.animate,
.card.animate,
.reveal-card.animate {
  animation: fadeInUp 0.7s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-16px);
  }
}

/* Botones Modernos */
.btn {
  border-radius: 14px;
  font-weight: 750;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

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

.btn:focus-visible {
  box-shadow: 0 0 0 0.22rem rgba(19, 151, 238, 0.24), 0 16px 34px rgba(6, 24, 74, 0.14);
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), #2563eb 55%, var(--brand-violet));
  border: 0;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #087bd4, #1e40af 55%, #8f20ce);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Espaciado de navegación */
.navbar-brand {
  letter-spacing: 1px;
}

@media (max-width: 991px) {
}

/* ===== SOBRE MÍ ===== */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
}

.about-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--gray-light);
  border-radius: var(--border-radius);
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.info-item h4 {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.info-item p {
  font-weight: 500;
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.stat-card {
  background: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* HABILIDADES CON FONDO TECNOLÓGICO */
#habilidades {
  position: relative;
  background-color: #f8faff !important;
  overflow: hidden;
}

#habilidades::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(78, 115, 223, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(78, 115, 223, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
}

#habilidades .container {
  position: relative;
  z-index: 1;
}

/* ===== HABILIDADES ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.skills-category {
  background: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.skills-category h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark-color);
  margin-bottom: var(--spacing-lg);
  font-size: 1.3rem;
}

.skills-category h3 i {
  color: var(--primary-color);
}

.skill-item {
  margin-bottom: var(--spacing-md);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 500;
}

.skill-percent {
  color: var(--text-light);
  font-weight: 500;
}

.skill-bar {
  height: 8px;
  background-color: var(--gray-light);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: var(--spacing-sm);
  background: var(--gray-light);
  border-radius: var(--border-radius);
  transition: var(--transition-normal);
}

.tool-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.tool-item i {
  font-size: 2rem;
}

.tool-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

.soft-skills {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.soft-skill {
  display: flex;
  gap: var(--spacing-sm);
}

.soft-skill i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.soft-skill h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.soft-skill p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

#proyectos {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(240, 246, 255, 0.74)) !important;
}

#proyectos::before {
  background:
    linear-gradient(135deg, rgba(19, 151, 238, 0.1), transparent 30%, rgba(167, 43, 237, 0.08) 78%, transparent),
    repeating-linear-gradient(90deg, rgba(6, 24, 74, 0.035) 0 1px, transparent 1px 90px);
}

#proyectos::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(90deg, transparent, rgba(78, 115, 223, 0.06), transparent);
  z-index: 0;
}

#projectCarousel {
  border: 1px solid rgba(6, 24, 74, 0.08);
  box-shadow: 0 28px 90px rgba(6, 24, 74, 0.16) !important;
}

#contacto {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.86), rgba(255, 255, 255, 0.92)) !important;
}

#contacto::before {
  background:
    linear-gradient(120deg, transparent, rgba(19, 151, 238, 0.08) 34%, transparent 68%),
    repeating-linear-gradient(90deg, rgba(6, 24, 74, 0.035) 0 1px, transparent 1px 76px);
}

#contacto .card {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(6, 24, 74, 0.08) !important;
}

#proyectos .container {
  position: relative;
  z-index: 1;
}

/* ===== PROYECTOS ===== */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background: var(--gray-light);
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.project-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  border-radius: 1rem;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  box-shadow: 0 14px 28px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.05);
  transform: translateY(-5px);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  opacity: 0;
  transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-color);
  font-size: 1.2rem;
  transition: var(--transition-normal);
}

.project-link:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.project-content {
  padding: var(--spacing-md);
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
}

.project-description {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--gray-light);
  color: var(--text-light);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.projects-more {
  text-align: center;
}

/* ===== CONTACTO ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-xl);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.info-card {
  background: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.info-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-form {
  background: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-normal);
  background: transparent;
}

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

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-light);
  transition: var(--transition-normal);
  pointer-events: none;
  background: white;
  padding: 0 0.5rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.85rem;
  color: var(--primary-color);
}

.contact-form .btn {
  width: 100%;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-color);
  color: white;
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-about .logo {
  color: white;
  margin-bottom: var(--spacing-md);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-md);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-normal);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links h3,
.footer-newsletter h3 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-md);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  width: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  transition: var(--transition-normal);
}

.newsletter-form button:hover {
  background: var(--primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-bottom i {
  color: var(--accent-color);
  margin: 0 0.25rem;
}

/* Ajuste de Carrusel */
.carousel-item {
  min-height: 400px;
}

.carousel-item img {
  object-fit: cover;
}

/* Espaciado de secciones para evitar que se vean encimadas */
section {
  position: relative;
  overflow: hidden;
}

/* Efecto Hover en Inputs del Formulario */
.form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.15);
}

/* Botón flotante siempre visible en scroll */
.back-to-top {
  width: 45px;
  height: 45px;
  background-color: var(--bs-primary);
  color: white !important;
  border-radius: 50%;
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
  z-index: 1000;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background-color: #2e59d9;
}

/* Ajustes Responsive */
@media (max-width: 991.98px) {
  .carousel-item img {
    height: 100%;
  }
}

/* ===== BOTÓN VOLVER ARRIBA ===== */
.back-to-top {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 999;
  width: 45px;
  height: 45px;
  background-color: var(--bs-primary);
  color: white;
  border-radius: 50%;
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Animaciones de Entrada */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

/* ===== MEDIA QUERIES (RESPONSIVE) ===== */
@media (max-width: 1199.98px) {
  .navbar {
    padding: 0.55rem 0;
  }

  .navbar .container,
  .navbar.scrolled .container {
    max-width: calc(100% - 1rem);
    border-radius: 18px;
    padding: 0.45rem 1rem;
  }

  .site-logo {
    width: 132px;
    height: 42px;
  }

  .navbar.scrolled .site-logo {
    width: 120px;
    height: 38px;
  }

  .site-brand {
    min-width: 248px;
  }

  .brand-slogan {
    font-size: 0.7rem;
    max-width: 112px;
    padding-left: 0.7rem;
  }

  .site-nav-list {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid rgba(6, 24, 74, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(6, 24, 74, 0.12);
    gap: 0.25rem;
    margin-top: 0.9rem;
    padding: 0.75rem;
  }

  .site-nav-list .nav-link {
    padding: 0.8rem 1rem !important;
  }

  .nav-cta-item {
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .nav-cta {
    width: 100%;
  }

  .site-menu-toggle {
    padding: 0.55rem;
  }
}

@media (max-width: 992px) {
  .navbar .container,
  .navbar.scrolled .container {
    max-width: calc(100% - 1rem);
    border-radius: 18px;
  }

  .site-logo {
    width: 138px;
    height: 46px;
  }

  .navbar.scrolled .site-logo {
    width: 126px;
    height: 40px;
  }

  .site-brand {
    min-width: 260px;
  }

  .brand-slogan {
    font-size: 0.7rem;
    max-width: 112px;
    padding-left: 0.7rem;
  }

  .site-nav-list {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid rgba(6, 24, 74, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(6, 24, 74, 0.12);
    gap: 0.25rem;
    margin-top: 0.9rem;
    padding: 0.75rem;
  }

  .site-nav-list .nav-link {
    padding: 0.8rem 1rem !important;
  }

  .methodology-map {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }

  .methodology-map::before,
  .methodology-map::after {
    display: none;
  }

  .methodology-core,
  .methodology-step,
  .step-discovery,
  .step-requirements,
  .step-design,
  .step-development,
  .step-testing,
  .step-delivery,
  .step-support {
    bottom: auto;
    grid-area: auto;
    left: auto;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: auto;
  }

  .methodology-core {
    grid-column: 1 / -1;
  }

  .methodology-step::after {
    bottom: auto;
    left: auto;
    right: 1rem;
    top: 1rem;
  }

  .nav-cta-item {
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .nav-cta {
    width: 100%;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero .row.min-vh-100 {
    min-height: auto !important;
  }

  .hero-content {
    padding-top: 2rem !important;
  }

  .premium-card.service-card {
    min-height: 350px;
  }

  .tech-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-card-grid,
  .why-grid,
  .contact-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero .container,
  .about-content,
  .skills-grid,
  .contact-content,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-info {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .navbar {
    padding: 0.35rem 0;
  }

  .navbar .container,
  .navbar.scrolled .container {
    padding: 0.35rem 0.65rem;
  }

  .site-menu-toggle {
    border-radius: 10px;
    padding: 0.45rem;
  }

  .site-menu-toggle .navbar-toggler-icon {
    height: 1.25em;
    width: 1.25em;
  }

  .site-logo {
    width: 116px;
    height: 36px;
  }

  .navbar.scrolled .site-logo {
    width: 110px;
    height: 34px;
  }

  .site-brand {
    gap: 0.45rem;
    min-width: 116px;
  }

  .brand-slogan {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 4.85rem 0 2.5rem;
  }

  .hero-bg {
    bottom: auto;
    height: clamp(240px, 36vh, 330px);
  }

  .hero-bg-video {
    height: 100%;
    object-position: center top;
    width: 100%;
  }

  .hero::after {
    bottom: auto;
    height: clamp(240px, 36vh, 330px);
    background:
      linear-gradient(180deg, rgba(6, 24, 74, 0.08) 0%, rgba(6, 24, 74, 0.18) 56%, rgba(6, 24, 74, 0.88) 100%),
      linear-gradient(90deg, rgba(6, 24, 74, 0.18), rgba(6, 24, 74, 0.04), rgba(6, 24, 74, 0.14));
  }

  .hero .container {
    padding-top: clamp(150px, 25vh, 250px);
  }

  .hero-content {
    backdrop-filter: blur(16px);
    background: rgba(6, 24, 74, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    padding: 1.35rem !important;
  }

  .scroll-transition,
  .scroll-transition .container,
  .scroll-transition-content {
    min-height: 190px;
  }

  .scroll-transition-bg {
    background-position: 42% center;
  }

  .display-1 {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .hero-subtitle {
    font-size: 1.08rem !important;
    line-height: 1.45;
  }

  .hero-copy {
    font-size: 0.98rem !important;
    line-height: 1.65;
    margin-bottom: 1.5rem !important;
    padding-right: 0 !important;
  }

  .hero-capabilities {
    margin-bottom: 1.5rem !important;
  }

  .hero-capabilities span {
    border-radius: 12px;
    width: 100%;
  }

  .hero-content .btn {
    width: 100%;
  }

  .hero-proof-item {
    flex: 1 1 100%;
  }

  .hero-proof-strip {
    display: none;
  }

  .hero-system-panel {
    margin: 1rem 0 0;
    max-width: 100%;
    padding: 1rem;
  }

  .hero-panel-header,
  .hero-panel-footer {
    display: none;
  }

  .hero-system-node {
    border-radius: 14px;
    margin-bottom: 0.55rem;
    padding: 0.75rem;
  }

  .hero-system-node:last-of-type {
    margin-bottom: 0;
  }

  .hero-system-node i {
    height: 40px;
    width: 40px;
  }

  .hero-system-node small {
    font-size: 0.76rem;
  }

  .premium-card.service-card {
    min-height: auto;
  }

  .service-card-media {
    height: 180px;
  }

  .services-context {
    align-items: flex-start;
    border-radius: 16px;
    padding: 1rem;
  }

  .services-context i {
    height: 46px;
    width: 46px;
  }

  .services-title {
    font-size: clamp(2rem, 11vw, 2.6rem);
  }

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

  .project-card-grid,
  .why-grid,
  .stats-grid,
  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .project-card figure {
    height: 180px;
  }

  .project-slide img {
    height: 280px;
    min-height: 280px;
  }

  #projectCarousel .carousel-item {
    height: auto;
  }

  #projectCarousel,
  #projectCarousel .carousel-inner,
  #projectCarousel .carousel-item,
  .project-slide,
  .project-slide > [class*="col-"] {
    height: auto;
    min-height: 0;
  }

  .project-slide {
    height: auto;
  }

  .project-media-col,
  .project-content-col {
    min-height: 0 !important;
  }

  .project-content-col {
    padding-bottom: 3rem !important;
  }

  .project-water-image {
    padding: 0.75rem;
  }

  #projectCarousel .carousel-indicators {
    bottom: 0.6rem;
    margin-bottom: 0;
  }

  #projectCarousel .carousel-control-prev,
  #projectCarousel .carousel-control-next {
    align-items: flex-start;
    bottom: auto;
    height: 280px;
    padding-top: 118px;
    top: 0;
  }

  .project-media-col::after {
    background:
      linear-gradient(180deg, transparent 56%, rgba(6, 24, 74, 0.42)),
      linear-gradient(90deg, rgba(6, 24, 74, 0.08), rgba(6, 24, 74, 0.16));
  }

  .methodology-map {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .methodology-core,
  .methodology-step {
    min-height: auto;
  }

  .methodology-step {
    padding: 1rem 1rem 1rem 4.55rem;
  }

  .methodology-step::after {
    right: auto;
    left: 1.55rem;
    top: 1.55rem;
  }

  .carousel .p-5 {
    padding: 2rem !important;
  }

  .contact-email-link {
    word-break: break-word;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

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

  .projects-filter {
    flex-wrap: wrap;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .section {
    padding: var(--spacing-xl) 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .display-1 {
    font-size: clamp(2rem, 11vw, 2.45rem);
  }

  .hero-eyebrow {
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .hero-content {
    padding-top: 1rem !important;
  }

  .hero .container {
    padding-top: clamp(140px, 25vh, 220px);
  }

  .hero-bg,
  .hero::after {
    height: clamp(230px, 34vh, 315px);
  }

  .hero-content {
    border-radius: 16px;
    padding: 1.1rem !important;
  }

  .hero-system-panel {
    display: none;
  }

  .service-card-media {
    height: 165px;
  }

  .methodology-note {
    align-items: flex-start;
    padding: 1rem;
  }

  .methodology-step i {
    height: 44px;
    width: 44px;
  }

  .carousel .p-5 {
    padding: 1.5rem !important;
  }

  .footer-logo {
    width: 210px;
    height: 72px;
  }

  .btn-lg {
    width: 100%;
  }
}
