* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #111111;
  background-color: #f2f2f2;
  line-height: 1.6;
  min-height: 100vh;
}

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

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

.container {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.site-header--solid {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #111111;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo span {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.main-nav {
  position: relative;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2vw, 2.5rem);
  align-items: center;
}

.main-nav a {
  color: #111111;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #ff1a29, #b3000f);
  left: 0;
  bottom: -6px;
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.nav__cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid #b3000f;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 26, 41, 0.12), rgba(179, 0, 15, 0.16));
  color: #b3000f !important;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.nav__cta:hover,
.nav__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(179, 0, 15, 0.18);
  background: linear-gradient(120deg, rgba(255, 26, 41, 0.18), rgba(179, 0, 15, 0.22));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #111111;
  border-radius: 12px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Estilos para el menú desplegable de Contacto */
.nav-item--dropdown {
  position: relative;
}

.nav-link--dropdown {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link--dropdown::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.nav-item--dropdown:hover .nav-link--dropdown::after,
.nav-item--dropdown.is-open .nav-link--dropdown::after {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 0;
  min-width: 200px;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

/* Área invisible superior del submenú para facilitar el hover */
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
}

.nav-item--dropdown:hover .nav-submenu,
.nav-item--dropdown.is-open .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-submenu li {
  margin: 0;
}

.nav-submenu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #111111;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: left;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  background-color: rgba(179, 0, 15, 0.08);
  color: #b3000f;
}

.nav-submenu a::after {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: left;
  padding-top: 4.6rem;
  color: #000000;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  filter: brightness(0.85);
  animation: zoom 18s ease-in-out infinite alternate;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero__slide--active {
  opacity: 1;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(183, 0, 15, 0.08) 46%,
    rgba(0, 0, 0, 0.03) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.3rem;
  padding: clamp(2.2rem, 5.5vw, 5rem) 0;
  text-align: left;
  max-width: 100%;
}

.hero__tagline {
  position: absolute;
  top: 30%;
  right: max(4vw, 52px);
  transform: translateY(-50%);
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  color: #ffffff;
  text-align: right;
  min-width: 220px;
  animation: heroTaglineFloat 8s ease-in-out infinite alternate,
    heroTaglineTilt 5.6s ease-in-out infinite alternate;
}

.hero__tagline::before {
  content: '';
  position: absolute;
  inset: -18%;
  border-radius: 30px;
  background: radial-gradient(circle at top right, rgba(255, 26, 41, 0.45), transparent 65%);
  z-index: -1;
  opacity: 0.8;
  filter: blur(12px);
  animation: heroGlow 6s ease-in-out infinite alternate;
}

.hero__tagline-pill {
  align-self: start;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero__tagline strong {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__tagline::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(120deg, #ff1a29, #b3000f);
  box-shadow: 0 0 12px rgba(255, 26, 41, 0.85);
  transform: translateY(-50%);
  animation: heroTaglinePulse 1.8s ease-in-out infinite;
}

.hero__badge {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ff1a29;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  max-width: 720px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #ffffff;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.35);
}

.hero__title-part {
  display: inline-block;
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 1s ease-out, transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero__title-part + .hero__title-part {
  margin-left: 0.3em;
}

.hero__title-part.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.hero p {
  max-width: 560px;
  color: #000000;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero__metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.hero__metrics dt {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #ff1a29;
}

.hero__metrics dd {
  font-size: 0.95rem;
  color: #000000;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 40px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn--primary {
  background: linear-gradient(120deg, #ff1a29, #b3000f);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(255, 26, 41, 0.25);
}

.btn--outline {
  background: transparent;
  color: #111111;
  border: 1px solid rgba(17, 17, 17, 0.45);
  background-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost {
  border-color: rgba(0, 0, 0, 0.32);
  color: #000000;
  background-color: rgba(255, 255, 255, 0.18);
}

.btn--ghost:hover {
  background-color: rgba(179, 0, 15, 0.35);
  border-color: rgba(0, 0, 0, 0.65);
}

.hero .btn--outline {
  color: #000000;
  border-color: rgba(0, 0, 0, 0.6);
  background-color: transparent;
}

.hero .btn--outline:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #000000;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(179, 0, 15, 0.18);
}

.btn--outline:hover {
  background: rgba(17, 17, 17, 0.08);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}

.section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 26, 41, 0.07), rgba(25, 25, 25, 0.04));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.section.in-view::after {
  opacity: 1;
}

.section__head {
  text-align: center;
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.section__eyebrow {
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  color: #b3000f;
}

.section h2 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
}

.section p {
  color: #505050;
}

.services {
  background: #ffffff;
}

.services__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card {
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.12));
  backdrop-filter: blur(6px);
  padding: 1.75rem;
  border-radius: 18px;
  color: #111111;
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.08);
  border: 1px solid rgba(17, 17, 17, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-decoration: none;
}

a.service-card {
  cursor: pointer;
}

a.service-card:hover {
  text-decoration: none;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.85), rgba(17, 17, 17, 0.55));
  color: #ffffff;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 18px 28px rgba(17, 17, 17, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card:hover .service-card__icon {
  transform: translateY(-4px);
  box-shadow: 0 26px 38px rgba(17, 17, 17, 0.3);
}

.service-card__icon--accent {
  background: linear-gradient(135deg, rgba(255, 26, 41, 0.9), rgba(179, 0, 15, 0.8));
  box-shadow: 0 20px 32px rgba(179, 0, 15, 0.28);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at top left, rgba(255, 26, 41, 0.4), transparent 55%);
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 45px rgba(17, 17, 17, 0.16);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card--accent {
  background: linear-gradient(140deg, rgba(255, 26, 41, 0.1), rgba(179, 0, 15, 0.2));
  border: 1px solid rgba(255, 26, 41, 0.35);
  color: #1e1e1e;
}

.company {
  position: relative;
  background: radial-gradient(circle at top right, rgba(255, 26, 41, 0.12), transparent 45%);
  overflow: hidden;
}

.company::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
      rgba(8, 8, 8, 0.32),
      rgba(8, 8, 8, 0.28)
    ),
    url('almacen.jpeg')
      center / cover no-repeat;
  opacity: 0.65;
  transform: scale(1.05);
  filter: saturate(0.9);
  z-index: 0;
}

.company::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 26, 41, 0.12), transparent 55%);
  z-index: 1;
}

.company__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr auto;
  align-items: start;
  position: relative;
  z-index: 2;
  justify-items: start;
}

.company__about {
  max-width: 600px;
  justify-self: start;
}

.company__about p {
  color: #000000;
}

.company__about p + p {
  margin-top: 1rem;
}

.company__locations {
  display: grid;
  gap: 1.5rem;
}

.company__locations article {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 25px 45px rgba(17, 17, 17, 0.1);
  border: 1px solid rgba(17, 17, 17, 0.12);
  transition: transform 0.3s ease;
}

.company__locations article:hover {
  transform: translateY(-6px);
}

.company__locations ul {
  list-style: none;
  margin-top: 1rem;
  color: #2e2e2e;
  display: grid;
  gap: 0.35rem;
}

.location-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.2rem;
  align-items: center;
  margin-top: 1rem;
}

.location-detail ul {
  margin-top: 0;
}

.location-map {
  margin-top: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
  position: relative;
  aspect-ratio: 5 / 3;
  max-height: 180px;
}

.location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.1) contrast(1.05);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.company__locations article:hover .location-map iframe {
  transform: scale(1.03);
  filter: grayscale(0);
}

.technology {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 5rem 0;
}

.technology__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.technology__card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.technology__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.technology__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff1a29 0%, #b3000f 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.technology__icon svg {
  width: 32px;
  height: 32px;
}

.technology__card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.technology__card p {
  color: #505050;
  line-height: 1.6;
  font-size: 0.95rem;
}

.partners {
  background: #ffffff;
}

.merida-facility {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
}

.merida-facility .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.merida-facility__slider {
  width: 100%;
  margin-bottom: auto;
}

.merida-facility__background {
  position: absolute;
  inset: 0;
  background-image: url('navefila.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.merida-facility__background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.merida-facility .container {
  position: relative;
  z-index: 2;
}

.merida-facility__slider {
  width: 100%;
}

.merida-facility__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.merida-facility .slider {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}

.merida-facility .slide {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.3);
}

.merida-facility__location {
  margin-top: auto;
  margin-left: auto;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  width: 100%;
}

.merida-facility__location-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
}

.merida-facility__location-description {
  color: #505050;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  font-size: 0.7rem;
}

.merida-facility__location-detail {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

.merida-facility__location-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.merida-facility__location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.merida-facility__location-info {
  list-style: none;
  display: grid;
  gap: 0.3rem;
  color: #1a1a1a;
  font-size: 0.7rem;
}

.merida-facility__location-info li {
  padding-left: 0.9rem;
  position: relative;
}

.merida-facility__location-info li::before {
  content: '📍';
  position: absolute;
  left: 0;
  font-size: 0.65rem;
}

.navalmoral-facility {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
}

.navalmoral-facility__background {
  position: absolute;
  inset: 0;
  background-image: url('nave_fila_nav.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.navalmoral-facility__background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.navalmoral-facility .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.navalmoral-facility__slider {
  width: 100%;
  margin-bottom: auto;
}

.navalmoral-facility__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.navalmoral-facility .slider {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}

.navalmoral-facility .slide {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.3);
}

.navalmoral-facility__location {
  margin-top: auto;
  margin-left: auto;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  width: 100%;
}

.navalmoral-facility__location-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
}

.navalmoral-facility__location-description {
  color: #505050;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  font-size: 0.7rem;
}

.navalmoral-facility__location-detail {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

.navalmoral-facility__location-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.navalmoral-facility__location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.navalmoral-facility__location-info {
  list-style: none;
  display: grid;
  gap: 0.3rem;
  color: #1a1a1a;
  font-size: 0.7rem;
}

.navalmoral-facility__location-info li {
  padding-left: 0.9rem;
  position: relative;
}

.navalmoral-facility__location-info li::before {
  content: '📍';
  position: absolute;
  left: 0;
  font-size: 0.65rem;
}

.partners .section__head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.partners__sliders {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  width: 100%;
}

.partners__slider-group {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.partners__slider-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  color: #1a1a1a;
  text-align: left;
  margin: 0;
  padding-bottom: 0.5rem;
}

.slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}

.slider__track {
  overflow: hidden;
  flex: 1;
  width: 100%;
}

.slider__slides {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s ease;
  will-change: transform;
  width: max-content;
}

@keyframes sliderScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(var(--slide-distance, -50%));
  }
}

@keyframes sliderScrollReverse {
  0% {
    transform: translateX(var(--slide-distance, -50%));
  }
  100% {
    transform: translateX(0);
  }
}

.slider__slides--navalmoral {
  animation-direction: reverse;
}

.slide {
  min-width: clamp(180px, 20vw, 220px);
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.06), rgba(255, 26, 41, 0.08));
  box-shadow: 0 22px 38px rgba(17, 17, 17, 0.08);
  display: grid;
  place-items: center;
}

.slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.slide img {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(0%);
  opacity: 0.9;
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
  display: block;
  margin: 0 auto;
}

.slide:hover img,
.slide a:hover img {
  filter: saturate(1.2);
  opacity: 1;
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.18);
}

.slider__control {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(17, 17, 17, 0.1);
  color: #111111;
  font-size: 1.75rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.slider__control:hover {
  background: rgba(255, 26, 41, 0.22);
  transform: translateY(-2px);
}

.talent {
  position: relative;
  overflow: hidden;
}

.talent::after {
  content: '';
  position: absolute;
  inset: -10%;
  background-image: url('nave1.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: talentBackgroundZoom 20s ease-in-out infinite alternate;
}

.talent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 0;
}

.talent .container {
  position: relative;
  z-index: 1;
}

.talent__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.talent__intro {
  color: #ffffff;
}

.talent__intro h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.talent__intro p {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.talent__intro ul {
  margin-top: 1.5rem;
  list-style: none;
  display: grid;
  gap: 1rem;
  color: #ffffff;
  font-weight: 600;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.talent__intro ul li {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  padding-left: 1.5rem;
  position: relative;
}

.talent__intro ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ff1a29;
  font-weight: 700;
  font-size: 1.2em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.talent__form {
  background: #ffffff;
  border-radius: 22px;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 30px 60px rgba(17, 17, 17, 0.12);
  border: 1px solid rgba(17, 17, 17, 0.08);
  display: grid;
  gap: 1.25rem;
}

.talent__form h3 {
  font-size: 1.4rem;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #1c1c1c;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 26, 41, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 26, 41, 0.18);
}

.form-group--file input {
  padding: 0.75rem;
}

.form__confirmation {
  font-size: 0.95rem;
  color: #ff1a29;
  min-height: 1.2em;
}

.contact {
  background: #0a0a0a;
  color: #f5f5f5;
}

.contact__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.contact__info ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact__cta {
  background: rgba(255, 26, 41, 0.18);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(255, 26, 41, 0.25);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
}

.site-footer {
  background: #000000;
  color: rgba(245, 245, 245, 0.65);
  padding: 3rem 0 2rem;
}

.footer__logos {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer__logo:hover {
  opacity: 1;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__content {
  display: grid;
  gap: 2.5rem;
}

.footer__contact {
  display: grid;
  gap: 0.75rem;
}

.footer__contact-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer__contact-phone {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ff1a29;
  margin: 0;
}

.footer__contact-hours {
  font-size: 0.95rem;
  color: rgba(245, 245, 245, 0.8);
  margin: 0;
}

.footer__contact-email {
  margin: 0;
}

.footer__contact-email a {
  color: rgba(245, 245, 245, 0.8);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__contact-email a:hover {
  color: #ff1a29;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__links a {
  color: rgba(245, 245, 245, 0.75);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: #ff1a29;
}

.contact__logos {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 2rem;
  margin-top: 2rem;
}

.contact__logo {
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  filter: brightness(0.95);
}

.contact__logo:hover {
  opacity: 1;
  filter: brightness(1);
}

/* Cofinanciación - A4 vertical */
.contact__logo[alt="Cofinanciación"] {
  height: 280px;
  width: auto;
  max-width: 200px;
}

/* Kit - Horizontal */
.contact__logo[alt="Kit"] {
  height: auto;
  max-height: 200px;
  width: auto;
  max-width: 350px;
}

.legal-body {
  background: #f5f5f5;
}

.legal-main {
  padding-top: 6rem;
}

.legal-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: radial-gradient(circle at top right, rgba(255, 26, 41, 0.15), transparent 55%);
  color: #0b0b0b;
}

.legal-hero h1 {
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  margin-bottom: 1rem;
}

.legal-hero p {
  max-width: 640px;
  color: #3a3a3a;
}

.legal-content {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.legal-content .container {
  display: grid;
  gap: 2.5rem;
}

.legal-content article {
  background: #ffffff;
  border-radius: 18px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 25px 50px rgba(17, 17, 17, 0.08);
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #111111;
}

.legal-content p + p {
  margin-top: 0.85rem;
}

.legal-content ul {
  margin-left: 1.1rem;
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
  color: #3a3a3a;
}

.legal-content li {
  list-style: disc;
}

.legal-content li strong {
  color: #111111;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #111111;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.back-link::before {
  content: '←';
  font-size: 0.95rem;
}

.back-link:hover {
  background: rgba(255, 26, 41, 0.12);
  color: #b3000f;
  transform: translateX(-2px);
}

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 120%);
  width: min(640px, 92%);
  background: rgba(17, 17, 17, 0.92);
  color: #f5f5f5;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  padding: 1.5rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.cookie-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner__content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(245, 245, 245, 0.88);
}

.cookie-banner__content a {
  color: #ff6b78;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-banner .btn--primary {
  padding-inline: 1.5rem;
}

.cookie-banner .btn--primary:hover {
  box-shadow: 0 18px 35px rgba(255, 26, 41, 0.35);
}

.main-nav .back-link::after {
  display: none;
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero h1[data-animate] {
  color: #000000;
}

.hero h1[data-animate].is-visible {
  color: #000000;
}

@keyframes zoom {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.15);
  }
}

@keyframes talentBackgroundZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

@keyframes heroTaglineFloat {
  from {
    transform: translateY(-50%) translateX(0) rotate(0deg);
  }
  to {
    transform: translateY(-48%) translateX(6px) rotate(1.5deg);
  }
}

@keyframes heroTaglineTilt {
  from {
    transform: rotateX(0deg) rotateY(0deg);
  }
  to {
    transform: rotateX(6deg) rotateY(-4deg);
  }
}

@keyframes heroGlow {
  from {
    opacity: 0.7;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes heroTaglinePulse {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 12px rgba(255, 26, 41, 0.75);
  }
  50% {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 16px rgba(255, 26, 41, 0.95);
  }
}

@keyframes transportEntry {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero__metrics {
    gap: 1.5rem;
    flex-wrap: nowrap;
  }

  .company__grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .company__about {
    max-width: 100%;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .main-nav ul {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .main-nav ul.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav ul li {
    text-align: right;
  }

  .main-nav ul li .nav__cta {
    width: 100%;
    text-align: center;
  }

  /* Estilos del submenú en móvil */
  .nav-item--dropdown {
    width: 100%;
  }

  .nav-link--dropdown {
    width: 100%;
    justify-content: space-between;
  }

  .nav-submenu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin-top: 0.5rem;
    border-left: 2px solid rgba(179, 0, 15, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-item--dropdown.is-open .nav-submenu {
    max-height: 200px;
    padding: 0.5rem 0 0.5rem 1.5rem;
  }

  .nav-submenu a {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  .hero__content {
    text-align: center;
    align-items: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__metrics {
    justify-content: center;
    flex-wrap: nowrap;
  }

  .hero__tagline {
    position: static;
    transform: none;
    margin: 2rem auto 0;
    text-align: center;
    animation: heroTaglineFloatMobile 10s ease-in-out infinite alternate;
  }

  .location-detail {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

@media (max-width: 640px) {
  .hero__content {
    padding-top: 4rem;
  }

  .hero__metrics div {
    width: auto;
    text-align: center;
  }

  .slider__control {
    display: none;
  }

  .slide {
    min-width: 140px;
    padding: 1rem 1.25rem;
  }

  .talent__form {
    padding: 1.5rem;
  }

  .hero__tagline {
    padding: 1rem 1.2rem;
  }
}

@keyframes heroTaglineFloatMobile {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

/* Estilos para páginas de servicio */
.service-page {
  padding-top: 6rem;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  min-height: calc(100vh - 200px);
}

.service-page__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
}

.service-page__header h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #111111;
  margin: 1rem 0 0.5rem;
}

.service-page__subtitle {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: #505050;
  font-weight: 500;
}

.service-page__content {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
}

.service-page__images {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.service-page__image-small,
.service-page__image-large {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(17, 17, 17, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-page__image-small:hover,
.service-page__image-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(17, 17, 17, 0.2);
}

.service-page__image-small img,
.service-page__image-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-page__image-small {
  max-height: 300px;
}

.service-page__image-large {
  max-height: 500px;
}

.service-page__image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 1.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-page__image-small:hover .service-page__image-overlay,
.service-page__image-large:hover .service-page__image-overlay {
  opacity: 1;
}

.service-page__image-overlay svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.service-page__image-overlay span {
  font-weight: 600;
  font-size: 0.95rem;
}

.service-page__image-small--transparent {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.service-page__image-small--transparent:hover {
  transform: none;
  box-shadow: none;
}

.service-page__image-small--transparent img {
  object-fit: contain;
  background: transparent;
  transition: transform 0.3s ease;
}

.service-page__image-small--transparent:hover img {
  transform: scale(1.05);
}

.service-page__text {
  display: grid;
  gap: 2.5rem;
}

.service-page__description {
  background: linear-gradient(160deg, rgba(255, 26, 41, 0.08), rgba(179, 0, 15, 0.12));
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 26, 41, 0.2);
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.08);
}

.service-page__description p {
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  line-height: 1.8;
  color: #1e1e1e;
  margin: 0;
  font-weight: 500;
}

.service-page__features {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

.service-feature {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(17, 17, 17, 0.08);
  border: 1px solid rgba(17, 17, 17, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(17, 17, 17, 0.12);
}

.service-feature__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 26, 41, 0.15), rgba(179, 0, 15, 0.25));
  color: #b3000f;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.service-feature__icon svg {
  width: 28px;
  height: 28px;
}

.service-feature h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111111;
  margin-bottom: 0.5rem;
}

.service-feature p {
  font-size: 0.95rem;
  color: #505050;
  line-height: 1.6;
  margin: 0;
}

.service-page__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .service-page__content {
    grid-template-columns: 1fr;
  }

  .service-page__features {
    grid-template-columns: 1fr;
  }

  .service-page__cta {
    flex-direction: column;
  }

  .service-page__cta .btn {
    width: 100%;
    justify-content: center;
  }
}

