/* ---------- CSS Variables ---------- */
:root {
  --primary: #F47B20;
  --primary-dark: #d96a1a;
  --primary-light: #f6994a;
  --bg-dark: #121820;
  --bg-medium: #1A2332;
  --bg-card: #1f2a3a;
  --text-light: #e8edf2;
  --text-muted: #a0b0c0;
  --border-color: #2a3748;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --transition: 0.25s ease-in-out;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-height: 72px;
  --topbar-height: 44px;
  --image-bg: #000000;
}

/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background-color: #0b1017;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
}
.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 12px;
  padding: 0 16px;
  width: 100%;
}
.top-bar .license-badge,
.top-bar .location-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(244, 123, 32, 0.10);
  padding: 2px 10px;
  border-radius: 30px;
  border-left: 2px solid var(--primary);
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.2px;
  font-size: 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.top-bar .license-badge i,
.top-bar .location-badge i {
  color: var(--primary);
  font-size: 0.65rem;
}
.top-bar .location-badge {
  background: transparent;
  border-left: none;
  padding: 2px 4px;
  font-weight: 400;
  color: var(--text-muted);
}
.hide-mobile {
  display: inline-flex !important;
}
@media (max-width: 768px) {
  .top-bar { padding: 4px 0; min-height: auto; font-size: 0.65rem; }
  .top-bar .container { gap: 3px 8px; padding: 0 10px; justify-content: center; }
  .top-bar .license-badge,
  .top-bar .location-badge { font-size: 0.55rem; padding: 1px 6px; border-left-width: 1.5px; gap: 2px; }
  .top-bar .license-badge i,
  .top-bar .location-badge i { font-size: 0.5rem; }
}
@media (max-width: 480px) {
  .top-bar { padding: 3px 0; min-height: auto; font-size: 0.55rem; }
  .top-bar .container { gap: 2px 6px; padding: 0 8px; }
  .top-bar .license-badge,
  .top-bar .location-badge { font-size: 0.48rem; padding: 1px 4px; border-left-width: 1px; }
  .top-bar .license-badge i,
  .top-bar .location-badge i { font-size: 0.45rem; }
}
@media (max-width: 380px) {
  .top-bar .container { gap: 2px 4px; padding: 0 6px; }
  .top-bar .license-badge,
  .top-bar .location-badge { font-size: 0.42rem; padding: 1px 3px; }
}

/* ---------- HEADER Y MENÚ - RESPONSIVE MEJORADO ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18, 24, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 55, 72, 0.5);
  transition: background var(--transition), box-shadow var(--transition);
  min-height: var(--header-height);
}
.header.scrolled {
  background: rgba(18, 24, 32, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: var(--header-height);
  padding: 8px 24px;
  gap: 8px;
}
.logo-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-light);
}
.logo-img {
  height: 38px;
  width: auto;
  border-radius: 6px;
  background-color: transparent;
  padding: 2px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
[data-theme="dark"] .logo-img {
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .logo-img {
  background-color: transparent;
  box-shadow: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text span:first-child {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: #8FA3BE;
  margin-top: -2px;
}
.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}
.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li {
  display: inline-block;
}
.nav-menu a {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  text-decoration: none;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.nav-menu a:hover {
  color: var(--text-light);
}
.nav-menu a:hover::after {
  width: 100%;
}
.nav-menu a[aria-current="page"] {
  color: var(--text-light);
}
.nav-menu a[aria-current="page"]::after {
  width: 100%;
}
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 4px !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.theme-btn,
.lang-btn,
.qr-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.theme-btn:hover,
.lang-btn:hover,
.qr-btn:hover {
  border-color: var(--primary);
  background: rgba(244, 123, 32, 0.08);
}
.lang-btn .lang-current {
  font-size: 0.6rem;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}
.lang-btn i {
  font-size: 0.65rem;
  opacity: 0.6;
}
.lang-wrapper {
  position: relative;
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 130px;
  box-shadow: var(--shadow);
  z-index: 1000;
  overflow: hidden;
}
.lang-dropdown.show {
  display: block;
  animation: fadeIn 0.25s ease;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-light);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.lang-option .lang-flag {
  font-size: 1rem;
}
.lang-option:hover {
  background: rgba(244, 123, 32, 0.1);
  color: var(--primary);
}
.lang-option.active {
  background: rgba(244, 123, 32, 0.12);
  color: var(--primary);
  font-weight: 600;
}
.qr-wrapper {
  position: relative;
}
.qr-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  z-index: 1000;
  min-width: 180px;
  max-width: 230px;
}
.qr-popup.show {
  display: block;
  animation: fadeIn 0.3s ease;
}
.qr-popup-content {
  text-align: center;
  position: relative;
}
.qr-popup-content #qrCodeContainer canvas {
  border-radius: 8px;
  background: white;
  padding: 6px;
  max-width: 100%;
  height: auto !important;
}
.qr-popup-content .qr-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 4px 0 8px;
}
.qr-download-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.qr-download-btn:hover {
  background: var(--primary-dark);
}
.qr-close-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  transition: var(--transition);
}
.qr-close-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-light);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
@media (max-width: 992px) {
  .header .container { padding: 8px 16px; min-height: 60px; }
  .logo-img { height: 32px; }
  .logo-text span:first-child { font-size: 0.95rem; }
  .brand-subtitle { font-size: 7px; }
  .nav-menu { display: none; flex-direction: column; width: 100%; background: var(--bg-medium); padding: 16px 20px; border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow); order: 3; flex: 0 0 100%; }
  .nav-menu.open { display: flex; }
  .nav-menu ul { flex-direction: column; width: 100%; gap: 12px; }
  .nav-menu li { width: 100%; }
  .nav-menu a { font-size: 0.9rem; padding: 8px 0; display: block; width: 100%; }
  .nav-cta { text-align: center; padding: 10px !important; width: 100%; }
  .hamburger { display: flex; }
  .header .container { flex-wrap: wrap; }
  .logo-wrapper { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .nav-menu { order: 3; }
}
@media (max-width: 480px) {
  .header .container { padding: 6px 12px; min-height: 52px; }
  .logo-img { height: 28px; }
  .logo-text span:first-child { font-size: 0.8rem; }
  .brand-subtitle { font-size: 6px; }
  .theme-btn, .lang-btn, .qr-btn { width: 32px; height: 32px; font-size: 0.75rem; }
  .lang-btn .lang-current { font-size: 0.5rem; }
  .hamburger span { width: 20px; height: 2px; }
  .nav-menu { padding: 12px 14px; }
  .nav-menu a { font-size: 0.8rem; padding: 6px 0; }
  .nav-cta { padding: 8px !important; font-size: 0.8rem !important; }
}
@media (max-width: 380px) {
  .header .container { padding: 4px 8px; min-height: 46px; }
  .logo-img { height: 24px; }
  .logo-text span:first-child { font-size: 0.7rem; }
  .theme-btn, .lang-btn, .qr-btn { width: 28px; height: 28px; font-size: 0.65rem; }
  .hamburger span { width: 18px; height: 1.8px; }
}
@media (max-width: 768px) and (orientation: landscape) {
  .header .container { min-height: 48px; padding: 4px 16px; }
  .logo-img { height: 26px; }
  .nav-menu { max-height: calc(100vh - 60px); overflow-y: auto; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 60px;
  background: linear-gradient(145deg, var(--bg-dark) 0%, #0f161f 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244, 123, 32, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 2;
}
.hero-content {
  flex: 1 1 55%;
  min-width: 260px;
}
.hero-content .badge {
  display: inline-block;
  background: rgba(244, 123, 32, 0.12);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  border: 1px solid rgba(244, 123, 32, 0.20);
}
.hero-content h1 {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-content h1 .highlight {
  color: var(--primary);
}
.hero-content p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 28px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(244, 123, 32, 0.30);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(244, 123, 32, 0.40);
}
.btn-primary i {
  font-size: 0.85rem;
}
.btn-primary.ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
  color: #fff;
}
.btn-primary.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}
.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-meta div {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
  color: #8FA3BE;
  text-transform: uppercase;
}
.hero-meta i {
  margin-right: 6px;
  font-size: 12px;
}
.hero-meta b {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-top: 4px;
  text-transform: none;
}
.job-ticket {
  flex: 1 1 35%;
  min-width: 240px;
  background: var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-left: auto;
}
.job-ticket:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.job-ticket .ticket-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.job-ticket .ticket-header i {
  font-size: 1.4rem;
  color: var(--primary);
}
.job-ticket .ticket-header h3 {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
}
.ticket-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 6px 0;
}
.ticket-item i {
  color: var(--primary);
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
  margin-top: 2px;
}
.ticket-item .ticket-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-light);
}
.ticket-item .ticket-value {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.ticket-item .ticket-value strong {
  color: var(--text-light);
  font-weight: 600;
}
.ticket-badge {
  display: inline-block;
  background: rgba(244, 123, 32, 0.12);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-left: 6px;
}
.trust {
  background: var(--bg-dark);
  color: #fff;
  padding: 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.trust .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.trust-item {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--border-color);
}
.trust-item:last-child {
  border-right: 0;
  padding-right: 0;
}
.trust-item:not(:first-child) {
  padding-left: 24px;
}
.trust-item .trust-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.03em;
}
.trust-item .trust-text {
  font-size: 12.5px;
  color: #9DAEC4;
  margin-top: 6px;
  line-height: 1.5;
}
.trust-item .trust-text i {
  color: var(--primary);
}
.band {
  padding: clamp(40px, 6vw, 80px) 0;
}
.band.dark {
  background: var(--bg-medium);
  color: #E4EAF2;
}
.band .eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.band .eyebrow i {
  font-size: 12px;
}
.band .eyebrow::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #D3D2CD;
  max-width: 70px;
}
.band .eyebrow.on-dark {
  color: var(--primary);
}
.band .eyebrow.on-dark::after {
  background: rgba(255, 255, 255, 0.18);
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  text-align: left;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.lede {
  font-size: clamp(15px, 1.5vw, 17.5px);
  color: var(--text-muted);
  max-width: 62ch;
}
.band.dark .lede {
  color: #A9BAD1;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px 22px;
  border: 0;
  cursor: pointer;
  border-radius: 4px;
  font-family: 'Inter';
  transition: var(--transition);
}
.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
}
.split.wide-left {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}
.split.wide-left > * {
  display: flex;
  flex-direction: column;
}
.slot {
  position: relative;
  background: repeating-linear-gradient(-45deg, #DEDDD8 0 1px, transparent 1px 12px), #E7E6E2;
  border: 1px dashed #B9B8B2;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  min-height: 200px;
}
.slot .lab {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #8A8A84;
  text-transform: uppercase;
  line-height: 1.9;
}
.slot .lab i {
  margin-bottom: 6px;
}
.slot .lab b {
  display: block;
  color: #10284A;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 4px;
}
.slot.tall {
  min-height: 280px;
}
.service-image-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-dark);
  border-radius: 4px;
}
.modal-images img {
  flex: 1 1 100px;
  max-width: 180px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  object-fit: contain;
  aspect-ratio: 16/10;
  background: var(--bg-dark);
  width: 100%;
  height: auto;
}
.detail-placeholder {
  border-radius: 8px;
  background: var(--bg-dark);
  border: 2px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
  width: 100%;
  min-height: 120px;
}
.detail-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 4px;
  display: block;
}
.slider-images {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  overflow: hidden;
}
.slider-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  background: transparent;
}
.slider-after {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.05s linear;
}
.slot.tall {
  min-height: 280px;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.slot.tall img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-dark);
}
.image-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-dark);
}
.image-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-dark);
}
.hero-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  background: var(--bg-dark);
  border-radius: 8px;
}
[data-theme="light"] .service-image-wrapper {
  background: #1a1a2e;
}
[data-theme="light"] .detail-placeholder {
  background: #1a1a2e;
}
[data-theme="light"] .slider-images {
  background: #1a1a2e;
}
[data-theme="light"] .slot.tall {
  background: #1a1a2e;
}
[data-theme="light"] .image-gallery-item {
  background: #1a1a2e;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 18px;
  border: 2px solid var(--border-color);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  text-align: center;
  position: relative;
}
.service-card::after {
  content: "↗";
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.1rem;
  color: var(--primary);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover::after {
  opacity: 1;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.service-card i {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.service-card h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 36px;
}
.step {
  padding: 24px 20px 24px 0;
  border-top: 3px solid rgba(255, 255, 255, 0.14);
  position: relative;
}
.step:not(:first-child) {
  padding-left: 20px;
}
.step.on {
  border-top-color: var(--primary);
}
.step .s {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 10px;
}
.step .s i {
  margin-right: 6px;
}
.step h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.step p {
  font-size: 13px;
  color: #9DAEC4;
  line-height: 1.6;
}
.cta {
  background: var(--primary);
  color: #fff;
  padding: clamp(40px, 6vw, 64px) 0;
}
.cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta h2 {
  font-size: clamp(24px, 3.8vw, 40px);
  font-weight: 900;
  max-width: 16ch;
  letter-spacing: -0.03em;
}
.cta p {
  margin-top: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 44ch;
}
.cta .btn {
  background: #1a1a1a;
}
.cta .btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
}
.footer {
  background: var(--bg-dark);
  color: #8FA3BE;
  padding: clamp(36px, 5vw, 56px) 0 0;
  border-top: 1px solid var(--border-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 36px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-brand .footer-logo .logo-img {
  height: 36px;
}
.footer-brand .footer-logo .logo-text {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.01em;
}
.footer-brand .footer-logo .logo-text small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #8FA3BE;
}
.footer-brand p {
  font-size: 13px;
  max-width: 34ch;
  margin-top: 10px;
  line-height: 1.65;
}
.footer-licenses {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: #fff;
  margin-top: 14px;
  letter-spacing: 0.06em;
  line-height: 1.9;
}
.footer-licenses i {
  color: var(--primary);
  width: 16px;
}
.footer h5 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}
.footer h5 i {
  color: var(--primary);
  margin-right: 6px;
}
.footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}
.footer li button,
.footer li a {
  background: none;
  border: 0;
  color: #8391a5;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: var(--transition);
}
.footer li button i,
.footer li a i {
  font-size: 9px;
  margin-right: 6px;
  color: var(--primary);
  opacity: 0.5;
}
.footer li button:hover,
.footer li a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 16px 0;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom .mono i {
  color: var(--primary);
  margin: 0 4px;
}
.slider-container {
  max-width: 800px;
  height: 500px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
  background: var(--image-bg, #000000);
  position: relative;
}
.slider-images {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--image-bg, #000000);
}
.slider-after {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.05s linear;
}
.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.slider-line {
  width: 2px;
  height: 100%;
  background: #fff;
  opacity: 0.8;
}
.slider-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 0 4px rgba(244, 123, 32, 0.3);
  transition: box-shadow 0.2s;
  pointer-events: none;
}
.slider-circle:hover {
  box-shadow: 0 0 0 8px rgba(244, 123, 32, 0.4);
}
.ba-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.05em;
  text-align: center;
}
.services-list {
  margin-top: 24px;
}
.service-item {
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: default;
}
.service-item.active {
  background: rgba(244, 123, 32, 0.04);
}
.service-header {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}
.service-header:hover {
  background: rgba(244, 123, 32, 0.06);
}
.service-header .service-code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.08em;
  font-weight: 500;
}
.service-header .service-code i {
  margin-right: 4px;
}
.service-header .service-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-light);
}
.service-header .service-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.service-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.service-header:hover .service-toggle {
  border-color: var(--primary);
  color: var(--primary);
}
.service-toggle .fa-chevron-down {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 11px;
  color: var(--primary);
}
.service-toggle .toggle-label {
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.service-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0 12px;
}
.service-images.open {
  max-height: 800px;
  opacity: 1;
  padding: 14px 12px 20px;
  overflow-y: auto;
}
.service-images.open.has-many {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 12px;
  padding: 14px 12px 20px;
  max-height: 280px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.service-images.open.has-many .service-image-wrapper {
  flex: 0 0 200px;
  aspect-ratio: 16/10;
  min-width: 200px;
}
.service-images.open.has-many::-webkit-scrollbar {
  height: 6px;
}
.service-images.open.has-many::-webkit-scrollbar-track {
  background: var(--bg-dark);
  border-radius: 3px;
}
.service-images.open.has-many::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}
@media (max-width: 480px) {
  .service-images { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
  .service-images.open.has-many .service-image-wrapper { flex: 0 0 140px; min-width: 140px; }
  .service-images.open.has-many { max-height: 200px; }
}
.service-image-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}
.service-image-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}
.service-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.02) 0 2px, transparent 2px 8px), var(--bg-medium);
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 10px;
}
.service-image-placeholder i {
  font-size: 24px;
  color: var(--primary);
  opacity: 0.5;
  margin-bottom: 6px;
}
.service-image-placeholder span {
  word-break: break-word;
  max-width: 90%;
}
.no-images {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 16px 0;
}
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox-overlay.active {
  display: flex;
  animation: lightboxFadeIn 0.3s ease;
}
@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-content {
  position: relative;
  max-width: 92%;
  max-height: 92%;
  cursor: default;
  animation: lightboxZoomIn 0.35s cubic-bezier(0.2, 0.8, 0.4, 1);
}
@keyframes lightboxZoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
  display: block;
}
.lightbox-close {
  position: absolute;
  top: -48px;
  right: -48px;
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.lightbox-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 4px 24px rgba(244, 123, 32, 0.4);
}
.lightbox-close:active {
  transform: rotate(90deg) scale(0.95);
}
#lightboxCaption {
  color: #ffffff;
  text-align: center;
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 20px;
  border-radius: 30px;
  display: inline-block;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 90%;
}
.project-selector {
  margin-bottom: 28px;
}
.styled-select {
  width: 100%;
  max-width: 400px;
  padding: 14px 20px;
  background: var(--bg-card);
  color: var(--text-light);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 16px;
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23F47B20' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
  padding-right: 48px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.styled-select:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(244, 123, 32, 0.15);
}
.styled-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(244, 123, 32, 0.2);
}
.styled-select option {
  background: var(--bg-card);
  color: var(--text-light);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 400;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}
.styled-select option:hover,
.styled-select option:checked {
  background: rgba(244, 123, 32, 0.15);
  color: var(--primary);
}
.styled-select option:checked {
  background: rgba(244, 123, 32, 0.2);
  font-weight: 600;
}
@media (max-width: 480px) {
  .styled-select { max-width: 100%; padding: 12px 16px; font-size: 14px; background-position: right 14px center; padding-right: 40px; }
}
.project-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.project-list-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}
.project-list-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.project-list-item.active {
  border-color: var(--primary);
  background: rgba(244, 123, 32, 0.06);
}
.project-list-item .project-list-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(244, 123, 32, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}
.project-list-item .project-list-info {
  min-width: 0;
}
.project-list-item .project-list-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px 0;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-list-item .project-list-category {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-block;
  margin-right: 8px;
}
.project-list-item .project-list-location {
  font-size: 11px;
  color: var(--text-muted);
}
.project-list-item .project-list-location i {
  margin-right: 4px;
  font-size: 9px;
}
.project-list-item .project-list-arrow {
  color: var(--text-muted);
  transition: all 0.3s ease;
  font-size: 0.8rem;
}
.project-list-item.active .project-list-arrow {
  color: var(--primary);
  transform: translateX(4px);
}
.project-detail {
  margin-top: 28px;
}
.project-detail-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.project-detail-content.in {
  opacity: 1;
  transform: none;
}
.project-detail-header {
  margin-bottom: 14px;
}
.project-detail-category {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.project-detail-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
  color: var(--text-light);
}
.project-detail-description {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: 16px;
}
.project-detail-specs {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-item .spec-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.spec-item .spec-label i {
  margin-right: 4px;
  color: var(--primary);
}
.spec-item .spec-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
}
.project-detail-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 6px;
}
.detail-before,
.detail-after {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.detail-image-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.detail-image-label i {
  color: var(--primary);
}
.detail-placeholder {
  aspect-ratio: 16/10;
  border-radius: 8px;
  background: var(--bg-dark);
  border: 2px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-align: center;
  padding: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}
.detail-placeholder:hover {
  border-color: var(--primary);
  background: rgba(244, 123, 32, 0.04);
}
.detail-placeholder i {
  font-size: 28px;
  color: var(--primary);
  opacity: 0.4;
  margin-bottom: 6px;
}
.detail-before .detail-placeholder {
  background: #1a1a2e;
  color: #8a9ab0;
  border-color: #3a4a5a;
}
.detail-after .detail-placeholder {
  background: #1a1a2e;
  color: #8a9ab0;
  border-color: #3a4a5a;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 36px;
  background: var(--border-color);
}
.card {
  background: var(--bg-medium);
  padding: 28px 24px;
}
.band.dark .card {
  background: var(--bg-card);
}
.card .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 12px;
}
.card .num i {
  margin-right: 6px;
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.band.dark .card h3 {
  color: #fff;
}
.card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.62;
}
.band.dark .card p {
  color: #9DAEC4;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  background: var(--bg-card);
  overflow-x: auto;
  display: block;
}
.tbl thead,
.tbl tbody {
  display: table;
  width: 100%;
  table-layout: fixed;
}
.tbl th {
  background: var(--bg-dark);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.tbl th i {
  margin-right: 6px;
}
.tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13.5px;
  vertical-align: top;
}
.tbl tr:last-child td {
  border-bottom: 0;
}
.tbl td:first-child {
  font-weight: 600;
}
.tbl .mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  background: #E4F3E8;
  color: #1F6B38;
  padding: 4px 10px;
  text-transform: uppercase;
  border-radius: 4px;
}
.form {
  background: var(--bg-card);
  padding: clamp(22px, 3.5vw, 34px);
  border-top: 5px solid var(--primary);
}
.form-message {
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
  display: none;
  font-weight: 500;
  font-size: 14px;
}
.form-message.success {
  display: block;
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  border: 1px solid #2ecc71;
}
.form-message.error {
  display: block;
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid #e74c3c;
}
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field label i {
  color: var(--primary);
  font-size: 11px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: 'Inter';
  font-size: 14px;
  color: var(--text-light);
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 11px 14px;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a0b0c0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-medium);
  box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.14);
}
.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
}
.contact-info-wrapper .cinfo {
  flex: 0 1 auto;
  display: grid;
  gap: 2px;
  background: var(--border-color);
}
.contact-info-wrapper .cinfo a,
.contact-info-wrapper .cinfo div {
  background: var(--bg-medium);
  color: var(--text-light);
  padding: 12px 16px;
  display: block;
  transition: var(--transition);
}
.contact-info-wrapper .cinfo a:hover {
  background: var(--bg-card);
}
.contact-info-wrapper .cinfo .k {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.contact-info-wrapper .cinfo .k i {
  margin-right: 5px;
  font-size: 10px;
}
.contact-info-wrapper .cinfo .v {
  font-size: 14px;
  font-weight: 600;
  font-family: 'Archivo', sans-serif;
  letter-spacing: -0.01em;
}
.contact-info-wrapper .cinfo .sub {
  font-size: 12px;
  color: #9DAEC4;
  margin-top: 2px;
}
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  padding: 16px;
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: var(--bg-medium);
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px 22px;
  position: relative;
  box-shadow: var(--shadow);
  animation: slideUp 0.4s ease;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.modal-close:hover {
  color: var(--text-light);
}
.modal-content h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.modal-content .modal-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.modal-content .modal-images img {
  flex: 1 1 100px;
  max-width: 180px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  object-fit: contain;
  aspect-ratio: 16/10;
  background: var(--bg-dark);
}
.modal-content .modal-license {
  display: inline-block;
  background: rgba(244, 123, 32, 0.12);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 10px;
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  z-index: 100;
  transition: var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}
.whatsapp-tooltip {
  display: none;
  position: absolute;
  right: calc(100% + 12px);
  background: var(--bg-dark);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  font-weight: 500;
}
.whatsapp-float:hover .whatsapp-tooltip {
  display: block;
}
.page {
  display: none;
  animation: fade 0.35s ease;
}
.page.is-active {
  display: block;
}
@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.rv.in {
  opacity: 1;
  transform: none;
}
@media (max-width: 992px) {
  .hero .container { flex-direction: column; align-items: stretch; }
  .job-ticket { margin-left: 0; width: 100%; }
  .trust .container { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--border-color); padding: 18px 0 !important; }
  .trust-item:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { padding-left: 0 !important; padding-right: 0; }
  .step:not(:first-child) { padding-left: 0; padding-top: 16px; }
  .split, .split.wide-left { grid-template-columns: 1fr; }
  .cta .container { flex-direction: column; text-align: center; }
  .cta .btn-row { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project-list { grid-template-columns: 1fr; }
  .project-detail-images { grid-template-columns: 1fr; }
  .contact-info-wrapper .cinfo { grid-template-columns: 1fr 1fr; }
  .service-header { grid-template-columns: 1fr; gap: 6px; padding: 12px 10px; }
  .service-images { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .steps, .frow, .service-images, .grid3 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .top-bar .container { font-size: 0.65rem; gap: 4px 10px; }
  .top-bar .license-badge { font-size: 0.6rem; padding: 1px 8px; }
  .hero { padding: 28px 0 44px; }
  .btn-primary { width: 100%; justify-content: center; font-size: 0.85rem; padding: 10px 20px; }
  .hero-meta { gap: 12px; }
  .hero-meta b { font-size: 18px; }
  .job-ticket { padding: 16px 14px; }
  .modal { padding: 16px 14px; }
  .modal-content .modal-images img { flex: 1 1 100%; max-width: 100%; }
  .whatsapp-float { width: 48px; height: 48px; font-size: 1.4rem; bottom: 14px; right: 14px; }
  .qr-popup { right: -40px; min-width: 160px; max-width: 200px; padding: 12px; }
  .lang-dropdown { right: -20px; min-width: 120px; }
  .contact-info-wrapper .cinfo { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .project-list-item { grid-template-columns: 32px 1fr auto; padding: 10px 12px; gap: 10px; }
  .project-list-item .project-list-info h4 { font-size: 13px; }
  .project-detail-header h3 { font-size: 19px; }
  .project-detail-specs { gap: 16px; }
  .tbl { font-size: 12px; }
  .tbl th, .tbl td { padding: 10px 12px; font-size: 12px; }
  .tbl .mono { font-size: 11px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .top-bar .container { gap: 3px 6px; }
  .top-bar .license-badge { font-size: 0.55rem; padding: 1px 6px; gap: 2px; }
  .top-bar .license-badge i { font-size: 0.55rem; }
  .logo { font-size: 1rem; gap: 6px; }
  .logo .brand-subtitle { font-size: 7px; }
  .logo-img { height: 32px; }
  .theme-btn, .lang-btn, .qr-btn { width: 32px; height: 32px; font-size: 0.75rem; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 0.9rem; }
  .hero-meta b { font-size: 16px; }
  .job-ticket .ticket-header h3 { font-size: 0.95rem; }
  .ticket-item .ticket-value { font-size: 0.75rem; }
  .section-title { font-size: 1.6rem; }
  .band { padding: 28px 0 36px; }
  .service-card { padding: 16px 14px; }
  .service-card i { font-size: 2rem; }
  .service-card h3 { font-size: 1rem; }
  .service-header .service-info h4 { font-size: 14px; }
  .service-toggle { padding: 2px 8px; font-size: 8px; }
  .service-images { gap: 10px; }
  .service-images.open { padding: 10px 10px 16px; }
  .card { padding: 20px 16px; }
  .card h3 { font-size: 15px; }
  .btn { font-size: 12px; padding: 10px 18px; }
  .cta h2 { font-size: 22px; }
  .slider-circle { width: 32px; height: 32px; font-size: 0.8rem; }
  .whatsapp-tooltip { display: none !important; }
  .qr-popup-content #qrCodeContainer canvas { width: 120px !important; height: 120px !important; }
}

/* ---------- MODO CLARO ---------- */
[data-theme="light"] {
  --bg-dark: #f5f6f8;
  --bg-medium: #e8eaed;
  --bg-card: #ffffff;
  --text-light: #1a1a1a;
  --text-muted: #3a3a3a;
  --border-color: #d1d5db;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --image-bg: #ffffff; /* Fondo claro para imágenes y slider */
}

[data-theme="light"] .top-bar { background: #e8eaed; border-bottom: 1px solid var(--border-color); color: #4a4a4a; }
[data-theme="light"] .top-bar .license-badge { background: rgba(244, 123, 32, 0.08); color: #1a1a1a; }
[data-theme="light"] .header { background: rgba(245, 246, 248, 0.92); border-bottom: 1px solid var(--border-color); }
[data-theme="light"] .step h4 { color: #1a1a1a; }
[data-theme="light"] .step p { color: #4a4a4a; }
[data-theme="light"] .logo { color: #1a1a1a; }
[data-theme="light"] .logo .brand-subtitle { color: #6b7280; }
[data-theme="light"] .nav-menu a { color: #4a4a4a; }
[data-theme="light"] .nav-menu a:hover { color: #1a1a1a; }
[data-theme="light"] .nav-menu a[aria-current="page"] { color: #1a1a1a; }
[data-theme="light"] .theme-btn, [data-theme="light"] .lang-btn, [data-theme="light"] .qr-btn { border-color: var(--border-color); color: #4a4a4a; }
[data-theme="light"] .theme-btn:hover, [data-theme="light"] .lang-btn:hover, [data-theme="light"] .qr-btn:hover { border-color: var(--primary); background: rgba(244, 123, 32, 0.08); }
[data-theme="light"] .lang-dropdown, [data-theme="light"] .qr-popup { background: #ffffff; border: 1px solid var(--border-color); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); }
[data-theme="light"] .lang-option { color: #1a1a1a; }
[data-theme="light"] .lang-option:hover { background: rgba(244, 123, 32, 0.08); color: var(--primary); }
[data-theme="light"] .lang-option.active { background: rgba(244, 123, 32, 0.12); color: var(--primary); }
[data-theme="light"] .hero { background: linear-gradient(145deg, #f5f6f8 0%, #e8eaed 100%); }
[data-theme="light"] .hero h1 { color: #1a1a1a; }
[data-theme="light"] .hero h1 .highlight { color: var(--primary); }
[data-theme="light"] .hero p { color: #4a4a4a; }
[data-theme="light"] .hero-meta { border-top-color: rgba(0, 0, 0, 0.1); }
[data-theme="light"] .hero-meta div { color: #6b7280; }
[data-theme="light"] .hero-meta b { color: #1a1a1a; }
[data-theme="light"] .btn-primary.ghost { border-color: rgba(0, 0, 0, 0.25); color: #1a1a1a; }
[data-theme="light"] .btn-primary.ghost:hover { background: rgba(0, 0, 0, 0.05); border-color: #1a1a1a; }
[data-theme="light"] .job-ticket { background: #ffffff; border: 1px solid var(--border-color); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06); }
[data-theme="light"] .job-ticket .ticket-header { border-bottom-color: var(--border-color); }
[data-theme="light"] .job-ticket .ticket-item .ticket-label { color: #1a1a1a; }
[data-theme="light"] .job-ticket .ticket-item .ticket-value { color: #4a4a4a; }
[data-theme="light"] .job-ticket .ticket-item .ticket-value strong { color: #1a1a1a; }
[data-theme="light"] .trust { background: #f5f6f8; border-color: var(--border-color); }
[data-theme="light"] .trust-item { border-right-color: var(--border-color); }
[data-theme="light"] .trust-item .trust-text { color: #4a4a4a; }
[data-theme="light"] .band.dark { background: #e8eaed; }
[data-theme="light"] .band.dark .section-title { color: #1a1a1a; }
[data-theme="light"] .band.dark .lede { color: #4a4a4a; }
[data-theme="light"] .band.tone { background: #f0f1f3; }
[data-theme="light"] .service-card, [data-theme="light"] .form, [data-theme="light"] .modal, [data-theme="light"] .tbl { background: #ffffff; }
[data-theme="light"] .service-card h3, [data-theme="light"] .service-header .service-info h4, [data-theme="light"] .project-list-item .project-list-info h4, [data-theme="light"] .project-detail-header h3, [data-theme="light"] .spec-item .spec-value, [data-theme="light"] .footer-brand .footer-logo .logo-text { color: #1a1a1a; }
[data-theme="light"] .service-card p, [data-theme="light"] .service-header .service-info p, [data-theme="light"] .project-detail-description { color: #4a4a4a; }
[data-theme="light"] .service-item.active { background: rgba(244, 123, 32, 0.06); }
[data-theme="light"] .service-header:hover { background: rgba(244, 123, 32, 0.04); }
[data-theme="light"] .service-image-wrapper { background: #ffffff; }
[data-theme="light"] .project-list-item { background: #ffffff; }
[data-theme="light"] .project-list-item.active { background: rgba(244, 123, 32, 0.06); }
[data-theme="light"] .footer { background: #e8eaed; border-top: 1px solid var(--border-color); color: #4a4a4a; }
[data-theme="light"] .footer-brand .footer-logo .logo-text { color: #1a1a1a; }
[data-theme="light"] .footer-brand .footer-logo .logo-text small { color: #6b7280; }
[data-theme="light"] .footer h5 { color: #1a1a1a; }
[data-theme="light"] .footer li button:hover, [data-theme="light"] .footer li a:hover { color: var(--primary); }
[data-theme="light"] .footer-licenses { color: #1a1a1a; }
[data-theme="light"] .whatsapp-tooltip { background: #ffffff; color: #1a1a1a; border: 1px solid var(--border-color); }
[data-theme="light"] .btn.ghost { border-color: rgba(0, 0, 0, 0.25); color: #fdfdfd; }
[data-theme="light"] .btn.ghost:hover { background: rgba(0, 0, 0, 0.05); border-color: #1a1a1a; }
[data-theme="light"] .card { background: #ffffff; }
[data-theme="light"] .band.dark .card { background: #ffffff; }
[data-theme="light"] .band.dark .card h3 { color: #1a1a1a; }
[data-theme="light"] .band.dark .card p { color: #4a4a4a; }
[data-theme="light"] .lightbox-close { background: rgba(255, 255, 255, 0.9); border-color: rgba(0, 0, 0, 0.2); color: #1a1a1a; }
[data-theme="light"] .lightbox-close:hover { background: var(--primary); border-color: var(--primary); color: #ffffff; }
[data-theme="light"] #lightboxCaption { background: rgba(255, 255, 255, 0.85); color: #1a1a1a; border-color: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .lightbox-overlay { background: rgba(255, 255, 255, 0.92); }
[data-theme="light"] .lightbox-content img { box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2); }

/* --- Ajuste explícito para fondo del slider en modo claro --- */
[data-theme="light"] .slider-container,
[data-theme="light"] .slider-images {
  background: #e9e9e9;
  border: 1px solid var(--border-color);
}

/* Fin de ajustes modo claro */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .fade-section, .rv { opacity: 1; transform: none; } html { scroll-behavior: auto; } }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@supports not (backdrop-filter: blur(12px)) { .header { background: rgba(18, 24, 32, 0.98); } }

/* ---------- CHATBOT (versión optimizada, sin animaciones pesadas) ---------- */
.chatbot-container {
  position: fixed;
  z-index: 9998;
  font-family: var(--font, 'Inter', sans-serif);
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 12px;
  bottom: 0;
  right: 0;
  width: auto;
  height: auto;
  pointer-events: none;
}
.chatbot-container > * {
  pointer-events: auto;
}
.chatbot-window {
  position: relative;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: min(80vh, 560px);  /* ← altura dinámica según pantalla */
  min-height: 320px;
  background: var(--bg-card, #1f2a3a);
  border: 1px solid var(--border-color, #2a3748);
  border-radius: 16px;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom right;
  flex-shrink: 0;
  margin-bottom: 12px;
  margin-right: 20px;
}
.chatbot-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary, #F47B20);
  color: #fff;
  border: 1px solid #000000 !important;
  box-shadow: 0 4px 24px rgba(244, 123, 32, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  margin-right: 20px;
  margin-bottom: 20px;
  z-index: 9999;
}
.chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 36px rgba(244, 123, 32, 0.5);
}
.chatbot-toggle.active {
  transform: scale(0.9);
  background: var(--bg-medium, #1A2332);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.chatbot-toggle.long-press-active {
  transform: scale(1.08);
  box-shadow: 0 0 0 8px rgba(244, 123, 32, 0.2);
}
.chatbot-toggle.dragging {
  cursor: grabbing !important;
  transform: scale(1.12);
  box-shadow: 0 8px 40px rgba(244, 123, 32, 0.6);
  transition: none !important;
  z-index: 10000;
}
.chatbot-toggle.dragging .chatbot-drag-hint {
  opacity: 0 !important;
}
.chatbot-toggle::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}
.chatbot-pulse-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid var(--primary, #F47B20);
  opacity: 0;
  pointer-events: none;
}
.chatbot-toggle .chatbot-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}
.chatbot-toggle .chatbot-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}
.chatbot-toggle .chatbot-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  color: #2ecc71;
  font-size: 14px;
}
.chatbot-drag-hint {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 0 6px;
  font-weight: 400;
  letter-spacing: 0.05em;
  font-family: var(--font, 'Inter', sans-serif);
}
.chatbot-toggle:hover .chatbot-drag-hint {
  opacity: 1;
  color: rgba(255, 255, 255, 0.8);
}
.chatbot-longpress-indicator {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #ffffff;
  border-right-color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.chatbot-toggle.long-press-active .chatbot-longpress-indicator {
  opacity: 1;
  animation: longPressSpin 0.8s linear forwards;
}
@keyframes longPressSpin {
  0% { transform: rotate(0deg); border-top-color: rgba(255,255,255,0.3); border-right-color: rgba(255,255,255,0.3); }
  50% { transform: rotate(180deg); border-top-color: rgba(255,255,255,0.9); border-right-color: rgba(255,255,255,0.6); }
  100% { transform: rotate(360deg); border-top-color: rgba(255,255,255,1); border-right-color: rgba(255,255,255,1); }
}
.chatbot-toggle.dragging .chatbot-icon {
  animation: iconPulse 0.3s ease;
}
@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.85); }
}
.chatbot-header {
  padding: 14px 18px;
  background: var(--bg-medium, #1A2332);
  border-bottom: 1px solid var(--border-color, #2a3748);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chatbot-header-info { display: flex; align-items: center; gap: 12px; }

.chatbot-avatar { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--primary, #F47B20); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

.chatbot-online { 
  position: absolute; bottom: -2px; right: -2px; 
  width: 12px; height: 12px; 
  border-radius: 50%; 
  background: #2ecc71; 
  border: 2px solid var(--bg-medium, #1A2332); 
}
.chatbot-title { font-weight: 700; font-size: 15px; color: var(--text-light, #e8edf2); line-height: 1.2; }
.chatbot-status { font-size: 11px; color: #2ecc71; font-weight: 500; }
.chatbot-close { background: transparent; border: none; color: var(--text-muted, #a0b0c0); cursor: pointer; padding: 4px; border-radius: 6px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.chatbot-close:hover { background: rgba(255,255,255,0.08); color: var(--text-light, #e8edf2); }

.chatbot-close svg { width: 20px; height: 20px; }

.chatbot-messages {
  flex: 1 1 auto;           /* ← ocupa el espacio disponible */
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  max-height: none;         /* ← eliminamos el límite fijo */
  scroll-behavior: smooth;
  background: var(--bg-dark, #121820);
}

.chatbot-messages::-webkit-scrollbar { width: 4px; }

.chatbot-messages::-webkit-scrollbar-track { background: transparent; }

.chatbot-messages::-webkit-scrollbar-thumb { background: var(--border-color, #2a3748); border-radius: 4px; }
.chatbot-message { display: flex; gap: 10px; align-items: flex-start; animation: chatbotMessageIn 0.3s ease; }
@keyframes chatbotMessageIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.chatbot-message.bot { flex-direction: row; }
.chatbot-message.user { flex-direction: row-reverse; }
.chatbot-message-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; background: var(--bg-medium, #1A2332); }
.chatbot-message-avatar.user { background: var(--primary, #F47B20); color: #fff; font-size: 14px; }
.chatbot-message-content { max-width: 78%; display: flex; flex-direction: column; gap: 2px; }
.chatbot-message.bot .chatbot-message-content { background: var(--bg-medium, #1A2332); padding: 10px 14px; border-radius: 12px 12px 12px 4px; }
.chatbot-message.user .chatbot-message-content { background: var(--primary, #F47B20); color: #fff; padding: 10px 14px; border-radius: 12px 12px 4px 12px; }
.chatbot-message-text { font-size: 14px; line-height: 1.6; word-break: break-word; color: var(--text-light, #e8edf2); }
.chatbot-message.user .chatbot-message-text { color: #fff; }
.chatbot-message-time { font-size: 10px; color: var(--text-muted, #a0b0c0); margin-top: 2px; opacity: 0.7; }
.chatbot-message.user .chatbot-message-time { color: rgba(255,255,255,0.7); }
.chatbot-typing-dots { display: flex; gap: 4px; padding: 4px 0; }
.chatbot-typing-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted, #a0b0c0); animation: chatbotTypingDot 1.4s infinite ease-in-out; }
.chatbot-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatbotTypingDot { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

.chatbot-suggestions {
  padding: 10px 14px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border-color, #2a3748);
  flex-shrink: 0;
  background: var(--bg-card, #1f2a3a);
  max-height: 120px;        /* ← límite para no crecer demasiado */
  overflow-y: auto;
}

.chatbot-suggestion-btn { background: rgba(244,123,32,0.12); color: var(--text-light, #e8edf2); border: 1px solid rgba(244,123,32,0.25); border-radius: 20px; padding: 8px 14px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.25s ease; white-space: nowrap; font-family: var(--font, 'Inter', sans-serif); min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.chatbot-suggestion-btn:hover { background: var(--primary, #F47B20); color: #fff; border-color: var(--primary, #F47B20); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(244,123,32,0.3); }

.chatbot-input-area {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--border-color, #2a3748);
  background: var(--bg-card, #1f2a3a);
  flex-shrink: 0;           /* ← evita que se encoja */
  align-items: center;
}

.chatbot-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 24px;
  border: 1px solid var(--border-color, #2a3748);
  background: var(--bg-dark, #121820);
  color: var(--text-light, #e8edf2);
  font-size: 14px;
  font-family: var(--font, 'Inter', sans-serif);
  outline: none;
  transition: all 0.3s ease;
  min-height: 42px;
}

.chatbot-input:focus { border-color: var(--primary, #F47B20); box-shadow: 0 0 0 3px rgba(244,123,32,0.15); }

.chatbot-input::placeholder { color: var(--text-muted, #a0b0c0); font-size: 13px; }

.chatbot-send-btn,
.chatbot-voice-btn {
  background: var(--primary, #F47B20);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chatbot-send-btn:hover, .chatbot-voice-btn:hover { background: var(--primary-dark, #d96a1a); transform: scale(1.05); }
.chatbot-voice-btn { background: var(--bg-medium, #1A2332); border: 1px solid var(--border-color, #2a3748); }
.chatbot-voice-btn:hover { background: var(--border-color, #2a3748); }
.chatbot-voice-btn.listening { background: #ff4757; border-color: #ff4757; }
.chatbot-send-btn svg, .chatbot-voice-btn svg { width: 20px; height: 20px; stroke: currentColor; }
.chatbot-footer { padding: 6px 14px; font-size: 10px; color: var(--text-muted, #a0b0c0); background: var(--bg-dark, #121820); border-top: 1px solid var(--border-color, #2a3748); display: flex; gap: 8px; align-items: center; justify-content: center; flex-shrink: 0; flex-wrap: wrap; text-align: center; }
@media (max-width: 720px) {
  .chatbot-toggle { width: 54px; height: 54px; margin-right: 12px; margin-bottom: 12px; }
  .chatbot-toggle .chatbot-icon { width: 22px; height: 22px; }
  .chatbot-toggle .chatbot-badge { font-size: 12px; }
  .chatbot-toggle::before { top: -8px; left: -8px; right: -8px; bottom: -8px; }
  .chatbot-drag-hint { font-size: 8px; bottom: -6px; padding: 0 4px; }
  .chatbot-longpress-indicator { top: -3px; left: -3px; right: -3px; bottom: -3px; border-width: 2.5px; }
  .chatbot-window { width: calc(100vw - 24px); max-width: 400px; max-height: 460px; border-radius: 12px; margin-right: 12px; }
  .chatbot-messages { max-height: 220px; padding: 12px 10px; }
  .chatbot-message-content { max-width: 85%; }
  .chatbot-message-text { font-size: 13px; }
  .chatbot-suggestion-btn { font-size: 12px; padding: 6px 12px; min-height: 36px; }
  .chatbot-input { font-size: 13px; padding: 8px 12px; min-height: 38px; }
  .chatbot-send-btn, .chatbot-voice-btn { width: 38px; height: 38px; }
  .chatbot-send-btn svg, .chatbot-voice-btn svg { width: 17px; height: 17px; }
  .chatbot-header { padding: 10px 14px; }
  .chatbot-title { font-size: 13px; }
  .chatbot-avatar { width: 30px; height: 30px; font-size: 15px; }
}
@media (max-width: 480px) {
  .chatbot-toggle { width: 48px; height: 48px; margin-right: 10px; margin-bottom: 10px; }
  .chatbot-toggle .chatbot-icon { width: 20px; height: 20px; }
  .chatbot-toggle .chatbot-badge { font-size: 10px; }
  .chatbot-toggle::before { top: -6px; left: -6px; right: -6px; bottom: -6px; }
  .chatbot-drag-hint { font-size: 7px; bottom: -4px; padding: 0 3px; }
  .chatbot-longpress-indicator { top: -2px; left: -2px; right: -2px; bottom: -2px; border-width: 2px; }
  .chatbot-window { max-height: 400px; border-radius: 10px; margin-right: 10px; }
  .chatbot-messages { max-height: 180px; padding: 10px 8px; }
  .chatbot-message-avatar { width: 26px; height: 26px; font-size: 13px; }
  .chatbot-message-text { font-size: 12px; }
  .chatbot-message.bot .chatbot-message-content, .chatbot-message.user .chatbot-message-content { padding: 8px 12px; }
  .chatbot-suggestion-btn { font-size: 11px; padding: 5px 10px; min-height: 32px; }
  .chatbot-input-area { padding: 8px 10px 10px; gap: 6px; }
  .chatbot-footer { font-size: 9px; padding: 4px 10px; }
}
[data-theme="light"] .chatbot-window { background: #ffffff; border-color: var(--border-color, #d1d5db); box-shadow: 0 12px 60px rgba(0,0,0,0.12); }
[data-theme="light"] .chatbot-header { background: #f0f1f3; border-bottom-color: var(--border-color, #d1d5db); }
[data-theme="light"] .chatbot-title { color: #1a1a1a; }
[data-theme="light"] .chatbot-messages { background: #f5f6f8; }
[data-theme="light"] .chatbot-message.bot .chatbot-message-content { background: #e8eaed; }
[data-theme="light"] .chatbot-message-text { color: #1a1a1a; }
[data-theme="light"] .chatbot-suggestions { background: #ffffff; border-top-color: var(--border-color, #d1d5db); }
[data-theme="light"] .chatbot-suggestion-btn { background: rgba(244,123,32,0.08); color: #1a1a1a; border-color: rgba(244,123,32,0.2); }
[data-theme="light"] .chatbot-suggestion-btn:hover { background: var(--primary, #F47B20); color: #fff; }
[data-theme="light"] .chatbot-input-area { background: #ffffff; border-top-color: var(--border-color, #d1d5db); }
[data-theme="light"] .chatbot-input { background: #f5f6f8; color: #1a1a1a; border-color: var(--border-color, #d1d5db); }
[data-theme="light"] .chatbot-input::placeholder { color: #6b7280; }
[data-theme="light"] .chatbot-voice-btn { background: #e8eaed; border-color: var(--border-color, #d1d5db); color: #1a1a1a; }
[data-theme="light"] .chatbot-voice-btn:hover { background: #d1d5db; }
[data-theme="light"] .chatbot-footer { background: #f5f6f8; border-top-color: var(--border-color, #d1d5db); }
[data-theme="light"] .chatbot-pulse-ring { border-color: var(--primary, #F47B20); }
[data-theme="light"] .chatbot-drag-hint { color: rgba(0,0,0,0.3); background: rgba(255,255,255,0.5); }
[data-theme="light"] .chatbot-toggle:hover .chatbot-drag-hint { color: rgba(0,0,0,0.7); }
[data-theme="light"] .chatbot-longpress-indicator { border-top-color: var(--primary, #F47B20); border-right-color: var(--primary, #F47B20); }
[data-theme="light"] .chatbot-toggle.long-press-active { box-shadow: 0 0 0 8px rgba(244,123,32,0.15); }
[data-theme="light"] .chatbot-toggle.long-press-active .chatbot-longpress-indicator { border-top-color: var(--primary-dark, #d96a1a); border-right-color: var(--primary-dark, #d96a1a); }
[data-theme="light"] .chatbot-toggle { border-color: #000000 !important; }
@media (prefers-reduced-motion: reduce) {
  .chatbot-window, .chatbot-toggle, .chatbot-suggestion-btn, .chatbot-message,
  .chatbot-typing-dots span, .chatbot-pulse-ring, .chatbot-badge,
  .chatbot-online, .chatbot-drag-hint, .chatbot-longpress-indicator {
    animation: none !important;
    transition: none !important;
  }
  .chatbot-toggle.long-press-active .chatbot-longpress-indicator {
    animation: none !important;
    opacity: 0 !important;
  }
  .chatbot-toggle.long-press-active { transform: scale(1) !important; box-shadow: 0 4px 24px rgba(244,123,32,0.4) !important; border: 3px solid var(--primary, #F47B20); }
}
.chatbot-suggestion-btn:focus-visible,
.chatbot-input:focus-visible,
.chatbot-send-btn:focus-visible,
.chatbot-voice-btn:focus-visible,
.chatbot-toggle:focus-visible,
.chatbot-close:focus-visible {
  outline: 3px solid var(--primary, #F47B20);
  outline-offset: 2px;
}

/* ---------- Media Queries para móviles ---------- */
@media (max-width: 720px) {
  .chatbot-toggle {
    width: 54px;
    height: 54px;
    margin-right: 12px;
    margin-bottom: 12px;
  }
  .chatbot-window {
    width: calc(100vw - 24px);
    max-width: 400px;
    max-height: min(75vh, 480px);  /* ← más pequeño pero dinámico */
    min-height: 260px;
    border-radius: 12px;
    margin-right: 12px;
  }
  .chatbot-messages {
    min-height: 100px;
    padding: 12px 10px;
  }
  .chatbot-suggestions {
    max-height: 100px;
    padding: 8px 12px 12px;
  }
  .chatbot-input-area {
    padding: 8px 12px 12px;
    gap: 6px;
  }
  .chatbot-input {
    font-size: 13px;
    padding: 8px 12px;
    min-height: 38px;
  }
  .chatbot-send-btn,
  .chatbot-voice-btn {
    width: 38px;
    height: 38px;
  }
}
@media (max-width: 480px) {
  .chatbot-toggle {
    width: 48px;
    height: 48px;
    margin-right: 10px;
    margin-bottom: 10px;
  }
  .chatbot-window {
    max-height: min(70vh, 400px);
    min-height: 220px;
    border-radius: 10px;
    margin-right: 10px;
  }
  .chatbot-messages {
    min-height: 80px;
    padding: 10px 8px;
  }
  .chatbot-suggestions {
    max-height: 80px;
    padding: 6px 10px 10px;
  }
  .chatbot-input-area {
    padding: 6px 10px 10px;
    gap: 4px;
  }
  .chatbot-input {
    font-size: 12px;
    padding: 6px 10px;
    min-height: 34px;
  }
  .chatbot-send-btn,
  .chatbot-voice-btn {
    width: 34px;
    height: 34px;
  }
}

/* ---------- Estilos para el fade-in de las tarjetas y elementos ---------- */
.service-card {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-card.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.band.tone {
  background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-dark) 40%, var(--bg-card) 80%, var(--bg-medium) 100%);
}
[data-theme="light"] .band.tone {
  background: linear-gradient(135deg, #f0f1f3 0%, #e8eaed 40%, #f5f6f8 80%, #f0f1f3 100%);
}
.services-block {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.services-block.visible {
  opacity: 1;
  transform: translateY(0);
}
.project-video-container {
  margin-top: 16px;
}
.project-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #000;
}
.project-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#aboutVideoContainer {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
#aboutVideoContainer video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
:root {
  --image-bg: #000000;
}
[data-theme="light"] {
  --image-bg: #ffffff;
}
.slider-container {
  max-width: 800px;
  height: 500px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
  background: var(--image-bg);
  position: relative;
}
.slider-images {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--image-bg);
}
.slider-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}
.slider-after {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.05s linear;
}
.carousel-image-wrapper {
  background: var(--image-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.carousel-prev,
.carousel-next {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.carousel-prev:hover,
.carousel-next:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.05);
}
@media (max-width: 600px) {
  .carousel-images { flex-direction: column; gap: 12px; max-width: 100%; }
  .carousel-before, .carousel-after { min-width: unset; }
  .carousel-prev, .carousel-next { width: 36px; height: 36px; font-size: 1rem; }
}
.detail-placeholder {
  background: var(--image-bg) !important;
}
@media (max-width: 768px) {
  .slider-container { height: 300px; }
}
@media (max-width: 480px) {
  .slider-container { height: 200px; }
}

/* ---------- More Than What You See (services page) ---------- */
.more-trades-band {
  background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-dark) 60%, var(--bg-card) 100%);
  position: relative;
  overflow: hidden;
}
.more-trades-band::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(244, 123, 32, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.more-trades-band .lede {
  max-width: 70ch;
  text-align: center;
}
.more-trades-ask {
  margin-top: 22px;
  font-size: 15px;
  color: var(--text-light);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.advisor-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: #fff;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 60px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(244, 123, 32, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.advisor-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(244, 123, 32, 0.45);
}
[data-theme="light"] .more-trades-band {
  background: linear-gradient(135deg, #f0f1f3 0%, #e8eaed 60%, #f5f6f8 100%);
}

/* ============================================================
   COVERAGE BAND (About page — Statewide Florida)
   ============================================================ */
.coverage-band .coverage-lede {
  margin-top: 6px;
  max-width: 70ch;
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--text-muted);
}
.coverage-band .coverage-grid {
  margin-top: 28px;
}
.coverage-band .coverage-grid .card {
  position: relative;
  padding-top: 32px;
}
.coverage-band .coverage-grid .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 4px 0;
}
.coverage-band .coverage-grid .card:last-child {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(244, 123, 32, 0.06) 100%);
  border: 1px solid rgba(244, 123, 32, 0.25);
}
.coverage-band .coverage-grid .card:last-child .num {
  color: var(--primary);
  font-weight: 700;
}
[data-theme="light"] .coverage-band .coverage-grid .card:last-child {
  background: linear-gradient(135deg, #ffffff 0%, rgba(244, 123, 32, 0.08) 100%);
}