/* ===================================================
   WOOLS — style.css
   Sustratos de Precisión · Chile
   =================================================== */

/* ---------- Variables ---------- */
:root {
  --verde-oscuro:   #1e3d1a;
  --verde-mid:      #2d5a27;
  --verde-acento:   #3a8a34;
  --verde-claro:    #6dbf67;
  --verde-bg:       #f2f7f1;
  --blanco:         #ffffff;
  --gris-suave:     #f8f9f7;
  --gris-borde:     #e4ece3;
  --texto:          #1c2b1a;
  --texto-mid:      #3d5139;
  --texto-suave:    #6b8068;
  --sombra:         rgba(30, 61, 26, 0.08);
  --radio:          14px;
  --radio-lg:       22px;
  --fuente-display: 'DM Serif Display', Georgia, serif;
  --fuente-body:    'DM Sans', system-ui, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--fuente-body);
  color: var(--texto);
  background: var(--blanco);
  overflow-x: hidden;
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }
p { hyphens: auto; }

/* ---------- Tipografía global ---------- */
h1, h2, h3, h4 { font-family: var(--fuente-display); line-height: 1.15; }

.section-label {
  display: inline-block;
  font-family: var(--fuente-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verde-acento);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--verde-oscuro);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--texto-suave);
  max-width: 540px;
  line-height: 1.7;
  margin: 0 auto 2.5rem auto;
}

.section-header.left-align .section-subtitle { margin-left: 0; }

.section-header {
  text-align: center;
  padding: 0 1.5rem;
  margin-bottom: 3rem;
}

.section-header.left-align { text-align: left; }

/* ===================================================
   HEADER
   =================================================== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gris-borde), 0 8px 24px var(--sombra);
  padding: 0.8rem 5%;
}

header .logo img { height: 52px; width: auto; transition: height 0.3s, filter 0.3s; }
header.scrolled .logo img { height: 42px; }

/* Logo blanco cuando el header es transparente (sobre el hero oscuro) */
header:not(.scrolled) .logo img { filter: brightness(0) invert(1); }

nav { display: flex; align-items: center; gap: 4px; }

nav a {
  font-family: var(--fuente-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

nav a:hover { background: rgba(255,255,255,0.15); color: #fff; }

header.scrolled nav a { color: var(--texto-mid); }
header.scrolled nav a:hover { background: var(--verde-bg); color: var(--verde-mid); }

nav a.nav-cta {
  background: var(--verde-acento);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  margin-left: 0.5rem;
}

nav a.nav-cta:hover { background: var(--verde-mid); transform: translateY(-1px); }

/* Botón de idioma solo para móvil — oculto en desktop */
.lang-switch-mobile {
  display: none;
}

a.lang-switch, a.lang-switch-mobile {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin-left: 0.5rem;
  transition: all 0.2s;
  white-space: nowrap;
}

a.lang-switch strong, a.lang-switch-mobile strong { color: rgba(255,255,255,0.95); }
a.lang-switch:hover, a.lang-switch-mobile:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); }

header.scrolled a.lang-switch,
header.scrolled a.lang-switch-mobile {
  color: var(--texto-suave);
  border-color: var(--gris-borde);
}

header.scrolled a.lang-switch strong,
header.scrolled a.lang-switch-mobile strong { color: var(--verde-mid); }

header.scrolled a.lang-switch:hover,
header.scrolled a.lang-switch-mobile:hover { background: var(--verde-bg); }

.hamburger { display: none; }

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('plant-background.png') center center / cover no-repeat;
  overflow: hidden;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 28, 8, 0.72) 0%,
    rgba(20, 52, 16, 0.58) 50%,
    rgba(30, 61, 26, 0.45) 100%
  );
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 2rem 1.5rem;
  animation: fadeUp 1s ease both;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verde-claro);
  background: rgba(109, 191, 103, 0.12);
  border: 1px solid rgba(109, 191, 103, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.8rem;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content h1 em {
  font-style: italic;
  color: var(--verde-claro);
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

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

.btn-primary {
  background: var(--verde-acento);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(58, 138, 52, 0.4);
}

.btn-primary:hover { background: var(--verde-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(58,138,52,0.5); }

.btn-ghost {
  color: rgba(255,255,255,0.85);
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.25s;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; background: rgba(255,255,255,0.08); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ===================================================
   SOLUCIÓN
   =================================================== */
.solucion-section {
  padding: 6rem 5%;
  background: var(--blanco);
}

.solucion-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.solucion-image-col { position: relative; }

.solucion-img {
  width: 100%;
  border-radius: var(--radio-lg);
  box-shadow: 0 24px 60px var(--sombra);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.solucion-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--verde-mid);
  color: #fff;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radio);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 12px 30px rgba(45, 90, 39, 0.35);
}

.badge-num {
  font-family: var(--fuente-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--verde-claro);
}

.badge-text { font-size: 0.78rem; line-height: 1.4; opacity: 0.9; }

.solucion-text-col { }

.solucion-text-col p {
  color: var(--texto-suave);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.75;
}

.solucion-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gris-borde);
}

.stat-item { display: flex; flex-direction: column; gap: 0.25rem; }

.stat-num {
  font-family: var(--fuente-display);
  font-size: 1.6rem;
  color: var(--verde-mid);
  line-height: 1;
}

.stat-label { font-size: 0.75rem; color: var(--texto-suave); }

.stat-divider {
  width: 1px; height: 40px;
  background: var(--gris-borde);
  flex-shrink: 0;
}

/* ===================================================
   APLICACIONES
   =================================================== */
.aplicaciones-section {
  padding: 5rem 5%;
  background: var(--verde-bg);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.app-card {
  background: var(--blanco);
  border-radius: var(--radio-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--gris-borde);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px var(--sombra);
  border-color: var(--verde-acento);
}

.app-icon-wrap {
  width: 52px; height: 52px;
  background: var(--verde-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--verde-mid);
}

.app-icon-wrap svg { width: 26px; height: 26px; }

.app-card h3 {
  font-family: var(--fuente-display);
  font-size: 1.3rem;
  color: var(--verde-oscuro);
}

.app-card p { font-size: 0.92rem; color: var(--texto-suave); line-height: 1.65; flex: 1; }

.app-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--verde-acento);
  background: rgba(58, 138, 52, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  display: block;
  text-align: center;
}

/* ===================================================
   TECNOLOGÍA
   =================================================== */
.tech-section {
  padding: 5rem 5%;
  background: var(--blanco);
}

.tech-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.acordeon-container { }

.tech-dropdown {
  border-bottom: 1px solid var(--gris-borde);
  overflow: hidden;
}

.tech-dropdown summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  color: var(--texto);
  transition: color 0.2s;
}

.tech-dropdown summary::-webkit-details-marker { display: none; }
.tech-dropdown[open] summary { color: var(--verde-mid); }

.summary-icon {
  width: 38px; height: 38px;
  background: var(--verde-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--verde-acento);
  flex-shrink: 0;
  transition: background 0.2s;
}

.tech-dropdown[open] .summary-icon { background: rgba(58,138,52,0.12); }
.summary-icon svg { width: 18px; height: 18px; }

.summary-label { flex: 1; }

.arrow {
  width: 20px; height: 20px;
  color: var(--texto-suave);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.arrow svg { width: 100%; height: 100%; }
.tech-dropdown[open] .arrow { transform: rotate(180deg); color: var(--verde-acento); }

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 0 0 3.4rem;
}

.tech-dropdown[open] .dropdown-content {
  max-height: 400px;
  opacity: 1;
  padding: 0 0 1.8rem 3.4rem;
}

.content-inner p {
  font-size: 0.95rem;
  color: var(--texto-suave);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.tech-impact-box {
  background: var(--verde-bg);
  border-left: 3px solid var(--verde-acento);
  border-radius: 0 var(--radio) var(--radio) 0;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.impact-row {
  display: flex;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--texto-suave);
  align-items: flex-start;
}

.impact-label {
  font-weight: 600;
  color: var(--texto-mid);
  flex-shrink: 0;
  min-width: 60px;
}

.impact-row.result { color: var(--verde-mid); font-weight: 500; }
.impact-row.result .impact-label { color: var(--verde-mid); }

/* ===================================================
   FLUJO
   =================================================== */
.flujo-section {
  padding: 5rem 5%;
  background: var(--verde-bg);
}

.flujo-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.flujo-step {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1.8rem 1.5rem;
  width: 170px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.flujo-step:hover { transform: translateY(-4px); box-shadow: 0 12px 30px var(--sombra); }

.flujo-step.highlight {
  border: 2px solid var(--verde-mid);
  background: var(--verde-mid);
  transform: scale(1.06);
  z-index: 5;
}

.flujo-step.highlight h4 { color: #fff; }
.flujo-step.highlight p { color: rgba(255,255,255,0.8); }

.step-num {
  font-family: var(--fuente-display);
  font-size: 1.4rem;
  color: var(--verde-acento);
  line-height: 1;
}

.step-num.core { font-size: 1.6rem; color: var(--verde-claro); }

.flujo-step h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--verde-oscuro);
  line-height: 1.3;
}

.flujo-step p, .flujo-step ul {
  font-size: 0.78rem;
  color: var(--texto-suave);
  line-height: 1.55;
}

.flujo-step ul { padding-left: 1rem; }
.flujo-step ul li { margin-bottom: 0.3rem; }

.flujo-arrow {
  font-size: 1.4rem;
  color: var(--verde-acento);
  padding: 0 0.4rem;
  opacity: 0.6;
  flex-shrink: 0;
}

/* ===================================================
   MISIÓN Y VISIÓN
   =================================================== */
.mision-section {
  background: url('misionvision-background.png') center center / cover no-repeat;
  position: relative;
  padding: 6rem 5%;
}

.mision-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10,28,8,0.6), rgba(10,28,8,0.5));
}

.mision-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  align-items: stretch;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radio-lg);
  overflow: hidden;
}

.mision-card {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mision-label {
  font-family: var(--fuente-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verde-claro);
}

.mision-card p {
  font-family: var(--fuente-display);
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.65;
}

.mision-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ===================================================
   SOBRE NOSOTROS
   =================================================== */
.nosotros-section {
  padding: 5rem 5%;
  background: var(--blanco);
}

.team-grid {
  max-width: 800px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  /* Centrado explícito para todos los anchos */
  justify-items: center;
}

.team-card { width: 100%; }

.team-card {
  background: var(--gris-suave);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: box-shadow 0.3s ease;
}

.team-card:hover { box-shadow: 0 12px 30px var(--sombra); }

.team-card .team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--verde-acento);
  margin: 0;
}

.team-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--verde-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fuente-display);
  font-size: 1.4rem;
  color: var(--verde-claro);
}

.team-avatar.alt { background: var(--verde-oscuro); }

.team-card h4 {
  font-size: 1rem;
  color: var(--verde-oscuro);
}

.team-card p { font-size: 0.88rem; color: var(--texto-suave); line-height: 1.65; }

.team-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.team-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--verde-acento);
  background: rgba(58,138,52,0.08);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

.nosotros-footer {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--texto-suave);
  line-height: 1.7;
  font-style: italic;
  font-family: var(--fuente-display);
}

/* ===================================================
   CONTACTO
   =================================================== */
.contacto-section {
  padding: 6rem 5%;
  background: var(--verde-oscuro);
}

.contacto-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contacto-text .section-label.light { color: var(--verde-claro); }

.contacto-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 1.2rem;
}

.contacto-text h2 em {
  font-style: italic;
  color: var(--verde-claro);
}

.contacto-text p {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

.contacto-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radio-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contacto-item:last-child { border-bottom: none; padding-bottom: 0; }
.contacto-item:first-child { padding-top: 0; }

.contacto-item svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--verde-claro);
  margin-top: 2px;
}

.contacto-item > div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contacto-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.contacto-item a, .contacto-item span:last-child {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}

.contacto-item a:hover { color: var(--verde-claro); }

/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: var(--verde-oscuro);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 5%;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo { height: 36px; width: auto; opacity: 0.7; filter: brightness(10); }

footer p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

footer span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ===================================================
   ANIMACIONES
   =================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (min-width: 769px) {
  .lang-switch-mobile { display: none !important; }
}

@media (max-width: 1024px) {
  .tech-inner { grid-template-columns: 1fr; gap: 3rem; }
  .flujo-step { width: 145px; padding: 1.4rem 1.1rem; }
}

@media (max-width: 768px) {
  /* Header siempre blanco en móvil — logo verde visible siempre */
  header {
    padding: 1rem 5%;
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--gris-borde);
  }
  header .logo img {
    height: 40px;
    filter: none !important; /* nunca invertir en móvil */
  }

  nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--blanco); border-top: 1px solid var(--gris-borde); padding: 1rem; box-shadow: 0 12px 30px var(--sombra); }
  nav.open { display: flex; }
  nav a { color: var(--texto-mid) !important; width: 100%; padding: 0.8rem 1rem; border-radius: 8px; }
  nav a:hover { background: var(--verde-bg); }
  nav a.nav-cta { background: var(--verde-acento); color: #fff !important; text-align: center; }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--texto);
    border-radius: 2px;
    transition: all 0.3s;
  }

  /* En móvil: ocultar lang-switch dentro del nav, mostrar el externo */
  nav a.lang-switch { display: none !important; }
  .lang-switch-mobile {
    display: flex;
    align-items: center;
    color: var(--texto-suave) !important;
    border-color: var(--gris-borde) !important;
    background: rgba(255,255,255,0.9);
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    margin-left: auto;
  }
  .lang-switch-mobile strong { color: var(--verde-mid) !important; }

  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }

  .solucion-inner { grid-template-columns: 1fr; gap: 3rem; }
  /* Centrar el texto de la sección solución en móvil */
  .solucion-text-col { text-align: center; }
  .solucion-text-col p { text-align: left; } /* los párrafos siguen justificados */
  .solucion-stats { align-items: center; justify-content: center; }
  /* Badge fuera de la imagen en móvil — debajo, no encima */
  .solucion-image-col { padding-bottom: 0; }
  .solucion-badge {
    position: static;
    display: inline-flex;
    margin-top: 1rem;
    border-radius: var(--radio);
  }

  .apps-grid { grid-template-columns: 1fr; max-width: 400px; }

  .flujo-grid { flex-direction: column; align-items: center; }
  .flujo-step { width: 100%; max-width: 340px; min-height: auto; }
  .flujo-step.highlight { transform: none; }
  .flujo-arrow { transform: rotate(90deg); }

  .mision-inner { flex-direction: column; }
  .mision-divider { width: 100%; height: 1px; }
  .mision-card { padding: 2rem; }

  .team-grid { grid-template-columns: 1fr; max-width: 400px; }

  .contacto-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contacto-text { text-align: center; }
  .contacto-text h2 { font-size: 2rem; }
  .contacto-text p { text-align: left; }

  /* Stats en horizontal también en móvil — sin flex-direction: column */
  .solucion-stats { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
  .stat-divider { width: 1px; height: 36px; }

  .section-title { font-size: 1.9rem; }

  /* Fix espacio en blanco entre subtítulo y acordeón en tech */
  .tech-inner { gap: 1.5rem; }
  .section-subtitle { margin-bottom: 0; }

  /* Centrar secciones que en desktop usan left-align (2 columnas) */
  .section-header.left-align {
    text-align: center;
  }
  .section-header.left-align .section-subtitle {
    margin-left: auto;
  }
}