/* ==========================================================
   Inside360 Consulting & Training — rediseño web
   CSS mobile first. Breakpoints: 600px, 900px, 1000px
   ========================================================== */

:root {
  --orange: #F7931E;
  --orange-hover: #FFA23A;
  --orange-text: #A85600;   /* naranja oscuro con buen contraste sobre blanco */
  --charcoal: #20242A;
  --dark-gray: #3A3F45;
  --mid-gray: #6F747B;
  --soft-text: #5A5F66;
  --light-gray: #F6F7F8;
  --border: #E6E8EB;
  --white: #FFFFFF;
  --radius: 20px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--charcoal); color: #fff; padding: 12px 18px;
  border-radius: 10px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.bg-light { background: var(--light-gray); }
.bg-dark { background: var(--charcoal); color: var(--white); }
.bg-orange { background: var(--orange); color: var(--charcoal); }

.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.split { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); align-items: center; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange-text);
}
.bg-dark .eyebrow { color: var(--orange); }
.h2 {
  font-size: clamp(28px, 7vw, 46px); line-height: 1.12;
  font-weight: 800; letter-spacing: -.02em; margin-top: 14px;
}
.lead { font-size: 17px; line-height: 1.65; color: var(--dark-gray); margin-top: 18px; }
.section-head { max-width: 760px; }
.note { margin-top: 14px; font-size: 13px; color: var(--soft-text); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font-family: inherit; font-size: 15px; font-weight: 700; text-decoration: none;
  cursor: pointer; text-align: center; line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--orange); color: var(--charcoal); }
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(247,147,30,.32); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--dark-gray); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--charcoal); border: 1.5px solid var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--white); }
.btn-line { background: transparent; color: var(--charcoal); border: 1.5px solid #D5D8DC; }
.btn-line:hover { border-color: var(--orange); background: #FFF4E5; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 16px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(32,36,42,.09); border-color: var(--orange); }
.num { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--orange-text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: var(--light-gray); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--dark-gray);
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(32,36,42,.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; height: var(--header-h);
}
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo-mark { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--charcoal); }
.logo-mark span { color: var(--orange); }
.logo-sub { font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mid-gray); margin-top: 4px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; min-height: 44px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  border: 1.5px solid #D5D8DC; background: transparent; cursor: pointer; padding: 0;
}
.nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after {
  display: block; width: 20px; height: 2px; background: var(--charcoal);
  border-radius: 2px; position: relative; transition: transform .25s ease, background .25s ease;
}
.nav-toggle .bar::before, .nav-toggle .bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
  display: none;
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(32,36,42,.1);
  padding: 8px 20px 24px;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.nav.is-open { display: block; }
.nav a:not(.btn) {
  display: block; padding: 16px 0; text-decoration: none;
  font-weight: 600; font-size: 17px; color: var(--dark-gray);
  border-bottom: 1px solid #F0F1F3;
}
.nav a:not(.btn):hover { color: var(--charcoal); }
.nav .btn { margin-top: 20px; width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero h1 {
  font-size: clamp(36px, 10.5vw, 72px); line-height: 1.03;
  font-weight: 800; letter-spacing: -.035em; margin-top: 18px;
}
.hero h1 .hl { box-shadow: inset 0 -.28em 0 var(--orange); }
.hero .lead { font-size: 18px; max-width: 560px; margin-top: 22px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 24px; font-size: 14px; color: var(--soft-text); font-weight: 500; }

.hero-visual { position: relative; }
.photo {
  position: relative; border-radius: 24px; overflow: hidden;
  background: linear-gradient(145deg, #3A3F45 0%, #20242A 70%);
}
.photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo figcaption {
  position: absolute; left: 18px; right: 18px; bottom: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: #C9CDD2;
}
.hero-photo { aspect-ratio: 4 / 3.4; width: 100%; }
.hero-tag {
  position: absolute; left: 14px; bottom: 44px; right: 14px;
  max-width: 270px;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  box-shadow: 0 18px 40px rgba(32,36,42,.18);
}
.hero-tag:hover { transform: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: none; }
.hero-tag span:last-child { font-size: 13px; font-weight: 700; line-height: 1.35; }

/* ---------- Trust ---------- */
.trust { padding: 48px 0; background: var(--light-gray); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust h2 {
  text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dark-gray);
}
.logos { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
.logo-ph {
  height: 68px; border-radius: 14px; background: var(--white);
  border: 1px dashed #C4C8CD; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--soft-text); text-transform: uppercase;
}

/* ---------- Problems ---------- */
.problem h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin-top: 14px; }
.pull {
  margin-top: 44px; font-size: clamp(20px, 5vw, 28px); font-weight: 700;
  line-height: 1.3; letter-spacing: -.01em; max-width: 780px;
  padding-left: 18px; border-left: 4px solid var(--orange);
}

/* ---------- Solutions ---------- */
.solution { display: flex; flex-direction: column; padding: 28px; }
.solution h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 12px; }
.solution p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--dark-gray); }
.solution .chips { margin-top: 22px; }
.solution .btn { margin-top: 28px; width: 100%; }
.solution .spacer { flex: 1; }

/* ---------- Steps ---------- */
.steps { margin-top: 44px; gap: 32px; }
.step { border-top: 2px solid var(--mid-gray); padding-top: 22px; }
.step:first-child { border-top-color: var(--orange); }
.step .big { font-size: 52px; font-weight: 800; letter-spacing: -.04em; color: var(--orange); line-height: 1; }
.step h3 { font-size: 22px; font-weight: 700; margin-top: 18px; }
.step p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: #C9CDD2; }
.bg-dark .lead { color: #C9CDD2; }
.steps-cta { margin-top: 44px; }

/* ---------- Cases ---------- */
.case { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case-head { background: var(--charcoal); padding: 22px 24px; }
.case-sector { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.case-head h3 { font-size: 21px; font-weight: 800; color: var(--white); margin-top: 8px; line-height: 1.25; }
.case dl { padding: 22px 24px 26px; display: grid; gap: 16px; }
.case dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft-text); }
.case dd { font-size: 15px; line-height: 1.5; margin-top: 4px; }
.case .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case .two dd { font-weight: 700; }
.case .result { padding-top: 16px; border-top: 1px solid var(--border); }
.case .result dt { color: var(--orange-text); }
.cases-cta { margin-top: 36px; }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; gap: 22px; padding: 28px; }
.quote blockquote { font-size: 17px; line-height: 1.65; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--dark-gray); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; flex: none;
}
.who { font-size: 14px; line-height: 1.4; color: var(--soft-text); }
.who strong { display: block; font-size: 15px; color: var(--charcoal); }

/* ---------- Stats ---------- */
.stats { padding: 64px 0; }
.stats h2 {
  text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dark-gray);
}
.stat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
.stat { padding: 24px 8px; text-align: center; border-bottom: 1px solid var(--border); }
.stat .value { font-size: clamp(38px, 10vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat .value em { font-style: normal; color: var(--orange); }
.stat .label { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--dark-gray); }
.stats .note { text-align: center; }

/* ---------- Experience ---------- */
.big-p { margin-top: 22px; font-size: clamp(19px, 4.6vw, 24px); line-height: 1.5; font-weight: 600; letter-spacing: -.01em; }
.pillars { display: grid; gap: 14px; }
.pillar { display: flex; gap: 18px; align-items: flex-start; }
.pillar .num { padding-top: 4px; }
.pillar h3 { font-size: 20px; font-weight: 700; }
.pillar p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--dark-gray); }
.split .btn { margin-top: 28px; }

/* ---------- Social responsibility ---------- */
.rse-photo { aspect-ratio: 5 / 4; width: 100%; }
.rse .chips { margin-top: 26px; }

/* ---------- CTA + form ---------- */
.cta-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cta h2 { font-size: clamp(32px, 8.4vw, 58px); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; margin-top: 14px; }
.cta-text { margin-top: 20px; font-size: 19px; line-height: 1.55; font-weight: 500; max-width: 480px; }
.checks { margin-top: 28px; display: grid; gap: 12px; font-size: 16px; font-weight: 600; }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks svg { flex: none; }

.form-card { background: var(--white); border-radius: 24px; padding: 24px; box-shadow: 0 30px 60px rgba(32,36,42,.22); }
.form-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--charcoal); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; border: 1.5px solid #CBCFD4; border-radius: 12px;
  padding: 0 14px; font: inherit; font-size: 16px; /* 16px evita el zoom en iPhone */
  background: var(--white); color: var(--charcoal);
}
.field textarea { padding: 12px 14px; min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--charcoal); }
.field .error { display: none; font-size: 12.5px; color: #B42318; font-weight: 600; }
.field.has-error .error { display: block; }
.field.has-error input, .field.has-error select { border-color: #B42318; }
.form-card .btn { margin-top: 22px; }
.privacy { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--soft-text); }
.success { text-align: center; padding: 28px 4px; }
.success[hidden], form[hidden] { display: none; }
.success .ok {
  width: 56px; height: 56px; border-radius: 50%; background: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
}
.success h3 { font-size: 24px; font-weight: 800; margin-top: 18px; }
.success p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--dark-gray); }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: var(--white); padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
.footer .logo-mark { color: var(--white); }
.footer .logo-sub { color: #C9CDD2; }
.footer-about { margin-top: 18px; font-size: 15px; line-height: 1.6; color: #C9CDD2; max-width: 300px; }
.footer h2 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.footer ul { margin-top: 18px; display: grid; gap: 12px; font-size: 15px; color: #C9CDD2; }
.footer a { color: #C9CDD2; text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--dark-gray);
  display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #C9CDD2;
}

/* ---------- Entrance animation (solo si JS está activo) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }

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

/* ==========================================================
   ≥ 600px — tablets pequeñas
   ========================================================== */
@media (min-width: 600px) {
  .wrap { padding: 0 32px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-2, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .nav { padding-left: 32px; padding-right: 32px; }
}

/* ==========================================================
   ≥ 900px — tablets grandes / laptops
   ========================================================== */
@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .wrap { padding: 0 40px; }
  .section { padding: 104px 0; }
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; }
  .hero-photo { aspect-ratio: 4 / 5; max-height: 620px; }
  .hero-tag { left: -12px; right: auto; bottom: 56px; }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
  .logos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stat-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { border-bottom: 0; }
  .stats { padding: 80px 0; }
  .card { padding: 28px; }
  .logo-mark { font-size: 26px; }

  /* Navegación de escritorio */
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .nav {
    display: flex; position: static; box-shadow: none; border: 0;
    padding: 0; max-height: none; overflow: visible; background: transparent;
    align-items: center; gap: 28px;
  }
  .nav a:not(.btn) { display: inline; padding: 0; border: 0; font-size: 15px; }
  .nav .btn { display: none; }
}

/* ==========================================================
   ≥ 1000px — escritorio
   ========================================================== */
@media (min-width: 1000px) {
  .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .steps { gap: 28px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .solution { padding: 36px; }
  .form-card { padding: 32px; }
}
