/* ============================================================
   BINKODE — Hoja de estilos
   Paleta tomada del logo: turquesa (principal), verde, naranja,
   amarillo (acentos), negro/gris oscuro y blanco.
   ============================================================ */

:root {
  --turquoise: #2bb3c0;
  --turquoise-dark: #1f8e99;
  --green: #5fb246;
  --orange: #ef7d22;
  --yellow: #f7b500;
  --ink: #1d2a33;        /* casi negro, para textos/fondos oscuros */
  --ink-soft: #3a4a56;
  --muted: #6b7a86;
  --line: #e5ebef;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(29, 42, 51, 0.08);
  --shadow-lg: 0 20px 50px rgba(29, 42, 51, 0.14);
  --container: 1180px;

  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; font-weight: 700; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 2.5px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.accent-text { color: var(--turquoise-dark); }
.accent { color: var(--turquoise); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-primary { background: var(--turquoise); color: #fff; box-shadow: 0 8px 20px rgba(43,179,192,0.35); }
.btn-primary:hover { background: var(--turquoise-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(43,179,192,0.45); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--yellow); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 56px; width: auto; display: block; }
.main-nav ul { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s ease;
}
.main-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--turquoise); transition: width 0.25s ease;
}
.main-nav a:not(.btn):hover { color: var(--turquoise-dark); }
.main-nav a:not(.btn):hover::after { width: 100%; }
.nav-cta a { color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; padding-top: 72px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(16,26,36,0.92) 0%, rgba(16,26,36,0.72) 45%, rgba(31,142,153,0.55) 100%);
}
.hero-inner { max-width: 760px; padding: 4rem 0; }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); color: #fff; margin-bottom: 1.3rem; }
.hero-text { font-size: 1.12rem; color: rgba(255,255,255,0.9); margin-bottom: 2rem; max-width: 620px; }
.hero-text strong { color: #fff; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.stats { background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.4rem 0; }
.stat { text-align: center; padding: 0.5rem 1rem; border-right: 1px solid rgba(255,255,255,0.12); }
.stat:last-child { border-right: none; }
.stat-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--turquoise); }
.stat-label { font-size: 0.86rem; color: rgba(255,255,255,0.7); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 0.8rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.about-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
.about-content p { margin-bottom: 1rem; }
.check-list { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.6rem; }
.check-list li { position: relative; padding-left: 1.9rem; font-weight: 500; color: var(--ink); }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 1.3rem; height: 1.3rem; background: var(--green); color: #fff;
  border-radius: 50%; font-size: 0.8rem; display: grid; place-items: center;
}

/* ---------- Cards (especializaciones) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(43,179,192,0.14), rgba(95,178,70,0.14));
}
.card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Partners ---------- */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 1rem; }
.partner-slot {
  height: 110px; border: 2px dashed var(--line); border-radius: var(--radius-sm);
  display: grid; place-items: center; color: var(--muted); font-weight: 500;
  background: #fff; text-align: center; padding: 1rem; transition: border-color 0.2s ease;
}
.partner-slot:hover { border-color: var(--turquoise); }
.partners-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 1.4rem; }

/* ---------- Solutions ---------- */
.solution {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  padding: 2.5rem 0;
}
.solution + .solution { border-top: 1px solid var(--line); }
.solution-reverse .solution-media { order: 2; }
.solution-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 3/2; object-fit: cover; }
.solution-body h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.6rem; }
.solution-claim { font-size: 1.08rem; color: var(--turquoise-dark); font-weight: 600; margin-bottom: 0.9rem; }
.solution-body > p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.service-list {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin-bottom: 1.6rem;
}
.service-list li { position: relative; padding-left: 1.4rem; font-size: 0.95rem; color: var(--ink); }
.service-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 2px; background: var(--orange); }
.solution-cta { background: var(--bg-alt); border-left: 4px solid var(--turquoise); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; }
.solution-cta p { margin-bottom: 0.9rem; color: var(--ink-soft); }

/* ---------- Cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.8rem; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-media { aspect-ratio: 16/10; overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.case-card:hover .case-media img { transform: scale(1.06); }
.case-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.case-tag { align-self: flex-start; background: rgba(43,179,192,0.12); color: var(--turquoise-dark); font-weight: 600; font-size: 0.78rem; padding: 0.3rem 0.8rem; border-radius: 50px; }
.case-body h3 { font-size: 1.2rem; margin-top: 0.2rem; }
.case-client { color: var(--muted); font-size: 0.9rem; font-style: italic; margin-bottom: 0.3rem; }
.case-body p { font-size: 0.93rem; }
.tech-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0; }
.tech-list li { background: var(--bg-alt); border: 1px solid var(--line); font-size: 0.78rem; padding: 0.22rem 0.7rem; border-radius: 50px; color: var(--ink-soft); }
.result-list { list-style: none; display: grid; gap: 0.35rem; margin-top: 0.4rem; }
.result-list li { position: relative; padding-left: 1.5rem; font-size: 0.9rem; }
.result-list li::before { content: '→'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; color: #fff; text-align: center; padding: 5rem 0; }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(16,26,36,0.9), rgba(31,142,153,0.78)); }
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.8rem; }
.cta-inner p { font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 1.8rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
.contact-intro h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 0.8rem; }
.contact-info { list-style: none; margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.contact-info li { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; }
.contact-info span { width: 36px; height: 36px; display: grid; place-items: center; background: var(--turquoise); color: #fff; border-radius: 50%; font-size: 0.9rem; font-weight: 700; }
.contact-info a:hover { color: var(--turquoise-dark); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.96rem; padding: 0.7rem 0.9rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(43,179,192,0.15);
}
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239,125,34,0.15); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 0.9rem; font-size: 0.92rem; font-weight: 500; }
.form-note.ok { color: var(--green); }
.form-note.err { color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-logo {
  height: 70px; width: auto; margin-bottom: 1rem;
  background: #fff; padding: 10px 14px; border-radius: 12px;
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a:hover { color: var(--turquoise); }
.social-row { display: flex; gap: 0.6rem; margin-bottom: 1rem; }
.social { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.08); color: #fff; font-weight: 700; font-size: 0.82rem; transition: background 0.2s ease, transform 0.2s ease; }
.social:hover { background: var(--turquoise); transform: translateY(-3px); }
.footer-mail a:hover { color: var(--turquoise); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.3rem 0; font-size: 0.86rem; }
.footer-bottom p { text-align: center; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; font-size: 1.5rem; color: #fff;
  box-shadow: 0 10px 24px rgba(95,178,70,0.45); transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .solution, .solution-reverse, .contact-grid { grid-template-columns: 1fr; }
  .solution-reverse .solution-media { order: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform 0.35s ease; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1.25rem; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a:not(.btn) { display: block; padding: 0.9rem 0; }
  .nav-cta { margin-top: 0.8rem; }
  .nav-cta a { display: block; text-align: center; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 1rem; }
  .stat:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
