:root {
  --slate-950: #0B192C;
  --slate-900: #0F293A;
  --slate-800: #16364D;
  --cyan-500: #0EA5E9;
  --cyan-600: #0284C7;
  --teal-500: #14B8A6;
  --teal-600: #0D9488;
  --ink: #0F172A;
  --muted: #475569;
  --line: #E2E8F0;
  --dark-line: rgba(255, 255, 255, 0.1);
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --green: #16A34A;
  --danger: #DC2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 6px rgba(11, 25, 44, 0.04), 0 8px 20px rgba(11, 25, 44, 0.05);
  --shadow: 0 4px 12px rgba(11, 25, 44, 0.05), 0 18px 40px rgba(11, 25, 44, 0.08);
  --shadow-lg: 0 12px 24px rgba(11, 25, 44, 0.08), 0 26px 56px rgba(11, 25, 44, 0.14);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-text strong {
  font-family: var(--font-display);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 14px;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typewriter Cursor */
.typewriter-active::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  vertical-align: -0.1em;
  background: var(--cyan-500);
  border-radius: 1px;
  animation: twBlink 0.75s step-end infinite;
}

body.site-edit-mode .typewriter-active::after {
  display: none;
}

@keyframes twBlink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Sticky Navbar Mobile-First with Glassmorphism */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 25, 44, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(14, 165, 233, 0.25);
  box-shadow: 0 8px 32px rgba(11, 25, 44, 0.22);
  color: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 60px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1 1 0;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  width: 62px;
  height: 62px;
  flex: none;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 12px rgba(14, 165, 233, 0.35));
}

.brand-text {
  min-width: 0;
  overflow: hidden;
}

.brand-text strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.25px;
  line-height: 1.15;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  display: block;
  font-size: 10.5px;
  color: #38BDF8;
  font-weight: 600;
  letter-spacing: 0.15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text .brand-subtagline {
  display: block;
  font-size: 10px;
  color: #94A3B8;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 41, 58, 0.85);
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 11px;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.5);
}

.main-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--dark-line);
}

.main-nav.open {
  display: flex;
}

.nav-link {
  text-decoration: none;
  color: #CBD5E1;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 13px;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-intranet-btn {
  border: 1px solid rgba(14, 165, 233, 0.45);
  background: rgba(14, 165, 233, 0.14);
  color: #7DD3FC;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-sans);
  padding: 9px 15px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.nav-intranet-btn:hover {
  background: rgba(14, 165, 233, 0.26);
  color: #ffffff;
}

.nav-intranet-btn.active {
  background: rgba(20, 184, 166, 0.2);
  border-color: rgba(20, 184, 166, 0.55);
  color: #5EEAD4;
}

/* Mobile-First Hero with Visible Video Background & Translucent Overlay */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  background: linear-gradient(145deg, var(--slate-950) 0%, var(--slate-900) 100%);
  color: #ffffff;
  padding: 28px 0 36px;
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-fallback-img,
.hero-video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-fallback-img {
  z-index: 0;
}

.hero-video {
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background:
    radial-gradient(circle at 80% 22%, rgba(14, 165, 233, 0.22), transparent 48%),
    radial-gradient(circle at 18% 82%, rgba(20, 184, 166, 0.18), transparent 46%),
    linear-gradient(140deg, rgba(11, 25, 44, 0.58) 0%, rgba(11, 25, 44, 0.52) 55%, rgba(15, 41, 58, 0.68) 100%);
}

.hero-grid-pattern {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.hero-content {
  position: relative;
  z-index: 4;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(11, 25, 44, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(14, 165, 233, 0.45);
  color: #BAE6FD;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-copy p {
  margin: 0 0 20px;
  color: #F1F5F9;
  font-size: 14.5px;
  line-height: 1.58;
  max-width: 610px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-actions .btn {
  width: 100%;
  min-height: 46px;
}

.hero-trust-strip {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(11, 25, 44, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F1F5F9;
  font-size: 11.5px;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-500) 0%, var(--cyan-600) 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.28);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28);
}

.btn-whatsapp-card {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.35);
  color: #0F766E;
}

.btn-whatsapp-card:hover {
  background: linear-gradient(135deg, var(--teal-500) 0%, #16A34A 100%);
  border-color: transparent;
  color: #ffffff;
  filter: none;
  box-shadow: 0 8px 18px rgba(20, 184, 166, 0.25);
}

.btn-outline {
  background: rgba(11, 25, 44, 0.42);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-light {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-light:hover {
  background: #F1F5F9;
  filter: none;
}

.btn-danger {
  background: #FEE2E2;
  border-color: #FECACA;
  color: #B91C1C;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 9px;
}

/* Hero Glassmorphism Card */
.hero-card {
  background: rgba(15, 41, 58, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 20px 44px rgba(5, 12, 24, 0.4);
}

.hero-card-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hero-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 10px var(--teal-500);
}

.hero-card-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #5EEAD4;
}

.hero-card h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 13px;
  color: #F1F5F9;
}

.hero-list li {
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(11, 25, 44, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--dark-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card-foot small {
  display: block;
  font-size: 11px;
  color: #CBD5E1;
}

.hero-card-foot strong {
  font-size: 13px;
  color: #F8FAFC;
}

.hero-card-link {
  font-size: 13px;
  font-weight: 700;
  color: #38BDF8;
  text-decoration: none;
}

.hero-card-link:hover {
  color: #7DD3FC;
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 44px 0;
}

.section-alt {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  background:
    radial-gradient(circle at 12% 15%, rgba(14, 165, 233, 0.16), transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(20, 184, 166, 0.14), transparent 44%),
    linear-gradient(160deg, var(--slate-950) 0%, var(--slate-900) 100%);
  color: #ffffff;
}

.section-head {
  margin-bottom: 24px;
}

.section-head-split {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan-600);
  margin-bottom: 6px;
}

.section-head-dark .section-kicker {
  color: #38BDF8;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 660px;
  font-size: 14.5px;
}

.section-head-dark p {
  color: #CBD5E1;
}

/* Service Filter Tabs (Mobile-First Horizontal Swipeable) */
.service-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  align-self: flex-start;
}

.service-tabs::-webkit-scrollbar {
  display: none;
}

.service-tab {
  display: inline-flex;
  flex: 0 0 auto;
  white-space: nowrap;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 13px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-tab:hover {
  color: var(--ink);
  background: #F1F5F9;
}

.service-tab.active {
  background: linear-gradient(135deg, var(--slate-950) 0%, var(--slate-900) 100%);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(11, 25, 44, 0.2);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  background: #E2E8F0;
  color: var(--ink);
}

.service-tab.active .tab-count {
  background: rgba(14, 165, 233, 0.24);
  color: #7DD3FC;
}

/* Services Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 165, 233, 0.45);
}

.service-card.is-hidden {
  display: none;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-950) 0%, var(--slate-900) 100%);
  border: 1px solid var(--line);
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-media.media-fallback img {
  display: none;
}

.card-category-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 25, 44, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #7DD3FC;
  font-size: 11px;
  font-weight: 700;
}

.card-category-badge.badge-web {
  border-color: rgba(20, 184, 166, 0.45);
  color: #5EEAD4;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-head-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(20, 184, 166, 0.14));
  border: 1px solid rgba(14, 165, 233, 0.22);
  color: var(--cyan-600);
  font-size: 18px;
  font-weight: 700;
}

.card h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.price-list {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 13px;
  display: grid;
  gap: 3px;
}

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.price-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 8px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  color: #0369A1;
  font-size: 13px;
  font-weight: 800;
  align-self: flex-start;
}

/* Process 4 Steps */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.process-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: 0 12px 32px rgba(4, 10, 20, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.process-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.process-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(20, 184, 166, 0.25));
  border: 1px solid rgba(14, 165, 233, 0.45);
  color: #7DD3FC;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}

.process-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.process-card p {
  margin: 0;
  font-size: 13.5px;
  color: #CBD5E1;
  line-height: 1.55;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.open {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: var(--shadow);
}

.faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
}

.faq-question-text {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.faq-toggle-btn {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--cyan-600);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-item.open .faq-toggle-btn {
  background: var(--cyan-500);
  border-color: var(--cyan-500);
  color: #ffffff;
  transform: rotate(45deg);
}

.faq-answer {
  border-top: 1px solid var(--line);
  background: #F8FAFC;
}

.faq-answer-inner {
  padding: 15px 18px 17px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Contact & Map */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.45);
}

.contact-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.22);
  font-size: 19px;
}

.contact-icon-wa {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.25);
}

.contact-meta {
  min-width: 0;
}

.contact-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.contact-card span,
.contact-card a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

.contact-card a {
  color: var(--cyan-600);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #010c1e;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.contact-brand-card img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.map-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.map-head strong {
  display: block;
  font-size: 14px;
}

.map-head span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.map-frame {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

/* Edición en modo Intranet */
body.site-edit-mode [data-field] {
  outline: 1px dashed #0EA5E9;
  outline-offset: 3px;
  border-radius: 5px;
  cursor: text;
  transition: background-color 0.15s ease, outline-color 0.15s ease;
}

body.site-edit-mode [data-field]:hover {
  background: rgba(14, 165, 233, 0.12);
}

body.site-edit-mode [data-field]:focus {
  outline: 2px solid #14B8A6;
  background: rgba(20, 184, 166, 0.18);
}

.editor-bar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  width: min(calc(100% - 24px), 820px);
  background: rgba(11, 25, 44, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.55);
  border-radius: 14px;
  padding: 12px 14px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.editor-bar.open {
  display: flex;
}

.editor-bar-info {
  font-size: 12px;
  color: #BAE6FD;
  font-weight: 700;
}

.editor-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intranet-status {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #5EEAD4;
  min-height: 20px;
}

.intranet-status.error {
  color: #FECACA;
}

/* Intranet Panel & Optimized Orders Dashboard */
.intranet-box {
  background: linear-gradient(155deg, var(--slate-950) 0%, var(--slate-900) 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 20px 16px;
  border: 1px solid var(--dark-line);
  box-shadow: var(--shadow-lg);
}

.intranet-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.intranet-head h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.intranet-head p {
  margin: 0;
  color: #CBD5E1;
  font-size: 13.5px;
}

.intranet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.orders-kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  padding: 13px 15px;
}

.kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #7DD3FC;
  margin-bottom: 4px;
}

.kpi-value {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.orders-panel {
  margin-top: 16px;
  background: #ffffff;
  color: var(--ink);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--line);
}

.orders-panel-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 14px;
}

.orders-count-hint {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.orders-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.orders-search-input,
.orders-sort-select {
  padding: 8px 11px;
  border: 1px solid #CBD5E1;
  border-radius: 9px;
  font-size: 12.5px;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #F8FAFC;
}

.orders-search-input {
  flex: 1 1 180px;
  min-width: 150px;
}

.orders-search-input:focus,
.orders-sort-select:focus {
  outline: none;
  border-color: var(--cyan-500);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.orders-empty-msg {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.orders-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 13px;
}

.orders-table th,
.orders-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.orders-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.orders-table tbody tr:hover {
  background: #F8FAFC;
}

.order-folio-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: #E0F2FE;
  color: #0369A1;
  font-weight: 800;
  font-size: 12px;
}

.order-submeta {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.orders-table .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Recursos Técnicos */
.resources-panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
}

.resources-head {
  margin-bottom: 12px;
}

.resources-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #5EEAD4;
  margin-bottom: 4px;
}

.resources-head h4 {
  margin: 0;
  font-size: 17px;
  color: #ffffff;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dark-line);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.resource-card-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.resource-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(14, 165, 233, 0.35);
  font-size: 19px;
}

.resource-card-info strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 4px;
}

.resource-card-info p {
  margin: 0;
  font-size: 13px;
  color: #CBD5E1;
  line-height: 1.5;
}

.resource-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-card-actions .btn {
  width: 100%;
  min-height: 40px;
}

.resource-card-stack {
  flex-direction: column !important;
  align-items: stretch !important;
}

.track-order-form {
  display: grid;
  gap: 8px;
}

.track-order-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.track-order-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 10px;
  background: rgba(11, 25, 44, 0.65);
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  letter-spacing: 0.4px;
}

.track-order-input::placeholder {
  color: #94A3B8;
  font-family: var(--font-sans);
  letter-spacing: 0;
}

.track-order-input:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}

.track-order-error {
  font-size: 12.5px;
  font-weight: 700;
  color: #FECACA;
  min-height: 16px;
}

/* Página Individual Intranet */
.intranet-page-main {
  min-height: calc(100vh - 150px);
  padding: 28px 0 48px;
}

.intranet-gate-wrap {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.intranet-login-card {
  max-width: 440px;
}

.intranet-login-back {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
}

.intranet-login-back a {
  color: var(--cyan-600);
  font-weight: 700;
  text-decoration: none;
}

.order-track-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.order-track-code {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  background: #F1F5F9;
  border: 1px solid var(--line);
  color: #0F172A;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.copy-code-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  cursor: pointer;
}

.copy-code-btn:hover {
  background: #E0F2FE;
  border-color: var(--cyan-500);
}

.preview-track-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.preview-track-row code {
  padding: 4px 8px;
  border-radius: 6px;
  background: #E0F2FE;
  color: #0369A1;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  background: rgba(11, 25, 44, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card-wide {
  max-width: 720px;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-top h3 {
  margin: 0;
  font-size: 18px;
}

.modal-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.modal-close {
  border: 0;
  background: #F1F5F9;
  color: var(--ink);
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}

.modal-close:hover {
  background: #E2E8F0;
}

.preview-body {
  display: grid;
  gap: 14px;
  font-size: 13.5px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.preview-box {
  background: #F8FAFC;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.preview-box strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 4px;
}

.preview-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.preview-items-table th,
.preview-items-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.preview-items-table th {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}

.preview-total-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  padding: 10px 12px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 10px;
  font-weight: 700;
  color: #0369A1;
}

.preview-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

.form-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}

.form-field input:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.form-error {
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  margin: 6px 0 10px;
  min-height: 18px;
}

/* Mobile-First Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 48;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #16A34A 0%, #14B8A6 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 10px 28px rgba(20, 184, 166, 0.35);
  transition: transform 0.2s ease, bottom 0.25s ease;
}

.whatsapp-float-label {
  display: none;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
  border-radius: 999px;
  border: 2px solid rgba(20, 184, 166, 0.55);
  animation: waPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
}

body.site-edit-mode .whatsapp-float {
  bottom: 84px;
}

@keyframes waPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.75;
  }
  70% {
    transform: scale(1.14);
    opacity: 0;
  }
  100% {
    transform: scale(1.14);
    opacity: 0;
  }
}

/* Footer */
.site-footer {
  background: var(--slate-950);
  border-top: 1px solid var(--dark-line);
  color: #CBD5E1;
  padding: 26px 0;
  font-size: 13px;
  text-align: center;
}

/* Progressive Enhancement Breakpoints (Mobile-First min-width only) */
@media (min-width: 480px) {
  .brand-logo {
    width: 70px;
    height: 70px;
  }

  .brand-text strong {
    font-size: 14.5px;
  }

  .brand-text span {
    font-size: 11px;
  }

  .brand-text .brand-subtagline {
    font-size: 10.5px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .whatsapp-float {
    width: auto;
    height: auto;
    right: 20px;
    bottom: 20px;
    padding: 12px 16px;
  }

  .whatsapp-float-label {
    display: inline;
  }
}

@media (min-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .header-inner {
    min-height: 86px;
    padding: 10px 0;
    gap: 14px;
  }

  .brand-logo {
    width: 78px;
    height: 78px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .brand-text .brand-subtagline {
    font-size: 11px;
  }

  .hero {
    padding: 58px 0 68px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-copy p {
    font-size: 15.5px;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    width: auto;
  }

  .hero-card {
    padding: 24px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head h2 {
    font-size: 31px;
  }

  .service-tabs {
    display: inline-flex;
    width: auto;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intranet-box {
    padding: 26px;
  }

  .orders-panel {
    padding: 18px;
  }

  .orders-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intranet-head {
    flex-direction: row;
    align-items: center;
  }

  .resource-card {
    flex-direction: row;
    align-items: center;
    padding: 18px 20px;
  }

  .resource-card-actions {
    flex: none;
  }

  .resource-card-actions .btn {
    width: auto;
  }

  .track-order-row {
    flex-direction: row;
    align-items: center;
  }

  .track-order-input {
    flex: 1 1 auto;
  }

  .track-order-row .btn {
    flex: none;
    width: auto;
    min-height: 42px;
  }

  .map-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .map-frame {
    height: 350px;
  }
}

@media (min-width: 960px) {
  .brand-link {
    flex: 0 1 auto;
  }

  .brand-logo {
    width: 84px;
    height: 84px;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    width: auto;
    flex-direction: row;
    align-items: center;
    padding-top: 0;
    border-top: 0;
    gap: 6px;
  }

  .hero {
    padding: 72px 0 84px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.92fr);
    gap: 36px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section-head-split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.25fr);
    align-items: stretch;
  }

  .contact-grid {
    align-content: start;
  }

  .orders-panel-head {
    flex-direction: row;
    align-items: center;
  }

  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .whatsapp-float::before {
    animation: none;
    display: none;
  }

  .typewriter-active::after {
    animation: none;
    display: none;
  }

  .card,
  .card-media img,
  .btn {
    transition: none;
  }
}
