:root{
  /* Default theme = Dark */
  --ink: 7,11,20; /* rgba(7,11,20,.6); */
  --inkview: rgba(7,11,20,1); 
  --bg:#0b1220;
  --bg2:#0f1a30;
  --bg3:#070b14;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.09);
  --text:#eaf0ff;
  --muted: rgba(234, 240, 255, 0.918);
  --muted2: rgba(234,240,255,.6);
  --accent:#21c1ff;
  --accent2:#00a8d6;
  --border: rgba(255,255,255,.12);
  --border2: rgba(255,255,255,.18);
  --shadow: 0 12px 40px rgba(0,0,0,.25);
  --radius: 18px;
  --ui: rgba(255,255,255,.05);
  --ui2: rgba(255,255,255,.08);
  --ui3: rgba(255,255,255,.09);
  --hover: rgba(255,255,255,.06);
}

html[data-theme="light"]{
  --ink: 255,255,255;
  --bg:#f5f7ff;
  --bg2:#ffffff;
  --bg3:#e9eefb;
  --card: rgba(0,0,0,.04);
  --card2: rgba(0,0,0,.06);
  --text:#0b1220;
  --muted: rgba(11,18,32,.72);
  --muted2: rgba(11,18,32,.6);
  --border: rgba(11,18,32,.12);
  --border2: rgba(11,18,32,.18);
  --shadow: 0 12px 40px rgba(11,18,32,.12);
  --ui: rgba(0,0,0,.03);
  --ui2: rgba(0,0,0,.05);
  --ui3: rgba(0,0,0,.07);
  --hover: rgba(0,0,0,.05);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;scroll-behavior: smooth;}
body{
  font-family:Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(33,193,255,.22), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(0,168,214,.18), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg3) 60%);
  color:var(--text);
}

a{color:inherit;text-decoration:none}
.container{width:min(1120px, calc(100% - 40px)); margin:0 auto}

/* Solo header: ampliar container en pantallas grandes */
@media (min-width: 1280px){
  .topbar .container{
    width: min(1320px, calc(100% - 60px));
  }
}

/* (Opcional) ultra-wide */
@media (min-width: 1536px){
  .topbar .container{
    width: min(1440px, calc(100% - 80px));
  }
}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(var(--ink),.55);
  border-bottom: 1px solid var(--border);
}
.topbar__inner{display:flex;align-items:center;justify-content:space-between;gap:18px; padding:14px 0}

@media (min-width: 1280px){
  .topbar nav{ gap: 32px; } /* si usas flex gap */
}

.brand__logo--light {
  display: none;
}
.brand__logo--dark {
  display: none;
}

  [data-theme="light"] .brand__logo--dark {
    display: none;
  }

  [data-theme="light"] .brand__logo--light {
    display: inline-block;
  }

  [data-theme="dark"] .brand__logo--light {
    display: none;
  }

  [data-theme="dark"] .brand__logo--dark {
    display: inline-block;
  }

/* .brand__logo {
  transition: opacity 0.2s ease;
} */

.brand img{height:34px; width:auto; display:block; /* filter: drop-shadow(0px 0px 5px rgba(39, 48, 66, 0.938)); */}

.nav{display:flex;gap:16px;align-items:center}
.nav__link{
  font-size:14px;
  color: var(--muted);
  padding:8px 10px;
  border-radius: 999px;
}
.nav__link:hover{background: var(--hover); color: var(--text)}

.actions{display:flex;gap:10px;align-items:center}
.actions__label{font-size:13px; color: var(--muted)}
.chip{
  font-weight:700;
  font-size:12px;
  padding:6px 9px;
  border-radius:999px;
  background: var(--ui2);
  border:1px solid var(--border);
  margin-right:8px;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--ui);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px); background: var(--ui3); border-color: var(--border2)}
.btn--primary{
  background: linear-gradient(135deg, rgba(33,193,255,.95), rgba(0,168,214,.9));
  border-color: rgba(33,193,255,.55);
  color: #061019;
}
.btn--primary:hover{background: linear-gradient(135deg, rgba(33,193,255,1), rgba(0,168,214,1))}
.btn--ghost{background: var(--ui);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);}
.btn--lg{padding:12px 16px; font-size:15px}

.hamburger{
  display:none;
  width:44px; height:44px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: var(--ui);
  align-items:center; justify-content:center;
  flex-direction:column; gap:6px;
  cursor:pointer;
}
.hamburger span{width:18px; height:2px; background: rgba(0,0,0,.55); border-radius:999px}
html[data-theme="dark"] .hamburger span{background: rgba(255,255,255,.78)}

.mobile{
  display:none;
  border-top: 1px solid var(--border);
  background: rgba(var(--ink),.72);
}
.mobile__inner{display:flex; flex-direction:column; padding:10px 0}
.mobile__link{padding:12px 6px; color: var(--muted)}
.mobile__link:hover{color: var(--text)}
.mobile__divider{height:1px; background: var(--border); margin:10px 0}
.mobile__btn{
  display:flex; align-items:center; gap:10px;
  width:100%;
  padding:12px 6px;
  border:none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor:pointer;
  text-align:left;
}
.mobile__btn:hover{color: var(--text)}

.hero{position:relative; min-height: 78vh; display:flex; align-items:center;overflow: hidden;}
/* .hero__bg{
  position:absolute; inset:0;
  background-image:url('assets/hero-ship.jpg');
  background-size:cover;
  background-position:center;
  filter:saturate(1.05) contrast(1.05);
  will-change: transform;
  transform: translateZ(0);
} */
.hero__bg {
  background: url("assets/hero-ship.jpg") center / cover no-repeat;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
}

@media (max-width: 768px) {
  .hero__video {
    object-position: 75% center; /* mueve el foco hacia la derecha */
  }
}

.hero__overlay{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(var(--ink),.86), rgba(var(--ink),.66) 45%, rgba(var(--ink),.35));
   z-index:1;
}
.hero__content{
  position:relative;
  padding:72px 0;
  will-change: transform;
  z-index:2;
}
.eyebrow{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid var(--border);
  font-size:12px;
  color: var(--muted);
  letter-spacing:.08em;
  text-transform:uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.h1{font-size: clamp(34px, 4vw, 52px); line-height:1.05; margin:24px 0 12px}
.lead{font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 60ch}
.hero__cta{display:flex; gap:12px; margin-top:22px; flex-wrap:wrap}

.hero .stats {
  transition: opacity 0.3s ease;
}

  @media (max-width: 920px) {
    .hero .stats {
      opacity: 0;
      pointer-events: none;
    }
  }

.stats{
  margin-top:34px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
  max-width: 720px;
}
.stat{
  background: rgba(255,255,255,.07);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px 14px;
  box-shadow: var(--shadow);
  background: rgba(241, 241, 241, 0.158);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stat__value{font-weight:800; font-size:22px}
.stat__label{color: var(--muted); font-size:13px; margin-top:3px}

.section{padding:72px 0}
.section--alt{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__head{display:flex; flex-direction:column; gap:10px; margin-bottom:26px}
.section__head--tight{margin-top:30px; margin-bottom:14px}
.h2{font-size: clamp(26px, 2.6vw, 36px); margin:0}
.h3{font-size:18px; margin:0 0 8px}
.muted{color: var(--muted); margin:0}
.tiny{font-size:12px}

.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
  margin-bottom: 18px;
}
.card{
  padding:18px;
  border-radius: var(--radius);
  background: var(--card);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}
.card__icon{font-size:22px; margin-bottom:10px}
.card p{margin:0; color: var(--muted)}

.callout{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap:16px;
  margin-top:18px;
  margin-bottom:18px;
  border-radius: calc(var(--radius) + 6px);
  overflow:hidden;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.callout__media{min-height: 280px; background-size:cover; background-position:center}
.callout__body{padding:18px}
.list{margin:12px 0 0; padding-left: 18px; color: var(--muted)}
.list li{margin:6px 0}

.pillgrid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.pill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-weight:600;
  font-size:13px;
}
.cards .card,
.callout,
.callout__media,
.pillgrid .pill {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* new services */

.cards--flip{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cards--compact{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 980px){
  .cards--flip{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--compact{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .cards--flip{ grid-template-columns: 1fr; }
  .cards--compact{ grid-template-columns: 1fr; }
}

.flipCard{
  perspective: 1200px;
  border-radius: 18px;
  outline: none;
  cursor:col-resize;
}
.flipCard__inner{
  position: relative;
  width: 100%;
  min-height: 220px;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(.2,.7,.2,1);
  border-radius: 18px;
}
.flipCard--compact .flipCard__inner{ min-height: 240px; }

.flipCard__face{
  position:absolute;
  inset:0;
  border-radius: 18px;
  overflow:hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 0px solid rgba(255,255,255,0.10);
}

[data-theme="light"] .flipCard__face{
  border: 1px solid rgba(0,0,0,0.08);
}

.flipCard__front{
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  overflow: hidden; /* 🔥 esto es clave */
}
.flipCard__shade{
  position:absolute; inset:0;
  border-radius: inherit; /* 🔥 hereda el radio */
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.35) 45%,
    rgba(0,0,0,0.05) 100%
  );
}
.flipCard__frontContent{
  position:absolute;
  left:16px; right:16px; bottom:16px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
}
.flipCard__icon{
  width:36px; height:36px;
  display:grid; place-items:center;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
}

.flipCard__back{
  transform: rotateY(180deg);
  padding: 16px;
  background: rgba(17,26,46,0.95);
  color: #fff;
}
[data-theme="light"] .flipCard__back{
  background: rgba(255,255,255,0.95);
  color: #111;
}
.flipCard__back .muted{
  color: rgba(255,255,255,0.78);
}
[data-theme="light"] .flipCard__back .muted{
  color: rgba(0,0,0,0.72);
}

/* Hover / Focus flip (desktop) */
@media (hover:hover) and (pointer:fine){
  .flipCard:hover .flipCard__inner,
  .flipCard:focus-within .flipCard__inner{
    transform: rotateY(180deg);
  }
}

/* Keyboard focus */
.flipCard:focus-visible{
  box-shadow: 0 0 0 3px rgba(37,99,235,0.35);
  border-radius: 18px;
}

.flipCard.is-flipped .flipCard__inner{
  transform: rotateY(180deg);
}

/* end new services */


#why .twocol__media,
#why .twocol__body,
#why .feature {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* #about .banner,
#about .banner__media,
#about .miniStat, */

/* about */
.aboutCards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
  margin-top: 28px;
}

.aboutCard{
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.06);
  transform: translateZ(0);
}

[data-theme="dark"] .aboutCard{
  background: rgba(17,26,46,0.96);
  border: 1px solid rgba(255,255,255,0.08);
}

.aboutCard__media{
  position: relative;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.aboutCard__overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(to top, rgba(0,145,255,0.72), rgba(0,60,140,0.35)),
    linear-gradient(to top, rgba(0,0,0,0.18), rgba(0,0,0,0.04));
}

.aboutCard__body{
  padding: 28px 20px 24px;
  text-align:center;
  background:#fff;
}

[data-theme="dark"] .aboutCard__body{
  background: rgba(17,26,46,0.98);
}

.aboutCard__value{
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 800;
  color: #12a4d9;
  letter-spacing: -1px;
}

.aboutCard__label{
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.35;
  color: #1f5f92;
  font-weight: 500;
}

[data-theme="dark"] .aboutCard__label{
  color: rgba(255,255,255,0.82);
}

@media (max-width: 980px){
  .aboutCards{
    grid-template-columns: 1fr;
  }

  .aboutCard__media{
    min-height: 220px;
  }
}
/* about end */


#partners .partnersCard,
#partners .partnersCard__bg,
#partners .partnersCard__content {
  will-change: transform, opacity;
  transform: translateZ(0);
}

.twocol{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:stretch;
}
.twocol__media{
  border-radius: calc(var(--radius) + 6px);
  background-size:cover;
  background-position:center;
  border:1px solid var(--border);
  min-height: 360px;
  box-shadow: var(--shadow);
}
.twocol__body{
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  padding:18px;
  box-shadow: var(--shadow);
}
.feature{padding:12px 10px; border-radius: 14px}
.feature + .feature{margin-top:10px; border-top:1px solid rgba(255,255,255,.08); padding-top:18px}

.banner{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap:16px;
  border-radius: calc(var(--radius) + 6px);
  overflow:hidden;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}
.banner__media{min-height: 310px; background-size:cover; background-position:center}
.banner__body{padding:18px}
.miniStats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.miniStat{background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10); border-radius: 14px; padding:12px}
.miniStat__value{font-weight:800; font-size:16px}
.miniStat__label{color: var(--muted); font-size:12px; margin-top:2px}

.partnersCard{
  position:relative;
  border-radius: calc(var(--radius) + 6px);
  overflow:hidden;
  border:1px solid var(--border);
  min-height: 320px;
  box-shadow: var(--shadow);
}
.partnersCard__bg{
  position:absolute; inset:0;
  background-image:url('assets/hero-ship.jpg');
  background-size:cover;
  background-position:center;
  filter:saturate(1.05) contrast(1.05);
}
.partnersCard__overlay{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(var(--ink),.88), rgba(var(--ink),.62));
}
.partnersCard__content{
  position:relative;
  padding:22px;
  max-width: 60ch;
}
.partnersCard__kicker{
  margin:0 0 8px;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-size:12px;
  color: var(--muted);
}
.partnersCard__text{margin:0 0 14px; color: var(--muted)}

.contactGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
.contactCard{
  padding:18px;
  border-radius: calc(var(--radius) + 6px);
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}
.contactList{display:flex; flex-direction:column; gap:10px; margin-top:12px}
.contactList a{color: var(--text); text-decoration:underline; text-decoration-color: rgba(255,255,255,.25)}
.contactBtns{display:flex; gap:10px; margin-top:16px; flex-wrap:wrap}

.form{
  padding:18px;
  border-radius: calc(var(--radius) + 6px);
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}
.form__row{display:flex; flex-direction:column; gap:8px; margin-bottom:12px}
.label{font-size:13px; color: var(--muted)}
.input{
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  padding:12px 12px;
  color: var(--text);
  outline:none;
}
.input:focus{border-color: rgba(33,193,255,.7); box-shadow: 0 0 0 4px rgba(33,193,255,.12)}
.input--area{resize:vertical; min-height: 120px}

.footer{
  border-top: 1px solid var(--border);
  padding:20px 0 28px;
  background: rgba(var(--ink),.5);
}
.footer__inner{display:flex; align-items:center; justify-content:space-between; gap:16px}
.footer__logo{height:45px;/* filter: drop-shadow(0px 0px 5px rgba(39, 48, 66, 0.938)); */}
.footer__meta{display:flex; flex-direction:column; align-items:flex-end; gap:6px}

/* go to top */

.goTop {
  position: fixed;
  right: 24px;
  bottom: 110px; /* arriba del WhatsApp */
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  font-size: 18px;
  font-weight: 600;

  background: var(--surface);
  color: var(--text);

  box-shadow: 0 8px 24px rgba(0,0,0,0.12);

  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 99;
}

.goTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.goTop:hover {
  transform: translateY(-2px);
}

/* Floating WhatsApp CTA */
.wa-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:80;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background: linear-gradient(135deg, rgba(37,211,102,.95), rgba(18,140,126,.9));
  color:#061019;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform .15s ease, filter .15s ease;
}
.wa-fab:hover{transform: translateY(-2px); filter: brightness(1.03)}
.wa-fab__icon{
  width:44px; height:44px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.22);
  color:#ffffff;
}
.wa-fab__label{
  font-weight:700;
  color:#ffffff;
  max-width:0;
  overflow:hidden;
  white-space:nowrap;
  transition: max-width .2s ease;
}
.wa-fab:hover .wa-fab__label{max-width: 260px}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 520px){
  .wa-fab{right:14px; bottom:14px}
  .wa-fab__label{display:none}
}

@media (max-width: 920px){
  .nav{display:none}
  .hamburger{display:flex}
  .actions #themeToggle,
  .actions #langToggle{display:none}
  .cards{grid-template-columns: 1fr}
  .callout{grid-template-columns: 1fr}
  .twocol{grid-template-columns: 1fr}
  .banner{grid-template-columns: 1fr}
  .contactGrid{grid-template-columns: 1fr}
  .stats{grid-template-columns: 1fr}
  .footer__inner{flex-direction:column; align-items:flex-start}
  .footer__meta{align-items:flex-start}
}
