/* ==========================================================================
   INMETEC - CSS Variables & Theme Configuration
   ========================================================================== */
:root {
  /* Color Palette */
  --primary-deep: #0B192C;     /* Deep dark navy blue */
  --primary-blue: #1E3E62;     /* Medium corporate blue */
  --brand-blue: #0073e6;       /* Exact logo blue */
  --tech-cyan: #00E5FF;        /* Electric cooling cyan */
  --accent-orange: #FF5722;     /* Warm highlight color */
  
  /* Neutral colors */
  --bg-light: #F8FAFC;         /* Metallic light slate */
  --bg-white: #FFFFFF;
  --text-dark: #0F172A;        /* Near black for readability */
  --text-light: #F8FAFC;
  --text-muted: #64748B;       /* Secondary text */
  --border-color: #E2E8F0;
  --border-dark: #334155;
  
  /* UI Elements */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-blue: 0 10px 20px -3px rgba(0, 115, 230, 0.2);
  --shadow-cyan: 0 10px 20px -3px rgba(0, 229, 255, 0.25);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 100px;
  --header-shrink-height: 80px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-shrink-height);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   Layout Containers & Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.dark-section {
  background-color: var(--primary-deep);
  color: var(--text-light);
}

.bg-light {
  background-color: var(--bg-light);
}

/* Section Header Styles */
.section-header {
  margin-bottom: 60px;
  max-width: 700px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-blue);
  display: inline-block;
  margin-bottom: 12px;
}

.dark-section .section-subtitle {
  color: var(--tech-cyan);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary-deep);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.dark-section .section-title {
  color: var(--bg-white);
}

.title-bar {
  width: 60px;
  height: 4px;
  background-color: var(--brand-blue);
  margin-bottom: 24px;
  border-radius: 2px;
}

.section-header.text-center .title-bar {
  margin-left: auto;
  margin-right: auto;
}

.title-bar.bar-cyan {
  background-color: var(--tech-cyan);
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
}

.dark-section .section-desc {
  color: #94A3B8;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  outline: none;
}

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

.btn-primary:hover {
  background-color: #005ec2;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-cyan {
  background-color: var(--tech-cyan);
  color: var(--primary-deep);
  font-weight: 700;
}

.btn-cyan:hover {
  background-color: #00b8cc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--bg-white);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--bg-white);
  transform: translateY(-2px);
}

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

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

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-whatsapp-large {
  background-color: #25D366;
  color: white;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-large:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
}

.main-header.scrolled {
  height: var(--header-shrink-height);
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 220px;
  height: 85px;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  transition: all var(--transition-normal);
}

.main-header.scrolled .logo-link {
  height: 65px;
}

/* Strict Logo Height Limits to meet constraints */
.inmetec-logo-img {
  height: auto;
  max-height: 75px; /* Desk normal: <= 75px */
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* Makes white background transparent */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  transition: all var(--transition-normal);
}

.main-header.scrolled .inmetec-logo-img {
  max-height: 55px; /* Desk scrolled: 55px */
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--primary-deep);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-blue);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header {
  padding: 10px 20px;
  font-size: 14px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--primary-deep);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   Mobile Nav Drawer
   ========================================================================== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background-color: var(--primary-deep);
  z-index: 1002;
  transition: right var(--transition-normal);
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.mobile-nav-close {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 32px;
  cursor: pointer;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: auto;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-light);
  padding: 6px 0;
  display: block;
}

.mobile-nav-link:hover {
  color: var(--tech-cyan);
}

.mobile-nav-footer {
  margin-top: auto;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 120px;
  background-image: url('assets/principal.jpg');
  background-size: cover;
  background-position: center center; /* Centered background image for principal.jpg */
  background-repeat: no-repeat;
  color: var(--bg-white);
  overflow: hidden;
}

/* Overlay gradient for readability - dark on the left, fades out to the right */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(11, 25, 44, 0.95) 0%, rgba(11, 25, 44, 0.75) 45%, rgba(11, 25, 44, 0.1) 80%, rgba(11, 25, 44, 0) 100%);
  z-index: 1;
}

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

.hero-content {
  max-width: 750px;
}

.hero-badge {
  background-color: rgba(0, 229, 255, 0.15);
  color: var(--tech-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* Trust Belt */
.trust-belt {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(11, 25, 44, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  z-index: 2;
  transition: all var(--transition-normal);
}

.trust-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-fast);
  cursor: default;
}

.trust-icon {
  color: var(--tech-cyan);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background-color: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.trust-item:hover .trust-icon {
  transform: scale(1.08);
  background-color: rgba(0, 229, 255, 0.15);
  border-color: var(--tech-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.trust-text h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trust-text p {
  font-size: 12.5px;
  color: #94A3B8;
  line-height: 1.4;
}

/* ==========================================================================
   Servicios Section
   ========================================================================== */
.services-section {
  background-color: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 24px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  color: var(--brand-blue);
  margin-bottom: 20px;
  display: inline-flex;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.clickable-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.card-action-hint {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-blue);
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.clickable-card:hover .card-action-hint {
  color: var(--tech-cyan);
  transform: translateX(4px);
}

/* ==========================================================================
   Sectores Section
   ========================================================================== */
.sectors-section {
  position: relative;
  background: linear-gradient(180deg, var(--primary-deep) 0%, #0d223f 100%);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sector-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.sector-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--tech-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.1);
}

.sector-icon {
  color: var(--tech-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 8px;
}

.sector-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--bg-white);
}

/* ==========================================================================
   Nosotros Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-lead {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-deep);
  margin-bottom: 16px;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.about-subheading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-differentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.about-diff-item {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 20px;
  transition: all var(--transition-fast);
}

.about-diff-item:hover {
  border-color: var(--tech-cyan);
  background-color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.diff-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.diff-title-wrapper h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-deep);
}

.about-diff-item p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Visual frame */
.about-visual {
  position: relative;
}

.about-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image-container:hover .about-image {
  transform: scale(1.05);
}

.about-experience-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: var(--primary-deep);
  color: var(--bg-white);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--tech-cyan);
  z-index: 5;
}

.exp-number {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--tech-cyan);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.exp-text {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #E2E8F0;
}

/* Technical Comparison Grid */
.comparison-block {
  margin-top: 100px;
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
}

.comparison-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 12px;
}

.comparison-desc {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 15px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.comparison-card {
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.comparison-card.bad {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.comparison-card.good {
  background-color: var(--primary-deep);
  color: var(--text-light);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.comp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.comp-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.bad-badge {
  background-color: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}

.good-badge {
  background-color: rgba(0, 229, 255, 0.15);
  color: var(--tech-cyan);
}

.comp-header h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.comparison-card ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.comparison-card.bad li span {
  color: #EF4444;
  font-weight: bold;
}

.comparison-card.good li span {
  color: var(--tech-cyan);
  font-weight: bold;
}

/* ==========================================================================
   Proyectos Section (Portfolio)
   ========================================================================== */
.portfolio-section {
  background-color: var(--bg-light);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  background-color: var(--bg-white);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.portfolio-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.portfolio-img-box {
  position: relative;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background-color: #E2E8F0;
}

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

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

.portfolio-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary-deep);
  color: var(--tech-cyan);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 4px;
}

.portfolio-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-info h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 12px;
  line-height: 1.35;
}

.portfolio-info p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Brands Section
   ========================================================================== */
.brands-section {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 60px 0;
}

.brands-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.brands-slider {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.brand-item {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #CBD5E1;
  letter-spacing: 2px;
  transition: color var(--transition-fast);
}

.brand-item:hover {
  color: var(--primary-blue);
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  color: rgba(0, 229, 255, 0.15);
  margin-bottom: 16px;
  transition: color var(--transition-normal);
}

.process-step:hover .step-num {
  color: var(--tech-cyan);
}

.step-content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 12px;
}

.step-content p {
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.5;
}

/* Connecting Line on Desktop */
.step-connector {
  position: absolute;
  top: 25px;
  left: 80px;
  width: calc(100% - 50px);
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  position: relative;
  padding: 80px 0;
  background-color: var(--primary-deep);
  color: var(--bg-white);
  text-align: center;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(30, 62, 98, 0.6) 0%, rgba(11, 25, 44, 0.95) 100%);
}

.cta-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-container h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}

.cta-container p {
  font-size: 16px;
  color: #E2E8F0;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Contacto Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-lead-text {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-detail-item {
  display: flex;
  gap: 16px;
}

.detail-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(0, 115, 230, 0.08);
  color: var(--brand-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-content h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 4px;
}

.detail-content p {
  font-size: 14.5px;
  color: var(--text-muted);
}

.hover-link:hover {
  color: var(--brand-blue);
}

/* Form Styles */
.form-wrapper {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

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

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

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-deep);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-light);
  color: var(--text-dark);
  outline: none;
  transition: all var(--transition-fast);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-blue);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.15);
}

/* Invalid State */
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: #EF4444;
  background-color: rgba(239, 68, 68, 0.02);
}

.error-msg {
  font-size: 11.5px;
  color: #EF4444;
  display: none;
  margin-top: 2px;
}

.form-group.invalid .error-msg {
  display: block;
}

/* Submit Button & Spinner */
.btn-submit {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--bg-white);
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
}

.btn-submit.loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Message Box */
.form-success-box {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border-radius: 50%;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.form-success-box h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 12px;
}

.form-success-box p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 400px;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
  background-color: var(--primary-deep);
  color: #94A3B8;
  padding: 80px 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-logo-container {
  display: inline-block;
  background-color: var(--bg-white);
  padding: 8px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.inmetec-logo-img-footer {
  max-height: 55px; /* Restrict height */
  width: auto;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

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

.social-links a:hover {
  background-color: var(--tech-cyan);
  color: var(--primary-deep);
  transform: translateY(-2px);
}

.footer-services h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-services li a {
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-services li a:hover {
  color: var(--tech-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 0;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
}

.developed-by {
  color: #64748B;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: transform var(--transition-fast);
}

.whatsapp-floating:hover {
  transform: scale(1.08);
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.7;
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Internal Page: Instalación de Aire Acondicionado
   ========================================================================== */
.internal-hero {
  min-height: 60vh !important;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
}

.equipos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.equipo-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.equipo-img-box {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #E2E8F0;
}

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

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

.equipo-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary-deep);
  color: var(--tech-cyan);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 4px;
}

.equipo-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.equipo-info h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 12px;
  line-height: 1.35;
}

.equipo-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.equipo-recommendation {
  background-color: var(--bg-light);
  border-left: 3px solid var(--brand-blue);
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  margin-top: auto;
}

.equipo-recommendation strong {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--primary-deep);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.equipo-recommendation p {
  font-size: 12.5px;
  color: var(--text-dark);
  line-height: 1.4;
}

.internal-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.internal-benefit-card {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.internal-benefit-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--tech-cyan);
}

.benefit-check {
  color: var(--tech-cyan);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.benefit-content h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 6px;
}

.benefit-content p {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.4;
}

/* ==========================================================================
   Internal Page: Case Study "Edificio Los Cipreses" Styles
   ========================================================================== */

.case-hero-section {
  position: relative;
  background: radial-gradient(circle at center, rgba(30, 62, 98, 0.4) 0%, rgba(11, 25, 44, 1) 100%), var(--primary-deep);
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 90px;
  color: var(--bg-white);
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}

.case-hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.case-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin: 20px 0 24px;
  color: var(--bg-white);
  letter-spacing: -0.01em;
}

.case-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: #94A3B8;
  max-width: 780px;
  margin: 0 auto 36px;
}

.case-hero-actions {
  display: flex;
  justify-content: center;
}

/* Summary layout side-by-side */
.case-summary-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.case-summary-text {
  display: flex;
  flex-direction: column;
}

.case-summary-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.case-summary-img-side {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.case-summary-image-wrapper:hover .case-summary-img-side {
  transform: scale(1.03);
}

/* Ficha Tecnica Grid of Cards */
.case-metadata-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.case-spec-card {
  position: relative;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.case-spec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--tech-cyan);
}

.spec-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--brand-blue);
  transition: background-color var(--transition-fast);
}

.case-spec-card:hover .spec-accent {
  background-color: var(--tech-cyan);
}

.spec-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: rgba(0, 115, 230, 0.08);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.case-spec-card:hover .spec-icon {
  background-color: rgba(0, 229, 255, 0.1);
  color: var(--tech-cyan);
}

.spec-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-info .meta-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.spec-info h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
}

/* Alcance cards grid */
.case-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.scope-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-fast);
}

.scope-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.scope-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(0, 115, 230, 0.1);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.scope-card p {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

/* Tech development card */
.tech-dev-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.tech-dev-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--brand-blue);
}

.tech-dev-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(0, 115, 230, 0.08);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.tech-dev-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.tech-dev-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 24px;
}

.tech-dev-content p {
  margin: 0;
}

/* Gallery Grid */
.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.case-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  aspect-ratio: 4 / 3;
}

.case-gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.case-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.case-gallery-item:hover .case-gallery-img {
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(11, 25, 44, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.open .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--tech-cyan);
}

.lightbox-caption {
  position: absolute;
  bottom: 40px;
  width: 100%;
  text-align: center;
  color: #cbd5e1;
  font-size: 15px;
  font-family: var(--font-body);
  padding: 0 20px;
}

/* Results section layout */
.case-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.benefits-chips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.benefit-chip {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.benefit-chip:hover {
  border-color: #10B981; /* Soft green */
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.benefit-chip .chip-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.1);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.benefit-chip .chip-text {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Laptop / Small Desktop */
@media (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sectors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .step-connector {
    display: none; /* Hide connector lines on non-linear desktop grid */
  }
}

/* Tablet */
@media (max-width: 991px) {
  .section-padding {
    padding: 80px 0;
  }
  .section-title {
    font-size: 32px;
  }
  .hero-title {
    font-size: 38px;
  }
  .trust-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .trust-belt {
    position: relative;
    bottom: 0;
    margin-top: 40px;
    background-color: rgba(11, 25, 44, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image {
    height: 380px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .equipos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Case Study: Tablet */
  .case-summary-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .case-metadata-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .case-scope-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-dev-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .case-results-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Small Tablet / Large Mobile */
@media (max-width: 768px) {
  /* Navigation mobile menu styles */
  .nav-menu,
  .btn-header {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Restrict logo size on mobile */
  .inmetec-logo-img {
    max-height: 70px;
    width: auto;
  }

  .logo-link {
    height: 80px;
    max-width: 180px;
  }

  .main-header {
    height: 95px;
  }

  .main-header.scrolled {
    height: 80px;
  }

  .main-header.scrolled .logo-link {
    height: 65px;
  }

  .main-header.scrolled .inmetec-logo-img {
    max-height: 55px;
  }
  
  .hero-section {
    padding-top: 110px;
    padding-bottom: 60px;
    min-height: auto;
    background-position: 65% center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .hero-bg-overlay {
    background: linear-gradient(180deg, rgba(11, 25, 44, 0.85) 0%, rgba(11, 25, 44, 0.5) 100%);
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .hero-title {
    font-size: clamp(34px, 8vw, 42px);
    line-height: 1.15;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .trust-belt {
    position: relative;
    bottom: 0;
    margin-top: 40px;
    background-color: rgba(11, 25, 44, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 30px 0;
    padding-bottom: 70px; /* Space for the floating WhatsApp button */
  }

  .trust-container {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }

  .trust-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .whatsapp-floating {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
  }

  .whatsapp-floating svg {
    width: 24px;
    height: 24px;
  }

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

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

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

  .process-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .equipos-grid {
    grid-template-columns: 1fr;
  }
  .internal-benefits-grid {
    grid-template-columns: 1fr;
  }
  .about-differentials-grid {
    grid-template-columns: 1fr;
  }

  /* Case Study: Mobile */
  .case-title {
    font-size: 32px;
  }
  .case-subtitle {
    font-size: 15px;
  }
  .case-metadata-cards-grid {
    grid-template-columns: 1fr;
  }
  .case-scope-grid {
    grid-template-columns: 1fr;
  }
  .case-gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tech-dev-card {
    padding: 24px;
  }
}

/* Mobile */
@media (max-width: 479px) {
  .section-title {
    font-size: 28px;
  }
  .hero-title {
    font-size: clamp(34px, 10vw, 42px);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .sectors-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-wrapper {
    padding: 24px;
  }
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
}