:root{
  --tg-primary:#0A66C2;
  --tg-accent:#10B6FF;
  --tg-dark:#0E2430;
  --tg-muted:#5A6B78;
  --tg-silver:#B8C2CC;
  --tg-bg:#F5F8FB;
  --tg-card:#FFFFFF;
  --tg-border:#E6EEF5;
}

html{scroll-behavior:smooth;}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;background:var(--tg-bg);color:var(--tg-dark);}
a{color:var(--tg-primary);}
.navbar{background:rgba(255,255,255,.9)!important;backdrop-filter:saturate(1.2) blur(10px);border-bottom:1px solid var(--tg-border);}
.brand-logo{height:44px;width:auto}
.btn-tg{background:var(--tg-primary);border-color:var(--tg-primary);color:#fff;}
.btn-tg:hover{filter:brightness(.95);color:#fff;}
.btn-outline-tg{border-color:var(--tg-primary);color:var(--tg-primary);}
.btn-outline-tg:hover{background:var(--tg-primary);color:#fff;}

.section{padding:64px 0;}
.section-title{font-weight:800;letter-spacing:.2px;}
.section-sub{color:var(--tg-muted);}

.hero{
  position:relative;
}
.hero .carousel-item{
  height: min(78vh, 760px);
  min-height: 520px;
  background:#000;
}
.hero .carousel-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(1.05);
}
.hero .overlay{
  position:absolute;inset:0;
  background:linear-gradient(90deg, rgba(14,36,48,.88) 0%, rgba(14,36,48,.55) 45%, rgba(14,36,48,.18) 100%);
}
.hero .hero-content{
  position:absolute;inset:0;
  display:flex;align-items:center;
}
.hero h1{font-weight:900;line-height:1.05;}
.hero p{color:rgba(255,255,255,.85);max-width:640px;font-size:1.05rem;}
.hero .badge-soft{
  background:rgba(16,182,255,.16);
  border:1px solid rgba(16,182,255,.35);
  color:#fff;
  font-weight:600;
}
.hero .shadow-card{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:18px 18px;
}

.card{
  border:1px solid var(--tg-border);
  border-radius:18px;
  box-shadow:0 10px 26px rgba(10, 40, 80, .06);
}
.card-icon{
  width:54px;height:54px;border-radius:16px;
  display:grid;place-items:center;
  background:linear-gradient(135deg, rgba(16,182,255,.22), rgba(10,102,194,.10));
  border:1px solid rgba(10,102,194,.18);
  color:var(--tg-primary);
}
.small-muted{color:var(--tg-muted);font-size:.95rem;}
.kpi{
  border:1px dashed rgba(10,102,194,.25);
  background:linear-gradient(180deg, #fff, #fbfdff);
}

.gallery img{border-radius:18px;border:1px solid var(--tg-border);}

.client-grid img{max-width:100%;height:auto;}

.footer{
  background:#0E2430;color:#EAF1F6;
  border-top:1px solid rgba(255,255,255,.08);
}
.footer a{color:#EAF1F6;text-decoration:none;}
.footer a:hover{text-decoration:underline;}

.whatsapp-float{
  position:fixed;right:18px;bottom:18px;z-index:9999;
  width:56px;height:56px;border-radius:50%;
  background:#25D366;color:#fff;
  display:grid;place-items:center;
  box-shadow:0 12px 28px rgba(0,0,0,.25);
}
.whatsapp-float:hover{filter:brightness(.95);color:#fff;}
.whatsapp-float svg{width:28px;height:28px;}

.form-control, .form-select{
  border-radius:14px;border:1px solid var(--tg-border);
}
.form-control:focus, .form-select:focus{
  border-color:rgba(16,182,255,.55);
  box-shadow:0 0 0 .25rem rgba(16,182,255,.15);
}

/* spacing tweaks for anchors under sticky navbar */
.anchor{scroll-margin-top:90px;}

/* Gallery height (reduce) */
#galleryCarousel .carousel-item img{
  max-height: 520px;
  object-fit: cover;
}
@media (max-width: 576px){
  #galleryCarousel .carousel-item img{ max-height: 360px; }
}



/* WhatsApp floating icon (white) */
.whatsapp-float{
  color:#fff;
}


/* Brand (logo + text) */
.navbar .navbar-brand{gap:12px; padding-top:.55rem; padding-bottom:.55rem;}
.brand-logo{height:56px;width:auto;object-fit:contain;display:block;}
.brand-text{display:flex;flex-direction:column;line-height:1.05}
.brand-name{font-weight:900;letter-spacing:.3px;font-size:1.06rem;color:var(--tg-dark);}
.brand-tag{margin-top:2px;font-size:.86rem;color:var(--tg-muted);}

@media (max-width: 576px){
  .brand-logo{height:42px;}
}


/* WhatsApp floating button (use official logo image) */
.whatsapp-float{
  background: transparent;
  width: 68px;
  height: 68px;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  place-items: center;
}
.whatsapp-logo{
  width: 64px;
  height: 64px;
  display:block;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.25));
}
.whatsapp-float:hover .whatsapp-logo{ transform: scale(.98); }


/* Gallery collage (masonry-like using CSS columns) */
.gallery-collage{
  column-count: 4;
  column-gap: 14px;
}
.gc-item{
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--tg-border);
  box-shadow: 0 10px 26px rgba(10, 40, 80, .06);
  background: #fff;
}
.gc-item img{
  width: 100%;
  height: auto;
  display: block;
  transform: translateZ(0);
  transition: transform .25s ease, filter .25s ease;
}
.gc-item::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35) 100%);
  opacity: .0;
  transition: opacity .25s ease;
}
.gc-badge{
  position:absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  background: rgba(10,102,194,.90);
  border: 1px solid rgba(255,255,255,.22);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.gc-item:hover img{
  transform: scale(1.03);
  filter: saturate(1.05);
}
.gc-item:hover::after{ opacity: 1; }
.gc-item:hover .gc-badge{
  opacity: 1;
  transform: translateY(0);
}

/* Modal */
.gc-modal{
  background: rgba(12,18,24,.96);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
}
.gc-close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}
.gc-modal-img{
  width: 100%;
  height: auto;
  display:block;
  max-height: 86vh;
  object-fit: contain;
  background: rgba(0,0,0,.65);
}

/* Responsive columns */
@media (max-width: 1200px){
  .gallery-collage{ column-count: 3; }
}
@media (max-width: 768px){
  .gallery-collage{ column-count: 2; }
}
@media (max-width: 480px){
  .gallery-collage{ column-count: 1; }
}
.hero-highlight{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.hero-pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:.92rem;
  color:#fff;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
}
/* =========================
   FIX: Carousel no se mueve
   (hero-content tapa el carrusel)
========================== */

/* El texto queda encima pero NO bloquea el carrusel */
#home .hero-content{
  pointer-events: none;
}

/* Solo los elementos interactivos del hero sí reciben clic */
#home .hero-content a,
#home .hero-content button,
#home .hero-content input,
#home .hero-content select,
#home .hero-content textarea{
  pointer-events: auto;
}

/* Asegura que flechas e indicadores queden por encima y clicables */
#home .carousel-control-prev,
#home .carousel-control-next,
#home .carousel-indicators{
  z-index: 10;
  pointer-events: auto;
}
/* =========================
   HERO MÁS ALTO (DESKTOP + MÓVIL)
========================== */
#home.hero { position: relative; }

/* Altura del carrusel */
#home #heroCarousel,
#home #heroCarousel .carousel-inner,
#home #heroCarousel .carousel-item{
  height: 95vh;          /* MÁS ALTO en escritorio */
  min-height: 720px;     /* piso para pantallas grandes */
}

/* Imagen llena el alto */
#home #heroCarousel .carousel-item img{
  width: 100%;
  height: 95vh;
  min-height: 720px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* En móvil: aún más alto pero sin exagerar */
@media (max-width: 991.98px){
  #home #heroCarousel,
  #home #heroCarousel .carousel-inner,
  #home #heroCarousel .carousel-item{
    height: 98vh;
    min-height: 640px;
  }
  #home #heroCarousel .carousel-item img{
    height: 98vh;
    min-height: 640px;
  }
}

/* Overlay de contenido encima */
#home .hero-content{
  position: absolute;
  inset: 0;
  z-index: 5;
}

/* FIX: que el carrusel se pueda mover (swipe/flechas) */
#home .hero-content{ pointer-events: none; }
#home .hero-content a,
#home .hero-content button,
#home .hero-content input,
#home .hero-content select,
#home .hero-content textarea{ pointer-events: auto; }

#home .carousel-control-prev,
#home .carousel-control-next,
#home .carousel-indicators{
  z-index: 10;
  pointer-events: auto;
}
