/* ==========================================================================
   Mindshift Consulting — Design system & styles
   ========================================================================== */

:root {
  /* Brand colors (extraídos del logo) */
  --navy: #1A386D;
  --navy-700: #142C57;
  --navy-900: #0E1F3F;
  --blue: #1183D1;
  --blue-600: #0E6BAB;
  --blue-100: #EAF4FC;
  --blue-50: #F4FAFE;

  /* Neutrals */
  --ink: #1C2430;
  --gray-700: #3D4757;
  --gray-600: #5B6B82;
  --gray-500: #70809A;
  --gray-400: #93A1B5;
  --gray-200: #E3E8EF;
  --gray-100: #F1F4F8;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;
  --danger: #C4314B;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 30, 60, 0.06), 0 1px 1px rgba(15, 30, 60, 0.04);
  --shadow-md: 0 12px 24px -8px rgba(15, 30, 60, 0.16);
  --shadow-lg: 0 24px 48px -12px rgba(15, 30, 60, 0.22);

  --container: 1140px;
  --gradient-brand: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
@media (max-width: 768px) {
  section { padding: 64px 0; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  z-index: 100;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; color: var(--navy-900); }
h1 { font-size: 48px; line-height: 1.08; }
h2 { font-size: 34px; line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; color: var(--gray-700); }

@media (max-width: 768px) {
  h1 { font-size: 34px; }
  h2 { font-size: 27px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}

.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head p { margin-top: 14px; font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:disabled { opacity: .7; cursor: default; transform: none; box-shadow: var(--shadow-sm); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-600); }
.btn-on-dark {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.32);
}
.btn-on-dark:hover { background: rgba(255,255,255,0.22); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.brand .brand-word { flex-direction: row; align-items: baseline; gap: 7px; }
.brand .brand-word .sub {
  font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--gray-600);
}
.brand-word { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.brand-word .name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.brand-word .name .mind { color: var(--navy); }
.brand-word .name .shift { color: var(--blue); }
.brand-word .sub {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gray-600);
}

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; color: var(--gray-700);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta-mobile { display: none; }
.nav-links a.nav-cta-mobile,
.nav-links a.nav-cta-mobile:hover,
.nav-links a.nav-cta-mobile:focus-visible {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy);
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); background: var(--navy); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); background: var(--navy); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--gray-200);
    padding: 12px 24px 20px;
  }
  body.nav-open .nav-links a { padding: 10px 0; width: 100%; }
  body.nav-open .nav-links .nav-cta-mobile {
    display: inline-flex; width: 100%; margin-top: 10px; padding: 13px 26px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(680px 360px at 85% -10%, var(--blue-100), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--blue); }
.hero-sub { font-size: 18px; max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1448 / 1086;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Strips (procesos de negocio / tecnologías) ---------- */
.trust-strip, .tech-strip { padding: 34px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.trust-strip .container, .tech-strip .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trust-strip span.tag, .tech-strip span.tag {
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray-600); white-space: nowrap;
}
.trust-strip .chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.trust-strip .chip {
  font-size: 13.5px; font-weight: 600; color: var(--navy);
  background: var(--bg-soft); border: 1px solid var(--gray-200);
  padding: 8px 16px; border-radius: 999px;
}
.tech-strip { border-top: none; }
.tech-logos { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.tech-logos img { height: 27px; width: auto; opacity: 0.85; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 15px; }
.service-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.service-card li {
  font-size: 13.5px; color: var(--gray-600); display: flex; gap: 8px; align-items: flex-start;
}
.service-card li::before { content: "→"; color: var(--blue); font-weight: 700; }

/* ---------- Approach / why us ---------- */
.approach { background: var(--bg-soft); }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .approach-grid { grid-template-columns: 1fr; } }
.approach-item { text-align: left; }
.approach-num {
  font-size: 13px; font-weight: 800; color: #fff;
  background: var(--gradient-brand);
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.approach-item h3 { margin-bottom: 8px; }
.approach-item p { font-size: 14.5px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; } }
.about-intro p { font-size: 20px; line-height: 1.5; margin-bottom: 16px; }
.about-intro p:last-child { margin-bottom: 0; }

.founder-card {
  background: var(--bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.founder-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.founder-avatar {
  width: 60px; height: 60px; border-radius: 16px;
  object-fit: cover;
  flex: 0 0 auto;
}
.founder-top h3 { font-size: 18px; margin-bottom: 2px; }
.founder-top span { display: block; font-size: 13.5px; color: var(--gray-600); font-weight: 600; }
.founder-card p { font-size: 14.5px; margin-bottom: 14px; }
.founder-card p:last-of-type { margin-bottom: 18px; }

.founder-creds { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--gray-200); padding-top: 16px; }
.founder-creds-label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 2px; }
.founder-creds .cred { display: flex; gap: 10px; font-size: 13px; color: var(--gray-600); }
.founder-creds .cred b { color: var(--gray-400); font-weight: 700; min-width: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 28px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 10px; font-size: 15px; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--blue-100);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.contact-info-item h4 { font-size: 14.5px; margin-bottom: 3px; color: var(--navy-900); font-weight: 700; }
.contact-info-item p, .contact-info-item a { font-size: 14.5px; color: var(--gray-700); }
.contact-info-item a:hover { color: var(--blue); }

.contact-form {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; font-weight: 700; color: var(--navy-900);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.field-error {
  display: none;
  font-size: 12.5px; color: var(--danger); margin-top: 6px;
}
.field input.invalid, .field textarea.invalid { border-color: var(--danger); background: #fff; }
.field input.invalid ~ .field-error, .field textarea.invalid ~ .field-error { display: block; }

.form-status { min-height: 0; font-size: 13.5px; font-weight: 600; margin: 0; }
.form-status.show { margin: 14px 0 0; }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--blue-600); }

.form-note { font-size: 12.5px; color: var(--gray-600); margin-top: 14px; }

.form-success {
  display: none;
  text-align: center;
  padding: 34px 10px;
}
.form-success.show { display: block; }
.form-success .icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px;
  background: var(--blue-100); display: flex; align-items: center; justify-content: center;
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.72); padding: 64px 0 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { max-width: 300px; }
.footer-brand .brand-word .mind { color: #fff; }
.footer-brand .brand-word .shift { color: #5FB8F2; }
.footer-brand .brand-word .sub { color: rgba(255,255,255,0.6); }
.footer-brand p { color: rgba(255,255,255,0.62); font-size: 14px; margin-top: 16px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.7); transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.55); flex-wrap: wrap; gap: 10px; }

/* ---------- Anchors under sticky header ---------- */
#inicio, #servicios, #nosotros, #contacto { scroll-margin-top: 90px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
