
:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-soft: rgba(255,255,255,.8);
  --surface: rgba(255,255,255,.9);
  --surface-strong: #ffffff;
  --border: rgba(226,232,240,1);
  --text: #0f172a;
  --descriptions: #153b7b;
  --muted: #475569;
  --muted-2: #64748b;
  --muted-3: #64748b;
  --shadow: 0 20px 60px rgba(0,0,0,.06);
  --shadow-strong: 0 25px 80px rgba(0,0,0,.08);
  --primary: #0f172a;
  --primary-text: #fff;
  --chip: rgba(255,255,255,.9);
  --chip-hover: rgba(248,250,252,1);
  --panel: rgba(255,255,255,.9);
  --panel-blur: blur(14px);
  --header-height: 80px;
  --footer-height: 60px;
}

body.dark {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: rgba(2,6,23,.7);
  --surface: rgba(2,6,23,.8);
  --surface-strong: #020617;
  --border: rgba(51,65,85,1);
  --text: #e2e8f0;
  --descriptions: #153b7b;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;
  --muted-3: #c6deff
  --shadow: 0 25px 80px rgba(0,0,0,.35);
  --shadow-strong: 0 28px 90px rgba(0,0,0,.45);
  --primary: #e2e8f0;
  --primary-text: #020617;
  --chip: rgba(2,6,23,.7);
  --chip-hover: rgba(15,23,42,.8);
  --panel: rgba(2,6,23,.75);
  --panel-blur: blur(14px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(96,165,250,0.08), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(168,85,247,0.08), transparent 40%),
    var(--bg);
  color: var(--text);
  padding-top: var(--header-height);
  padding-bottom: var(--footer-height);
}

.page {
  position: relative;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 10000;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: var(--panel-blur);
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--footer-height);
  z-index: 10000;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: var(--panel-blur);
}

main {
  position: relative;
}

.section {
  min-height: 85vh;
  padding: 3rem clamp(1rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

* { box-sizing: border-box; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 0;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand-logo { width: 108px; height: 40px; object-fit: contain; }

.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .35rem; }
.menu-group { position: relative; }
.nav-pill, .nav-pill-link, .btn, .theme-toggle, .icon-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nav-pill, .nav-pill-link {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 10px 14px;
  font-size: 14px; font-weight: 600;
  background: var(--chip); color: var(--muted);
}
.nav-pill:hover, .nav-pill-link:hover { transform: translateY(-1px); background: var(--chip-hover); }
.nav-pill[aria-expanded="true"] { border-color: color-mix(in srgb, var(--muted-2) 80%, var(--border)); }
.chev { font-size: .8rem; opacity: .7; }
.submenu-panel {
  position: absolute; right: 0; margin-top: 10px; width: 340px;
  padding: 10px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--panel); backdrop-filter: var(--panel-blur);
  box-shadow: 0 16px 50px rgba(0,0,0,.12); overflow: hidden;
}
body.dark .submenu-panel { box-shadow: 0 22px 60px rgba(0,0,0,.35); }
.submenu-item {
  display: flex; gap: 12px; padding: 12px; border-radius: 16px;
  transition: background .2s ease, transform .15s ease;
}
.submenu-item:hover { background: rgba(248,250,252,1); transform: translateY(-1px); }
body.dark .submenu-item:hover { background: rgba(15,23,42,.7); }
.submenu-icon {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 14px; border: 1px solid var(--border); background: rgba(248,250,252,1); color: var(--muted);
}
body.dark .submenu-icon { background: rgba(15,23,42,.8); }
.submenu-title { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.submenu-desc { display: block; margin-top: 2px; font-size: 12px; color: var(--muted-2); }
.theme-toggle {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  background: var(--surface-strong); color: var(--muted);
}
.theme-toggle:hover { background: rgba(248,250,252,1); }
body.dark .theme-toggle:hover { background: rgba(15,23,42,.6); }
.theme-icon { font-size: 16px; line-height: 1; }

.section-shell {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: box-shadow .3s ease, transform .3s ease;
  position: relative;
  overflow: hidden;
}

.section-shell:hover {
  box-shadow: var(--shadow-strong);
}

.section-video{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;
    opacity: .40;
    
    filter:
        saturate(.75)
        brightness(.90)
        contrast(.90);

}
.section-overlay{
    position:absolute;
    inset:0;
    z-index:2;
    background:rgba(255,255,255,.55);
}

body.dark .section-overlay{
    background:rgba(2,6,23,.45);
}

/* Todo el contenido queda encima */

.section-content{
    position:relative;
    z-index:3;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding: 1rem 1rem;
}
.hero-copy h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .98; letter-spacing: -.04em; margin: 1rem 0 0; }
.hero-copy h1 span { color: var(--muted-2); }
.hero-copy h2 span { color: var(--muted-3); }
.hero-copy p { max-width: none; font-size: 1.25rem; line-height: 1.25; color: var(--muted); margin: 0; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface-strong);
  color: var(--muted); font-size: .8rem; font-weight: 600;
}
.dot { width: .55rem; height: .55rem; border-radius: 999px; background: #10b981; display: inline-block; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.25rem; font-weight: 700;
}
.btn-primary { background: var(--primary); color: var(--primary-text); border-color: transparent; }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn-secondary { background: transparent; color: var(--text); }
.btn-secondary:hover { background: rgba(248,250,252,1); transform: translateY(-1px); }
.btn-guma { background: transparent; color: var(--text); }
body.dark .btn-secondary:hover { background: rgba(15,23,42,.8); }
body.dark .btn-guma{ background: var(--primary); color: var(--primary-text); border-color: transparent; }
.btn-wide { width: 100%; }
.hero-card { position: relative; }
.hero-card-inner {
  position: relative; z-index: 1; padding: 1.25rem; border: 1px solid var(--border); border-radius: 28px;
  background: var(--surface-strong); box-shadow: var(--shadow); overflow: hidden;
}
.hero-logo {
  width: 102px; height: 102px; margin: 0 auto; border-radius: 28px; display: grid; place-items: center;
   font-size: 1.5rem; font-weight: 800; letter-spacing: .02em;
}
.hero-subtitle { text-align: center; margin-top: .9rem; color: white; font-size: .95rem; }
.hero-video-element{
    width: 100%;
    max-width: 250px; /* antes 450px */
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    margin: 0 auto;
}
.hero-card-video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;

}

.hero-card-overlay{
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            135deg,
            rgba(2,6,23,.70),
            rgba(15,23,42,.45)
        );
}

body.dark .hero-card-overlay{
    background:
        linear-gradient(
            135deg,
            rgba(2,6,23,.70),
            rgba(15,23,42,.45)
        );
}

/* Contenido encima */

.hero-card-content{
    position: relative;
    z-index: 3;
    padding: 2rem;
}

/* Opcional: mejorar contraste */
.hero-subtitle,
.info-title,
.info-text{
    text-shadow: 0 1px 2px rgba(0,0,0,.20);
}

.hero-card-inner > *:not(.hero-card-video):not(.hero-card-overlay){
    position: relative;
    z-index: 2;
}
.contact-grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.info-card {
  display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1rem .8rem;
  border-radius: 24px; border: 1px solid var(--border); background: var(--surface-strong); text-align: center;
}
.info-icon {
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 20px; border: 1px solid var(--border); background: rgba(248,250,252,1); font-size: 1.15rem;
}
body.dark .info-icon { background: rgba(30,41,59,1); }
.info-title { font-size: .875rem; font-weight: 700; color: var(--muted-2); }
.info-text { font-size: .95rem; font-weight: 700; line-height: 1.5; color: var(--text); word-break: break-word; }
.hero-illustration {
  position: absolute; inset: 0; z-index: 0; opacity: .18; filter: blur(6px);
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
}
.section-hero {
   min-height: 85vh;
}
.section-hero .section-shell {
  width: 100%;
}
.section-hero .section-shell {
  margin-top: 1rem;
}

.section-head { padding: 1.15rem 1rem 0; }
.section-head h2 { margin: 0; font-size: clamp(2.1rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.section-head p { max-width: 90ch; margin: .65rem 0 0; color: var(--desciptions); line-height: 1.35; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; padding: 1.5rem 1rem 2rem; }
.service-card {
  text-align: left; padding: 0; overflow: hidden; border-radius: 24px; border: 1px solid var(--border);
  background: var(--surface-strong); box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.service-card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,.12); }
.service-image { width: 100%; aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-repeat: no-repeat; }
.service-body { padding: 1.35rem; }
.eyebrow { font-size: .78rem; font-weight: 700; color: var(--muted-2); text-transform: none; }
.service-body h3 { margin: .35rem 0 0; font-size: 1.35rem; }
.service-body p { margin: .7rem 0 0; color: var(--muted); line-height: 1.7; }
.service-link { margin-top: 1.35rem; font-size: .95rem; font-weight: 700; color: var(--text); }
.login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items:center; }
.login-card {
  max-width: 900px; margin: 0 auto; padding: 2rem; border-radius: 28px; border: 1px solid var(--border);
  background: var(--surface-strong); box-shadow: var(--shadow);
}
.login-card h3 { margin: 0; font-size: 1.2rem; }
.login-card p { margin: .7rem 0 0; color: var(--muted); line-height: 1.7; }
.login-preview{
    display:flex;
    justify-content:center;
    align-items:center;
}

.login-preview-image{
    width:100%;
    max-width:900px;
    border-radius:18px;
    border:1px solid var(--border);
    box-shadow:var(--shadow-strong);
}

.note { margin-top: 1rem; font-size: .8rem; color: var(--muted-2); }

.footer-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem 0 2rem; color: var(--muted);
}

.fade-in { animation: fadeIn .6s ease-out both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.modal { position: fixed; inset: 0; z-index: 60; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.modal-panel { position: absolute; inset: 2.5rem 1rem auto; margin: 0 auto; width: min(768px, calc(100% - 2rem)); }
.modal-inner {
  background: var(--surface-strong); color: var(--text); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow-strong);
  overflow: hidden;
}
.modal-inner { padding: 1.5rem; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.modal-head h3 { margin: .25rem 0 0; font-size: 1.65rem; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; background: transparent; color: var(--muted); }
.icon-btn:hover { background: rgba(248,250,252,1); }
body.dark .icon-btn:hover { background: rgba(15,23,42,.8); }
.modal-description { margin: 1rem 0 0; color: var(--muted); line-height: 1.7; }
.modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.modal-box { border: 1px solid var(--border); border-radius: 22px; padding: 1rem; }
.modal-box-title { font-size: .95rem; font-weight: 800; }
.modal-list { margin: .85rem 0 0; padding: 0; list-style: none; display: grid; gap: .6rem; color: var(--muted); line-height: 1.6; }
.modal-list-ordered { list-style: decimal; padding-left: 1.2rem; }
.modal-help { margin: .45rem 0 0; color: var(--muted); font-size: .95rem; }
.video-form { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .9rem; }
.video-form input {
  flex: 1 1 260px; min-width: 0; padding: .85rem 1rem; border-radius: 18px; border: 1px solid var(--border);
  background: var(--surface-strong); color: var(--text);
}
.video-wrap { margin-top: 1rem; position: relative; width: 100%; padding-top: 56.25%; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-footer { display: flex; justify-content: flex-end; margin-top: 1.25rem; }

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; padding: 3.5rem 1.5rem; }
}
@media (max-width: 920px) {
  .nav { display: none; }
  .contact-grid, .services-grid, .modal-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 1rem, 1120px); }
  .section-shell { padding: .35rem; border-radius: 20px; }
  .hero-grid, .section-head { padding-left: .85rem; padding-right: .85rem; }
  .hero-copy h1 { font-size: 2.1rem; }
  .video-form { flex-direction: column; }
  .video-form input, .video-form .btn { width: 100%; }
  .modal-panel {
    position: fixed;
    left: .5rem;
    right: .5rem;
    bottom: .5rem;
    top: auto;

    width: auto;
    max-height: 88vh;
  }

  .modal-inner {
    padding: 1rem;
    border-radius: 22px;
    overflow-y: auto;
    max-height: 88vh;
  }

  .modal-head h3 {
    font-size: 1.25rem;
  }

  .modal-description {
    font-size: .95rem;
    line-height: 1.55;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .modal-box {
    padding: .85rem;
  }

  .modal-list {
    gap: .4rem;
    font-size: .9rem;
  }

  .modal-footer {
    position: sticky;
    bottom: 0;
    padding-top: .75rem;
    background: var(--surface-strong);
  }

  .modal-footer .btn {
    width: 100%;
  }
  .modal-inner::before {
    content: "";
    display: block;
    width: 48px;
    height: 5px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: var(--border);
  }
}

.team-card{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:16px;
  border-radius:20px;
  border:1px solid rgba(226,232,240,1);
  background:white;
  transition: transform .25s ease, box-shadow .25s ease;
  width:100%;
  min-width:0;
}

.team-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.dark .team-card{
  background: rgba(15,23,42,0.9);
  border-color: rgba(51,65,85,1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.team-image{
  width:100%;
  aspect-ratio:16 / 9;
  background-size:cover;
  background-position:center;
  border-radius:14px;
}

.team-title{
  font-weight:600;
  font-size:15px;
  color: rgba(15,23,42,1);
}

.dark .team-title{
  color: rgba(226,232,240,1);
}

.team-desc{
  font-size:14px;
  color: rgba(100,116,139,1);
  line-height: 1.6;
  text-align: justify;
}

.dark .team-desc{
  color: rgba(148,163,184,1);
}

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

@media (min-width: 640px){
  .team-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px){
  .team-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}





:root {
  --carousel-bg: #ffffff;
  --carousel-surface: #f8fafc;
  --carousel-border: #e2e8f0;
  --carousel-text: #0f172a;
  --carousel-muted: #475569;
  --carousel-chip-bg: #ffffff;
  --carousel-chip-hover: #f8fafc;
  --carousel-chip-active: #0f172a;
  --carousel-chip-active-text: #ffffff;
  --carousel-track-bg: rgba(148, 163, 184, 0.25);
}

html.dark,
body.dark {
  --carousel-bg: #0f172a;
  --carousel-surface: #111827;
  --carousel-border: #334155;
  --carousel-text: #f8fafc;
  --carousel-muted: #cbd5e1;
  --carousel-chip-bg: #111827;
  --carousel-chip-hover: #1e293b;
  --carousel-chip-active: #f8fafc;
  --carousel-chip-active-text: #0f172a;
  --carousel-track-bg: rgba(148, 163, 184, 0.18);
}

.services-carousel {
  width: 100%;
}

.services-carousel__stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--carousel-border);
  border-radius: 28px;
  background: var(--carousel-bg);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  min-height:420px;
}

.services-carousel__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-areas:
    "media"
    "content";
  grid-template-columns: minmax(0, 1fr);
  background: var(--carousel-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.services-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.services-carousel__media {
  grid-area: media;
  position: relative;
  overflow: hidden;
  background: var(--carousel-surface);
  aspect-ratio: 16 / 9;
  min-width: 0;
}

.services-carousel__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-carousel__content {
  grid-area: content;
  position: relative;
  z-index: 2;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 22px 24px 28px;
  background: var(--carousel-bg);
}

.services-carousel__text {
  margin: 0;
  color: var(--carousel-muted);
  line-height: 1.5;
  text-align: justify;
  width: 100%;
  max-width: none;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .services-carousel__content {
      
    padding: 28px 32px 34px;
  }
}

@media (min-width: 769px) {
  .services-carousel__slide {
    grid-template-areas: "media content";
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    align-items: stretch;
  }

  .services-carousel__media,
  .services-carousel__content {
    min-width: 0;
  }

  .services-carousel__media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .services-carousel__content {
    padding: 36px 40px;
  }
}

@media (max-width: 767px) {
  .services-carousel__stage {
    min-height: 560px;
  }
}

.services-carousel__eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--carousel-muted);
}

.services-carousel__title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  color: var(--carousel-text);
}

.services-carousel__text {
  margin: 0;
  color: var(--carousel-muted);
  line-height: 1.5;
  text-align: justify;
  max-width: none;
  width: 100%;
  overflow-wrap: break-word;
}

.services-carousel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.carousel-btn--primary {
  background: var(--carousel-chip-active);
  color: var(--carousel-chip-active-text);
}

.carousel-btn--primary:hover {
  opacity: 0.92;
}

.carousel-btn--secondary {
  background: var(--carousel-chip-bg);
  color: var(--carousel-text);
  border-color: var(--carousel-border);
}

.carousel-btn--secondary:hover {
  background: var(--carousel-chip-hover);
}
.services-carousel__dots-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.carousel-dot {
  position: relative;
  width: 52px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  flex: 0 0 auto;
}

.carousel-dot.is-active {
  background: rgba(255, 255, 255, 0.22);
}

.carousel-dot__progress {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.10);
}

.carousel-dot__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.95);
  transition: width 0.15s linear;
}

@media (max-width: 767px) {
  .services-carousel__dots-bar {
    margin-top: 12px;
    padding: 10px 10px;
  }

  .carousel-dot {
    width: 48px;
    height: 16px;
  }
}



.clients-carousel {
  position: relative;
  width: 100%;
}

.clients-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;

  display: grid;
  place-items: center;

  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.clients-carousel__nav:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(0, 0, 0, 0.55);
}

.clients-carousel__nav--prev {
  left: -12px;
}

.clients-carousel__nav--next {
  right: -12px;
}

body.dark .clients-carousel__nav {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

@media (max-width: 768px) {
  .clients-carousel__nav {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }

  .clients-carousel__nav--prev {
    left: 6px;
  }

  .clients-carousel__nav--next {
    right: 6px;
  }
}

.clients-carousel__stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--carousel-border);
  border-radius: 28px;
  background: var(--carousel-bg);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  min-height: 190px;
}

.clients-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  padding: 16px;
}

.clients-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.clients-carousel__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(var(--client-cols), minmax(0, 1fr));
  align-items: stretch;
  height: 100%;
}

.client-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 14px;
  border-radius: 22px;
  border: 0;
  cursor:pointer;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.client-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
}

.client-logo {
  display: block;
  max-width: 85%;
  max-height: 65px;
  object-fit: contain;
  transition: 0.25s ease;
}

.client-logo-card:hover .client-logo {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

.clients-carousel__dots-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

body.dark .clients-carousel__stage {
  background: var(--carousel-bg);
  border-color: var(--carousel-border);
}

body.dark .client-logo-card {
  background: rgba(2, 6, 23, 0.28);
  border: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

body.dark .client-logo {
  opacity: 0.72;
}

body.dark .clients-carousel__dots-bar {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
}

@media (min-width: 1024px) {
  .clients-carousel__stage {
    min-height: 205px;
  }
}

@media (max-width: 1023px) and (min-width: 769px) {
  .clients-carousel__stage {
    min-height: 235px;
  }

  .client-logo-card {
    min-height: 108px;
  }
}

@media (max-width: 768px) {
  .clients-carousel__stage {
    min-height: 270px;
  }

  .clients-carousel__slide {
    padding: 14px;
  }

  .client-logo-card {
    min-height: 98px;
    padding: 14px;
  }

  .client-logo {
    max-height: 46px;
  }
  
  .clients-carousel__nav {
    top: calc(50% - 10px);
  }

}




.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page > :not(.ambient-bg) {
  position: relative;
  z-index: 1;
}

.ambient-bg span {
  position: absolute;
  border-radius: 999px;
  filter: blur(45px);
  opacity: 0.7;
  will-change: transform;
}

.ambient-bg span:nth-child(1) {
  width: 32rem;
  height: 32rem;
  left: -8rem;
  top: 8rem;
  background: rgba(5, 83, 132, 0.22);
  animation: drift-1 22s ease-in-out infinite alternate;
}

.ambient-bg span:nth-child(2) {
  width: 26rem;
  height: 26rem;
  right: -6rem;
  top: 14rem;
  background: rgba(37, 99, 235, 0.14);
  animation: drift-2 28s ease-in-out infinite alternate;
}

.ambient-bg span:nth-child(3) {
  width: 22rem;
  height: 22rem;
  left: 38%;
  bottom: -6rem;
  background: rgba(99, 102, 241, 0.12);
  animation: drift-3 30s ease-in-out infinite alternate;
}

body.dark .ambient-bg span:nth-child(1) {
  background: rgba(5, 83, 132, 0.34);
}

body.dark .ambient-bg span:nth-child(2) {
  background: rgba(96, 165, 250, 0.20);
}

body.dark .ambient-bg span:nth-child(3) {
  background: rgba(99, 102, 241, 0.18);
}

@keyframes drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, -40px, 0) scale(1.12); }
}

@keyframes drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-50px, 35px, 0) scale(1.08); }
}

@keyframes drift-3 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(30px, -25px, 0) scale(1.1); }
}



.reveal {
  opacity: 0;
  transform: translateY(30px);

  transition:
    opacity 1.8s cubic-bezier(.25,.46,.45,.94),
    transform 1.8s cubic-bezier(.25,.46,.45,.94);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-soft {
  opacity: 0;
  transform: translateY(24px) scale(.985);
  filter: blur(10px);

  transition:
    opacity 1.8s cubic-bezier(.22,1,.36,1),
    transform 1.8s cubic-bezier(.22,1,.36,1),
    filter 1.8s cubic-bezier(.22,1,.36,1);

  will-change: opacity, transform, filter;
}

.reveal-soft.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Delays */

.reveal-delay-1 { transition-delay: .20s; }
.reveal-delay-2 { transition-delay: .40s; }
.reveal-delay-3 { transition-delay: .60s; }
.reveal-delay-4 { transition-delay: .80s; }
.reveal-delay-5 { transition-delay: 1s; }