/* ===== Innovachap — estilos ===== */
:root {
  --navy-900: #0a1f44;
  --navy-800: #0b2a5c;
  --blue-700: #0b3d91;
  --blue-600: #1553c0;
  --blue-500: #2469e3;
  --blue-100: #e3ecfb;
  --blue-50: #f2f6fd;
  --ink: #16213a;
  --muted: #5a6784;
  --line: #dde4f0;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 31, 68, 0.10);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(21, 83, 192, 0.35);
}
.btn-primary:hover { background: var(--blue-500); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(10, 31, 68, 0.85);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.navbar.scrolled {
  background: var(--navy-900);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
}
.brand-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand-name span { color: #7fa8f0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-links a:not(.btn) {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--white);
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(36, 105, 227, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--blue-700) 130%);
  color: var(--white);
  padding: 9.5rem 0 6rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-500);
  margin-bottom: 0.9rem;
}
.hero .eyebrow { color: #8db2f2; }
.eyebrow.center { text-align: center; }

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 1.2rem;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #6ea8ff, #9cc2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.82);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero visual (maquetas decorativas) */
.hero-visual {
  position: relative;
  min-height: 340px;
}
.mock-window {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mock-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
}
.mock-body { padding: 18px 16px 22px; display: grid; gap: 12px; }
.mock-line {
  height: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.22);
}
.w-50 { width: 50%; } .w-60 { width: 60%; } .w-70 { width: 70%; }
.w-75 { width: 75%; } .w-80 { width: 80%; } .w-90 { width: 90%; }
.mock-chip-row { display: flex; gap: 10px; }
.mock-chip {
  width: 60px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(110,168,255,0.55), rgba(36,105,227,0.55));
}
.mock-block {
  height: 64px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(110,168,255,0.5), rgba(36,105,227,0.5));
}
.mock-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  min-width: 130px;
  padding: 26px 14px 20px;
  display: grid;
  gap: 10px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}
.mock-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 40%; height: 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.28);
}

/* ===== Secciones ===== */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--blue-50); }

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 0.7rem;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 3rem;
}

/* ===== Cards de servicios ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-700);
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ===== Apps ===== */
.app-card { display: flex; flex-direction: column; }
.app-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.app-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.app-head h3 { margin-bottom: 0.15rem; }
.app-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
}
.app-slogan {
  font-weight: 600;
  color: var(--ink) !important;
  font-style: italic;
  margin-bottom: 0.5rem;
}
.app-card p { margin-bottom: 0.4rem; }
.app-link {
  margin-top: auto;
  padding-top: 0.8rem;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.app-link:hover { text-decoration: underline; }

/* ===== Proceso ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
}
.step-num {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ===== Nosotros ===== */
.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.about p { color: var(--muted); margin-bottom: 1.4rem; }

.checklist { list-style: none; display: grid; gap: 0.7rem; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink);
  font-size: 0.97rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E") center/12px no-repeat;
}

.about-panel {
  display: grid;
  gap: 1.2rem;
}
.stat {
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  display: grid;
  gap: 0.2rem;
}
.stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue-700);
  letter-spacing: -0.01em;
}
.stat-label { color: var(--muted); font-size: 0.9rem; }

/* ===== Contacto ===== */
.section-cta {
  background:
    radial-gradient(700px 400px at 15% 110%, rgba(36, 105, 227, 0.35), transparent 60%),
    linear-gradient(200deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.contact-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}
.contact-text p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; max-width: 26rem; }
.contact-mail {
  color: #8db2f2;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}
.contact-mail:hover { text-decoration: underline; }

.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
  backdrop-filter: blur(6px);
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(36,105,227,0.35);
}
.form-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* ===== Footer ===== */
.footer {
  background: #061530;
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand-footer .brand-name { font-size: 1.05rem; }
.brand-footer .brand-mark { width: 30px; height: 30px; font-size: 0.95rem; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--white); }
.copyright { font-size: 0.85rem; }

/* ===== Animación de aparición ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { min-height: 300px; max-width: 480px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: none;
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 0.85rem 1.5rem; }
  .nav-links .btn { margin: 0.7rem 1.5rem 0; text-align: center; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 7.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
