:root {
  /* Paleta Negro y Dorado */
  --gold: #D99A3D;
  --white: #FFFFFF;
  --paper: #101010; /* Fondo principal oscuro */
  --ink: #EAEAEA; /* Color de texto principal claro */
  --muted: #999999; /* Texto secundario */
  --line: rgba(217, 154, 61, 0.2); /* Líneas y bordes con toque dorado */
  --surface: #1C1C1C; /* Superficies de tarjetas y secciones */
  --deep: #000000; /* Negro profundo */
  --shadow-color: rgba(0, 0, 0, 0.5);

  /* Colores originales mantenidos por si se usan en elementos específicos */
  --forest: #0E2A47; /* Reemplazado por --surface o --paper */
  --brown: #1C3A52; /* Reemplazado */
  --charcoal: #0E2A47; /* Reemplazado */
  --graphite: #1C3A52; /* Reemplazado por --surface */

  --whatsapp: #25d366;
  --sky: #4FA3D1;
  --font-display: "Big Shoulders Display", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  /* scroll-behavior: smooth; */ /* Eliminado para que el scroll sea instantáneo */
  scroll-padding-top: 92px; 
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px clamp(20px, 5vw, 72px);
  color: var(--white);
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    padding 220ms ease;
}

.site-header.is-scrolled {
  padding-block: 8px;
  color: var(--ink);
  background: rgba(16, 16, 16, 0.85); /* Fondo oscuro semitransparente */
  box-shadow: 0 12px 40px var(--shadow-color);
  backdrop-filter: blur(18px);
}

/* Cambio de logo al hacer scroll */
.site-header:not(.is-scrolled) .logo-dark { display: none; } /* Oculta el logo oscuro en el estado inicial */
.site-header.is-scrolled .logo-dark { display: none; } /* Mantiene oculto el logo oscuro al hacer scroll */
.site-header.is-scrolled .logo-light { display: block; } /* Muestra el logo claro (dorado) al hacer scroll */

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-family: var(--font-display);
  margin-left: 80px; 
}

.logo-img {
  height: 90px;
  width: auto;
  border-radius: 4px;
  transition: height 220ms ease;
}

.logo-img-footer {
  height: 150px;
  width: auto;
  border-radius: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-family: var(--font-mono); /* Cambiado a la fuente monoespaciada */
  font-size: 0.9rem; /* Ajuste de tamaño para la nueva fuente */
  font-weight: 600;
  text-transform: uppercase; /* Para coincidir con el estilo de los títulos */
  letter-spacing: 0.07em; /* Ligero espaciado para legibilidad */
}

.site-nav a {
  opacity: 0.9;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: start;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.5));
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(0deg, var(--paper), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  max-width: 960px;
  padding: clamp(110px, 13vh, 140px) clamp(20px, 6vw, 88px) 120px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.intro-content .section-kicker {
  margin-bottom: 0;
}

.intro-header .section-kicker {
  margin-bottom: 24px;
  margin-left: 4px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.hero-motto-container {
  position: absolute;
  top: 220px; /* Posición debajo del panel de indicadores */
  right: clamp(20px, 5vw, 72px);
  z-index: 2;
  width: min(640px, 50vw); /* Mismo ancho que el panel de indicadores */
  text-align: center;
}

.hero-motto {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  padding: 10px;
  background: rgba(16, 16, 16, 0.6);
  border-radius: 4px;
}

.hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
}

.hero-copy p {
  color: var(--ink);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.55;
  text-align: justify;
  margin: 0 0 1em;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.6rem) !important;
  font-weight: 700;
  color: var(--white) !important;
  text-align: justify !important;
}

.hero-quote {
  font-style: italic;
  color: var(--gold) !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(8, 22, 38, 0.1);
}

.btn svg {
  width: 19px;
  height: 19px;
}

.btn .whatsapp-logo {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 50%;
}

.btn-primary {
  color: var(--paper);
  background: var(--gold);
}

.btn-secondary {
  color: var(--white);
  background: rgba(28, 28, 28, 0.78);
  border: 1px solid rgba(199, 212, 222, 0.42);
  backdrop-filter: blur(12px);
}

.btn-whatsapp {
  color: var(--white);
  background: var(--whatsapp);
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.hero-panel {
  position: absolute;
  top: 132px;
  right: clamp(20px, 5vw, 72px);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(108px, 1fr));
  width: min(640px, 50vw);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 154, 61, 0.46);
  border-radius: 8px;
  background: rgba(16, 16, 16, 0.85);
  box-shadow: 0 24px 70px var(--shadow-color);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  padding: 10px 14px;
  border-right: 1px solid rgba(199, 212, 222, 0.22);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel strong {
  display: block;
  font-size: 1.24rem;
  line-height: 1;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-panel div:last-child strong {
  font-size: 1.24rem; /* Restaurado al tamaño normal */
  padding-top: 0; /* Sin ajuste vertical */
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
}

section {
  padding: 28px clamp(20px, 5vw, 72px) 96px;
}

#formacion, #nosotros {
  padding-top: 12vh;
  padding-bottom: 14vh;
}

.band {
  background: var(--surface);
}

.intro-grid,
.section-heading,
.fleet-layout,
.cta,
.feature-split,
.gallery-grid,
.logo-marquee,
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 44px;
  align-items: center;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.intro p,
.feature-copy p,
.cta-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  text-align: justify;
}

.section-heading {
  margin-bottom: 34px;
}

.service-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.spec,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card {
  min-height: 230px;
  padding: 28px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 154, 61, 0.64);
  box-shadow: 0 22px 48px var(--shadow-color);
}

.service-card svg,
.spec svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

h3 {
  margin: 20px 0 10px;
  font-size: 1.15rem;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.service-card p,
.spec span,
.timeline p {
  color: var(--muted);
  line-height: 1.62;
  text-align: justify;
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}

.feature-image {
  min-height: 520px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 22, 38, 0.08), rgba(14, 42, 71, 0.34)),
    url("Galeria/s11.jpeg") center/cover;
  box-shadow: 0 24px 70px var(--shadow-color);
}

.feature-copy p {
  margin-top: 22px;
}

.sector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.sector-list span {
  padding: 10px 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 750;
}

.fleet {
  background: var(--paper);
  color: var(--white);
}

.fleet .section-heading {
  color: var(--white);
}

.fleet-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
}

.fleet-visual {
  min-height: 460px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 45% 42%, rgba(217, 154, 61, 0.32), transparent 28%),
    linear-gradient(145deg, #1C1C1C, #101010);
}

.drone-model {
  position: relative;
  width: min(72vw, 420px);
  aspect-ratio: 1;
  animation: floatDrone 4s ease-in-out infinite;
}

.body-core {
  position: absolute;
  inset: 37% 31%;
  border-radius: 34px;
  background: linear-gradient(145deg, #C7D4DE, #4C6478);
  box-shadow: 0 24px 40px rgba(8, 22, 38, 0.35);
}

.arm {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 48%;
  height: 15px;
  border-radius: 99px;
  background: #4C6478;
}

.arm-a {
  transform: rotate(35deg);
}

.arm-b {
  transform: rotate(-35deg);
}

.rotor {
  position: absolute;
  width: 116px;
  height: 116px;
  border: 10px solid rgba(217, 154, 61, 0.54);
  border-radius: 50%;
}

.rotor::after {
  content: "";
  position: absolute;
  inset: 45% -16px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.72);
  animation: spinBlade 700ms linear infinite;
}

.rotor-1 {
  top: 6%;
  left: 2%;
}

.rotor-2 {
  top: 6%;
  right: 2%;
}

.rotor-3 {
  bottom: 6%;
  left: 2%;
}

.rotor-4 {
  right: 2%;
  bottom: 6%;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.spec {
  padding: 26px;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--surface);
}

.spec strong,
.spec span {
  display: block;
}

.spec strong {
  margin: 18px 0 8px;
}

.spec span {
  color: rgba(255, 255, 255, 0.74);
}

.gallery {
  background: var(--surface);
}

.gallery-carousel-wrapper {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden; /* Oculta el desbordamiento de la cuadrícula */
}

.gallery-grid {
  display: grid;
  grid-auto-flow: column; /* Los elementos fluyen en columnas */
  grid-template-rows: repeat(2, 230px); /* Dos filas de altura fija */
  overflow-x: scroll; /* Habilita el scroll horizontal */
  gap: 16px;
}

.gallery-grid::-webkit-scrollbar {
  display: none; /* Oculta la barra de scroll en navegadores WebKit */
}

.gallery-item {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0; /* Evita que los elementos se encojan */
  width: 280px; /* Ancho fijo para los elementos */
  background: var(--paper);
  box-shadow: 0 18px 44px var(--shadow-color);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
  object-position: center; /* Centra la imagen */
  transition: transform 260ms ease;
}

.gallery-wrapper {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.gallery-scroll-container {
  max-width: 1180px;
  margin: 0 auto;
  overflow-x: auto; /* Permite el desplazamiento horizontal */
  -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

/* Ocultar la barra de scroll */
.gallery-scroll-container::-webkit-scrollbar {
  display: none;
}
.gallery-scroll-container {
  -ms-overflow-style: none;  /* IE y Edge */
  scrollbar-width: none;  /* Firefox */
}

.gallery-horizontal-track {
  display: flex;
  gap: 16px;
  width: max-content; /* El contenedor se expande para alojar todas las imágenes */
  padding-bottom: 10px; /* Espacio para la sombra */
}

.gallery-item {
  height: 380px; /* Se establece una altura fija para todos los items */
  width: auto; /* El ancho se ajustará a la proporción de la altura */
  aspect-ratio: 3 / 4; /* Mantiene una proporción consistente */
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-enlarge-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: rgba(16, 16, 16, 0.6);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(5px);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 200ms ease, transform 200ms ease;
}

.gallery-item:hover .gallery-enlarge-btn {
  opacity: 1;
  transform: scale(1);
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid-5 {
  display: grid;
  gap: 16px;
}

.gallery-grid-5 .gallery-large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-item figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  color: var(--white);
  border: 1px solid rgba(217, 154, 61, 0.42);
  border-radius: 8px;
  background: rgba(14, 42, 71, 0.86);
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.logo-strip {
  overflow: hidden;
  background: var(--paper);
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
  min-height: 260px;
  padding-block: 15px;
}

.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 90px;
  pointer-events: none;
}

.logo-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--surface), rgba(28, 28, 28, 0));
}

.logo-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--surface), rgba(28, 28, 28, 0));
}

.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 20px;
  padding: 18px 24px;
  overflow-x: auto;
  scroll-behavior: auto;
  will-change: transform;
}

.logo-track::-webkit-scrollbar {
  display: none; /* Oculta la barra de scroll */
}

.logo-track span {
  display: flex;
  width: clamp(220px, 20vw, 260px);
  height: 190px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-transform: uppercase;
  padding: 10px;
  overflow: hidden;
}

.logo-track span img {
  display: block;
  width: 100%;
  height: 100%;
  margin: auto;
  object-fit: contain;
  object-position: center;
}

.logo-track span img.logo-fix-padding {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Revertido a 'contain' para evitar recortes */
  max-width: none; /* Eliminamos la restricción de ancho máximo */
  max-height: none; /* Eliminamos la restricción de alto máximo */
}

.logo-track span.logo-grande {
  width: 450px; /* Ancho aumentado para destacar el logo */
}

.logo-track span.logo-grande img {
  max-width: 100%; /* Permitimos que la imagen use todo el ancho del contenedor */
  max-height: 100%; /* Permitimos que la imagen use todo el alto del contenedor */
}

.timeline {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline article {
  padding: 26px;
}

.timeline span {
  color: var(--gold);
  font-weight: 900;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1.16fr);
  gap: 38px;
  align-items: start;
  padding: 48px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px var(--shadow-color);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 154, 61, 0.22);
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--gold);
  font-weight: 750;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 18px 44px var(--shadow-color);
  overflow: hidden;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.site-footer {
  padding: 36px clamp(20px, 5vw, 72px);
  background-color: var(--deep);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-main-content {
  display: flex; /* Para las dos columnas: logo y detalles */
  justify-content: space-between; /* Distribuye el espacio entre los elementos */
  align-items: center; /* Alinea verticalmente el logo y el texto */
  width: 100%; /* Ocupa todo el ancho del footer */
  max-width: 1180px; /* Coincide con otros elementos de ancho máximo */
  gap: 30px; /* Espacio entre el logo y los detalles */
  flex-wrap: wrap; /* Permite que se envuelva en pantallas más pequeñas */
}

.footer-logo-col {
  flex-shrink: 0; /* Evita que el logo se encoja */
  margin-right: 150px; /* Mueve el logo un poco más a la izquierda */
}

.footer-details-col {
  flex-grow: 1; /* Permite que los detalles ocupen el espacio disponible */
  text-align: left; /* Alinea el texto a la izquierda */
  max-width: 450px; /* Recoge el texto para que no sea tan ancho */
}

/* AQUÍ ESTÁ LA CORRECCIÓN DE LA ALINEACIÓN DEL LOGO */
.site-footer .brand {
  margin-left: 0;
  margin-bottom: 0; /* Eliminamos el margen inferior ya que ahora está en un contenedor flex */
  display: inline-block;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.62;
  margin-top: 0;
  margin-bottom: 0; /* Eliminamos el margen de párrafo predeterminado */
}

.logo-controls {
  position: absolute;
  top: 60%; /* Centrado verticalmente */
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%); /* Ajuste para centrado exacto */
  pointer-events: none;
  padding: 0 20px;
  z-index: 10; /* Asegurar que los botones estén por encima de otros elementos */
}

.logo-control-prev,
.logo-control-next {
  pointer-events: all;
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: all 0.2s ease;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.logo-control-prev:hover,
.logo-control-next:hover {
  background: var(--surface);
  transform: scale(1.1);
}

.footer-social-section {
  max-width: 1180px; /* Coincide con otros elementos de ancho máximo */
  margin: 0 auto; /* Centra la sección */
  width: 100%;
  padding: 20px 25px;
  background-color: var(--white); /* Fondo blanco */
  border-top: 1px solid var(--line);
  border-radius: 8px;
}

.social-title {
  font-weight: 700;
  color: var(--paper); /* Texto oscuro */
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: block;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 750;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--paper); /* Texto oscuro */
  transition: color 200ms ease;
}

.footer-links i,
.footer-links svg,
.footer-links img {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transition: transform 200ms ease;
}

.footer-links img {
  display: block; /* Asegura que la imagen se comporte como un bloque para un mejor control de tamaño */
  object-fit: contain; /* Asegura que la imagen se ajuste dentro de sus dimensiones sin recortarse */
  flex-shrink: 0; /* Evita que la imagen se encoja si el espacio es limitado */
}


.footer-links a:hover {
  color: var(--gold);
}

.footer-links a:hover svg,
.footer-links a:hover img {
  transform: scale(1.15);
}

.footer-credit {
  max-width: 1180px;
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-credit p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-credit a {
  color: var(--muted);
  font-weight: 500;
  transition: color 200ms ease;
}

.footer-credit a:hover {
  color: var(--gold);
}

@keyframes floatDrone {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes spinBlade {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slide-in-left {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-up {
  from {
    transform: translateY(80px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Clases para controlar animaciones con JS */
.logo-img.is-animating {
  animation: slide-in-left 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.anim-slide-in-right {
  animation: slide-in-right 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.anim-slide-in-up {
  /* Delay para el título */
  animation: slide-in-up 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
  }
  .brand {
    grid-column: 2;
    justify-self: center;
    margin-left: 0;
  }
  .nav-toggle {
    display: grid;
    flex: 0 0 auto;
    grid-column: 3;
    justify-self: end;
  }
  .site-nav {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: rgba(28, 28, 28, 0.98);
    box-shadow: 0 24px 70px var(--shadow-color);
    backdrop-filter: blur(18px);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 14px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100svh;
    padding-top: 80px; /* Espacio para el header */
  }
  .hero-bg {
    background-position: 58% center;
  }
  .hero-content {
    padding: 20px;
    order: 3; /* Se mostrará después del panel y el lema */
  }
  .hero h1 {
    font-size: clamp(3rem, 10vw, 5.6rem);
    white-space: normal;
  }
  .hero-motto-container {
    position: relative;
    top: auto;
    right: auto;
    width: min(420px, 100%);
    margin: 0 auto 24px;
    order: 2; /* Se mostrará después del panel de indicadores */
  }
  .hero-panel {
    position: relative;
    top: auto;
    right: auto;
    grid-template-columns: 1fr;
    width: min(420px, 100%);
    margin: 0 auto 18px;
    order: 1; /* Se mostrará primero en la sección hero */
  }
  .hero-panel div {
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(199, 212, 222, 0.22);
  }
  .hero-panel div:last-child {
    border-bottom: 0;
  }
  .intro-grid,
  .feature-split,
  .fleet-layout,
  .cta {
    grid-template-columns: 1fr;
  }
  .service-grid,
  .timeline,
  .spec-grid,
  .contact-form { /* Mantener como 1fr para pantallas pequeñas */
    grid-template-columns: 1fr;
  }
  .feature-image {
    min-height: 380px;
  }
  .cta {
    padding: 34px;
  }

  /* Reordenar sección de certificación en móvil para que el texto vaya primero */
  #certificacion .feature-copy {
    grid-row: 1;
  }
  #certificacion .feature-image {
    grid-row: 2;
  }

  /* Footer: Centrar logo y texto en tablets y móviles */
  .footer-main-content {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  .footer-logo-col {
    margin-right: 0;
  }
  .footer-details-col {
    text-align: center;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 16px;
  }
  .brand {
    margin-left: 0; 
  }
  .logo-img {
    height: 65px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100svh;
    padding-top: 80px; /* Espacio para el header */
  }
  .hero-bg {
    background-position: 58% center;
  }
  .hero-content {
    padding: 0 20px; /* El espaciado vertical ahora lo gestiona el contenedor .hero */
    order: 3; /* Se mostrará después del panel y el lema */
  }
  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.2rem);
    white-space: normal;
  }
  .hero-copy {
    margin-top: 22px;
    font-size: 1rem;
  }
  .hero-actions,
  .btn {
    width: 100%;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-motto-container {
    position: relative;
    top: auto;
    right: auto;
    width: min(360px, 100%);
    margin: 0 auto 24px;
    order: 2; /* Se mostrará después del panel de indicadores */
  }
  .hero-panel {
    position: relative;
    top: auto;
    right: auto;
    grid-template-columns: 1fr;
    width: min(360px, 100%);
    margin: 0 0 18px;
    order: 1; /* Se mostrará primero en la sección hero */
  }
  .hero-panel div {
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(199, 212, 222, 0.22);
  }
  .hero-panel strong {
    font-size: 1.18rem;
  }
  .hero-panel div:last-child {
    border-bottom: 0;
  }
  section {
    padding: 68px 18px;
  }
  h2 {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
  }
  .intro p,
  .feature-copy p,
  .cta-copy p {
    font-size: 1rem;
  }
  .service-grid,
  .timeline,
  .spec-grid, /* Kept as 1fr */
  .contact-form { /* Mantener como 1fr para pantallas muy pequeñas */
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-auto-rows: 220px;
  }
  .gallery-large {
    grid-column: auto;
    grid-row: span 1;
  }
  .cta {
    padding: 24px;
  }

  .fleet-visual {
    min-height: 340px;
  }
  .drone-model {
    width: min(82vw, 330px);
  }
  .rotor {
    width: 88px;
    height: 88px;
    border-width: 8px;
  }
  .site-footer {
    /* Los estilos del footer ahora se heredan del breakpoint de 900px para consistencia */
  }
  .footer-social-section {
    align-items: flex-start; /* Alinea la sección social al inicio */
    margin-top: 15px; /* Ajusta el margen */
    padding-top: 15px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 420px) {
  .brand {
    max-width: calc(100vw - 92px);
    font-size: 0.92rem;
    margin-left: 0;
  }
  .site-header {
    padding: 12px 14px;
  }
  .nav-toggle {
    width: 38px;
    height: 38px;
  }
  .site-nav {
    top: 60px;
    left: 10px;
    right: 10px;
  }
  .hero-content {
    padding-inline: 16px;
  }
  .hero-panel {
    width: 100%;
  }
  .service-card,
  .spec,
  .timeline article {
    padding: 22px;
  }
  .feature-image {
    min-height: 300px;
  }
  .sector-list span {
    width: 100%;
  }
  .logo-track span {
    width: 180px; 
    height: 150px; 
    padding: 10px; 
  }
}

/* Lightbox styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.is-active {
  visibility: visible;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 50vw; /* Más pequeño para que no sea tan ancho */
  max-height: 60vh; /* Más pequeño para que no sea tan alto */
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Muestra la imagen completa sin recortar */
}

/* Estilo específico para imágenes verticales en el lightbox */
.lightbox-image.is-vertical {
  max-width: 35vw; /* Más angosto para imágenes altas */
  max-height: 80vh; /* Un poco más de altura permitida */
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1001;
  padding: 5px 10px;
}

.lightbox-close:hover {
  color: var(--gold);
}

/* Estilos para la nueva página "Nosotros" */
.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 50svh;
  color: var(--white);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%; /* Mueve la imagen hacia abajo para mostrar la parte superior */
  filter: brightness(0.7);
  transform: scale(1.05);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-family: var(--font-display);
  text-transform: uppercase;
}

.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 96px clamp(20px, 5vw, 72px);
}

.about-us-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 44px;
  align-items: center;
}

.about-us-image {
  min-height: 400px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.about-us-text p {
  text-align: justify;
  line-height: 1.62;
  color: var(--muted);
}

.video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #000;
}

.video-container iframe {
  width: 100%;
  height: 500px;
  display: block;
}

.video-caption {
  text-align: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Estilos para centrar el video de TikTok */
.tiktok-container {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

/* Estilos para el contenedor de Misión y Visión */
.intro-content {
  display: flex;
  flex-direction: column;
  gap: 28px; /* Espacio entre Misión y Visión */
}
.intro-content h3 {
  margin-top: 0; /* Quitar margen superior del subtítulo */
}

/* Estilos para el carrusel de videos */
.video-carousel {
  position: relative;
}

.video-carousel-slides .video-slide {
  display: none;
}

.video-carousel-slides .video-slide.is-active {
  display: block;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99; /* Aumentado para asegurar que esté por encima de todo */
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(28, 28, 28, 0.8);
  color: var(--ink);
  cursor: pointer;
  transition: all 200ms ease;
}

.carousel-control:hover {
  background: var(--gold);
  color: var(--paper);
  transform: translateY(-50%) scale(1.1);
}

/* Posicionamiento específico para los botones del carrusel de la galería */
.carousel-control.prev {
  left: 16px;
}

.carousel-control.next {
  right: 16px;
}