/* ============================================================
   NORDKLIN – Estilos personalizados
   Archivo: nordklin.css
   Requiere: Bootstrap 5, Bootstrap Icons, Google Fonts (Barlow)
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --nk-blue:      #1A3C6E;
  --nk-blue-mid:  #1E5BB5;
  --nk-accent:    #2E80E8;
  --nk-green:     #25D366;
  --nk-dark:      #0D1B2A;
  --nk-light:     #F4F7FB;
  --nk-white:     #FFFFFF;
  --nk-gray:      #6C7A8D;
  --nk-border:    #E2E8F0;
  --radius-card:  12px;
  --font-head:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --shadow-card:  0 4px 24px rgba(26,60,110,0.10);
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--nk-dark);
  background: var(--nk-white);
}

/* ===== NAVBAR ===== */
.nk-navbar {
  background: var(--nk-dark);
  padding: 0 40px;
  height: 64px;
}
.nk-navbar .navbar-brand {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--nk-white);
  letter-spacing: 1px;
}
.nk-navbar .navbar-brand span { color: var(--nk-accent); }
.nk-navbar .tagline {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: #8fa4c2;
  text-transform: uppercase;
  margin-top: -4px;
  display: block;
}
.nk-navbar .nav-link {
  color: #cbd5e1 !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 14px !important;
  transition: color 0.2s;
}
.nk-navbar .nav-link:hover { color: var(--nk-white) !important; }

.btn-phone {
  background: var(--nk-accent);
  color: var(--nk-white) !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  white-space: nowrap;
}
.btn-phone:hover { background: var(--nk-blue-mid); }

/* ===== HERO ===== */
.nk-hero {
  background: var(--nk-dark);
  min-height: 640px;
  position: relative;
  overflow: hidden;
}
.nk-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, var(--nk-dark) 48%, transparent 72%);
  z-index: 1;
}
.nk-hero-img {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 60%;
  object-fit: cover;
  object-position: center top;
}
.nk-hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 40px 80px;
}
.nk-hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--nk-white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.nk-hero-content p {
  color: #b0c4de;
  font-size: 1.1rem;
  max-width: 460px;
  margin-bottom: 32px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--nk-green);
  color: var(--nk-white);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-whatsapp:hover {
  background: #1fb855;
  color: var(--nk-white);
  transform: translateY(-2px);
}

.nk-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
}
.nk-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8fa4c2;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.nk-badge i { color: var(--nk-accent); font-size: 1.2rem; }

/* ===== TAGLINE SECTION ===== */
.nk-tagline {
  background: var(--nk-white);
  padding: 64px 0 40px;
  text-align: center;
}
.nk-tagline h2 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--nk-dark);
  margin-bottom: 8px;
}
.nk-tagline p {
  color: var(--nk-gray);
  font-size: 1.05rem;
}
.nk-tagline .highlight { color: var(--nk-accent); font-weight: 700; }

/* ===== SERVICES ===== */
.nk-services { background: var(--nk-light); padding: 20px 0 64px; }

.nk-service-card {
  background: var(--nk-white);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  min-height: 220px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nk-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,60,110,0.15);
}
.nk-service-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  line-height: 1;
  display: flex;
  justify-content: center;
}
.nk-service-card h5 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--nk-dark);
  margin-bottom: 12px;
  text-align: center;
}
.nk-service-card ul {
  list-style: none;
  padding: 0; margin: 0;
}
.nk-service-card ul li {
  font-size: 0.875rem;
  color: var(--nk-gray);
  padding: 3px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.nk-service-card ul li::before {
  content: '✓';
  color: var(--nk-accent);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ===== RESULTS ===== */
.nk-results { background: var(--nk-white); padding: 64px 0; }

.section-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--nk-dark);
  margin-bottom: 8px;
}
.nk-result-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.nk-result-wrap img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  background: #c9d8e8;
}
.nk-result-label {
  position: absolute;
  bottom: 10px; left: 10px;
  background: var(--nk-blue);
  color: var(--nk-white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 4px;
}
.nk-result-label.label-after { background: var(--nk-accent); }

/* Placeholder images usando gradientes CSS */
.img-before { background: linear-gradient(135deg, #8fa0b4 0%, #6b7c92 100%); }
.img-after  { background: linear-gradient(135deg, #b8cde0 0%, #8fb3d2 100%); }

/* ===== BENEFITS ===== */
.nk-benefits {
  background: var(--nk-light);
  padding: 40px 0;
  border-top: 1px solid var(--nk-border);
  border-bottom: 1px solid var(--nk-border);
}
.nk-benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nk-benefit-item .iconify {
  flex-shrink: 0;
}
.nk-benefit-item strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--nk-dark);
  display: block;
}
.nk-benefit-item span {
  font-size: 0.78rem;
  color: var(--nk-gray);
}

/* ===== SOCIAL PROOF ===== */
.nk-social { background: var(--nk-white); padding: 64px 0; }

.nk-review-card {
  background: var(--nk-light);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  border: 1px solid var(--nk-border);
}
.nk-stars { color: #F59E0B; font-size: 1rem; margin-bottom: 10px; }
.nk-review-card p {
  font-size: 0.9rem;
  color: var(--nk-dark);
  font-style: italic;
  margin-bottom: 10px;
}
.nk-review-card cite {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nk-gray);
  font-style: normal;
}

/* ===== FORM ===== */
.nk-form { background: var(--nk-light); padding: 64px 0; }
.nk-form h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--nk-dark);
  margin-bottom: 8px;
}
.nk-form p { color: var(--nk-gray); font-size: 0.95rem; }

.form-control {
  height: 48px;
  border-radius: 8px;
  border: 1.5px solid var(--nk-border);
  font-size: 0.9rem;
  color: var(--nk-dark);
  background: var(--nk-white);
}
.form-control:focus {
  border-color: var(--nk-accent);
  box-shadow: 0 0 0 3px rgba(46,128,232,0.12);
}

.btn-submit {
  height: 48px;
  background: var(--nk-blue);
  color: var(--nk-white);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  width: 100%;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit:hover { background: var(--nk-blue-mid); color: var(--nk-white); }

.nk-privacy {
  font-size: 0.75rem;
  color: var(--nk-gray);
  text-align: center;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ===== CTA FINAL ===== */
.nk-cta {
  background: var(--nk-dark);
  min-height: 220px;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 48px 0;
}
.nk-cta h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--nk-white);
  margin-bottom: 24px;
}
.nk-cta-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.nk-cta-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8fa4c2;
  font-size: 0.8rem;
  font-weight: 600;
}
.nk-cta-badge i { color: var(--nk-accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .nk-hero-img { width: 100%; opacity: 0.3; }
  .nk-hero::before {
    background: linear-gradient(105deg, var(--nk-dark) 55%, rgba(13,27,42,0.75) 100%);
  }
  .nk-benefit-item {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 6px;
  }
}

/* md y abajo (< 768px) */
@media (max-width: 767px) {
  /* Botón WhatsApp del hero ocupa ancho completo */
  .nk-hero .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  /* Imágenes de resultados más cortas en móvil */
  .nk-result-wrap img { height: 180px; }

  /* Reduce el gap enorme en la sección de prueba social */
  .nk-social .row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; }

  /* Reduce el gap en la sección del formulario */
  .nk-form .row.align-items-start { --bs-gutter-y: 2rem; }

  /* Badges del CTA: menos separación */
  .nk-cta-badges { gap: 16px; }
}

/* sm y abajo (< 576px) */
@media (max-width: 575px) {
  /* Navbar: quitar padding lateral excesivo */
  .nk-navbar { padding: 0 16px; height: auto; min-height: 64px; }

  /* Menú desplegable */
  #navMenu {
    padding: 14px 0 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 8px;
  }
  #navMenu .navbar-nav { margin-bottom: 10px; }

  /* Botón de teléfono ocupa ancho completo en el menú */
  .btn-phone {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 4px;
  }

  /* Hero */
  .nk-hero { min-height: 520px; }
  .nk-hero-content { padding: 72px 20px 48px; }
  .nk-hero-content p { font-size: 0.95rem; margin-bottom: 24px; }

  /* Badges del hero: cuadrícula 2x2 */
  .nk-hero-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    margin-top: 32px;
  }
  .nk-badge { flex-direction: column; text-align: center; gap: 4px; }

  /* Tagline */
  .nk-tagline { padding: 40px 0 24px; }
  .nk-tagline h2 { font-size: 1.5rem; }

  /* Servicios */
  .nk-service-card { min-height: auto; padding: 20px 16px; }

  /* Títulos de sección */
  .section-title { font-size: 1.6rem; }

  /* Prueba social */
  .nk-social { padding: 40px 0; }

  /* Formulario */
  .nk-form { padding: 40px 0; }
  .nk-form h2 { font-size: 1.6rem; }

  /* CTA final: badges en columna */
  .nk-cta { padding: 40px 0; }
  .nk-cta-badges {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
