:root {
  --ink: #18212f;
  --muted: #5e6877;
  --blue: #073f88;
  --blue-strong: #0033a0;
  --red: #c92032;
  --line: #dce3ee;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --soft-blue: #eaf2fb;
  --shadow: 0 18px 45px rgba(18, 38, 63, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 227, 238, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 118px;
}

.brand img {
  width: 100%;
  height: auto;
}

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

.main-nav a {
  min-height: 44px;
  padding: 12px 15px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--blue-strong);
  background: var(--soft-blue);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.section-band {
  width: 100%;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding: 130px 0 58px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-media {
  position: absolute;
  top: 50%;
  right: clamp(28px, 8vw, 120px);
  width: min(42vw, 620px);
  aspect-ratio: 1 / 1;
  transform: translateY(-46%);
  opacity: 0.58;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(0, 24, 57, 0.8), 0 28px 85px rgba(0, 0, 0, 0.24);
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ff6d7b;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4.5rem, 18vw, 10rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--red);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.identity,
.accreditations,
.contact {
  padding: 92px 0;
  background: var(--surface);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.identity-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.feature-panel,
.service-card,
.accreditation-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 25px rgba(18, 38, 63, 0.08);
}

.feature-panel {
  overflow: hidden;
}

.feature-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-panel div {
  padding: 20px;
}

.feature-panel p,
.service-card p,
.accreditation-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.services {
  position: relative;
  padding: 92px 0;
  color: #ffffff;
  background: #102032 url("assets/servicios.png") center / cover fixed;
}

.services::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(3, 18, 40, 0.78);
}

.services > * {
  position: relative;
  z-index: 1;
}

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

.section-heading > p:last-child {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.services .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.75);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  position: relative;
  height: 230px;
  background: transparent;
  border: 0;
  box-shadow: none;
  perspective: 1000px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s ease;
  transform-style: preserve-3d;
}

.service-card.is-flipped .service-card-inner {
  transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-card-inner,
  .service-card:focus-within .service-card-inner {
    transform: rotateY(180deg);
  }
}

.service-front,
.service-back {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 25px rgba(18, 38, 63, 0.08);
  backface-visibility: hidden;
}

.service-front::after {
  content: "Ver equipos";
  align-self: end;
  color: var(--blue-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-back {
  transform: rotateY(180deg);
  align-content: stretch;
  background: #ffffff;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: var(--blue-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
}

.service-card h3 {
  color: var(--blue);
}

.service-back ul {
  display: grid;
  gap: 8px;
  margin: 0;
  max-height: 100%;
  overflow-y: auto;
  padding: 0 4px 0 20px;
  color: var(--muted);
  text-align: left;
}

.service-back li::marker {
  color: var(--red);
}

.sectors {
  padding: 72px 0;
  background: var(--soft-blue);
}

.sector-carousel {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sector-track {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-auto-columns: minmax(210px, 1fr);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sector-track::-webkit-scrollbar {
  display: none;
}

.sector-card {
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 158px;
  padding: 24px 18px;
  border: 1px solid #c7d8ee;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(18, 38, 63, 0.08);
  text-align: center;
}

.sector-card h3 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 1.05rem;
}

.sector-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--blue-strong);
  border: 1px solid #c7d8ee;
  border-radius: 999px;
  background: #f7fbff;
}

.sector-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-button {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid #c7d8ee;
  border-radius: 999px;
  color: var(--blue-strong);
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(18, 38, 63, 0.08);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  color: #ffffff;
  background: var(--blue-strong);
}

.logo-pj {
  width: min(340px, 100%);
  height: auto;
  margin: 0 0 20px;
}

.accreditation-hint {
  margin-top: 18px;
  color: #063970;
  font-size: 1.05rem;
  font-weight: 700;
}

.accreditation-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.accreditation-card {
  position: relative;
  width: 280px;
  height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.accreditation-front,
.accreditation-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: #ffffff;
  backface-visibility: hidden;
  transition: transform 0.5s ease-in-out;
}

.accreditation-front {
  z-index: 2;
}

.accreditation-back {
  z-index: 1;
  transform: translateX(-100%);
}

.accreditation-card.is-flipped .accreditation-front {
  transform: translateX(100%);
}

.accreditation-card.is-flipped .accreditation-back {
  transform: translateX(0);
}

@media (hover: hover) and (pointer: fine) {
  .accreditation-card:hover .accreditation-front,
  .accreditation-card:focus-within .accreditation-front {
    transform: translateX(100%);
  }

  .accreditation-card:hover .accreditation-back,
  .accreditation-card:focus-within .accreditation-back {
    transform: translateX(0);
  }
}

.accreditation-front img {
  width: auto;
  max-width: 170px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
}

.accreditation-legend {
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.45;
}

.accreditation-legend strong {
  color: #0033a0;
}

.accreditation-back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  color: #ffffff;
  background: #c8102e;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.accreditation-back a:hover,
.accreditation-back a:focus-visible {
  background: #a50d24;
}

.quote {
  padding: 92px 0;
  background: linear-gradient(180deg, #f7f9fc, #eaf2fb);
}

.contact-lines a,
.contact-card a {
  color: var(--blue-strong);
  font-weight: 800;
  text-decoration: none;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #c9d2df;
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.span-2 {
  grid-column: 1 / -1;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr) minmax(240px, 0.8fr);
  gap: 18px;
}

address {
  margin-top: 22px;
  color: var(--muted);
  font-style: normal;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: #ffffff;
  background: var(--blue-strong);
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.floating-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #ffffff;
  background: #25d366;
  border-radius: 999px;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.floating-call svg {
  width: 31px;
  height: 31px;
  fill: #ffffff;
}

@media (max-width: 1060px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .identity-grid,
  .accreditation-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 72px;
  }

  .brand {
    width: 92px;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 16px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    border-radius: var(--radius);
  }

  .hero {
    min-height: 88svh;
    padding-top: 108px;
  }

  .hero-media {
    top: 58%;
    right: -24vw;
    width: 92vw;
    opacity: 0.34;
    transform: translateY(-50%);
  }

  .hero-media::after {
    box-shadow: inset 0 0 54px rgba(0, 24, 57, 0.85);
  }

  .hero-actions,
  .contact-lines {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .identity,
  .services,
  .quote,
  .accreditations,
  .contact {
    padding: 64px 0;
  }

  .two-column,
  .identity-grid,
  .services-grid,
  .accreditation-grid,
  .quote-form,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .services {
    background-attachment: scroll;
  }

  .service-card {
    min-height: 140px;
  }

  .sector-carousel {
    gap: 8px;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .hero-media video {
    display: none;
  }
}
