:root{
  --primary:#0F4C81;
  --secondary:#5AA7FF;
  --accent:#22C55E;
  --bg:#FFFFFF;
  --muted:#F1F5F9;
  --text:#0B1220;
  --shadow:0 12px 30px rgba(11,18,32,.12);
  --radius:18px;
  --glass: rgba(255,255,255,.74);
  --stroke: rgba(15,76,129,.12);
  --glow: 0 22px 55px rgba(90,167,255,.18);
  --grad-a: rgba(15,76,129,.18);
  --grad-b: rgba(90,167,255,.22);
  --grad-c: rgba(34,197,94,.18);
}

@keyframes gradientShift{
  0%{background-position: 0% 50%}
  50%{background-position: 100% 50%}
  100%{background-position: 0% 50%}
}

@keyframes floatIn{
  from{opacity:0; transform: translateY(16px) scale(.98)}
  to{opacity:1; transform: translateY(0) scale(1)}
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  overflow-x:hidden;

  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:linear-gradient(180deg,var(--bg),#fbfdff);
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(1160px,92vw);margin-inline:auto}

/* Top bar */
.header{
  position:sticky;top:0;z-index:50;
  isolation:isolate;
  backdrop-filter:saturate(180%) blur(12px);
  background:var(--glass);
  border-bottom:1px solid var(--stroke);
}
.header::before{
  content:"";
  position:absolute;
  inset:-2px;
  z-index:-1;
  background:linear-gradient(120deg, var(--grad-a), var(--grad-b), var(--grad-c));
  background-size:220% 220%;
  animation: gradientShift 14s ease-in-out infinite;
  opacity:.75;
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex;align-items:center;gap:10px;
}
.logo{
  width:52px;height:52px;
  display:block;
  object-fit:contain;
  padding:6px;
  border-radius:14px;
  background:rgba(255,255,255,.90);
  border:1px solid rgba(11,18,32,.08);
  box-shadow:0 10px 24px rgba(11,18,32,.10);
  transition: transform .18s ease, box-shadow .18s ease;
}

.brand:hover .logo{
  transform: translateY(-1px);
  box-shadow:0 14px 32px rgba(11,18,32,.14);
}

@media (max-width: 560px){
  .logo{width:46px;height:46px;padding:5px}
}
.brand h1{
  font-size:14px;line-height:1.1;margin:0;
}
.brand small{display:block;color:rgba(11,18,32,.65);font-weight:600}

.menu{
  display:flex;gap:6px;align-items:center;
  padding:6px;
  border-radius:999px;
  border:1px solid rgba(15,76,129,.14);
  background:linear-gradient(135deg, rgba(15,76,129,.05), rgba(90,167,255,.10));
  box-shadow: 0 10px 30px rgba(11,18,32,.06);
}
.menu a{
  position:relative;
  font-weight:700;
  color:rgba(11,18,32,.85);
  padding:10px 14px;
  border-radius:12px;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.menu a::after{
  content:"";
  position:absolute;
  left:12px;right:12px;bottom:7px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(15,76,129,0), rgba(90,167,255,.95), rgba(34,197,94,.95), rgba(15,76,129,0));
  transform:scaleX(.2);
  opacity:0;
  transition: transform .22s ease, opacity .22s ease;
}
.menu a:hover{
  background:rgba(255,255,255,.65);
  transform: translateY(-1px);
}
.menu a:hover::after{transform:scaleX(1);opacity:1}
.menu a.active{
  background:rgba(255,255,255,.78);
  color:var(--primary);
}

.cta{
  display:flex;gap:10px;align-items:center;
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:14px;
  font-weight:800;
  border:1px solid transparent;
  transition:.2s ease;
  cursor:pointer;
}
.btn-primary{
  background:linear-gradient(135deg,var(--accent),#16a34a);
  color:#ffffff;
  box-shadow:0 12px 28px rgba(34,197,94,.25);
}
.btn-primary:hover{transform:translateY(-1px)}
.btn-ghost{
  background:rgba(15,76,129,.06);
  border-color:rgba(15,76,129,.16);
  color:var(--primary);
}
.btn-ghost:hover{background:rgba(15,76,129,.10)}

.hamburger{
  display:none;
  width:44px;height:44px;border-radius:14px;
  background:rgba(15,76,129,.06);
  border:1px solid rgba(15,76,129,.16);
}
.hamburger span{
  display:block;width:18px;height:2px;background:var(--primary);
  margin:0 auto;position:relative;
}
.hamburger span::before,.hamburger span::after{
  content:"";position:absolute;left:0;width:18px;height:2px;background:var(--primary);
}
.hamburger span::before{top:-6px}
.hamburger span::after{top:6px}

/* Hero */
.hero{
  position:relative;
  min-height:78vh;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:radial-gradient(1000px 600px at 20% 20%, rgba(90,167,255,.25), transparent 65%),
             radial-gradient(900px 500px at 80% 30%, rgba(34,197,94,.22), transparent 70%),
             linear-gradient(180deg, #ffffff, #f8fbff);
}
.hero video{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;
  filter:saturate(1.1) contrast(1.05);
  opacity:.38;
  z-index:0;
  pointer-events:none;
}
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(11,18,32,.65), rgba(11,18,32,.30), rgba(255,255,255,.92));
  z-index:1;
  pointer-events:none;
}
.hero-content{
  position:relative;
  padding:72px 0 42px;
  z-index:2;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:28px;
  align-items:center;
}
.pill{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(90,167,255,.18);
  border:1px solid rgba(90,167,255,.28);
  color:#ffffff;
  font-weight:800;
}
.hero h2{
  font-size: clamp(34px, 4.2vw, 56px);
  line-height:1.02;
  margin:16px 0 14px;
  color:#ffffff;
  letter-spacing:-.02em;
}
.hero p{
  margin:0 0 20px;
  color:rgba(255,255,255,.88);
  font-size:18px;
  line-height:1.55;
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}

.hero-card{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(15,76,129,.14);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.kpis{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kpi{
  background:var(--muted);
  border:1px solid rgba(11,18,32,.06);
  border-radius:16px;
  padding:14px;
}
.kpi b{display:block;font-size:18px}
.kpi small{color:rgba(11,18,32,.68);font-weight:700}

/* Sections */
.section{padding:64px 0}
.section-title{
  display:flex;align-items:flex-end;justify-content:space-between;gap:18px;
  margin-bottom:22px;
}
.section-title h3{margin:0;font-size:28px;letter-spacing:-.01em}
.section-title p{margin:0;color:rgba(11,18,32,.68);font-weight:650}

.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.card{
  background:#fff;
  border:1px solid rgba(11,18,32,.08);
  border-radius:var(--radius);
  box-shadow:0 10px 24px rgba(11,18,32,.08);
  overflow:hidden;
  position:relative;
  transform-style:preserve-3d;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, filter .28s ease;
}
.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:linear-gradient(135deg, rgba(90,167,255,.22), rgba(34,197,94,.18), rgba(15,76,129,.16));
  opacity:0;
  transition: opacity .28s ease;
  z-index:0;
  pointer-events: none;
}
.card .card-body{position:relative;z-index:1}
.card:hover{
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(90,167,255,.40);
  box-shadow: 0 20px 45px rgba(11,18,32,.14), var(--glow);
  filter: saturate(1.05);
}
.card:hover::before{opacity:.18}

.reveal{opacity:0; transform: translateY(14px) scale(.98);}
.reveal.in-view{animation: floatIn .55s ease forwards;}
.card .card-body{padding:16px}
.card h4{margin:0 0 6px;font-size:18px}
.card p{margin:0;color:rgba(11,18,32,.72);line-height:1.55}
.card .badge{
  display:inline-flex;align-items:center;gap:8px;
  font-weight:800;
  padding:7px 10px;border-radius:999px;
  background:rgba(34,197,94,.14);
  border:1px solid rgba(34,197,94,.25);
  color:#0f5132;
  margin-bottom:10px;
}

/* Why choose us */
.feature{
  padding:18px;
}
.icon{
  width:44px;height:44px;border-radius:16px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(15,76,129,.14),rgba(90,167,255,.20));
  border:1px solid rgba(15,76,129,.18);
  margin-bottom:12px;
}
.icon svg{width:22px;height:22px;fill:var(--primary)}

/* About */
.panel{
  background:linear-gradient(135deg, rgba(15,76,129,.10), rgba(90,167,255,.10), rgba(34,197,94,.08));
  border:1px solid rgba(15,76,129,.14);
  border-radius:var(--radius);
  padding:18px;
}
.panel strong{color:var(--primary)}

/* Services page */
.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.service-img{
  aspect-ratio: 16/10;
  background:var(--muted);
}

/* JMO Global Security (additional services block) */
.title-with-logo{
  display:flex;
  align-items:center;
  gap:14px;
}
.jmo-logo{
  width:74px;
  height:74px;
  border-radius:18px;
  object-fit:cover;
  background:#fff;
  border:1px solid rgba(11,18,32,.10);
  box-shadow:0 12px 24px rgba(11,18,32,.08);
}
.service-list{
  margin:10px 0 0;
  padding-left:18px;
  line-height:1.6;
  color:rgba(11,18,32,.72);
  font-weight:650;
}
.service-list li{margin:6px 0}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form{
  padding:18px;
}
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.field label{font-weight:800}
.field input,.field textarea{
  border-radius:14px;
  border:1px solid rgba(11,18,32,.14);
  padding:12px 12px;
  font-size:14px;
  outline:none;
  background:#fff;
}
.field input:focus,.field textarea:focus{border-color:rgba(90,167,255,.9); box-shadow:0 0 0 4px rgba(90,167,255,.18)}
.field textarea{min-height:120px;resize:vertical}
.note{color:rgba(11,18,32,.68);font-weight:650}

.map{
  overflow:hidden;
  border-radius:var(--radius);
  border:1px solid rgba(11,18,32,.10);
}
.map iframe{width:100%;height:100%;min-height:420px;border:0}

/* Gallery */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.gallery-item{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(11,18,32,.08);
  background:#fff;
  box-shadow:0 10px 24px rgba(11,18,32,.08);
}
.gallery-item .cap{
  padding:12px 14px;
  font-weight:800;
  color:rgba(11,18,32,.78);
}

/* Footer */
.footer{
  margin-top:40px;
  position:relative;
  isolation:isolate;
  background:linear-gradient(120deg, rgba(15,76,129,.10), rgba(90,167,255,.14), rgba(34,197,94,.10));
  background-size:220% 220%;
  animation: gradientShift 18s ease-in-out infinite;
  border-top:1px solid rgba(15,76,129,.18);
}
.footer::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(900px 420px at 18% 35%, rgba(90,167,255,.25), transparent 62%),
    radial-gradient(760px 380px at 85% 30%, rgba(34,197,94,.22), transparent 64%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.0));
  opacity:.9;
}
.footer-inner{padding:34px 0}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:18px}
.footer h5{margin:0 0 10px;font-size:14px;letter-spacing:.02em;text-transform:uppercase;color:rgba(11,18,32,.72)}
.footer a{display:block;padding:6px 0;color:rgba(11,18,32,.85);font-weight:700}
.footer a:hover{color:var(--primary)}
.footer .meta{color:rgba(11,18,32,.70);line-height:1.6;font-weight:650;margin:0}
.footer-bottom{
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding-top:16px;margin-top:16px;
  border-top:1px solid rgba(15,76,129,.14);
  color:rgba(11,18,32,.68);
  font-weight:650;
}

/* Utility */
.tag{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;
  background:rgba(15,76,129,.08);
  border:1px solid rgba(15,76,129,.14);
  color:rgba(11,18,32,.78);
  font-weight:800;
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .services-grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr}
  .menu{display:none}
  .hamburger{display:inline-flex;align-items:center;justify-content:center}
  .menu.open{
    display:flex;flex-direction:column;align-items:flex-start;gap:6px;
    position:absolute;left:4vw;right:4vw;top:68px;
    background:linear-gradient(135deg, rgba(255,255,255,.92), rgba(90,167,255,.10));
    border:1px solid rgba(11,18,32,.10);
    border-radius:18px;box-shadow:var(--shadow);
    padding:12px;
  }

  .title-with-logo{
    flex-direction:column;
    align-items:flex-start;
  }
}


.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo{
  width:52px;height:52px;
  display:block;
  object-fit:contain;
  padding:6px;
  border-radius:14px;
  background:rgba(255,255,255,.90);
  border:1px solid rgba(11,18,32,.08);
  box-shadow:0 10px 24px rgba(11,18,32,.10);
  transition: transform .18s ease, box-shadow .18s ease;
}



/* === Botón flotante WhatsApp === */
.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25D366;
  display: grid;
  place-items: center;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  outline: none;
}

.wa-float:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0,0,0,.26);
  filter: brightness(1.02);
}

.wa-float:active{
  transform: translateY(-1px);
}

.wa-float svg{
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* Tooltip elegante */
.wa-tooltip{
  position: absolute;
  right: 70px;
  bottom: 50%;
  transform: translateY(50%);
  background: rgba(15, 23, 42, .92);
  color: #fff;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

.wa-tooltip::after{
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(15, 23, 42, .92);
}

.wa-float:hover .wa-tooltip{
  opacity: 1;
  transform: translateY(50%) translateX(-2px);
}

/* Mobile friendly */
@media (max-width: 520px){
  .wa-float{
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }
  .wa-tooltip{
    display: none;
  }
}


/* === Barra de Cookies (Premium) === */
.cookie-banner{
  position: fixed;
  inset: auto 0 18px 0;
  display: flex;
  justify-content: center;
  padding: 0 14px;
  z-index: 99999;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

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

.cookie-card{
  width: min(980px, 100%);
  background: rgba(15, 23, 42, .92);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 16px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  display: flex;
  align-items: center;
  gap: 18px;
  backdrop-filter: blur(8px);
}

.cookie-text h4{
  margin: 0 0 6px 0;
  font-size: 16px;
  letter-spacing: .2px;
}

.cookie-text p{
  margin: 0 0 8px 0;
  font-size: 13.5px;
  line-height: 1.45;
  opacity: .92;
}

.cookie-link{
  font-size: 13px;
  color: #c7d2fe;
  text-decoration: none;
}
.cookie-link:hover{
  text-decoration: underline;
}

.cookie-actions{
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-cookie{
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}

.btn-cookie:active{
  transform: translateY(1px);
}

.btn-cookie-ghost{
  background: rgba(255,255,255,.10);
  color: #fff;
}
.btn-cookie-ghost:hover{
  filter: brightness(1.08);
}

.btn-cookie-primary{
  background: #22c55e;
  color: #06240f;
}
.btn-cookie-primary:hover{
  filter: brightness(1.06);
}

@media (max-width: 720px){
  .cookie-card{
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-actions{
    width: 100%;
    margin-left: 0;
  }
}

/* === Modal de Cookies === */
.cookie-modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.55);
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  padding: 18px;
}

.cookie-modal.is-open{
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal-card{
  width: min(520px, 100%);
  background: #0b1220;
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.40);
}

.cookie-modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-modal-header h4{
  margin: 0;
  font-size: 16px;
}

.cookie-x{
  background: rgba(255,255,255,.10);
  border: none;
  color: #fff;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  cursor: pointer;
}
.cookie-x:hover{
  filter: brightness(1.1);
}

.cookie-modal-desc{
  margin: 10px 0 12px 0;
  font-size: 13.5px;
  opacity: .9;
  line-height: 1.45;
}

.cookie-options{
  display: grid;
  gap: 10px;
  margin: 10px 0 14px 0;
}

.cookie-switch{
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: 12px;
  border-radius: 16px;
}

.cookie-switch input{
  display: none;
}

.cookie-switch span{
  width: 42px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  position: relative;
  border: 1px solid rgba(255,255,255,.15);
}

.cookie-switch span::after{
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}

.cookie-switch input:checked + span{
  background: rgba(34,197,94,.35);
  border-color: rgba(34,197,94,.55);
}

.cookie-switch input:checked + span::after{
  transform: translateX(16px);
}

.cookie-switch strong{
  display: block;
  font-size: 13.5px;
}
.cookie-switch small{
  display: block;
  font-size: 12.5px;
  opacity: .85;
}

.cookie-modal-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}


/* Lock scroll when mobile menu is open */
html.menu-open, html.menu-open body{
  overflow:hidden;
}


/* === Layout hardening === */
html, body{
  overflow-x:hidden;
}
body.menu-open{
  overflow:hidden;
}

/* reCAPTCHA spacing (keeps layout clean) */
.g-recaptcha{
  max-width:100%;
}


/* Language switch */
.lang-switch{display:inline-flex;gap:10px;align-items:center;margin-left:10px}
.lang-switch a{font-weight:700;opacity:.9}
.lang-switch a:hover{opacity:1}
