/* =========================================================
   INTERMEGACOM - Tema visual profesional para cliente final
   Capa segura sobre BootstrapMade Bocor
   ========================================================= */

:root{
  --default-font:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --heading-font:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --nav-font:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;

  --background-color:#F8FAFC;
  --default-color:#334155;
  --heading-color:#0F172A;
  --accent-color:#2563EB;
  --surface-color:#FFFFFF;
  --contrast-color:#FFFFFF;

  --imc-primary:#0F172A;
  --imc-secondary:#1E293B;
  --imc-blue:#2563EB;
  --imc-cyan:#38BDF8;
  --imc-green:#10B981;
  --imc-muted:#64748B;
  --imc-border:#E2E8F0;
  --imc-soft:#F1F5F9;

  --nav-color:#E2E8F0;
  --nav-hover-color:#60A5FA;
  --nav-mobile-background-color:#0F172A;
  --nav-dropdown-background-color:#FFFFFF;
  --nav-dropdown-color:#0F172A;
  --nav-dropdown-hover-color:#2563EB;
}

html{font-size:16px;}
body{
  color:var(--default-color);
  background:#F8FAFC;
  font-family:var(--default-font);
  font-size:16px;
  line-height:1.65;
  overflow-x:hidden;
}

.container,.container-xl{max-width:1240px;}
section,.section{padding:86px 0;}

h1,h2,h3,h4,h5,h6{
  font-family:var(--heading-font);
  color:var(--heading-color);
  letter-spacing:-.03em;
}
h1{font-size:clamp(2.35rem,5vw,4.7rem);font-weight:850;line-height:1.05;}
h2{font-size:clamp(1.85rem,3vw,2.9rem);font-weight:800;line-height:1.15;}
h3{font-size:clamp(1.18rem,1.6vw,1.55rem);font-weight:750;}
p{font-size:1rem;}

/* Header */
.header{
  min-height:76px;
  background:rgba(15,23,42,.94)!important;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:0 12px 40px rgba(2,6,23,.18);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header .logo img{max-height:48px;width:auto;object-fit:contain;}
.header .logo .sitename,
.header .logo h3{
  color:#fff;
  margin:0 0 0 10px;
  font-size:1.05rem;
  font-weight:850;
  letter-spacing:.02em;
}
.navmenu a{
  font-size:15px!important;
  font-weight:650!important;
  letter-spacing:.01em;
}
.navmenu a:hover,.navmenu .active{color:#93C5FD!important;}

.btn-getstarted,
.btn-get-started,
.btn-cta,
.plan-cta,
button,.btn{
  min-height:48px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:14px!important;
  padding:12px 24px!important;
  font-size:15px!important;
  font-weight:750!important;
  line-height:1!important;
  text-align:center;
  transition:transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.btn-getstarted,
.btn-get-started,
.plan-cta,
.btn-primary{
  background:linear-gradient(135deg,#2563EB 0%,#38BDF8 100%)!important;
  color:#fff!important;
  border:0!important;
  box-shadow:0 16px 34px rgba(37,99,235,.32);
}
.btn-getstarted:hover,
.btn-get-started:hover,
.plan-cta:hover,
.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 44px rgba(37,99,235,.38);
}
.btn-outline-hero{
  background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.30)!important;
  box-shadow:none!important;
}

/* Hero */
.hero{
  position:relative;
  min-height:92vh;
  padding-top:150px!important;
  background:
    radial-gradient(circle at 72% 20%,rgba(56,189,248,.28) 0,transparent 32%),
    radial-gradient(circle at 10% 10%,rgba(37,99,235,.32) 0,transparent 30%),
    linear-gradient(135deg,#020617 0%,#0F172A 42%,#1E3A8A 74%,#2563EB 100%)!important;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:46px 46px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent 86%);
}
.hero .container{position:relative;z-index:2;}
.hero h1{color:#fff;margin-bottom:22px;max-width:780px;}
.hero p{color:#DBEAFE;font-size:clamp(1.04rem,1.6vw,1.28rem);max-width:640px;margin-bottom:28px;}
.hero-img img{
  max-height:520px;
  filter:drop-shadow(0 30px 60px rgba(0,0,0,.38));
}
.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}
.hero-badges span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#E0F2FE;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  padding:9px 14px;
  font-weight:650;
  font-size:14px;
}
.hero-badges i{color:#7DD3FC;}

/* Titles */
.section-title{padding-bottom:44px;}
.section-title h2{position:relative;margin-bottom:14px;}
.section-title h2::after{
  content:"";
  display:block;
  width:84px;
  height:4px;
  border-radius:999px;
  margin:16px auto 0;
  background:linear-gradient(90deg,#2563EB,#38BDF8);
}
.section-title p{
  color:#64748B;
  max-width:780px;
  margin-left:auto;
  margin-right:auto;
  font-size:1.05rem;
}

/* Benefits */
.benefits-strip{background:#fff;padding-top:64px;padding-bottom:64px;}
.benefit-card{
  height:100%;
  background:linear-gradient(180deg,#FFFFFF 0%,#F8FAFC 100%);
  border:1px solid #E2E8F0;
  border-radius:22px;
  padding:28px;
  box-shadow:0 16px 45px rgba(15,23,42,.07);
  transition:.25s ease;
}
.benefit-card:hover{transform:translateY(-6px);box-shadow:0 22px 60px rgba(15,23,42,.12);}
.benefit-card i{
  width:52px;height:52px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:16px;
  color:#fff;
  background:linear-gradient(135deg,#2563EB,#38BDF8);
  font-size:24px;
  margin-bottom:18px;
}
.benefit-card h3{margin-bottom:10px;}
.benefit-card p{color:#64748B;margin:0;}

/* Cards and service boxes */
.card,.service-item,.pricing-item,.faq-item,.features-item{
  border-radius:24px!important;
  border:1px solid rgba(226,232,240,.9)!important;
  box-shadow:0 16px 48px rgba(15,23,42,.08)!important;
}
.card,.pricing-item{background:#fff!important;}
.service-item,.featured-services .service-item{
  background:#fff!important;
  overflow:hidden;
  height:100%;
  transition:.25s ease;
}
.service-item:hover,.pricing-item:hover{transform:translateY(-7px);}
.service-item .img img{width:100%;height:230px;object-fit:cover;}
.service-item .icon{
  background:linear-gradient(135deg,#2563EB,#38BDF8)!important;
  color:#fff!important;
  box-shadow:0 14px 32px rgba(37,99,235,.25);
}
.service-item h3{color:#0F172A!important;}
.service-item p{color:#475569;}

/* About / mission cards */
.about img,.features img{border-radius:24px!important;box-shadow:0 20px 55px rgba(15,23,42,.16);}
.grid{max-width:1240px;margin:0 auto;padding:0 24px;gap:24px;}
.card-header{justify-content:center;background:transparent;border-bottom:0;}
.card-header i{color:#2563EB!important;}
.card-content{text-align:center;color:#475569;}
.badge{background:linear-gradient(135deg,#0F172A,#1E3A8A)!important;color:#fff!important;border:0!important;}

/* Plans */
.pricing{background:#F1F5F9!important;}
.pricing .pricing-item{
  height:100%;
  padding:34px 28px!important;
  position:relative;
  overflow:hidden;
  transition:.25s ease;
}
.pricing .pricing-item.featured{
  border:2px solid rgba(37,99,235,.55)!important;
  transform:none!important;
}
.pricing .pricing-item.featured::before{
  content:"Más solicitado";
  position:absolute;
  top:18px;right:-42px;
  background:linear-gradient(135deg,#10B981,#38BDF8);
  color:#fff;
  font-size:12px;
  font-weight:800;
  padding:8px 48px;
  transform:rotate(35deg);
}
.pricing .pricing-item h3{min-height:58px;color:#0F172A!important;}
.pricing .pricing-item h4{color:#2563EB!important;font-size:2.6rem!important;font-weight:850!important;}
.pricing .pricing-item h4 span{font-size:.95rem!important;color:#64748B!important;}
.pricing .pricing-item ul{padding-left:0;margin-top:22px;}
.pricing .pricing-item li{font-size:15px;margin-bottom:12px;color:#334155;}
.pricing .pricing-item li i{color:#10B981!important;}
.plan-cta{width:100%;margin-top:18px;text-decoration:none;}

/* Features / FAQ */
.features-item{background:#fff;padding:28px!important;margin-bottom:28px;}
.features-item li{list-style:none;margin:10px 0;color:#334155;}
.features-item li i{color:#10B981;margin-right:8px;}
.faq .faq-item{background:#fff;margin-bottom:18px;padding:24px!important;}
.faq .faq-item i{color:#2563EB;font-size:24px;}
.faq .faq-item h4{font-size:1.05rem;line-height:1.35;margin:0;}
.faq .faq-item p{margin:0;color:#475569;}

/* Coverage */
.container-map{height:620px!important;padding:0!important;border-radius:26px;overflow:hidden;box-shadow:0 22px 60px rgba(15,23,42,.15);border:1px solid #E2E8F0;}
.container-map iframe{width:100%;height:100%;border:0;display:block;}

/* Footer */
#contacto{
  background:
    radial-gradient(circle at top right,rgba(37,99,235,.25),transparent 34%),
    linear-gradient(135deg,#020617 0%,#0F172A 60%,#111827 100%)!important;
  padding:0!important;
}
#contacto footer{padding-top:54px;}
#contacto .subtitle-footer{font-size:1.05rem;color:#fff;margin-bottom:16px;display:block;}
#contacto a{color:#CBD5E1;word-break:break-word;}
#contacto a:hover{color:#7DD3FC;}
#contacto ul{padding-left:0!important;}
#contacto li{margin-bottom:9px;}
.highlighted-text-footer,.horarios{color:#E2E8F0;}
.icons{display:flex;align-items:center;gap:8px;color:#E2E8F0;}
.icons i{color:#38BDF8;}

/* Floating WhatsApp */
.whatsapp-float{
  position:fixed;
  right:22px;
  bottom:92px;
  width:62px;
  height:62px;
  border-radius:50%;
  background:#25D366;
  color:#fff!important;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:31px;
  z-index:999;
  box-shadow:0 18px 40px rgba(37,211,102,.38);
  animation:imcPulse 2.2s infinite;
}
@keyframes imcPulse{
  0%{box-shadow:0 0 0 0 rgba(37,211,102,.44),0 18px 40px rgba(37,211,102,.35);}
  70%{box-shadow:0 0 0 18px rgba(37,211,102,0),0 18px 40px rgba(37,211,102,.35);}
  100%{box-shadow:0 0 0 0 rgba(37,211,102,0),0 18px 40px rgba(37,211,102,.35);}
}
.scroll-top{bottom:24px!important;right:24px!important;border-radius:16px!important;background:#2563EB!important;}

/* Forms / global controls */
.form-control,.form-select,input,textarea{
  min-height:48px;
  border-radius:14px!important;
  font-size:15px!important;
}

/* Mobile */
@media (max-width:1199px){
  .navmenu ul{background:#0F172A!important;border:1px solid rgba(255,255,255,.08)!important;}
  .navmenu a{color:#E2E8F0!important;}
  .mobile-nav-toggle{color:#fff!important;font-size:30px;}
}
@media (max-width:991px){
  .hero{text-align:center;padding-top:130px!important;min-height:auto;}
  .hero p{margin-left:auto;margin-right:auto;}
  .hero .d-flex{justify-content:center;flex-direction:column;align-items:stretch;max-width:360px;margin:0 auto;}
  .hero-badges{justify-content:center;}
  .hero-img img{max-height:340px;margin-top:20px;}
  .pricing .pricing-item h3{min-height:auto;}
}
@media (max-width:768px){
  body{font-size:15px;}
  section,.section{padding:62px 0;}
  .header{min-height:68px;}
  .header .logo .sitename{font-size:.95rem;}
  .btn-getstarted,.btn-get-started,.btn-cta,.plan-cta,.btn{width:100%;min-height:48px;}
  .section-title{padding-bottom:30px;}
  .service-item .img img{height:200px;}
  .features-item{padding:20px!important;}
  .container-map{height:500px!important;border-radius:18px;}
  #contacto .row{display:block;}
  .whatsapp-float{width:56px;height:56px;font-size:28px;right:18px;bottom:88px;}
}
@media (max-width:420px){
  h1{font-size:2.15rem;}
  .hero-badges span{width:100%;justify-content:center;}
  .container-map{height:430px!important;}
}


/* ===== Responsive hardening + performance-safe layout ===== */
html{scroll-behavior:smooth;overflow-x:hidden;}
body{overflow-x:hidden;-webkit-text-size-adjust:100%;}
*,*::before,*::after{box-sizing:border-box;}
img,svg,video,canvas,iframe{max-width:100%;}
img{height:auto;}
iframe{border:0;display:block;width:100%;}
main{overflow:hidden;}
.container,.container-fluid{padding-left:clamp(16px,3vw,32px);padding-right:clamp(16px,3vw,32px);}
.row{--bs-gutter-x:clamp(1rem,2vw,1.8rem);}
.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch;}
.pricing .row,.featured-services .row,.benefits-strip .row{align-items:stretch;}
.pricing .pricing-item,.service-item,.benefit-card{height:100%;}
.hero-actions{gap:12px;}
.hero .btn-get-started,.hero .btn-outline-hero{margin:0!important;}
.logo img{max-width:58px;height:auto;}
.header .logo{min-width:0;}
.header .logo .sitename{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.container-map{min-height:420px;}
.container-map iframe{height:100%;min-height:420px;border-radius:18px;box-shadow:0 18px 50px rgba(15,23,42,.12);}
#contacto .text-footer a{line-height:1.45;display:inline-block;}
@media (max-width:575px){
  .container,.container-fluid{padding-left:16px;padding-right:16px;}
  .hero{padding-top:110px!important;}
  .hero h1{font-size:clamp(2rem,10vw,2.55rem);line-height:1.05;}
  .hero p{font-size:1rem;}
  .hero-img img{max-height:280px;object-fit:contain;}
  .clients .swiper-slide img{max-height:54px;object-fit:contain;}
  .pricing .pricing-item{padding:28px 20px;}
  .pricing .pricing-item h4{font-size:2.2rem;}
  .faq .faq-item{padding:24px 10px;}
  .faq .faq-item .col-lg-5{align-items:flex-start;}
  #contacto .container{padding-left:18px!important;padding-right:18px!important;}
  .scroll-top{right:18px!important;bottom:20px!important;}
}


/* ===== Fix desktop reveal + mobile menu stability ===== */
@media (min-width: 992px){
  [data-aos],
  [data-aos][class*="aos-"]{
    opacity:1!important;
    transform:none!important;
    transition:none!important;
  }
}

@media (max-width:1199px){
  body.mobile-nav-active{overflow:hidden!important;}
  body.mobile-nav-active .navmenu{
    position:fixed!important;
    inset:0!important;
    z-index:9998!important;
    background:rgba(2,6,23,.78)!important;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
  }
  body.mobile-nav-active .navmenu > ul{
    display:block!important;
    position:fixed!important;
    top:82px!important;
    left:18px!important;
    right:18px!important;
    bottom:auto!important;
    max-height:calc(100vh - 110px)!important;
    overflow-y:auto!important;
    padding:16px!important;
    margin:0!important;
    border-radius:22px!important;
    background:#0F172A!important;
    border:1px solid rgba(255,255,255,.12)!important;
    box-shadow:0 24px 70px rgba(0,0,0,.35)!important;
  }
  body.mobile-nav-active .mobile-nav-toggle{
    position:fixed!important;
    top:24px!important;
    right:24px!important;
    z-index:10000!important;
    color:#fff!important;
  }
  .navmenu li{width:100%;}
  .navmenu a,
  .navmenu a:focus{
    color:#E2E8F0!important;
    padding:14px 16px!important;
    border-radius:14px!important;
    justify-content:flex-start!important;
  }
  .navmenu a:hover,
  .navmenu .active{
    background:rgba(37,99,235,.18)!important;
    color:#93C5FD!important;
  }
  .navmenu .btn-cta{
    width:100%!important;
    margin-top:10px!important;
    justify-content:center!important;
    color:#fff!important;
    background:linear-gradient(135deg,#2563EB,#38BDF8)!important;
  }
}

/* Prevent tiny horizontal overflow on wide monitors and laptops */
html,body{max-width:100%;overflow-x:hidden!important;}
.main,.section,.hero{max-width:100%;}
