:root{
  /* stronger red–orange accent range for buttons and highlights */
  --accent: #ff3f21; /* primary (reddish) */
  --accent-2: #ff7a1a; /* orangey */
  --accent-3: #ff6a00; /* deep orange */
  --dark-bg:#0f1720;
  --glass: rgba(255,255,255,0.04);
}

/* Preload overlay styles (flame animation) */
#preloadOverlay{
  position:fixed;
  inset:0;
  background: rgba(6,8,12,0.92);
  z-index:1080;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:opacity .55s ease, visibility .55s ease;
  opacity:1;
  visibility:visible;
}

/* center content */
.preload-center{
  text-align:center;
  color: #fff;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
  justify-content:center;
  padding:18px;
}

/* Flame wrapper sizes */
.flame-wrap{ width:96px; height:128px; display:flex; align-items:center; justify-content:center; }

/* subtle idle flame bob + flicker */
.flame{
  display:block;
  will-change: transform, opacity;
  animation: flameBob 1600ms ease-in-out infinite;
  transform-origin: 50% 80%;
}
@keyframes flameBob{
  0% { transform: translateY(0) scale(1); opacity:1; }
  40% { transform: translateY(-3px) scale(1.02); opacity:0.98; }
  100% { transform: translateY(0) scale(1); opacity:1; }
}

/* inner core glow pulse */
.flame-core{ transform-origin: 50% 70%; animation: corePulse 1100ms ease-in-out infinite; }
@keyframes corePulse{
  0% { transform: scale(1); opacity:1; }
  50% { transform: scale(1.04); opacity:0.98; }
  100% { transform: scale(1); opacity:1; }
}

/* outer flame gentle flicker */
.flame-outer{ transform-origin: 50% 80%; animation: outerFlicker 800ms linear infinite; opacity:0.98; }
@keyframes outerFlicker{
  0%{ transform: scaleY(1); }
  50%{ transform: scaleY(1.03); }
  100%{ transform: scaleY(1); }
}

/* glow ellipse */
.flame-glow{ transition: opacity .6s ease, transform .6s ease; }

/* smoke (hidden until extinguish) */
.smoke{ transform-origin: 50% 110%; transition: transform 1100ms cubic-bezier(.2,.9,.2,1), opacity 1100ms ease; }

/* extinguish sequence: shrink flame, fade core, reveal rising smoke */
.flame-wrap.extinguish .flame{ animation: extinguishScale .9s ease forwards; }
@keyframes extinguishScale{
  0% { transform: translateY(0) scale(1); opacity:1; }
  60% { transform: translateY(6px) scale(0.8); opacity:0.9; }
  100% { transform: translateY(16px) scale(0.4); opacity:0.18; }
}
.flame-wrap.extinguish .flame-core{ opacity:0; transform: scale(0.6); transition: opacity .9s ease, transform .9s ease; }
.flame-wrap.extinguish .flame-outer{ opacity:0.06; transform: scale(0.6); transition: opacity .9s ease, transform .9s ease; }

/* smoke reveal */
.flame-wrap.extinguish .smoke{ opacity:1; transform: translateY(-28px); transition-delay: 220ms; }

/* Fade overlay out after animation (kept simple) */
#preloadOverlay.hidden{ opacity:0; visibility:hidden; pointer-events:none; transition-duration:500ms; }

/* Preload text */
.preload-text{
  font-size:43px;
  color: rgba(255,255,255,0.9);
  letter-spacing:0.2px;
}

/* General layout */
body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg,#071020 0%, #08121a 100%);
  color: #e6eef8;
  padding-top: 72px; /* nav height */
  -webkit-font-smoothing:antialiased;
    overflow-x: hidden;

}

/* Ensure main sections occupy at least the viewport height for better visibility */
header.hero-section,
section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Navbar / logo */
.logo-sq{
  width:44px;height:44px;border-radius:.6rem;background:linear-gradient(135deg,var(--accent),var(--accent-2));box-shadow:0 6px 20px rgba(0,0,0,0.4);
}
.logo-sq.small{width:36px;height:36px;border-radius:.5rem}

/* Hero */
.hero-section{
  position:relative;
  overflow:hidden;
}

/* New hero gradient background as requested */
.bg-gradient-hero {
  background: var(--gradient-hero);
      background-image: linear-gradient(160deg, rgb(23 42 94) 0%, rgb(32 52 108) 50%, rgb(27 27 117) 100%);
  background-position-x: initial;
  background-position-y: initial;
  background-size: initial;
  background-repeat: initial;
  background-attachment: initial;
  background-origin: initial;
  background-clip: initial;
  background-color: initial;
}

.bg-cerofuego {
  background-image: url('img/fnd-cerofuego.jpg'); /* ← tu imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


#nosotros {
      background: brown;
}

/* For sections with light backgrounds keep muted dark text, otherwise force light paragraph color for dark sections */
section.bg-light p,
section.bg-light .text-muted {
  color: #white !important;
}

/* Ensure specific headings on light sections use a dark color as requested */
#servicios .fw-bold.display-6 {
  color: #0b0b0b !important; /* black for "Soluciones Integrales de" */
}

/* Force contact section heading to white and override any gradient/text-clip */
#contacto .fw-bold.display-6 {
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Ensure any .text-gradient inside the contact heading is rendered white */
#contacto .fw-bold.display-6 .text-gradient,
#contacto .text-gradient {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
}

/* Contact section background image and overlay to represent the company while keeping text readable */
#contacto.contacto-bg{
  background-image:  url('https://www.foqus.cl/cerofuego/fnd-contacto.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* enable desktop parallax fallback; actual parallax fine-tuned in JS */
  background-attachment: fixed;
  color: #e6eef8;
  min-height: auto;
  padding-top: 64px;
  padding-bottom: 64px;
  position: relative;
}

/* Dark transparent panel style to match the cotización form for small info cards */
.dark-panel{
  background: linear-gradient(180deg, rgba(2,6,10,0.78), rgba(6,10,14,0.82));
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(6px) saturate(1.02);
  color: #e6eef8;
}

/* make sure small meta text on dark panels uses the lighter muted tone */
.dark-panel .text-muted{ color: rgba(230,238,248,0.85) !important; }

/* ensure the light text variants inside contact remain legible over the image */
#contacto.contacto-bg .text-muted { color: rgba(230,238,248,0.9) !important; }
#contacto.contacto-bg .text-warning { color: var(--accent) !important; }

/* Stats labels (Proyectos, Satisfacción) should be white */
.stats small,
.stats .text-muted {
  color: #ffffff !important;
}

/* Other dark-section text rules */
header.hero-section p,
section:not(.bg-light) p,
section:not(.bg-light) .text-muted,
footer p,
footer .text-muted {
  color: #e6eef8 !important;
}

/* Gradient text */
.text-gradient{
  background: linear-gradient(90deg,var(--accent),var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* Animated gradient buttons: create an animated gradient layer that slowly shifts between red and orange */
.btn-gradient {
  --g1: var(--accent);
  --g2: var(--accent-2);
  color: #fff;
  border: 0;
  /* thicker, more prominent button: increased padding, larger text and stronger shadow */
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 18px 42px rgba(255,80,40,0.26);
  transition: transform .18s ease, box-shadow .18s ease, filter .12s ease;
  position: relative;
  overflow: hidden;
  z-index: 0;
  background: transparent; /* base transparent, visual from pseudo */
  border-radius: .7rem;
}

/* moving gradient layer - richer stops leaning red → orange */
.btn-gradient::before{
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(120deg, #ff2b2b 0%, #ff3f21 25%, #ff6a00 55%, #ff9a3a 80%);
  background-size: 240% 240%;
  transition: transform .22s ease;
  animation: gradientShift 5.5s ease-in-out infinite;
  mix-blend-mode: normal;
  border-radius: inherit;
  filter: saturate(1.05) contrast(1.02);
}

/* subtle glossy overlay */
.btn-gradient::after{
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: inherit;
}

/* gentle hover lift and warmer glow */
.btn-gradient:hover{
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(255,80,40,0.26);
  filter: brightness(1.02);
}
.btn-gradient:active{ transform: translateY(-1px) scale(.997); }

/* animate gradient by shifting its background-position for a smooth red→orange cycle */
@keyframes gradientShift{
  0%{ background-position: 0% 50%; transform: rotate(0.01deg); }
  30%{ background-position: 50% 60%; transform: rotate(.02deg); }
  60%{ background-position: 100% 50%; transform: rotate(-0.01deg); }
  100%{ background-position: 0% 50%; transform: rotate(0.01deg); }
}

/* Outline variant with subtle gradient border and hover fill */
.btn-gradient-outline{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,127,63,0.18);
  box-shadow: none;
  transition: background .25s ease, color .25s ease, transform .18s ease;
  position: relative;
  overflow: hidden;
}
.btn-gradient-outline::before{
  content:'';
  position:absolute;
  left:-40%;
  top:0;
  width:40%;
  height:100%;
  background: linear-gradient(90deg, rgba(255,127,63,0.12), rgba(255,63,33,0.06));
  transform: skewX(-12deg);
  transition: left .28s ease;
}
.btn-gradient-outline:hover::before{ left:60%; }
.btn-gradient-outline:hover{ background: linear-gradient(90deg, rgba(255,127,63,0.06), rgba(255,63,33,0.06)); color:#fff; transform: translateY(-3px); }

/* Make hero H1 larger and responsive */
.hero-title{
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.6px;
  margin-bottom: .6rem;
}

/* glass card */
.glass-card{
  background: rgba(255,255,255,0.02);
  border-radius:1rem;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.04);
}

/* icon circle */
.icon-circle{width:96px;height:96px;border-radius:999px;background:linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));display:flex;align-items:center;justify-content:center;margin:0 auto;}
.icon-box{
  height:116px;
  border-radius:0rem;
  background: transparent;
  display:flex;
  align-items:center;
  justify-content:flex-start; /* align icons to the left */
  margin:0; /* remove auto centering so items sit left within the card body */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Large gradient color for icon fonts inside service cards, centered and high contrast */
.service-card .icon-box i{
  font-size:65px; /* larger icon size for stronger emphasis */
  line-height:1;
  display:inline-block;
  background: white;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-align:center;
}

#servicios .card-body {
  color: white;
  text-align: center;
  background: linear-gradient(90deg, #e1462e, #ff421a 50%, #ff4f00 100%);
    }

/* Increase and color the custom inline SVG alarm icon to match the gradient */
.service-card .alarm-icon{
  width:48px;
  height:48px;
  display:block;
  margin:0; /* remove auto centering so SVG follows left alignment */
  color: var(--accent); /* baseline color for fallback */
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Force SVG shapes to use currentColor so CSS gradient color applies (overrides inline fills/strokes) */
.service-card .alarm-icon *{
  fill: currentColor !important;
  stroke: currentColor !important;
}
.icon-box-sm{width:44px;height:44px;border-radius:.6rem;background:rgba(255,255,255,0.02);display:flex;align-items:center;justify-content:center;font-size:1.15rem}

/* cards */
.service-card{transition:transform .28s ease, box-shadow .28s ease;}
.service-card:hover{transform:translateY(-8px);box-shadow:0 20px 40px rgba(0,0,0,0.5)}

/* stats */
.stat-card{border-radius:.8rem;background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));border:1px solid rgba(255,255,255,0.03)}

/* Floating animated stat buttons */
.stats{ min-height: 78px; } /* give some vertical room for floating buttons */
.floating-stat{
  --bg1: linear-gradient(90deg, var(--accent), var(--accent-2));
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  background: var(--bg1);
  color: #fff;
  border: 0;
  /* larger, thicker tactile buttons for visibility */
  padding: 18px 30px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(255,90,40,0.22);
  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease, filter .12s ease;
  min-width: 160px;
  text-align:center;
  z-index: 2;
  cursor: default;
  font-weight:800;
}

/* count styling and subtle entrance polish */
.stat-num { display:flex; align-items:baseline; gap:4px; }
.count{
  font-variant-numeric: tabular-nums;
  font-size: 2.4rem; /* increased base size for stronger numeric emphasis */
  line-height:1;
  font-weight:900;
  transition: transform .36s cubic-bezier(.2,.9,.2,1), opacity .36s ease;
  display:inline-block;
  transform-origin: center;
}
.count-suffix{
  font-size: .9rem;
  opacity: .95;
  margin-left: 2px;
}

/* when interact (hover) slightly emphasize the numbers */
.floating-stat:hover .count{ transform: translateY(-4px) scale(1.02); }

/* larger numeric emphasis inside the floating button */
.floating-stat .stat-num{
  font-size: 1.6rem;
  line-height:1;
  font-weight:800;
  letter-spacing: -0.5px;
}

/* label smaller but clearly visible and white */
.floating-stat .stat-label{
  font-size: 0.85rem;
  opacity: 0.95;
  display:block;
}

/* gentle hover lift (for mouse) and press feedback */
.floating-stat:hover{ transform: translateY(-8px); box-shadow: 0 28px 60px rgba(255,90,40,0.22); }
.floating-stat:active{ transform: translateY(-4px); }

/* floating animation (subtle vertical bob) - different phases for two buttons for variety */
@keyframes floatA{ 0%{ transform: translateY(0) } 50%{ transform: translateY(-8px) } 100%{ transform: translateY(0) } }
@keyframes floatB{ 0%{ transform: translateY(0) } 50%{ transform: translateY(-4px) } 100%{ transform: translateY(0) } }

.stats .floating-stat:nth-child(1){ animation: floatA 4.8s ease-in-out infinite; }
.stats .floating-stat:nth-child(2){ animation: floatB 3.6s ease-in-out infinite; }

/* make them bigger on larger screens and center nicely */
@media (min-width: 992px){
  .floating-stat{ padding: 18px 28px; min-width: 170px; }
  .floating-stat .stat-num{ font-size: 3rem; } /* larger desktop stat numbers */
  .stats{ gap: 20px; }
}

/* ensure labels for Satisfacción / Proyectos remain white as requested */
.stats .stat-label,
.stats .floating-stat .stat-label{
  color: #ffffff !important;
}

/* footer */
footer{border-top:1px solid rgba(255,255,255,0.03)}

/* small utilities */
.backdrop-blur{backdrop-filter: blur(8px)}
.shadow-sm{box-shadow:0 6px 18px rgba(0,0,0,0.45)}
.scroll-hint{position:absolute;left:50%;transform:translateX(-50%);bottom:1rem;}

/* Header shrink on scroll
   - smoothly reduces navbar height, logo and button padding
   - uses transform/opacity for GPU-accelerated animation */
.navbar {
  transition: padding .28s cubic-bezier(.2,.9,.2,1), background-color .28s ease, box-shadow .28s ease;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  will-change: padding, box-shadow;
}

.navbar .navbar-brand { transition: transform .28s cubic-bezier(.2,.9,.2,1); display:flex; align-items:center; gap:0.6rem; }
.navbar .logo-sq { transition: transform .28s cubic-bezier(.2,.9,.2,1), width .28s ease, height .28s ease; }

/* Shrink state */
.navbar-shrink {
  padding-top: 0.18rem !important;
  padding-bottom: 0.18rem !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    background-color: rgb(253 0 0 / 48%);
  backdrop-filter: blur(6px);
}
.navbar-shrink .logo-sq {
  transform: scale(0.78);
  width:36px;
  height:36px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.38);
}
.navbar-shrink .logo-sq.small {
  transform: scale(0.78);
  width:30px;
  height:30px;
}

/* tighten nav items and buttons slightly for compact header */
.navbar-shrink .nav-link { padding-top: .35rem; padding-bottom: .35rem; opacity: .95; transition: opacity .2s ease; }
.navbar-shrink .btn-gradient, .navbar-shrink .btn-gradient-outline {
  transform: translateY(0);
  padding: 10px 20px;
  font-size: .95rem;
  box-shadow: 0 12px 30px rgba(255,80,40,0.18);
}

/* subtle brand text reduction on shrink for better balance */
.navbar-shrink .navbar-brand > div.d-none.d-sm-block { transform: translateY(-1px) scale(.96); transition: transform .28s ease; opacity:.98; }

/* ensure transitions remain smooth on mobile */
@media (max-width: 767px){
  .navbar { padding-top: .22rem; padding-bottom: .22rem; }
  .navbar-shrink .logo-sq { transform: scale(0.88); }
}

/* Animated outline badge: larger, more prominent transparent background, animated gradient border and subtle inner sheen */
.badge-outline-animated{
  --bd1: linear-gradient(90deg, rgba(255,63,33,0.95), rgba(255,122,26,0.95));
  display:inline-block;
  background:transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.06);
  position:relative;
  border-radius: .7rem;
  padding: .65rem 1.2rem; /* increased padding to enlarge button */
  font-weight:700;
  font-size: 0.98rem; /* larger text */
  letter-spacing:0.3px;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, font-size .18s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,0.36), inset 0 1px 0 rgba(255,255,255,0.02);
}

/* animated border glow using an ::before layer */
.badge-outline-animated::before{
  content:'';
  position:absolute;
  inset:-2px;
  z-index:-1;
  border-radius: inherit;
  padding:2px;
  background: linear-gradient(90deg, rgba(255,43,43,0.95) 0%, rgba(255,63,33,0.95) 30%, rgba(255,106,0,0.95) 60%, rgba(255,154,58,0.95) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: badgeBorderShift 6s linear infinite;
  opacity: 0.95;
  filter: blur(.8px) saturate(1.05);
  pointer-events:none;
}

/* subtle sheen on hover and slight lift */
.badge-outline-animated:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(255,90,40,0.12);
}

/* small inner sheen */
.badge-outline-animated::after{
  content:'';
  position:absolute;
  left:-40%;
  top:0;
  width:40%;
  height:100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.00));
  transform: skewX(-12deg);
  transition: left .28s ease;
  pointer-events:none;
}
.badge-outline-animated:hover::after{ left:60%; }

/* keyframes for smooth shifting of the gradient border */
@keyframes badgeBorderShift{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

/* Responsive tweaks */
@media (max-width: 991px){
  header.hero-section,
  section {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .logo-sq{width:40px;height:40px}
}

/* Contact form modern panel */
.contact-panel-wrapper{
  position: relative;
  padding: 12px;
}
.contact-panel{
  position: relative;
  border-radius: 1rem;
  overflow: visible;
  /* darken and slightly increase opacity for better contrast over background image */
  background: linear-gradient(180deg, rgba(2,6,10,0.78), rgba(6,10,14,0.82));
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(8px) saturate(1.05);
  transition: transform .28s cubic-bezier(.2,.9,.2,1), box-shadow .28s ease;
}
.contact-panel:hover{ transform: translateY(-6px); box-shadow: 0 28px 60px rgba(6,12,24,0.6); }

.panel-accent{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(255,90,40,0.09);
}

.panel-inner{
  position: relative;
  z-index: 2;
  padding: 1.25rem;
}

/* floating modern input style */
.form-floating-modern{
  position: relative;
}
.form-floating-modern .modern{
  width:100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 12px 14px;
  border-radius: .6rem;
  color: var(--light, #e6eef8);
  transition: box-shadow .18s ease, transform .12s ease, border-color .18s ease, background .18s ease;
  outline: none;
  -webkit-appearance: none;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.01);
}
.form-floating-modern label{
  position: absolute;
  left: 14px;
  top: 10px;
  font-size: .86rem;
  color: rgba(255,255,255,0.65);
  pointer-events: none;
  transition: transform .16s ease, font-size .16s ease, top .16s ease, opacity .12s ease;
  background: transparent;
  padding: 0 6px;
}

/* when input has content or focus, lift the label */
.form-floating-modern .modern:focus + label,
.form-floating-modern .modern:not(:placeholder-shown) + label,
.form-floating-modern .modern:-webkit-autofill + label{
  transform: translateY(-12px);
  font-size: .72rem;
  opacity: .95;
  top: 6px;
  color: var(--accent-2);
}

/* focus ring and glow */
.form-floating-modern .modern:focus{
  border-color: rgba(255,122,26,0.9);
  box-shadow: 0 6px 28px rgba(255,122,26,0.08), 0 0 0 4px rgba(255,122,26,0.06);
  background: rgba(255,255,255,0.018);
}

/* select wrapper to keep label placed similarly */
.select-wrap .modern{
  appearance: none;
  padding-right: 38px;
  /* orange tint for selected value and caret */
  color: var(--accent-2); /* text of selected value */
  background-color: rgba(255,122,26,0.04);
  border: 1px solid rgba(255,122,26,0.12);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

/* style the dropdown arrow (kept in pseudo element) to match orange */
.select-wrap:after{
  content:'';
  position:absolute;
  right:12px;
  top:50%;
  width:10px;
  height:10px;
  transform:translateY(-50%) rotate(45deg);
  border-right:2px solid var(--accent-2);
  border-bottom:2px solid var(--accent-2);
  opacity:0.95;
  pointer-events:none;
}

/* options in native dropdown: give orange accent for selected and hover where supported */
.select-wrap .modern option {
  color: #2b2b2b; /* readable text on light option bg */
  background-color: #fff;
}

/* some browsers allow styling selected option */
.select-wrap .modern option:checked,
.select-wrap .modern option[selected]{
  color: #ffffff;
  background-color: var(--accent-2);
}

/* focus ring uses orange glow */
.select-wrap .modern:focus{
  border-color: rgba(255,122,26,0.95);
  box-shadow: 0 6px 28px rgba(255,122,26,0.08), 0 0 0 4px rgba(255,122,26,0.06);
  background-color: rgba(255,122,26,0.03);
}

/* ensure label color when select has value remains orange-leaning */
.form-floating-modern .modern:focus + label,
.form-floating-modern .modern:not(:placeholder-shown) + label,
.form-floating-modern .modern:-webkit-autofill + label{
  transform: translateY(-12px);
  font-size: .72rem;
  opacity: .95;
  top: 6px;
  color: var(--accent-2);
}

/* small right icon for select (pure CSS) */
.select-wrap{ position: relative; }
.select-wrap:after{
  content:'';
  position:absolute;
  right:12px;
  top:50%;
  width:10px;
  height:10px;
  transform:translateY(-50%) rotate(45deg);
  border-right:2px solid rgba(255,255,255,0.6);
  border-bottom:2px solid rgba(255,255,255,0.6);
  opacity:0.9;
  pointer-events:none;
  border-color: rgba(255,255,255,0.55);
}

/* panel decorative svg position */
.panel-decor{
  position: absolute;
  right: -14px;
  bottom: -14px;
  opacity: 0.9;
  z-index: 1;
  filter: blur(1px) saturate(1.02);
  pointer-events: none;
}

/* compact panel icon */
.panel-icon{
  width:52px;height:52px;border-radius:.7rem;background:linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); display:flex; align-items:center; justify-content:center;
}

/* Increase size and weight of the "Solicitar Cotización" title inside the contact panel */
.contact-panel .card-title.solicitar{
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

/* ensure the submit button stands out on this panel */
.contact-panel .btn-gradient{
  box-shadow: 0 20px 50px rgba(255,90,40,0.22);
  padding: 12px 20px;
  font-size: 1rem;
}

/* responsive tweaks */
@media (max-width: 991px){
  .panel-accent{ display: none; }
  .panel-decor{ display: none; }
  .contact-panel{ border-radius: .8rem; }
}

/* Certificates section styles */
#productos-certificados{
  /* use same hero gradient as the main hero to create visual continuity */
  min-height: auto;
  padding-top: 64px;
  padding-bottom: 64px;
}

.cert-card{
  border-radius:1rem;
  border:1px solid rgba(255,255,255,0.04);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
  transition: transform .25s ease, box-shadow .25s ease;
}
.cert-card:hover{ transform: translateY(-8px); box-shadow: 0 24px 50px rgba(0,0,0,0.45); }

/* Make certification titles use a red→orange gradient like site highlights */
.cert-card h5.fw-bold{
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

/* keep supporting layout for logos/badges */
.cert-logo{ display:flex; align-items:center; justify-content:center; height:84px; }
.cert-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:84px;
  height:84px;
  border-radius:14px;
  font-weight:700;
  color:#fff;
  font-size:20px;
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
}

/* distinct badges with subtle gradients */
.cert-badge.nfpa{ background: linear-gradient(135deg, #ff3f21, #ff7a1a); }
.cert-badge.fm{ background: linear-gradient(135deg, #ff6a00, #ff9a3a); }
.cert-badge.ul{ background: linear-gradient(135deg, #ff2b2b, #ff6a00); }

/* responsive tweak: stack padding and center text on small screens */
@media (max-width: 767px){
  #productos-certificados { padding-top: 40px; padding-bottom: 40px; }
  .cert-card { text-align: center; }
}


/*
 *  STYLE scroll
 */
body::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #ccc;
}

body::-webkit-scrollbar {
  width: 10px;
  background-color: #ccc;
}

body::-webkit-scrollbar-thumb {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background: #e54c4c;
}

/* small spacing for form labels */
label { margin: .2rem 0 !important; }

/*
 *  STYLE scroll
 */
 



 .bg-azulclaro {
    background-color: #134FC5;
    background-image: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1500'%3E%3Cdefs%3E%3CradialGradient id='a' gradientUnits='objectBoundingBox'%3E%3Cstop offset='0' stop-color='%231F7BFF'/%3E%3Cstop offset='1' stop-color='%23134FC5'/%3E%3C/radialGradient%3E%3ClinearGradient id='b' gradientUnits='userSpaceOnUse' x1='0' y1='750' x2='1550' y2='750'%3E%3Cstop offset='0' stop-color='%231965e2'/%3E%3Cstop offset='1' stop-color='%23134FC5'/%3E%3C/linearGradient%3E%3Cpath id='s' fill='url(%23b)' d='M1549.2 51.6c-5.4 99.1-20.2 197.6-44.2 293.6c-24.1 96-57.4 189.4-99.3 278.6c-41.9 89.2-92.4 174.1-150.3 253.3c-58 79.2-123.4 152.6-195.1 219c-71.7 66.4-149.6 125.8-232.2 177.2c-82.7 51.4-170.1 94.7-260.7 129.1c-90.6 34.4-184.4 60-279.5 76.3C192.6 1495 96.1 1502 0 1500c96.1-2.1 191.8-13.3 285.4-33.6c93.6-20.2 185-49.5 272.5-87.2c87.6-37.7 171.3-83.8 249.6-137.3c78.4-53.5 151.5-114.5 217.9-181.7c66.5-67.2 126.4-140.7 178.6-218.9c52.3-78.3 96.9-161.4 133-247.9c36.1-86.5 63.8-176.2 82.6-267.6c18.8-91.4 28.6-184.4 29.6-277.4c0.3-27.6 23.2-48.7 50.8-48.4s49.5 21.8 49.2 49.5c0 0.7 0 1.3-0.1 2L1549.2 51.6z'/%3E%3Cg id='g'%3E%3Cuse href='%23s' transform='scale(0.12) rotate(60)'/%3E%3Cuse href='%23s' transform='scale(0.2) rotate(10)'/%3E%3Cuse href='%23s' transform='scale(0.25) rotate(40)'/%3E%3Cuse href='%23s' transform='scale(0.3) rotate(-20)'/%3E%3Cuse href='%23s' transform='scale(0.4) rotate(-30)'/%3E%3Cuse href='%23s' transform='scale(0.5) rotate(20)'/%3E%3Cuse href='%23s' transform='scale(0.6) rotate(60)'/%3E%3Cuse href='%23s' transform='scale(0.7) rotate(10)'/%3E%3Cuse href='%23s' transform='scale(0.835) rotate(-40)'/%3E%3Cuse href='%23s' transform='scale(0.9) rotate(40)'/%3E%3Cuse href='%23s' transform='scale(1.05) rotate(25)'/%3E%3Cuse href='%23s' transform='scale(1.2) rotate(8)'/%3E%3Cuse href='%23s' transform='scale(1.333) rotate(-60)'/%3E%3Cuse href='%23s' transform='scale(1.45) rotate(-30)'/%3E%3Cuse href='%23s' transform='scale(1.6) rotate(10)'/%3E%3C/g%3E%3C/defs%3E%3Cg transform='rotate(0 0 0)'%3E%3Cg transform='rotate(0 0 0)'%3E%3Ccircle fill='url(%23a)' r='3000'/%3E%3Cg opacity='0.5'%3E%3Ccircle fill='url(%23a)' r='2000'/%3E%3Ccircle fill='url(%23a)' r='1800'/%3E%3Ccircle fill='url(%23a)' r='1700'/%3E%3Ccircle fill='url(%23a)' r='1651'/%3E%3Ccircle fill='url(%23a)' r='1450'/%3E%3Ccircle fill='url(%23a)' r='1250'/%3E%3Ccircle fill='url(%23a)' r='1175'/%3E%3Ccircle fill='url(%23a)' r='900'/%3E%3Ccircle fill='url(%23a)' r='750'/%3E%3Ccircle fill='url(%23a)' r='500'/%3E%3Ccircle fill='url(%23a)' r='380'/%3E%3Ccircle fill='url(%23a)' r='250'/%3E%3C/g%3E%3Cg transform='rotate(0 0 0)'%3E%3Cuse href='%23g' transform='rotate(10)'/%3E%3Cuse href='%23g' transform='rotate(120)'/%3E%3Cuse href='%23g' transform='rotate(240)'/%3E%3C/g%3E%3Ccircle fill-opacity='0.1' fill='url(%23a)' r='3000'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E);
    background-attachment: fixed;
    background-size: cover;
}

.clientes-slider {
  position: relative;
  width: 100%;
}

.slide-track {
  display: flex;
  width: max-content;
  animation: scroll 15s linear infinite;
}

.slide-track img {
  opacity: 0.6;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.slide-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* pausa al pasar el mouse */
.clientes-slider:hover .slide-track {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.fusion-card {
  background: #fff;
  border-radius: 18px;
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  position: relative;
}

.fusion-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.fusion-icon {
  width: 80px;
  height: 80px;
  margin: auto;
  border-radius: 50%;
    background: linear-gradient(135deg, #ff2f00, #ce743d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  animation: pulse 2.5s infinite;
}

.fusion-result {
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  display: inline-block;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* efecto suave */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

#proyectos {
  position: relative;
}

/* fondo imagen */
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* overlay oscuro pro */
.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
}

/* contenido arriba */
.carousel-item .container {
  position: relative;
  z-index: 2;
}

/* transiciones suaves */
.carousel-item {
  transition: transform 1s ease-in-out;
  height: 350px !important;
}

/* botones más pro */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 60%;
  filter: invert(1);
}

#experiencia {    min-height: 70vh;}

.carousel-control-next, .carousel-control-prev {background: #e54c4c; width: 4%;}
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-size: 100%;
    filter: none;
}

@keyframes girar {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.bi-gear-wide-connected, .bi-hurricane, .bi-clock-fill {
  /* Aplica la animación: nombre, duración, tipo, repetición */
  animation: girar 7s linear infinite;
}

/* Overlay */
#preloadOverlay{
  position:fixed;
  inset:0;
  background: rgba(6,8,12,0.92);
  z-index:1080;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:opacity .55s ease, visibility .55s ease;
}

/* Contenido */
.preload-center{
  text-align:center;
  color:#fff;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
  justify-content:center;
  padding:18px;
}

/* Contenedor llama */
.flame-wrap{
  width:110px;
  height:140px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

/* 🔥 Llama */
.flame{
  width:96px;
  height:128px;
  animation: flameBob 1600ms ease-in-out infinite;
  transform-origin: 50% 80%;
}

@keyframes flameBob{
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}

/* Núcleo */
.flame-core{
  transform-origin:50% 70%;
  animation: corePulse 1100ms ease-in-out infinite;
}

@keyframes corePulse{
  0% { transform:scale(1); }
  50% { transform:scale(1.05); }
  100% { transform:scale(1); }
}

/* Exterior */
.flame-outer{
  transform-origin:50% 80%;
  animation: outerFlicker 800ms linear infinite;
}

@keyframes outerFlicker{
  0%{ transform:scaleY(1); }
  50%{ transform:scaleY(1.04); }
  100%{ transform:scaleY(1); }
}

/* 🚫 Símbolo prohibido */
.no-fire{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:120px;
  height:120px;
  z-index:2;
  pointer-events:none;

  opacity:0.65; /* clave para ver la llama */

  animation: noFirePulse 1.8s ease-in-out infinite;
}

@keyframes noFirePulse{
  0%{ transform:translate(-50%, -50%) scale(1); }
  50%{ transform:translate(-50%, -50%) scale(1.05); }
  100%{ transform:translate(-50%, -50%) scale(1); }
}

/* Texto */
.preload-text{
  font-size:42px;
  color:rgba(255,255,255,0.9);
}