:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #171b22;
  --muted: #5f6875;
  --line: #d8dee6;
  --header-bg: #1a1d23;
  --header-ink: #f1f4f8;
  --accent: #2f455c;
  --radius: 14px;
  --shadow-sm: 0 10px 22px rgba(18, 25, 33, 0.07);
  --shadow-md: 0 16px 34px rgba(18, 25, 33, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

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

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

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  width: min(120px, 30vw);
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 1.35rem;
}

.site-nav a {
  color: #ced4df;
  font-weight: 600;
  position: relative;
  transition: color 0.26s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #f2f6fb;
  transition: width 0.26s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--header-ink);
}

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

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ced4df;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-link.is-active {
  background: #f1f4f8;
  color: #111824;
  border-color: #f1f4f8;
}

.lang-link:hover,
.lang-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  padding: 7px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #eef2f8;
}

.mobile-nav {
  display: none;
  padding: 0.65rem 4vw 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #101318;
}

.mobile-nav a {
  display: block;
  color: #d6dce6;
  padding: 0.54rem 0.2rem;
  font-weight: 600;
}

.lang-switch-mobile {
  margin-top: 0.6rem;
}

.hero {
  min-height: calc(100vh - 76px);
  position: relative;
  overflow: hidden;
}

.hero-video,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-video {
  z-index: 0;
}

.hero-image {
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 19, 24, 0.68), rgba(15, 19, 24, 0.7));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 76px);
  padding: 2rem 0;
  display: grid;
  place-items: center;
}

.hero-content {
  max-width: 920px;
  width: min(920px, 100%);
  margin-inline: auto;
  color: #f3f7fb;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.79rem;
  font-weight: 800;
  color: #becadc;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-family: "Outfit", sans-serif;
  line-height: 1.14;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
}

h2 {
  font-size: clamp(1.74rem, 3vw, 2.35rem);
}

.hero-content p {
  font-size: 1.08rem;
  max-width: 62ch;
  margin-inline: auto;
  color: #dbe4ef;
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: transparent;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.scroll-cue span {
  width: 12px;
  height: 12px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
  animation: scrollCue 1.6s infinite ease;
  display: block;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  transform: translateX(-50%) translateY(-2px);
  opacity: 0.85;
}

@keyframes scrollCue {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.6;
  }
  50% {
    transform: rotate(45deg) translate(3px, 3px);
    opacity: 1;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.78rem 1.2rem;
  font-weight: 700;
  transition: transform 0.24s ease, background-color 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: #ffffff;
  color: #111824;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.btn-secondary {
  border-color: #bbc7d4;
  background: #ffffff;
  color: #213141;
}

.hero-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.services-detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 1.6rem;
  border: 1px solid #d6dee8;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.services-media {
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
}

.service-media-stack {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 0;
  overflow: hidden;
  box-shadow: none;
  background: #eef2f7;
}

.service-media-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.service-media-item.is-active {
  opacity: 1;
  transform: scale(1);
}

.service-panel-wrap {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  padding: clamp(1.3rem, 2.4vw, 1.8rem);
  box-shadow: none;
  height: 100%;
  scroll-margin-top: 92px;
  border-left: 0;
}

.service-panel {
  display: none;
  animation: fadeInPanel 0.35s ease;
}

.service-panel.is-active {
  display: block;
}

.service-panel h3 {
  margin-bottom: 0.65rem;
}

.service-panel p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.service-panel p:last-child {
  margin-bottom: 0;
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-section {
  background: #eef2f7;
}

.services-solid .hero-service {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-color: #d7e0ea;
  box-shadow: 0 14px 28px rgba(18, 25, 33, 0.08);
}

.services-solid .hero-service:hover {
  background: #ffffff;
  border-color: #9fb0c5;
  transform: translateY(-8px);
}

.services-solid .hero-service-icon {
  border-color: transparent;
  background: linear-gradient(135deg, #223449 0%, #3b5471 100%);
  box-shadow: 0 10px 18px rgba(31, 51, 70, 0.2);
}

.services-solid .hero-service-icon svg {
  fill: #ffffff;
}

.services-solid .hero-service h3 {
  color: #1d2a39;
}

.services-solid .hero-service p {
  color: #5e6875;
}

.hero-service {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 14px;
  padding: 1rem 0.8rem;
  text-align: center;
  cursor: pointer;
  width: 100%;
  appearance: none;
  font: inherit;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.hero-service:hover {
  transform: translateY(-6px) scale(1.01);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.38);
}

.hero-service.is-active {
  border-color: #3d5672;
  box-shadow: 0 12px 26px rgba(20, 30, 40, 0.16);
  background: rgba(255, 255, 255, 0.18);
}

.hero-service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin: 0 auto 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.hero-service-icon svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.hero-service h3 {
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.hero-service p {
  margin: 0;
  color: #d7e2ee;
  font-size: 0.97rem;
}

.section {
  padding: 5.2rem 0;
}

#contacto {
  scroll-margin-top: 96px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.8rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section .eyebrow {
  color: #4f6178;
}

.projects-section {
  background: #eef2f7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.detail-projects-grid {
  margin-top: 1.1rem;
}

.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transform: translateY(0);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: #b7c3d1;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-body {
  padding: 1rem;
}

.project-body p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 0.72rem;
  font-weight: 700;
  color: #2d435b;
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #2d435b;
  transition: width 0.25s ease;
}

.text-link:hover::after {
  width: 100%;
}

.section-cta {
  text-align: center;
  margin-top: 1.5rem;
}

.project-detail-section {
  background: #f7f9fc;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease, padding 0.35s ease;
}

.project-detail-section.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border: 0;
}

.project-detail-section.expanded {
  max-height: 10000px;
  opacity: 1;
}

.detail-grid {
  display: grid;
  gap: 1rem;
}

.project-detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-detail-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.project-detail-card > div {
  padding: 1.1rem;
}

.project-detail-card p {
  color: var(--muted);
}

.project-detail-card:target,
.project-detail-card.is-target {
  border-color: #6f859d;
  box-shadow: 0 0 0 3px rgba(111, 133, 157, 0.2), var(--shadow-md);
}

.oca-section {
  background: #1e232b;
  color: #eef2f7;
}

.oca-section .eyebrow {
  color: #c4cedd;
}

.oca-section p {
  color: #cdd6e2;
}

.oca-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.oca-grid img {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.about-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
}

.about-grid img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.about-grid p {
  color: var(--muted);
}

.clients-section {
  background: #eef2f7;
}

.clients-carousel {
  --logo-gap: 0.8rem;
  --logo-card-width: 200px;
  position: relative;
}

.clients-viewport {
  overflow: hidden;
  padding: 0.2rem 2.6rem;
  scroll-behavior: auto;
}

.clients-viewport::-webkit-scrollbar {
  display: none;
}

.clients-viewport {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.clients-track {
  display: flex;
  gap: var(--logo-gap);
  width: max-content;
  align-items: center;
  padding-bottom: 0.2rem;
}

.clients-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.clients-arrow svg {
  width: 18px;
  height: 18px;
  fill: #2d4259;
}

.clients-arrow:hover,
.clients-arrow:focus-visible {
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: #b7c3d1;
}

.clients-arrow:focus-visible {
  outline: 2px solid #8aa0b7;
  outline-offset: 2px;
}

.clients-arrow-prev {
  left: 0.5rem;
}

.clients-arrow-next {
  right: 0.5rem;
}

.client-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 108px;
  height: 108px;
  padding: 0.5rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 var(--logo-card-width);
}

.logo-mark {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  opacity: 0.82;
  transition: opacity 0.3s ease;
}

.client-logo:hover .logo-mark {
  opacity: 1;
}

.logo-mark-img {
  max-width: 86%;
  max-height: 64px;
  object-fit: contain;
  opacity: 0.96;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.client-logo-bonaire .logo-mark-img {
  max-width: 100%;
  max-height: 160px;
  transform: scale(2.3);
  transform-origin: center;
}

.client-logo-bonaire {
  overflow: hidden;
}

.client-logo-telefonica .logo-mark-img {
  max-width: 100%;
  max-height: 140px;
  transform: scale(1.6);
  transform-origin: center;
}

.client-logo-telefonica {
  overflow: hidden;
}

.client-logo:hover .logo-mark-img,
.client-logo:focus-visible .logo-mark-img {
  opacity: 1;
  transform: scale(1.04);
}

.client-logo:focus-visible {
  outline: 2px solid #8aa0b7;
  outline-offset: 2px;
}

.client-logo-telefonica {
  padding: 0;
  overflow: hidden;
}

.logo-mark-img-full {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.client-logo-bonaire .logo-mark-img {
  max-width: 95%;
  max-height: 82px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
  align-items: stretch;
}

.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #e8edf3;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.map-consent-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.8rem;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(232, 237, 243, 0.95), rgba(226, 232, 240, 0.97));
}

.map-consent-placeholder[hidden] {
  display: none !important;
}

.map-consent-placeholder p {
  margin: 0;
  max-width: 32ch;
  color: #2f455c;
  font-weight: 600;
}

.cookie-inline-btn {
  box-shadow: none;
}

.contact-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.2vw, 2rem);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
  min-height: 360px;
}

.contact-card {
  border: 1px solid #d7e0ea;
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  background: #fdfefe;
}

.contact-card-wide {
  padding: 0.9rem 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.contact-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  letter-spacing: -0.01em;
}

.contact-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.contact-card-mail {
  grid-column: 1 / -1;
  padding: 0.85rem 1.1rem;
}

.contact-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #1f2f43;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.contact-cards .contact-card {
  min-height: auto;
}

.contact-form {
  margin-bottom: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.contact-form label {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
  color: #2b3747;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #cad2de;
  border-radius: 10px;
  padding: 0.66rem 0.7rem;
  font-family: inherit;
  font-size: 0.97rem;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid #7f93aa;
  outline-offset: 1px;
}

.form-msg {
  margin: 0.7rem 0 0;
  color: #304761;
  font-weight: 600;
  min-height: 1.1rem;
}

.contact-address strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #2a3c52;
  font-weight: 600;
}

.contact-mail .contact-link {
  display: inline-block;
  font-size: clamp(0.86rem, 2.2vw, 1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.contact-phone-link {
  white-space: nowrap;
}

.contact-separator {
  margin: 0.3rem 0 0.5rem;
  border-top: 1px solid #d6dfe9;
}

.contact-link {
  color: #2f455c;
  font-weight: 700;
}

.contact-cta {
  justify-self: flex-start;
  margin-top: 0.1rem;
}

.site-footer {
  background: #15181d;
  color: #d1d8e3;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: min(680px, 96vw);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #d7dee8;
  box-shadow: var(--shadow-md);
  padding: 1rem;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 0.6rem;
  top: 0.5rem;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  cursor: pointer;
  color: #44586f;
}

.footer-wrap {
  padding: 1.1rem 0;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-left: 0.2rem;
  font-size: 0.84rem;
  color: #b9c4d3;
}

.footer-links a {
  opacity: 0.92;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

.footer-cookie-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  opacity: 0.92;
  text-decoration: underline;
}

.footer-cookie-btn:hover,
.footer-cookie-btn:focus-visible {
  opacity: 1;
}

.footer-cert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.footer-cert img {
  width: 22px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: none;
}

.footer-cert:hover,
.footer-cert:focus-visible {
  transform: translateY(-2px);
}

.footer-brand > img {
  width: min(96px, 34vw);
  height: auto;
}

.footer-brand p {
  margin: 0;
  font-size: 0.92rem;
}

.linkedin {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.linkedin svg {
  width: 20px;
  height: 20px;
  fill: #eaf0f8;
}

.cookie-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 220;
  padding: 1rem 1rem 1.1rem;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent-card {
  pointer-events: auto;
  width: min(540px, 92vw);
  background: linear-gradient(160deg, #ffffff, #f7f9fc);
  border: 1px solid #cad4e2;
  border-radius: 16px;
  box-shadow: 0 22px 44px rgba(16, 24, 36, 0.22);
  padding: 0.85rem 0.95rem 0.95rem;
  display: grid;
  gap: 0.65rem;
}

.cookie-consent-head {
  display: grid;
  gap: 0.25rem;
}

.cookie-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #5d6f86;
}

.cookie-consent-copy {
  margin: 0;
  color: #2f435a;
  font-size: 0.9rem;
}

.cookie-consent-card h2 {
  margin: 0;
  font-size: 1.04rem;
  font-family: "Outfit", "Manrope", sans-serif;
  color: #192434;
}

.cookie-consent-note {
  margin: 0;
  color: #4e6078;
  font-size: 0.82rem;
}

.cookie-consent-note a {
  color: #2f455c;
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cookie-consent-actions .btn,
.cookie-preferences-actions .btn {
  padding: 0.58rem 0.95rem;
  font-size: 0.86rem;
  box-shadow: none;
}

.cookie-accept-btn {
  background: #2f455c;
  color: #f6f9fc;
  border-color: #2f455c;
}

.cookie-accept-btn:hover,
.cookie-accept-btn:focus-visible {
  background: #23374c;
  border-color: #23374c;
}

.cookie-preferences {
  border-top: 1px solid #d9e2ef;
  margin-top: 0.15rem;
  padding-top: 0.8rem;
  display: grid;
  gap: 0.75rem;
}

.cookie-preferences[hidden] {
  display: none !important;
}

.cookie-option {
  border: 1px solid #d7e1ef;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #f8fbff;
}

.cookie-check-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #1f3147;
  font-size: 0.91rem;
  font-weight: 600;
}

.cookie-check-row span {
  line-height: 1.35;
}

.cookie-check-row input {
  margin: 0;
}

.cookie-check-row input[type="checkbox"] {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #b8c6da;
  background: #d7e0ec;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.cookie-check-row input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 24, 36, 0.32);
  transition: transform 0.2s ease;
}

.cookie-check-row input[type="checkbox"]:checked {
  background: #2f455c;
  border-color: #2f455c;
}

.cookie-check-row input[type="checkbox"]:checked::before {
  transform: translateX(18px);
}

.cookie-check-row input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.cookie-option-help {
  margin: 0.42rem 0 0;
  color: #5a6c83;
  font-size: 0.82rem;
  line-height: 1.35;
}

.cookie-preferences-actions {
  display: flex;
  justify-content: flex-end;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .hero-services-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clients-carousel {
    --logo-card-width: 180px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: block;
  }

  .project-detail-card {
    grid-template-columns: 1fr;
  }

  .project-detail-card img {
    height: 220px;
  }

  .oca-grid,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }


  .map-wrap {
    height: 300px;
    min-height: 300px;
  }

  .services-detail-layout {
    grid-template-columns: 1fr;
  }

  .service-media-stack {
    height: 220px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 4.1rem 0;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-inner {
    padding: 2.4rem 0 1.8rem;
  }

  .hero-services-grid,
  .project-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }


  .clients-carousel {
    --logo-card-width: 70vw;
  }

  .clients-arrow {
    display: none;
  }

  .contact-panel .btn {
    width: 100%;
  }

  .contact-address strong {
    font-size: 1.08rem;
  }

  .contact-mail .contact-link {
    font-size: 0.74rem;
  }

  .footer-wrap,
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    margin-left: 0;
  }

  .cookie-consent-actions .btn,
  .cookie-preferences-actions .btn {
    width: 100%;
  }

  .cookie-check-row input[type="checkbox"] {
    width: 40px;
    height: 22px;
  }

  .cookie-check-row input[type="checkbox"]::before {
    width: 16px;
    height: 16px;
  }

  .cookie-check-row input[type="checkbox"]:checked::before {
    transform: translateX(18px);
  }

  .cookie-preferences-actions {
    justify-content: stretch;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
