/* ============================================================
   Prime Alliance - Hoja de estilos principal
   ------------------------------------------------------------
   Estructura: variables, modo oscuro, base, componentes,
   secciones y responsive (mobile first).
   ============================================================ */

/* ---------- Variables globales ---------- */
:root {
  --navy: #14277F;
  --navy-light: #244BD4;
  --white: #FFFFFF;
  --gray: #F5F7FA;
  --accent: #3AA9F9;
  --blue: #244BD4;
  --text: #2c3e50;
  --text-soft: #5a6b7c;
  --error: #b42318;
  --shadow: 0 8px 30px rgba(20, 39, 127, 0.12);
  --radius: 16px;
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Modo oscuro ---------- */
body.dark {
  --navy: #0D1638;
  --white: #0f1b2a;
  --gray: #16233a;
  --text: #e8eef5;
  --text-soft: #a9b8c9;
  --error: #ff8a80;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* ---------- Reset y base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 { font-family: 'Segoe UI', Arial, sans-serif; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(1140px, 90%); margin: 0 auto; }

section { padding: 90px 0; }
section[id] { scroll-margin-top: 96px; }
.text-accent { color: var(--accent); }

/* ---------- Animaciones al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-left.visible, .reveal-right.visible { transform: translateX(0); }

/* ---------- Barra de navegación fija ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(20, 39, 127, 0.92);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  transition: var(--transition);
}
body.dark .navbar { background: rgba(13, 22, 56, 0.92); }

.navbar.scrolled { padding: 10px 0; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }

.nav-inner {
  width: min(1140px, 90%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--white);
  display: flex;
  align-items: center;
}
.logo img {
  width: 165px;
  height: auto;
  object-fit: contain;
}
.nav-actions { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1001; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { width: 100%; }

/* Toggle modo oscuro */
.theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.theme-toggle:hover { background: var(--blue); transform: rotate(20deg); }

/* Selector de idioma */
.lang-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  height: 42px;
  padding: 0 14px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.lang-toggle:hover { background: var(--blue); }
.lang-toggle i { font-size: 0.95rem; }

/* Menú hamburguesa */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  margin: 5px 0;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (portada) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #14277F 0%, #244BD4 55%, #3AA9F9 130%);
  background-size: cover;
  position: relative;
  padding: 140px 0 80px;
  color: var(--white);
  overflow: hidden;
}
/* Patrón decorativo de fondo */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 169, 249, 0.3), transparent 60%);
  animation: float 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 75, 212, 0.28), transparent 60%);
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

.hero-content { position: relative; z-index: 2; width: min(820px, 90%); }

.hero-badge {
  display: inline-block;
  background: rgba(58, 169, 249, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInDown 1s ease both;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  animation: fadeInDown 1s 0.15s ease both;
}
.hero h1 span { color: var(--accent); }
.hero .tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 300;
  opacity: 0.92;
  margin-bottom: 14px;
  animation: fadeInDown 1s 0.3s ease both;
}
.hero .motivational {
  font-style: italic;
  font-size: 1rem;
  opacity: 0.75;
  margin-bottom: 36px;
  animation: fadeInDown 1s 0.45s ease both;
}
.btn {
  display: inline-block;
  padding: 15px 38px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  animation: fadeInUp 1s 0.6s ease both;
}
.btn-primary {
  background: var(--accent);
  color: var(--navy);
  box-shadow: 0 8px 25px rgba(58, 169, 249, 0.4);
}
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(58, 169, 249, 0.55); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  margin-left: 14px;
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Indicador de scroll */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1.5rem;
  opacity: 0.7;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 12px); } }

/* ---------- Hero de páginas internas (Acerca / Contacto) ---------- */
.page-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #14277F 0%, #244BD4 60%, #3AA9F9 130%);
  color: var(--white);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 12px; }
.page-hero h1 span { color: var(--accent); }
.page-hero p { opacity: 0.9; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.page-hero .hero-badge { margin-bottom: 18px; }

/* ---------- Estadísticas (contador animado) ---------- */
.stats {
  margin-top: -50px;
  position: relative;
  z-index: 5;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
}
.stat-item {
  padding: 34px 20px;
  text-align: center;
  border-right: 1px solid var(--gray);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: inherit;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--blue);
}
.stat-label { color: var(--text-soft); font-size: 0.95rem; margin-top: 6px; }

/* ---------- Encabezados de sección ---------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-tag {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-header p { color: var(--text-soft); font-size: 1.05rem; }

/* ---------- Misión / Visión ---------- */
.mission-vision .container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.mv-card {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 46px 40px;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}
.mv-card:hover { transform: translateY(-8px); border-bottom-color: var(--accent); box-shadow: var(--shadow); }
.mv-card .icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
}
.mv-card .icon.gold { background: linear-gradient(135deg, var(--accent), var(--blue)); }
.mv-card h3 { font-size: 1.7rem; margin-bottom: 16px; }
.mv-card p { color: var(--text-soft); font-size: 1.02rem; }

/* ---------- Valores ---------- */
.values { background: var(--gray); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(20, 39, 127, 0.06);
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transform: scaleX(0);
  transition: var(--transition);
}
.value-card:hover::before { transform: scaleX(1); }
.value-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.value-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--blue);
  background: rgba(36, 75, 212, 0.12);
  transition: var(--transition);
}
.value-card:hover .icon { background: var(--blue); color: var(--white); transform: scale(1.1) rotate(-8deg); }
.value-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.value-card .slogan {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.value-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Servicios ---------- */
.services { background: var(--gray); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(20, 39, 127, 0.06);
  border-top: 4px solid var(--blue);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-top-color: var(--accent); }
.service-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .icon { background: linear-gradient(135deg, var(--blue), var(--accent)); transform: scale(1.08); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Proceso ---------- */
.process { background: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-step { text-align: center; position: relative; padding: 0 10px; }
.process-step .num {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(20, 39, 127, 0.25);
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- Nuestro Compromiso ---------- */
.commitment {
  background: linear-gradient(135deg, #14277F, #244BD4 60%, #3AA9F9);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.commitment::before {
  content: '\f1c0';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 15rem;
  position: absolute;
  right: -40px;
  bottom: -60px;
  opacity: 0.06;
}
.commitment .quote {
  font-family: inherit;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  max-width: 700px;
  margin: 0 auto 20px;
}
.commitment .quote span { color: var(--accent); }
.commitment p.sub { opacity: 0.85; max-width: 560px; margin: 0 auto 30px; }
.commitment .btn-primary { background: var(--white); color: var(--navy); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); }
.commitment .btn-primary:hover { transform: translateY(-4px); background: var(--accent); color: var(--navy); }

/* ---------- Testimonios ---------- */
.testimonials { background: var(--gray); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: 0 4px 15px rgba(20, 39, 127, 0.06);
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.testimonial-card .stars { color: var(--accent); margin-bottom: 14px; font-size: 0.95rem; letter-spacing: 2px; }
.testimonial-card .quote { color: var(--text); font-size: 0.98rem; font-style: italic; margin-bottom: 20px; }
.testimonial-card .author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  border: 3px solid var(--gray);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.testimonial-card .author strong { display: block; font-size: 0.95rem; }
.testimonial-card .author span { color: var(--blue); font-size: 0.85rem; }

/* ---------- Equipo ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(20, 39, 127, 0.06);
}
.team-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.team-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 4px solid var(--gray);
  transition: var(--transition);
}
.team-card:hover img { border-color: var(--accent); }
.team-card h3 { font-size: 1.15rem; }
.team-card .role { color: var(--blue); font-size: 0.9rem; font-weight: 600; margin-top: 4px; }
.team-card p.desc { color: var(--text-soft); font-size: 0.88rem; margin-top: 12px; }

/* ---------- Vacantes ---------- */
.vacancies { background: var(--white); }
.vacancy-card {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  transition: var(--transition);
  border-left: 4px solid var(--blue);
  flex-wrap: wrap;
}
.vacancy-card:hover { border-left-color: var(--accent); box-shadow: var(--shadow); transform: translateX(6px); }
.vacancy-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.vacancy-card .meta { color: var(--text-soft); font-size: 0.9rem; }
.vacancy-card .meta i { color: var(--blue); margin-right: 6px; }
.btn-small {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  background: var(--blue);
  color: var(--white);
  transition: var(--transition);
}
.btn-small:hover { background: var(--navy); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(20, 39, 127, 0.3); }

/* ---------- FAQ (acordeón) ---------- */
.faq { background: var(--gray); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 4px 15px rgba(20, 39, 127, 0.06);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
}
.faq-question:hover { color: var(--blue); }
.faq-question i { transition: var(--transition); color: var(--blue); }
.faq-item.active .faq-question { color: var(--blue); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.35s ease;
}
.faq-item.active .faq-answer { grid-template-rows: 1fr; }
.faq-answer p { min-height: 0; overflow: hidden; padding: 0 24px; color: var(--text-soft); font-size: 0.95rem; }
.faq-item.active .faq-answer p { padding-bottom: 20px; }

/* ---------- Contacto ---------- */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 18px; }
.contact-info p { color: var(--text-soft); margin-bottom: 14px; }
.contact-info .info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-info .info-item i {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-info .info-item strong { display: block; }
.contact-info .info-item span,
.contact-info .info-item a { color: var(--text-soft); font-size: 0.92rem; overflow-wrap: anywhere; }
.contact-info .info-item a:hover { color: var(--blue); text-decoration: underline; }
.contact-form {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 75, 212, 0.12); }
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] { border-color: var(--error); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-error { color: var(--error); font-size: 0.82rem; display: none; margin-top: 6px; }
.form-error.show { display: block; }
.form-note { color: var(--text-soft); font-size: 0.86rem; margin: -2px 0 18px; }
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-submit-error {
  display: none;
  color: var(--error);
  font-size: 0.88rem;
  margin: -4px 0 16px;
}
.form-submit-error.show { display: block; }
.btn:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}
.btn-block { width: 100%; }
.form-success {
  display: none;
  background: #e8f5e9;
  color: #1b5e20;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

/* ---------- Modal (aplicar a vacante) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 50, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.show { opacity: 1; visibility: visible; }
body.modal-open { overflow: hidden; }
body.menu-open { overflow: hidden; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 36px 32px;
  transform: translateY(30px);
  transition: var(--transition);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-overlay.show .modal { transform: translateY(0); }
.modal h3 { font-size: 1.4rem; margin-bottom: 6px; }
.modal .modal-pos { color: var(--blue); font-weight: 600; margin-bottom: 20px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--gray);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { background: #e53935; color: var(--white); }
.form-success.show { display: block; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
  text-align: center;
}
.footer-logo { margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.footer-logo img { width: 170px; height: auto; object-fit: contain; }
.footer-tagline { font-size: 0.95rem; opacity: 0.7; margin-bottom: 24px; }
.footer-contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 28px; }
.footer-contact-links a {
  min-height: 44px;
  border-radius: 50px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--white);
  transition: var(--transition);
}
.footer-contact-links a:hover { background: var(--accent); color: var(--navy); transform: translateY(-3px); }
.copyright { font-size: 0.88rem; opacity: 0.65; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 22px; }

/* ---------- Botón volver arriba ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(58, 169, 249, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); color: var(--navy); transform: translateY(-5px); }

/* ---------- Responsive (mobile first) ---------- */
@media (max-width: 992px) {
  section { padding: 70px 0; }
  .values-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-vision .container { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  /* Menú hamburguesa */
  .hamburger { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    visibility: hidden;
    transition: right 0.4s ease, visibility 0s linear 0.4s;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
  }
  body.dark .nav-links { background: var(--navy); }
  .nav-links.open { right: 0; visibility: visible; transition-delay: 0s; }
  .nav-links a { font-size: 1.1rem; }

  .hero, .page-hero { padding-top: 130px; }
  .hero .tagline { max-width: 34rem; margin-left: auto; margin-right: auto; }
  .btn-outline { margin: 12px 0 0; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray); }
  .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  .values-grid, .team-grid { grid-template-columns: 1fr; }
  .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .mv-card { padding: 34px 26px; }
  .footer-contact-links { gap: 10px; }
  .vacancy-card { flex-direction: column; align-items: flex-start; }
  .logo img { width: 105px; }
  .nav-actions { gap: 7px; }
  .lang-toggle { padding: 0 10px; gap: 6px; }
  .footer-logo img { width: 145px; }
  .contact-form, .modal { padding: 28px 20px; }
}

@media (max-width: 380px) {
  .logo img { width: 88px; }
  .theme-toggle, .lang-toggle { height: 40px; }
  .theme-toggle { width: 40px; }
  .lang-toggle i { display: none; }
  .hero-badge { letter-spacing: 1.2px; padding-inline: 16px; }
}

/* Accesibilidad: reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
