/* =====================================================================
   Comtek Informática — extracted from Sydecar design system
   ===================================================================== */

:root {
  /* Surfaces */
  --bg-default: #FFFFFF;
  --bg-dark: #1D1D20;
  --bg-input: #FBFBF9;

  /* Text */
  --text-default: #1D1D20;
  --text-dark: #6C6C6C;
  --text-light: #FFFFFF;

  /* Strokes */
  --stroke-light: #EDEBE8;

  /* Type families */
  --font-title: 'Inter', 'Helvetica', Arial, sans-serif;
  --font-sans:  'Inter', 'Helvetica', Arial, sans-serif;

  /* Type scale */
  --fs-header:  56px; --lh-header:  64px;
  --fs-header-mobile: 42px; --lh-header-mobile: 48px;
  --fs-title:   32px; --lh-title:   40px;
  --fs-title-mobile: 24px; --lh-title-mobile: 32px;
  --fs-body:    16px; --lh-body:    24px;
  --fs-body-mobile: 14px; --lh-body-mobile: 20px;
  --fs-label:   16px; --lh-label:   24px; --ls-label: 0.03em;
}

/* =====================================================================
   Base
   ===================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-default);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.page { overflow-x: hidden; }

/* =====================================================================
   Typography utilities (from design system, kept minimal)
   ===================================================================== */
.h-header, h1 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--fs-header);
  line-height: var(--lh-header);
  letter-spacing: -0.01em;
  margin: 0;
}
.h-title, h2 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  letter-spacing: 0;
  margin: 0;
}
p { font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body); margin: 0; }
.t-label {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }

@media (max-width: 768px) {
  .h-header, h1 { font-size: var(--fs-header-mobile); line-height: var(--lh-header-mobile); }
  .h-title,  h2 { font-size: var(--fs-title-mobile);  line-height: var(--lh-title-mobile); }
  p             { font-size: var(--fs-body-mobile);   line-height: var(--lh-body-mobile); }
}

/* =====================================================================
   Header
   ===================================================================== */
.cmtk-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stroke-light);
}
.cmtk-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cmtk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-default);
}
.cmtk-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #1D1D20;
  color: #fff;
  font-size: 19px;
}
.cmtk-brand-name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.cmtk-brand-sub {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}
.cmtk-nav-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
}
.cmtk-link {
  color: var(--text-default);
  font-size: 15px;
  font-weight: 500;
  transition: color .15s;
}
.cmtk-link:hover { color: #25D366; }

/* =====================================================================
   WhatsApp buttons
   ===================================================================== */
.cmtk-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  transition: background .15s;
}
.cmtk-wa:hover { background: #1ebe5a; }
.cmtk-wa-sm { font-size: 15px; height: 40px; padding: 0 16px; }
.cmtk-wa-md { font-size: 15px; height: 42px; padding: 0 18px; }
.cmtk-wa-lg { font-size: 16px; height: 52px; padding: 0 24px; gap: 10px; }
.cmtk-wa-sm i { font-size: 18px; }
.cmtk-wa-md i { font-size: 18px; }
.cmtk-wa-lg i { font-size: 22px; }

.cmtk-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 500;
  font-size: 16px;
  height: 52px;
  padding: 0 24px;
}
.cmtk-btn-ghost i { font-size: 18px; }

/* =====================================================================
   Hero
   ===================================================================== */
.cmtk-hero {
  background: #1D1D20;
  color: #fff;
}
.cmtk-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 64px;
  align-items: center;
}
.cmtk-hero-pad {
  padding: 84px 24px 96px;
  grid-template-columns: 1.1fr 0.9fr;
}
.cmtk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d7d7d9;
  margin-bottom: 28px;
}
.cmtk-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25D366;
  display: inline-block;
}
.cmtk-h1 {
  color: #fff;
  font-size: 60px;
  line-height: 1.02;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}
.cmtk-hero-lead {
  font-size: 20px;
  line-height: 1.5;
  color: #c9c9cc;
  max-width: 540px;
  margin: 0 0 36px;
}
.cmtk-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cmtk-hero-media { position: relative; }

/* =====================================================================
   Image slots (placeholders before assets are added)
   ===================================================================== */
.cmtk-img-slot {
  display: block;
  width: 100%;
  background: #2a2a2e;
  object-fit: cover;
}
.cmtk-img-slot:not([src]),
.cmtk-img-slot[src=""] { visibility: hidden; }
.cmtk-img-hero {
  aspect-ratio: 4/5;
}
.cmtk-img-lab {
  min-height: 190px;
  background: #e9e7e3;
}

/* =====================================================================
   Section primitives
   ===================================================================== */
.cmtk-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
}
.cmtk-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.cmtk-section-head .t-label { color: var(--text-dark); margin-bottom: 14px; }
.cmtk-section-intro {
  max-width: 380px;
  margin: 0;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.5;
}

/* =====================================================================
   Services grid
   ===================================================================== */
.cmtk-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--stroke-light);
}
.cmtk-card {
  padding: 36px 32px;
  border-right: 1px solid var(--stroke-light);
  transition: border-color .15s;
}
.cmtk-card:last-child { border-right: 0; }
.cmtk-card:hover { border-color: #1D1D20; }
.cmtk-card-img {
  display: block;
  width: calc(100% + 64px);
  margin: -36px -32px 28px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-input);
}
.cmtk-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--stroke-light);
  margin-bottom: 28px;
  font-size: 28px;
}
.cmtk-card-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.cmtk-card-text {
  margin: 0 0 24px;
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.6;
}
.cmtk-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

/* =====================================================================
   Laboratorio
   ===================================================================== */
.cmtk-lab {
  border-top: 1px solid var(--stroke-light);
  background: var(--bg-input);
}
.cmtk-sec-pad { padding: 96px 24px; }
.cmtk-lab-grid { grid-template-columns: 0.9fr 1.1fr; }
.cmtk-lab-media {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.cmtk-lab-title { margin: 0 0 20px; letter-spacing: -0.01em; }
.cmtk-lab-text {
  margin: 0 0 28px;
  color: var(--text-dark);
  font-size: 18px;
  line-height: 1.6;
}
.cmtk-lab-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  border-top: 1px solid var(--stroke-light);
  padding-top: 28px;
}
.cmtk-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cmtk-feature i { font-size: 24px; margin-top: 2px; }
.cmtk-feature-title { font-weight: 600; font-size: 15px; }
.cmtk-feature-sub { font-size: 14px; color: var(--text-dark); }

/* =====================================================================
   WhatsApp CTA band
   ===================================================================== */
.cmtk-cta-band {
  background: #25D366;
  color: #06310f;
}
.cmtk-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cmtk-cta-title {
  font-size: 40px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: #06310f;
}
.cmtk-cta-text {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  color: #0a4417;
  max-width: 560px;
}
.cmtk-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #06310f;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  height: 60px;
  padding: 0 32px;
  white-space: nowrap;
}
.cmtk-cta-btn i { font-size: 26px; }

/* =====================================================================
   Ubicación
   ===================================================================== */
.cmtk-location-grid {
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: stretch;
}
.cmtk-location-title { margin: 0 0 32px; letter-spacing: -0.01em; }
.cmtk-location-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cmtk-location-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.cmtk-location-item i { font-size: 26px; margin-top: 2px; }
.cmtk-location-label {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}
.cmtk-location-value {
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.5;
}
.cmtk-location-link {
  color: var(--text-default);
  font-size: 16px;
  font-weight: 500;
}
.cmtk-map {
  border: 1px solid var(--stroke-light);
  min-height: 380px;
}
.cmtk-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(1.05);
}

/* =====================================================================
   Footer
   ===================================================================== */
.cmtk-footer {
  background: #1D1D20;
  color: #c9c9cc;
}
.cmtk-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cmtk-brand-footer .cmtk-brand-mark-footer {
  width: 32px;
  height: 32px;
  background: #fff;
  color: #1D1D20;
  font-size: 18px;
}
.cmtk-brand-footer .cmtk-brand-name { color: #fff; font-size: 18px; }
.cmtk-brand-sub-footer { color: #8a8a8e; font-size: 18px; }
.cmtk-footer-addr { font-size: 14px; color: #8a8a8e; }

/* =====================================================================
   Floating WhatsApp FAB
   ===================================================================== */
.cmtk-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s;
  animation: ringPulse 2.4s infinite;
}
.cmtk-fab:hover { transform: scale(1.06); }
.cmtk-fab i { font-size: 32px; }

@keyframes ringPulse {
  0%   { box-shadow: 0 0 0 0   rgba(37,211,102,.45); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0);   }
  100% { box-shadow: 0 0 0 0   rgba(37,211,102,0);   }
}

/* =====================================================================
   Carrusel
   ===================================================================== */
.cmtk-carousel {
  position: relative;
  border: 1px solid var(--stroke-light);
  background: #000;
}
.cmtk-carousel-viewport {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.cmtk-carousel-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  height: 100%;
  transition: transform .55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.cmtk-slide {
  flex: 0 0 100%;
  height: 100%;
  display: block;
}
.cmtk-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.cmtk-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #1D1D20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
  font-size: 22px;
}
.cmtk-carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}
.cmtk-carousel-btn:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 2px;
}
.cmtk-carousel-prev { left: 16px; }
.cmtk-carousel-next { right: 16px; }

.cmtk-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.cmtk-carousel-dot {
  width: 28px;
  height: 4px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background .2s, width .2s;
}
.cmtk-carousel-dot:hover { background: rgba(255, 255, 255, 0.7); }
.cmtk-carousel-dot[aria-selected="true"] {
  background: #fff;
  width: 40px;
}
.cmtk-carousel-dot:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .cmtk-carousel-viewport { aspect-ratio: 4 / 3; }
  .cmtk-carousel-btn { width: 40px; height: 40px; font-size: 18px; }
  .cmtk-carousel-prev { left: 8px; }
  .cmtk-carousel-next { right: 8px; }
}

/* The .cmtk-lab-media wrapper previously held two stacked imgs; the
   carousel now takes its place directly. Reset any inherited grid. */
.cmtk-lab .cmtk-carousel { height: 100%; }

.cmtk-carousel-hero {
  border-color: rgba(255, 255, 255, 0.14);
  background: #2a2a2e;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 860px) {
  .cmtk-grid { grid-template-columns: 1fr; gap: 40px; }
  .cmtk-services { grid-template-columns: 1fr; }
  .cmtk-services > article {
    border-right: 0;
    border-bottom: 1px solid var(--stroke-light);
  }
  .cmtk-services > article:last-child { border-bottom: 0; }
  .cmtk-h1 { font-size: 40px; }
  .cmtk-nav-links { display: none; }
  .cmtk-hero-pad { padding: 56px 22px 64px; }
  .cmtk-sec-pad { padding: 64px 22px; }
}
@media (max-width: 480px) {
  .cmtk-h1 { font-size: 32px; }
}
