/* ============================================================
   MANTECH360 — HOJA DE ESTILOS PRINCIPAL
   Paleta (3 colores basados en el logo):
   1) Azul marino profundo  →  #0C2A5B / #071B3D
   2) Cian                  →  #1FA9DC / #6FCBEC
   3) Blanco / neutros      →  #FFFFFF / #F3F8FD
   Tipografía: Plus Jakarta Sans
   ============================================================ */

/* ============================================================
   VARIABLES Y RESET
   ============================================================ */
:root {
  /* Colores */
  --c-navy: #0C2A5B;
  --c-navy-deep: #071B3D;
  --c-cyan: #1FA9DC;
  --c-cyan-light: #6FCBEC;
  --c-cyan-dark: #0F86B5;
  --c-white: #FFFFFF;
  --c-bg: #F3F8FD;
  --c-ink: #22314E;
  --c-muted: #5D6E8C;

  /* Degradado de marca */
  --grad: linear-gradient(120deg, #1FA9DC 0%, #0C2A5B 100%);
  --grad-soft: linear-gradient(120deg, rgba(31, 169, 220, 0.14), rgba(12, 42, 91, 0.08));

  /* Sombras */
  --shadow-sm: 0 8px 24px rgba(12, 42, 91, 0.08);
  --shadow-md: 0 14px 44px rgba(12, 42, 91, 0.10);
  --shadow-lg: 0 26px 60px rgba(12, 42, 91, 0.18);
  --shadow-cyan: 0 12px 30px rgba(31, 169, 220, 0.35);

  /* Otros */
  --radius: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 84px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--c-white);
  color: var(--c-ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

body.no-scroll {
  overflow: hidden;
}

/* Selección de texto */
::selection {
  background: rgba(31, 169, 220, 0.3);
  color: var(--c-navy);
}

/* Barra de scroll personalizada */
::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: #EAF1F8;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--c-cyan), var(--c-navy));
  border-radius: 8px;
  border: 2px solid #EAF1F8;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--c-cyan-light), var(--c-navy));
}

/* Accesibilidad: foco visible con teclado */
:focus-visible {
  outline: 3px solid rgba(31, 169, 220, 0.65);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ============================================================
   UTILIDADES GENERALES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  position: relative;
  padding: 104px 0;
  overflow: hidden;
}

.section--tint {
  background: var(--c-bg);
}

/* Encabezados de sección */
.sec-head {
  position: relative;
  text-align: center;
  margin-bottom: 64px;
}

.sec-head h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  color: var(--c-navy);
  letter-spacing: -0.02em;
}

.sec-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad);
  margin: 16px auto 0;
}

/* Palabra gigante de fondo */
.bg-word {
  position: absolute;
  top: -0.42em;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(3.4rem, 11vw, 8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(12, 42, 91, 0.08);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* Etiqueta pequeña sobre el título */
.kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(31, 169, 220, 0.12);
  color: var(--c-cyan-dark);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}

.kicker--light {
  background: rgba(255, 255, 255, 0.12);
  color: #BFE7F7;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Letra capital decorativa */
.dropcap::first-letter {
  float: left;
  font-size: 3.1em;
  line-height: 0.82;
  font-weight: 800;
  color: var(--c-cyan);
  padding-right: 0.45rem;
  padding-top: 0.08em;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, border-color 0.35s;
}

.btn--primary {
  background: var(--grad);
  color: var(--c-white);
  box-shadow: var(--shadow-cyan);
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(31, 169, 220, 0.45);
}

.btn--primary:hover::after {
  left: 130%;
}

.btn--ghost {
  color: var(--c-white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--c-white);
  transform: translateY(-3px);
}

.btn--sm {
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
}

/* ============================================================
   TARJETAS (BASE)
   ============================================================ */
.card {
  background: var(--c-white);
  border-radius: var(--radius);
  border: 1px solid rgba(12, 42, 91, 0.07);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(31, 169, 220, 0.12);
  color: var(--c-cyan-dark);
  margin-bottom: 18px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: linear-gradient(135deg, var(--c-navy-deep), var(--c-navy));
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-logo {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: 0.04em;
  animation: pulse 1.8s ease-in-out infinite;
}

.preloader-logo span {
  color: var(--c-cyan);
}

.preloader-bar {
  width: 180px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-cyan-light));
  animation: loadbar 1.2s ease infinite;
}

body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ============================================================
   BARRA DE PROGRESO DE SCROLL
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-cyan-light), var(--c-cyan), var(--c-navy));
  z-index: 1200;
  transition: width 0.1s linear;
}

/* ============================================================
   HEADER / MENÚ DE NAVEGACIÓN
   ============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12, 42, 91, 0.06);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px rgba(12, 42, 91, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
  transition: padding 0.4s ease;
}

#header.scrolled .nav {
  padding-block: 9px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 46px;
  width: auto;
  transition: height 0.4s ease;
}

#header.scrolled .logo img {
  height: 38px;
}

.logo-text {
  display: inline-flex;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--c-navy);
  letter-spacing: 0.02em;
}

.logo-text b {
  color: var(--c-cyan);
  font-weight: 800;
}

/* Si el logo (imagen) carga, se oculta la versión en texto */
.logo img ~ .logo-text {
  display: none;
}

/* Menú */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #33456B;
  border-radius: 10px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--c-navy);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Botón CTA en el menú */
.nav-link--cta {
  background: var(--grad);
  color: var(--c-white) !important;
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  margin-left: 8px;
  box-shadow: 0 8px 20px rgba(31, 169, 220, 0.35);
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 169, 220, 0.45);
}

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(12, 42, 91, 0.12);
  background: var(--c-white);
  z-index: 1003;
  transition: background 0.4s, border-color 0.4s;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.4px;
  border-radius: 4px;
  background: var(--c-navy);
  transition: transform 0.4s var(--ease), opacity 0.3s, background 0.4s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.4px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.3);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.4px) rotate(-45deg);
}

/* ============================================================
   INICIO (HERO CON CARRUSEL)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px 0 100px;
}

/* Fondos del carrusel */
.hero-bgs,
.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-bg.active {
  opacity: 1;
  animation: kenburns 9s ease-out forwards;
}

.hero-overlay {
  background: linear-gradient(115deg, rgba(7, 27, 61, 0.94) 0%, rgba(12, 42, 91, 0.84) 45%, rgba(31, 169, 220, 0.45) 100%);
}

/* Decoración: anillos 360° y destellos */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
}

.ring--1 {
  width: 640px;
  height: 640px;
  transform: translate(-50%, -52%);
  border: 2px dashed rgba(111, 203, 236, 0.28);
  animation: spin 60s linear infinite;
}

.ring--2 {
  width: 460px;
  height: 460px;
  transform: translate(-50%, -52%);
  border: 1.5px dashed rgba(255, 255, 255, 0.14);
  animation: spin-rev 45s linear infinite;
}

.blob {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
}

.blob--1 {
  top: -120px;
  right: -100px;
  background: var(--c-cyan);
  animation: float 9s ease-in-out infinite alternate;
}

.blob--2 {
  bottom: -140px;
  left: -120px;
  background: var(--c-cyan-dark);
  animation: float 11s ease-in-out infinite alternate-reverse;
}

/* Contenido del hero */
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #EAF6FC;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  margin-bottom: 24px;
  opacity: 0;
}

.hero-title {
  font-size: clamp(2.9rem, 9vw, 6rem);
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: 0.02em;
  line-height: 1.05;
  opacity: 0;
  filter: drop-shadow(0 10px 40px rgba(7, 27, 61, 0.6));
}

.hero-title span {
  background: linear-gradient(120deg, var(--c-cyan-light), var(--c-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.loaded .hero-kicker {
  animation: fadeUp 0.9s var(--ease) 0.2s forwards;
}

body.loaded .hero-title {
  animation: fadeUp 1s var(--ease) 0.35s forwards;
}

/* Carrusel de frases */
.hero-slides {
  position: relative;
  margin-top: 28px;
  min-height: 230px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-phrase {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 500;
  max-width: 820px;
  line-height: 1.55;
  margin-bottom: 30px;
  text-shadow: 0 2px 18px rgba(7, 27, 61, 0.55);
}

.hero-slide.active .hero-phrase {
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.hero-slide.active .hero-cta {
  animation: fadeUp 0.8s var(--ease) 0.18s both;
}

/* Controles del carrusel */
.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
  opacity: 0;
}

body.loaded .hero-controls {
  animation: fadeUp 1s var(--ease) 0.6s forwards;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: var(--c-white);
  transition: background 0.35s, border-color 0.35s, transform 0.35s;
}

.hero-arrow svg {
  width: 20px;
  height: 20px;
}

.hero-arrow:hover {
  background: var(--c-cyan);
  border-color: transparent;
  transform: translateY(-3px);
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.45s var(--ease), background 0.45s;
}

.hero-dot.active {
  width: 44px;
  background: linear-gradient(90deg, var(--c-cyan-light), var(--c-cyan));
}

/* Indicador de scroll */
.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.85;
}

.mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  position: relative;
}

.wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--c-cyan-light);
  animation: wheel 1.8s ease infinite;
}

/* ============================================================
   CINTA DE SERVICIOS (MARQUEE)
   ============================================================ */
.marquee {
  position: relative;
  background: linear-gradient(90deg, var(--c-navy-deep), var(--c-navy));
  padding: 18px 0;
  overflow: hidden;
  border-top: 3px solid transparent;
  border-image: var(--grad) 1;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.marquee-track i {
  color: var(--c-cyan);
  font-style: normal;
  font-size: 0.7rem;
}

/* ============================================================
   ANIMACIONES DE APARICIÓN (SCROLL REVEAL)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
  will-change: opacity, transform;
}

[data-reveal="up"] {
  transform: translateY(44px);
}

[data-reveal="left"] {
  transform: translateX(-48px);
}

[data-reveal="right"] {
  transform: translateX(48px);
}

[data-reveal="zoom"] {
  transform: scale(0.92) translateY(20px);
}

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   SOBRE NOSOTROS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: stretch;
}

.about-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 44px 40px;
}

.about-text p {
  color: var(--c-muted);
  line-height: 1.9;
  text-align: justify;
  margin-bottom: 28px;
}

.about-text .btn {
  margin-top: auto;
}

.about-img {
  position: relative;
  min-height: 380px;
}

.about-img img,
.valores-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.about-img:hover img,
.valores-img:hover img {
  transform: scale(1.07);
}

/* Historia y Objetivo */
.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
  align-items: stretch;
}

.info-card {
  padding: 40px 36px;
}

.info-card:hover,
.mv-card:hover,
.news-card:hover,
.service-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-lg);
}

.info-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-navy);
  margin-bottom: 14px;
}

.info-card p {
  color: var(--c-muted);
  line-height: 1.85;
  text-align: justify;
}

/* ============================================================
   MISIÓN Y VISIÓN
   ============================================================ */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: stretch;
}

.mv-card {
  padding: 52px 40px;
  text-align: center;
  background: linear-gradient(var(--c-white), var(--c-white)) padding-box,
              linear-gradient(135deg, rgba(31, 169, 220, 0.65), rgba(12, 42, 91, 0.35)) border-box;
  border: 1.6px solid transparent;
}

.mv-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--c-white);
  margin: 0 auto 22px;
  box-shadow: var(--shadow-cyan);
  transition: transform 0.5s var(--ease);
}

.mv-icon svg {
  width: 40px;
  height: 40px;
}

.mv-card:hover .mv-icon {
  transform: rotate(8deg) scale(1.07);
}

.mv-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-navy);
  margin-bottom: 16px;
}

.mv-card p {
  color: var(--c-muted);
  line-height: 1.85;
  text-align: justify;
}

/* ============================================================
   VALORES
   ============================================================ */
.valores-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: stretch;
}

.valores-img {
  position: relative;
  min-height: 420px;
}

.valores-text {
  padding: 44px 40px;
}

.valores-text p {
  color: var(--c-muted);
  line-height: 1.9;
  text-align: justify;
}

/* ============================================================
   SERVICIOS (SECCIÓN OSCURA)
   ============================================================ */
.section--dark {
  background:
    radial-gradient(circle at 12% 8%, rgba(31, 169, 220, 0.16), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(31, 169, 220, 0.12), transparent 40%),
    linear-gradient(160deg, #0A2450, var(--c-navy-deep));
}

.section--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.section--dark .container {
  position: relative;
  z-index: 1;
}

.sec-head--light h2 {
  color: var(--c-white);
}

.sec-head--light .bg-word {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 2;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-img {
  height: 210px;
  overflow: hidden;
  background: #DFE9F5;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 28px;
}

.service-body h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--c-navy);
  line-height: 1.35;
  margin-bottom: 12px;
}

.service-body p {
  color: var(--c-muted);
  font-size: 0.94rem;
  line-height: 1.75;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--c-cyan-dark);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.service-link span {
  transition: transform 0.35s var(--ease);
}

.service-link:hover {
  color: var(--c-cyan);
}

.service-link:hover span {
  transform: translateX(6px);
}

/* ============================================================
   METODOLOGÍA
   ============================================================ */
.metodo-panel {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 60px 56px;
  background: linear-gradient(var(--c-white), var(--c-white)) padding-box,
              linear-gradient(135deg, rgba(31, 169, 220, 0.6), rgba(12, 42, 91, 0.3)) border-box;
  border: 1.6px solid transparent;
  overflow: visible;
}

.metodo-quote {
  position: absolute;
  top: -6px;
  left: 26px;
  font-size: 7rem;
  line-height: 1;
  font-weight: 800;
  color: rgba(31, 169, 220, 0.16);
  user-select: none;
}

.metodo-panel p {
  position: relative;
  color: var(--c-muted);
  line-height: 1.95;
  text-align: justify;
}

.metodo-cta {
  text-align: center;
  margin-top: 32px;
}

/* ============================================================
   COMPROMISO CON LA EXCELENCIA (PARALLAX)
   ============================================================ */
.section--parallax {
  padding: 130px 0;
  background:
    linear-gradient(rgba(7, 27, 61, 0.85), rgba(12, 42, 91, 0.88)),
    url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1920&q=80') center / cover fixed;
}

.glass-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 52px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

.glass-panel h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -0.02em;
}

.glass-panel h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c-cyan-light), var(--c-cyan));
  margin: 16px auto 0;
}

.glass-panel p {
  color: #DCEAF7;
  line-height: 1.9;
  text-align: justify;
  margin: 24px 0 32px;
}

/* ============================================================
   NOTICIAS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #DFE9F5;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.news-card:hover .news-img img {
  transform: scale(1.1);
}

.news-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--grad);
  color: var(--c-white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: var(--shadow-sm);
}

.news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 28px;
}

.news-body h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--c-navy);
  line-height: 1.4;
  margin-bottom: 12px;
}

.news-body p {
  color: var(--c-muted);
  font-size: 0.93rem;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}

.news-body .btn {
  align-self: flex-start;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  align-items: stretch;
}

.contact-info {
  padding: 44px 40px;
}

.c-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(12, 42, 91, 0.08);
}

.c-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.c-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(31, 169, 220, 0.12);
  color: var(--c-cyan-dark);
}

.c-icon svg {
  width: 24px;
  height: 24px;
}

.c-item h4 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-navy);
  margin-bottom: 8px;
}

.c-item a {
  display: block;
  color: var(--c-ink);
  font-weight: 600;
  padding: 3px 0;
  transition: color 0.3s, transform 0.3s var(--ease);
}

.c-item a:hover {
  color: var(--c-cyan);
  transform: translateX(5px);
}

.c-item p {
  color: var(--c-muted);
  line-height: 1.75;
}

/* Mapa */
.contact-map {
  position: relative;
  min-height: 460px;
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.92);
  transition: filter 0.5s ease;
}

.contact-map:hover iframe {
  filter: saturate(1);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background:
    radial-gradient(circle at 85% 0%, rgba(31, 169, 220, 0.14), transparent 45%),
    var(--c-navy-deep);
  color: #A9BAD6;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 44px;
  padding: 70px 0 44px;
}

.logo-text--footer {
  display: inline-flex;
  font-size: 1.7rem;
  color: var(--c-white);
}

.footer-brand p {
  margin-top: 14px;
  line-height: 1.75;
  max-width: 320px;
  font-size: 0.94rem;
}

.footer h4 {
  color: var(--c-white);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}

.footer h4::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  margin-top: 8px;
}

.footer-links ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}

.footer-links a,
.footer-contact a {
  display: block;
  padding: 6px 0;
  font-size: 0.92rem;
  transition: color 0.3s, padding-left 0.3s var(--ease);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--c-cyan-light);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #7E93B8;
}

/* ============================================================
   BOTÓN VOLVER ARRIBA
   ============================================================ */
#to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--grad);
  color: var(--c-white);
  box-shadow: var(--shadow-cyan);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}

#to-top svg {
  width: 22px;
  height: 22px;
}

#to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(31, 169, 220, 0.5);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kenburns {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.18);
  }
}

@keyframes spin {
  to {
    transform: translate(-50%, -52%) rotate(360deg);
  }
}

@keyframes spin-rev {
  to {
    transform: translate(-50%, -52%) rotate(-360deg);
  }
}

@keyframes float {
  from {
    transform: translateY(-24px);
  }
  to {
    transform: translateY(24px);
  }
}

@keyframes wheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes loadbar {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(320%);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* --- Tablets grandes / laptops pequeñas --- */
@media (max-width: 1100px) {

  /* Menú móvil (hamburguesa) */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background:
      radial-gradient(circle at 80% 15%, rgba(31, 169, 220, 0.28), transparent 45%),
      linear-gradient(150deg, var(--c-navy-deep), var(--c-navy));
    clip-path: circle(0 at calc(100% - 47px) 47px);
    transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
  }

  .nav-menu.open {
    clip-path: circle(150% at calc(100% - 47px) 47px);
    pointer-events: auto;
  }

  .nav-menu li {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s var(--ease);
  }

  .nav-menu.open li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.open li:nth-child(1) { transition-delay: 0.15s; }
  .nav-menu.open li:nth-child(2) { transition-delay: 0.2s; }
  .nav-menu.open li:nth-child(3) { transition-delay: 0.25s; }
  .nav-menu.open li:nth-child(4) { transition-delay: 0.3s; }
  .nav-menu.open li:nth-child(5) { transition-delay: 0.35s; }
  .nav-menu.open li:nth-child(6) { transition-delay: 0.4s; }
  .nav-menu.open li:nth-child(7) { transition-delay: 0.45s; }
  .nav-menu.open li:nth-child(8) { transition-delay: 0.5s; }
  .nav-menu.open li:nth-child(9) { transition-delay: 0.55s; }

  .nav-link {
    font-size: 1.2rem;
    color: #E7F2FB;
    padding: 0.65rem 1.4rem;
    text-align: center;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--c-cyan-light);
  }

  .nav-link::after {
    left: 1.4rem;
    right: 1.4rem;
  }

  .nav-link--cta {
    margin-left: 0;
    margin-top: 10px;
  }

  /* Header transparente cuando el menú está abierto */
  body.menu-open #header {
    background: transparent;
    box-shadow: none;
    border-bottom-color: transparent;
  }

  body.menu-open .logo img {
    display: none;
  }

  body.menu-open .logo-text {
    display: inline-flex;
    color: var(--c-white);
  }

  body.menu-open .nav-toggle {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
  }

  body.menu-open .nav-toggle span {
    background: var(--c-white);
  }

  /* Ajustes generales */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ring--1 {
    width: 480px;
    height: 480px;
  }

  .ring--2 {
    width: 340px;
    height: 340px;
  }
}

/* --- Parallax desactivado en pantallas táctiles --- */
@media (max-width: 1024px) {
  .section--parallax {
    background-attachment: scroll;
  }
}

/* --- Tablets --- */
@media (max-width: 940px) {
  .section {
    padding: 84px 0;
  }

  .sec-head {
    margin-bottom: 48px;
  }

  .about-grid,
  .duo-grid,
  .mv-grid,
  .valores-grid,
  .contact-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .about-img {
    min-height: 320px;
    order: -1;
  }

  .valores-img {
    min-height: 320px;
  }

  .contact-map {
    min-height: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0 36px;
  }

  .footer-brand p {
    max-width: 100%;
  }
}

/* --- Móviles --- */
@media (max-width: 640px) {
  .container {
    padding-inline: 20px;
  }

  .hero {
    padding: 120px 0 90px;
  }

  .hero-slides {
    min-height: 300px;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
  }

  .hero-scroll {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-img {
    height: 190px;
  }

  .about-text,
  .valores-text,
  .info-card,
  .contact-info {
    padding: 32px 24px;
  }

  .mv-card {
    padding: 40px 26px;
  }

  .metodo-panel {
    padding: 44px 26px;
  }

  .metodo-quote {
    font-size: 5rem;
    left: 14px;
  }

  .glass-panel {
    padding: 40px 24px;
  }

  .dropcap::first-letter {
    font-size: 2.6em;
  }

  .marquee-track span {
    font-size: 0.8rem;
  }

  #to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}

/* ============================================================
   ACCESIBILIDAD: MOVIMIENTO REDUCIDO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }
}