/* ============================================================
   LOGICAL TECH — Design System
   ============================================================ */

:root {
  --navy-950: #101a2e;
  --navy-900: #17233d;
  --blue-800: #1f2f4d;
  --blue-700: #2a4270;
  --blue-600: #33507f;
  --blue-500: #4a68a3;
  --blue-400: #5b7fbd;
  --blue-100: #e9eefb;
  --blue-050: #f4f7fd;
  --ink-900: #131a27;
  --ink-700: #3a4356;
  --ink-500: #647089;
  --ink-300: #9aa4b8;
  --line: #e3e8f2;
  --white: #ffffff;
  --green: #25d366;
  --green-dark: #1da851;
  --amber: #e8a400;
  --amber-bg: #fff6e5;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(19, 26, 39, 0.06);
  --shadow: 0 10px 34px rgba(19, 26, 39, 0.10);
  --shadow-lg: 0 24px 60px rgba(19, 26, 39, 0.16);
  --container: 1180px;
  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  margin: 0 0 .5em;
  line-height: 1.18;
  font-weight: 700;
}
p { line-height: 1.65; color: var(--ink-700); margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
@media (max-width: 900px) { section { padding: 56px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--blue-500);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-700); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--line); color: var(--navy-900); background: var(--white); }
.btn-ghost:hover { border-color: var(--blue-400); color: var(--blue-600); }
.btn-white { background: var(--white); color: var(--blue-700); }
.btn-white:hover { background: var(--blue-050); }
.btn-whatsapp { background: var(--green); color: var(--white); box-shadow: 0 8px 22px rgba(37,211,102,.32); }
.btn-whatsapp:hover { background: var(--green-dark); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 118px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 106px; width: auto; position: relative; top: 6px; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy-900); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-700);
  padding: 6px 2px;
  position: relative;
}
.main-nav a:hover { color: var(--blue-600); }
.main-nav a.active { color: var(--blue-600); }
.main-nav a.active::before {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}
.main-nav .dropdown { position: relative; }
.main-nav .dropdown > a::after { content: '▾'; margin-left: 5px; font-size: .7em; }
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 14px 14px;
  display: grid;
  grid-template-columns: repeat(3, 200px);
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease;
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink-700);
}
.dropdown-panel a:hover { background: var(--blue-050); color: var(--blue-600); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2.4px; background: var(--navy-900); border-radius: 2px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(16,26,46,.95) 0%, rgba(19,30,52,.92) 30%, rgba(23,35,61,.72) 58%, rgba(23,35,61,.4) 100%),
    url('../img/backgrounds/hero-bogota-fenicia.jpg') center 25%/cover no-repeat;
  padding: 76px 0 60px;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .eyebrow { background: rgba(255,255,255,.14); color: #cfe0ff; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); color: var(--white); }
.hero h1 em { font-style: normal; color: #8fb4ff; }
.hero-lead { font-size: 1.12rem; max-width: 480px; color: #d7e0f5; }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--white); }
.hero-stats div span { font-size: .82rem; color: #b9c4dd; }

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}
.hero-visual .tall { grid-row: span 2; height: 100%; object-fit: cover; }
.hero-visual .short { height: 100%; object-fit: cover; }

/* ---------- Trust strip ---------- */
.trust-strip { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; justify-content: center; }
.trust-strip span { font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .04em; color: var(--ink-500); text-transform: uppercase; }

/* ---------- Product grid (home) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--blue-400); }
.product-card .tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 4px 10px;
  border-radius: 999px;
}
.product-card h3 { font-size: 1.18rem; margin-bottom: 2px; }
.product-card p { font-size: .89rem; flex: 1; margin-bottom: 6px; }
.product-card .card-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-card:hover .card-link { gap: 10px; }

/* ---------- Generic feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-item {
  background: var(--blue-050);
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid transparent;
}
.feature-item h4 { font-size: 1rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.feature-item h4 .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); flex: none;
}
.feature-item p { font-size: .87rem; margin: 0; }

/* ---------- Nosotros (photo background) ---------- */
#nosotros {
  position: relative;
  background:
    linear-gradient(160deg, rgba(16,26,46,.93), rgba(31,47,77,.88) 55%, rgba(31,47,77,.74) 100%),
    url('../img/backgrounds/medellin-skyline.jpg') center 38%/cover no-repeat;
}
#nosotros .eyebrow { background: rgba(255,255,255,.14); color: #cfe0ff; }
#nosotros .section-head h2 { color: var(--white); }
#nosotros .section-head p { color: #d7e0f5; }
#nosotros .feature-item { box-shadow: var(--shadow-lg); }

.photo-credits { font-size: .68rem; color: #7c88a8; margin: 14px 0 0; text-align: center; }

/* ---------- Product hero ---------- */
.product-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--blue-700) 120%);
  color: var(--white);
  padding: 64px 0 56px;
}
.product-hero .breadcrumb { font-size: .8rem; color: var(--blue-100); opacity: .8; margin-bottom: 16px; }
.product-hero .breadcrumb a { text-decoration: underline; }
.product-hero .container { display: grid; grid-template-columns: .65fr 1.35fr; gap: 36px; align-items: center; }
.product-hero h1 { color: var(--white); font-size: clamp(1.6rem, 2.9vw, 2.5rem); }
.product-hero .lead { color: #d7e0f5; font-size: 1rem; max-width: 100%; }
.risk-solution {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0 22px;
}
.risk-solution p { color: #e7ecfa; font-size: .87rem; margin: 8px 0; }
.risk-solution p.risk::before { content: '⚠ '; color: var(--amber); }
.risk-solution p.solution::before { content: '✓ '; color: var(--green); }
.product-hero .hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.product-hero-poster {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255,255,255,.14);
}

@media (max-width: 1100px) and (min-width: 901px) {
  .product-hero .container { grid-template-columns: .85fr 1.15fr; gap: 28px; }
  .product-hero h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
}

/* ---------- Gallery ---------- */
.gallery-wrap { position: relative; }
.gallery-viewport { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.gallery-track { display: flex; transition: transform .35s ease; }
.gallery-slide { min-width: 100%; }
.gallery-slide img { width: 100%; height: 460px; object-fit: contain; background: var(--blue-050); }
.gallery-caption {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy-900);
  padding-top: 16px;
}
.gallery-caption:first-letter { text-transform: uppercase; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; color: var(--navy-900); }
.gallery-nav.prev { left: -14px; }
.gallery-nav.next { right: -14px; }
.gallery-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.gallery-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; }
.gallery-dots button.active { background: var(--blue-600); width: 22px; border-radius: 4px; }
.single-poster { border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pricing-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.pricing-grid.cols-1 { grid-template-columns: minmax(280px, 420px); justify-content: center; }
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured { border-color: var(--blue-500); box-shadow: var(--shadow); }
.price-card .badge {
  position: absolute; top: -13px; left: 26px;
  background: var(--blue-600); color: var(--white);
  font-family: var(--font-head); font-size: .7rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.price-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.price-card .price { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--navy-900); margin: 6px 0 2px; }
.price-card .price small { font-size: .85rem; font-weight: 500; color: var(--ink-500); }
.price-card ul { margin: 18px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.price-card ul li { font-size: .88rem; color: var(--ink-700); display: flex; gap: 8px; }
.price-card ul li::before { content: '✓'; color: var(--green-dark); font-weight: 700; flex: none; }
.price-note { text-align: center; font-size: .84rem; color: var(--ink-500); margin-top: 26px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-700), var(--navy-900));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d7e0f5; max-width: 520px; margin: 0 auto 26px; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: flex-start; }
.contact-info { background: var(--navy-900); color: var(--white); border-radius: var(--radius-lg); padding: 34px; }
.contact-info h3 { color: var(--white); }
.contact-info p { color: #c9d3ea; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; }
.contact-item .icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-item .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: #9db0da; margin-bottom: 2px; }
.contact-item .value a, .contact-item .value { color: var(--white); font-weight: 600; font-size: .95rem; }

.contact-form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); font-family: var(--font-body); font-size: .93rem;
  background: var(--blue-050); color: var(--ink-900);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue-500); background: var(--white);
}
.form-feedback { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 600; }
.form-feedback.success { background: #e7f9ee; color: #157347; }
.form-feedback.error { background: #fdeaea; color: #b42318; }
.hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #b9c4dd; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { color: var(--white); font-size: .92rem; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 9px; font-size: .86rem; }
.footer-grid ul li a:hover { color: var(--white); }
.footer-brand img { height: 108px; margin-bottom: 16px; filter: brightness(1.9) contrast(1.05); }
.footer-brand p { color: #93a1c2; font-size: .86rem; max-width: 280px; }
.footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .8rem; color: #8290b0;
}

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp {
  position: fixed; bottom: 22px; right: 22px; z-index: 600;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .15s ease;
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { width: 30px; height: 30px; }

/* ---------- Cookie banner ---------- */
#cookie-banner {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 700;
  max-width: 640px; margin: 0 auto;
  background: var(--navy-900); color: #dfe5f4;
  border-radius: var(--radius); padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
#cookie-banner p { color: #c9d3ea; font-size: .85rem; margin: 0; flex: 1 1 220px; }
#cookie-banner .cookie-actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 460px) {
  #cookie-banner { flex-direction: column; align-items: stretch; }
  #cookie-banner .cookie-actions { justify-content: flex-end; }
}
.btn-cookie-accept, .btn-cookie-decline {
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  padding: 9px 16px; border-radius: 999px; cursor: pointer; border: none;
}
.btn-cookie-accept { background: var(--blue-500); color: var(--white); }
.btn-cookie-decline { background: transparent; color: #b9c4dd; border: 1px solid rgba(255,255,255,.25); }

/* ---------- Mobile nav ---------- */
@media (max-width: 980px) {
  .main-nav { position: fixed; inset: 82px 0 0 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 20px 24px; gap: 4px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .dropdown-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; grid-template-columns: 1fr; display: none; padding: 0 0 0 12px; }
  .dropdown.open .dropdown-panel { display: grid; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary.desktop-only { display: none; }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid, .pricing-grid.cols-2 { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .product-hero .container { grid-template-columns: 1fr; }
  .product-hero-poster { order: -1; max-width: 380px; margin: 0 auto; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .product-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { grid-template-columns: 1fr; }
  .hero-visual .tall { grid-row: auto; height: auto; }
  .gallery-slide img { height: 260px; }
  .gallery-nav { display: none; }
  .product-hero-poster { max-width: 260px; }
  .cta-band { padding: 34px 22px; }
  .site-header .container { height: 98px; }
  .brand img { height: 84px; }
  #cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; }
}
