/* =========================================================
   INNSYSTE — Sitio corporativo
   Paleta oficial: blanco #ffffff · navy #112e50 · rosa #ff4575
   ========================================================= */

:root {
  /* Colores */
  --bg: #ffffff;
  --bg-alt: rgba(17, 46, 80, 0.04);
  --bg-dark: #112e50;
  --bg-dark-2: #112e50;
  --surface: #ffffff;
  --border: rgba(17, 46, 80, 0.12);
  --border-dark: rgba(255, 255, 255, 0.08);

  --text: #112e50;
  --text-soft: rgba(17, 46, 80, 0.65);
  --text-mute: rgba(17, 46, 80, 0.45);
  --text-on-dark: rgba(255, 255, 255, 0.9);
  --text-on-dark-soft: rgba(255, 255, 255, 0.6);

  --primary: #112e50;
  --primary-600: #112e50;
  --primary-700: #112e50;
  --accent: #ff4575;
  --accent-2: #ff4575;

  /* Tipografía */
  --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Montserrat', var(--font-sans);

  /* Layout */
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17, 46, 80, 0.06), 0 1px 3px rgba(17, 46, 80, 0.04);
  --shadow: 0 10px 30px -10px rgba(17, 46, 80, 0.15), 0 4px 12px -4px rgba(17, 46, 80, 0.08);
  --shadow-lg: 0 25px 50px -12px rgba(17, 46, 80, 0.25);

  --transition: 200ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4rem); }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

em { font-style: italic; color: var(--accent); }

.text-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-dark);
  color: white;
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  box-shadow: 0 8px 20px -8px rgba(255, 69, 117, 0.6);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(255, 69, 117, 0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: var(--bg-alt);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.95);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
}
/* Footer (fondo oscuro) */
.brand-light .brand-logo { height: 32px; }

.nav { flex: 1; }
.nav-list {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
}
.nav-list a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition);
}
.nav-list a:hover { color: var(--text); }
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-list a:hover::after { transform: scaleX(1); }

/* ---------- Nav dropdown ---------- */
.nav-has-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}
.nav-dropdown-toggle svg { transition: transform var(--transition); }
.nav-has-dropdown.is-open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px 0;
  list-style: none;
  z-index: 300;
}
.nav-has-dropdown.is-open .nav-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.nav-dropdown li a:hover { color: var(--accent); background: var(--bg-alt); }
.nav-dropdown li a::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--text-on-dark);
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 120px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, black 30%, transparent 70%);
}

.glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}
.glow-1 {
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.glow-2 {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  bottom: -200px; left: -150px;
  opacity: 0.3;
}

.hero-inner { position: relative; z-index: 1; max-width: 900px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 69, 117, 0.1);
  border: 1px solid rgba(255, 69, 117, 0.25);
  color: var(--accent-2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(255, 69, 117, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  color: white;
  margin-bottom: 24px;
  font-weight: 600;
}
.hero-title em {
  color: var(--accent-2);
  font-style: italic;
}

.hero-lead {
  font-size: clamp(1rem, 1vw + 0.7rem, 1.2rem);
  color: var(--text-on-dark-soft);
  max-width: 680px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}

.hero-actions .btn-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-dark);
  margin: 0;
  max-width: 600px;
}
.hero-stats > div { margin: 0; }
.hero-stats dt {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  background: linear-gradient(135deg, white 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats dd {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-on-dark-soft);
  letter-spacing: 0.02em;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 8vw, 120px) 0;
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-top: 12px;
}

/* ---------- Retos ---------- */
.section-retos { background: var(--bg-alt); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 56px;
}
.chips li {
  padding: 10px 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-soft);
  font-weight: 500;
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}
.chips li:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}

.insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.insight {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.insight::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms ease;
}
.insight:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.insight:hover::before { transform: scaleX(1); }

.insight-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.insight-text { color: var(--text-soft); font-size: 0.95rem; line-height: 1.65; }
.insight-text strong { color: var(--text); }
.insight-source {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Valor ---------- */
.valor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.valor-text p { color: var(--text-soft); font-size: 1.02rem; }

.valor-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.valor-pillars li {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), border-color var(--transition);
}
.valor-pillars li:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.pillar-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ff4575;
  color: white;
  margin-bottom: 14px;
}
.valor-pillars h3 { font-size: 1.05rem; margin-bottom: 4px; }
.valor-pillars p { font-size: 0.9rem; color: var(--text-soft); margin: 0; }

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 69, 117, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.service:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 69, 117, 0.4);
  box-shadow: var(--shadow);
}
.service:hover::after { opacity: 1; }

.service > header { margin-bottom: 24px; }
.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ff4575;
  color: white;
  margin-bottom: 18px;
}
.service h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 4px; }
.service-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.service ul { flex: 1; margin-bottom: 24px; }
.service ul li {
  position: relative;
  padding: 10px 0 10px 24px;
  font-size: 0.93rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}
.service ul li:last-child { border-bottom: 0; }
.service ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 10px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  background: none;
  transform: translateY(-65%) rotate(-45deg);
}

.service-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.service-foot span {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--bg-alt);
  color: var(--text-soft);
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Capacidades transversales */
.services-extra {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}
.services-extra > h3 {
  font-size: 1.4rem;
  margin-bottom: 28px;
}
.extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.extra-grid h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.extra-grid p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- Estándares ---------- */
.section-estandares { background: var(--bg-alt); }

.standards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.standards li {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform var(--transition), border-color var(--transition);
}
.standards li:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}
.standards li span {
  display: block;
  padding: 14px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* ---------- Experiencia ---------- */
.section-experiencia {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.section-experiencia::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  filter: blur(120px);
  opacity: 0.2;
  top: 50%; right: -100px;
  transform: translateY(-50%);
}
.experiencia {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
}
.exp-num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: white;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, white 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.exp-num span {
  display: block;
  font-size: 0.18em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  -webkit-text-fill-color: var(--accent-2);
  margin-top: 8px;
  font-weight: 600;
}
.exp-text h2 { color: white; margin-bottom: 12px; }
.exp-text p { color: var(--text-on-dark-soft); font-size: 1.05rem; max-width: 540px; }

/* ---------- Contacto ---------- */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacto-text p { color: var(--text-soft); font-size: 1rem; }

.contact-card {
  margin-top: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.contact-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px;
}
.contact-role {
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-bottom: 12px;
}
.contact-list { display: grid; gap: 7px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.contact-list svg { color: var(--primary); flex-shrink: 0; }
.contact-list a { color: var(--text); transition: color var(--transition); }
.contact-list a:hover { color: var(--primary); }

.contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 1.2rem; margin-bottom: 20px; }
.contact-form label {
  display: block;
  margin-bottom: 16px;
}
.contact-form label span {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(17, 46, 80, 0.15);
}
.contact-form textarea { resize: vertical; min-height: 96px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row label { margin-bottom: 16px; }

.form-hint {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--text-mute);
  min-height: 1.2em;
}
.form-hint.success { color: #112e50; }
.form-hint.error { color: #ff4575; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.brand-light { color: white; }
.footer-tag {
  margin-top: 14px;
  color: var(--text-on-dark-soft);
  font-size: 0.92rem;
  max-width: 320px;
}
.site-footer h4 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.site-footer nav ul, .footer-contact { display: grid; gap: 10px; }
.site-footer a {
  color: var(--text-on-dark-soft);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.site-footer a:hover { color: var(--accent-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.85rem;
  color: var(--text-on-dark-soft);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { margin: 0; }

/* ---------- Animations on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================================
   RESPONSIVE BREAKPOINTS
   - 1100px: tablet landscape / small laptop
   - 900px:  tablet portrait — colapso de nav, grids 1 col
   - 700px:  móvil grande
   - 480px:  móvil pequeño
   =========================================================== */

/* --- Tablet landscape (≤ 1100px) --- */
@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  .nav-list { gap: 20px; }
  .valor-grid { gap: 48px; }
  .extra-grid { gap: 24px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
}

/* --- Tablet portrait (≤ 900px) --- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }

  /* Nav colapsa a hamburguesa */
  .nav-cta { display: none; }
  .nav { display: none; }
  .nav.is-open {
    display: block;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow);
    animation: slideDown 200ms ease-out;
  }
  .nav.is-open .nav-list {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
    justify-content: flex-start;
  }
  .nav.is-open .nav-list a {
    display: block;
    padding: 14px 4px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav-list a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-wrap { height: 64px; }

  /* Hero */
  .hero { padding: 80px 0 64px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1; min-width: 0; justify-content: center; }
  .hero-stats { gap: 24px; padding-top: 28px; }

  /* Section heads más compactas */
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  /* Grids principales a 1 col */
  .valor-grid,
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .extra-grid { grid-template-columns: 1fr; gap: 20px; }
  .experiencia { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Pilares en 2 cols */
  .valor-pillars { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* Insights */
  .insights { gap: 16px; }

  /* Servicios padding reducido */
  .service { padding: 32px 28px; }

  /* Experiencia: número y texto stack */
  .exp-num { font-size: clamp(5rem, 18vw, 7rem); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Móvil grande (≤ 700px) --- */
@media (max-width: 700px) {
  .container { padding: 0 20px; }

  /* Hero más ajustado */
  .hero { padding: 64px 0 56px; }
  .hero-title { font-size: clamp(1.85rem, 8vw, 2.5rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  /* Stats: 3 columnas para que no quede vacío */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 24px;
  }
  .hero-stats > div:nth-child(3) { grid-column: auto; }
  .hero-stats dt { font-size: 1.5rem; }
  .hero-stats dd { font-size: 0.72rem; line-height: 1.3; }

  /* Section spacing */
  .section { padding: 56px 0; }

  /* Insights */
  .insight { padding: 24px; }
  .insight-num { font-size: 2.5rem; }

  /* Valor pillars 1 col */
  .valor-pillars { grid-template-columns: 1fr; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 20px; }
  .contact-card { padding: 24px 20px; }

  /* Servicios */
  .service { padding: 28px 22px; border-radius: 16px; }
  .service ul li { font-size: 0.9rem; padding: 9px 0 9px 22px; }

  /* Standards más compactos */
  .standards { gap: 8px; }
  .standards li span { padding: 11px 16px; font-size: 0.82rem; }

  /* Chips */
  .chips li { padding: 8px 14px; font-size: 0.82rem; }

  /* Footer 1 col */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Logo más compacto en móvil */
  .brand-logo { height: 30px; }
}

/* --- Móvil pequeño (≤ 480px) --- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .brand-logo { height: 28px; }

  .hero { padding: 56px 0 48px; }
  .eyebrow { font-size: 0.78rem; padding: 6px 12px; }

  /* Stats 2 columnas para no comprimir tanto */
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .hero-stats > div:nth-child(3) {
    grid-column: span 2;
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-dark);
  }

  .section-lead { font-size: 1rem; }

  .insight { padding: 22px 20px; }

  .service h3 { font-size: 1.15rem; }
  .service-foot span { font-size: 0.68rem; padding: 3px 8px; }

  .exp-text h2 { font-size: 1.6rem; }
  .exp-text p { font-size: 0.95rem; }

  .contact-form h3 { font-size: 1.1rem; }
}

/* --- Touch targets accesibles --- */
@media (hover: none) and (pointer: coarse) {
  .btn, .nav-list a, .nav-toggle, .chips li, .standards li {
    min-height: 44px;
  }
  /* Desactiva hover transforms en táctil */
  .insight:hover,
  .service:hover,
  .chips li:hover,
  .standards li:hover,
  .valor-pillars li:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
