/* ==========================================================================
   JOS CONSULTORA INTEGRAL EN HIGIENE, SEGURIDAD Y MEDIO AMBIENTE
   Corporate Design System & Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Core Palette */
  --brand-teal: #00A88E;
  --brand-teal-rgb: 0, 168, 142;
  --brand-teal-light: #00C6A7;
  --brand-teal-dark: #007D69;
  --brand-teal-subtle: #E8F7F4;
  --brand-teal-tint: rgba(0, 168, 142, 0.08);

  --brand-navy: #0B2421;
  --brand-dark: #061715;
  --brand-slate: #15322F;

  --accent-gold: #F2A93B;
  --accent-gold-dark: #C98218;

  /* Neutrals (Light Theme Default) */
  --bg-body: #F7FAF9;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-surface-alt: #F0F5F3;
  --border-color: #E2ECE8;
  --border-focus: #00A88E;

  --text-title: #0D211E;
  --text-body: #334743;
  --text-muted: #647B76;
  --text-inverse: #FFFFFF;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(11, 36, 33, 0.05);
  --shadow-sm: 0 4px 12px rgba(11, 36, 33, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 36, 33, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 36, 33, 0.12);
  --shadow-teal-glow: 0 10px 30px rgba(0, 168, 142, 0.25);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container-max: 1240px;
  --nav-height: 84px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-body: #061513;
  --bg-surface: #0B201D;
  --bg-surface-elevated: #112B27;
  --bg-surface-alt: #0D2622;
  --border-color: #173833;
  --border-focus: #00C6A7;

  --text-title: #F2F7F6;
  --text-body: #C2D5D1;
  --text-muted: #829D98;
  --brand-teal-subtle: rgba(0, 168, 142, 0.15);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Common */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-dark {
  background-color: var(--brand-navy);
  color: #FFFFFF;
}

.section-dark .section-title {
  color: #FFFFFF;
}

.section-dark .section-subtitle {
  color: #B5CCC7;
}

.section-alt {
  background-color: var(--bg-surface-alt);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--brand-teal-subtle);
  color: var(--brand-teal);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid rgba(var(--brand-teal-rgb), 0.2);
}

.badge-tag.badge-light {
  background: rgba(255, 255, 255, 0.12);
  color: #A0F2E3;
  border-color: rgba(255, 255, 255, 0.2);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-title);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Highlight text */
.text-teal {
  color: var(--brand-teal);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(var(--brand-teal-rgb), 0.1);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background: rgba(11, 32, 29, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header.scrolled {
  height: 72px;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

[data-theme="dark"] .site-header.scrolled {
  background: rgba(6, 21, 19, 0.98);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(var(--brand-teal-rgb), 0.3);
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-icon {
  transform: scale(1.05);
}

.brand-logo-icon img,
.brand-logo-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-name span {
  color: var(--brand-teal);
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-teal);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--brand-teal);
  border-color: var(--brand-teal);
  background: var(--brand-teal-tint);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--brand-teal);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(var(--brand-teal-rgb), 0.3);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-header-cta:hover {
  background: var(--brand-teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(var(--brand-teal-rgb), 0.4);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-title);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 5rem;
  background-color: var(--brand-navy);
  color: #FFFFFF;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.28) contrast(1.15);
  transform: scale(1.04);
  animation: heroZoom 24s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(0, 168, 142, 0.22) 0%, transparent 65%),
              linear-gradient(to right, rgba(6, 23, 21, 0.95) 0%, rgba(11, 36, 33, 0.85) 50%, rgba(6, 23, 21, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: rgba(0, 168, 142, 0.2);
  border: 1px solid rgba(0, 210, 180, 0.4);
  border-radius: var(--radius-full);
  color: #6DF2DC;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(8px);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background: #00D2B4;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 210, 180, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 180, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0, 210, 180, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 180, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  color: #FFFFFF;
}

.hero-title span {
  background: linear-gradient(135deg, #24E5C7 0%, #00A88E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: #D3E6E2;
  margin-bottom: 2.2rem;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-teal);
  color: #FFFFFF;
  box-shadow: var(--shadow-teal-glow);
}

.btn-primary:hover {
  background: var(--brand-teal-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 168, 142, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BD5A;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* Hero Stats Strip */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #24E5C7;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: #B5CCC7;
  line-height: 1.35;
}

/* ==========================================================================
   Historia & Origen (Quiénes Somos)
   ========================================================================== */
.history-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.history-text {
  padding-right: 1rem;
}

.history-p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.history-legacy-card {
  background: linear-gradient(135deg, rgba(var(--brand-teal-rgb), 0.08) 0%, rgba(var(--brand-teal-rgb), 0.02) 100%);
  border-left: 4px solid var(--brand-teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.6rem 1.8rem;
  margin: 2rem 0;
  position: relative;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.legacy-badge {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legacy-quote {
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--text-title);
  font-weight: 500;
}

.history-signature {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-teal-dark);
}

[data-theme="dark"] .history-signature {
  color: var(--brand-teal-light);
}

.history-image-wrapper {
  position: relative;
}

.history-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.history-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.history-image-card:hover img {
  transform: scale(1.03);
}

.history-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(11, 36, 33, 0.92);
  backdrop-filter: blur(10px);
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.history-image-badge h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #24E5C7;
}

.history-image-badge p {
  font-size: 0.85rem;
  color: #C2D5D1;
  line-height: 1.35;
}

/* ==========================================================================
   Misión & Visión
   ========================================================================== */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  margin-bottom: 3.5rem;
}

.mv-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--brand-teal-rgb), 0.35);
}

.mv-image-box {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.mv-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.mv-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: var(--brand-teal);
  color: #FFFFFF;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.mv-body {
  padding: 2.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mv-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 1rem;
}

.mv-text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* Values strip */
.values-strip {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.values-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-title);
  margin-bottom: 1.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}

.value-item {
  text-align: center;
  padding: 1rem 0.8rem;
  border-radius: var(--radius-md);
  background: var(--bg-body);
  transition: all var(--transition-fast);
}

.value-item:hover {
  background: var(--brand-teal-tint);
  transform: translateY(-2px);
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-teal-subtle);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.7rem;
  font-size: 1.2rem;
}

.value-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.2rem;
}

.value-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Servicios (3 Core Pillars)
   ========================================================================== */
.services-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.tab-btn:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
  background: var(--brand-teal-tint);
}

.tab-btn.active {
  background: var(--brand-teal);
  color: #FFFFFF;
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-teal-glow);
}

.tab-btn-icon {
  font-size: 1.15rem;
}

/* Search within services */
.service-search-box {
  max-width: 520px;
  margin: 0 auto 3rem;
  position: relative;
}

.service-search-input {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-title);
  font-size: 0.95rem;
  box-shadow: var(--shadow-xs);
  outline: none;
  transition: all var(--transition-fast);
}

.service-search-input:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(var(--brand-teal-rgb), 0.15);
}

.service-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Service Panels */
.service-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

.service-panel.active {
  display: block;
}

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

.service-hero-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.service-banner-img {
  border-radius: var(--radius-md);
  height: 260px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.service-banner-info h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.75rem;
}

.service-banner-info p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.service-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.4rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  gap: 1rem;
  transition: all var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-teal-rgb), 0.4);
  box-shadow: var(--shadow-md);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-teal-subtle);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.service-card-content {
  flex: 1;
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.service-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.service-norm-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  color: var(--brand-teal-dark);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .service-norm-tag {
  color: var(--brand-teal-light);
}

/* ==========================================================================
   Compliance Assistant / Calculador Interactivo
   ========================================================================== */
.compliance-section {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-dark) 100%);
  color: #FFFFFF;
}

.compliance-container {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.compliance-step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #24E5C7;
  margin-bottom: 1rem;
}

.sector-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.sector-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.2rem 0.8rem;
  text-align: center;
  cursor: pointer;
  color: #E2ECE8;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.sector-btn:hover {
  background: rgba(0, 168, 142, 0.15);
  border-color: #00D2B4;
}

.sector-btn.selected {
  background: var(--brand-teal);
  border-color: var(--brand-teal-light);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(0, 168, 142, 0.4);
}

.sector-btn-icon {
  font-size: 1.6rem;
}

.sector-btn-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.compliance-results-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  border: 1px solid rgba(0, 210, 180, 0.25);
  margin-top: 1.5rem;
}

.compliance-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.compliance-results-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
}

.req-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.req-check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: #E0EFEA;
}

.req-check-icon {
  color: #24E5C7;
  font-size: 1.1rem;
}

/* ==========================================================================
   Galería de Obras & Proyectos Reales
   ========================================================================== */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--brand-teal);
  color: #FFFFFF;
  border-color: var(--brand-teal);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--brand-teal-rgb), 0.4);
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.08);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 23, 21, 0.92) 0%, rgba(6, 23, 21, 0.3) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #FFFFFF;
  opacity: 0.95;
  transition: opacity var(--transition-fast);
}

.gallery-card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #24E5C7;
  margin-bottom: 0.3rem;
}

.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.gallery-card-loc {
  font-size: 0.8rem;
  color: #B5CCC7;
}

.gallery-card-zoom-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-fast);
}

.gallery-card:hover .gallery-card-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   Brochure Download Banner
   ========================================================================== */
.brochure-banner {
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}

.brochure-banner-bg {
  position: absolute;
  right: -50px;
  bottom: -50px;
  opacity: 0.12;
  width: 380px;
  height: 380px;
  pointer-events: none;
}

.brochure-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.brochure-banner-text {
  max-width: 650px;
}

.brochure-banner-text h3 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.brochure-banner-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.95;
}

.brochure-banner-btn {
  background: #FFFFFF;
  color: var(--brand-teal-dark);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.brochure-banner-btn:hover {
  background: #F0FAF7;
  color: var(--brand-teal);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Contacto & Ubicación
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.contact-info-card:hover {
  border-color: var(--brand-teal);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-sm);
  background: var(--brand-teal-subtle);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.contact-info-content h4 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.2rem;
}

.contact-info-val {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.4;
  word-break: break-word;
}

.contact-info-card a.contact-info-val:hover {
  color: var(--brand-teal);
}

/* Map placeholder / Card */
.contact-map-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-xs);
}

.contact-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.contact-map-header h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
}

.map-embed-wrapper {
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-title);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--brand-teal);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(var(--brand-teal-rgb), 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--brand-dark);
  color: #B2C9C4;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
  color: #8CA9A4;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.3rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: #8CA9A4;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--brand-teal-light);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6E8883;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Modal Lightbox
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 15, 14, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  max-width: 900px;
  width: 100%;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-dialog {
  transform: scale(1);
}

.lightbox-img-box {
  width: 100%;
  max-height: 540px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-box img {
  max-width: 100%;
  max-height: 540px;
  object-fit: contain;
}

.lightbox-caption {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-title);
}

.lightbox-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: var(--bg-body);
  color: var(--text-title);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  background: var(--brand-navy);
  color: #FFFFFF;
  padding: 1rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--brand-teal);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Floating WhatsApp Button */
.whatsapp-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  font-size: 1.8rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.whatsapp-floating:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #FFFFFF;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .history-grid { grid-template-columns: 1fr; }
  .history-image-card img { height: 380px; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .service-hero-banner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 72px; }
  .section { padding: 4rem 0; }
  .hero-title { font-size: 2.2rem; }
  .hero-lead { font-size: 1.05rem; }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-options-grid { grid-template-columns: repeat(2, 1fr); }
  .req-checklist { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .service-items-grid { grid-template-columns: 1fr; }
  .brochure-banner { padding: 2.2rem; }
  .brochure-banner-text h3 { font-size: 1.6rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.8rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-toggle {
    display: block;
  }
}
