/* ============================================================
   GRUPO SEGURIDAD PACÍFICO — Landing de Extintores
   Prefijo de clases propias: sp-
   ============================================================ */

:root{
  --sp-navy: #0a1e3a;
  --sp-navy-2: #0d2547;
  --sp-navy-soft: #13315c;
  --sp-yellow: #f5c518;
  --sp-yellow-dark: #dcae0a;
  --sp-red: #e2231a;
  --sp-whatsapp: #25d366;
  --sp-gray-light: #f7f7f9;
  --sp-gray-mid: #6b7280;
  --sp-ink: #17202b;
  --sp-white: #ffffff;

  --sp-font-display: 'Poppins', sans-serif;
  --sp-font-body: 'Inter', sans-serif;

  --sp-radius: 14px;
  --sp-radius-sm: 8px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; overflow-x: hidden; }

body{
  font-family: var(--sp-font-body);
  color: var(--sp-ink);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--sp-white);
  overflow-x: hidden;
}

h1,h2,h3,h4{
  font-family: var(--sp-font-display);
  color: var(--sp-navy);
  margin: 0;
}

a{ text-decoration: none; }

img{ max-width: 100%; display: block; }

.container{ max-width: 1220px; }

/* ============ Utilidades ============ */
.sp-text-yellow{ color: var(--sp-yellow); }
.sp-text-navy{ color: var(--sp-navy); }

.sp-section{ padding: 5rem 0; }

.sp-h2{
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.sp-subtitle{
  color: var(--sp-gray-mid);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.sp-body-text{
  color: var(--sp-gray-mid);
  font-size: 1rem;
}

/* ============ Botones ============ */
.sp-btn-yellow{
  background: var(--sp-yellow);
  color: var(--sp-navy);
  font-weight: 700;
  font-family: var(--sp-font-display);
  border: none;
  border-radius: var(--sp-radius-sm);
  padding: .7rem 1.4rem;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .2s ease, transform .2s ease;
}
.sp-btn-yellow:hover{
  background: var(--sp-yellow-dark);
  color: var(--sp-navy);
  transform: translateY(-2px);
}

.sp-btn-outline-light{
  background: transparent;
  color: var(--sp-white);
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: var(--sp-radius-sm);
  padding: .7rem 1.4rem;
  font-weight: 600;
  font-family: var(--sp-font-display);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: border-color .2s ease, background .2s ease;
}
.sp-btn-outline-light:hover{
  background: rgba(255,255,255,.1);
  color: var(--sp-white);
  border-color: var(--sp-white);
}

.sp-btn-lg{ font-size: 1rem; padding: .85rem 1.7rem; }
.sp-btn-sm{ font-size: .85rem; padding: .55rem 1.1rem; }

.sp-btn-nav{ padding: .6rem 1.3rem; }

/* ============ Botones flotantes ============ */
.sp-float-whatsapp{
  position: fixed;
  left: 22px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--sp-whatsapp);
  color: var(--sp-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  z-index: 1050;
  transition: transform .2s ease;
}
.sp-float-whatsapp:hover{ transform: scale(1.08); color: var(--sp-white); }

.sp-float-chat{
  position: fixed;
  right: 0;
  top: 130px;
  background: var(--sp-red);
  color: var(--sp-white);
  font-weight: 600;
  font-size: .85rem;
  padding: .6rem 1.1rem .6rem 1rem;
  border-radius: 999px 0 0 999px;
  display: flex;
  align-items: center;
  gap: .5rem;
  z-index: 1050;
  box-shadow: -4px 4px 14px rgba(0,0,0,.2);
  transition: padding-right .2s ease;
}
.sp-float-chat:hover{ color: var(--sp-white); padding-right: 1.4rem; }

/* ============ Navbar ============ */
.sp-navbar{
  background: var(--sp-navy);
  border-bottom: 3px solid var(--sp-yellow);
  padding: .6rem 0;
}

.sp-brand{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.sp-brand img{
  max-width: 200px;
}

@media(max-width: 764px){

.sp-brand img{
  max-width: 120px;
}

}


.sp-brand-eyebrow{
  font-family: var(--sp-font-display);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--sp-white);
  font-weight: 600;
}
.sp-brand-title{
  font-family: var(--sp-font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sp-white);
}
.sp-brand-accent{ color: var(--sp-yellow); }

/* ============ Hero ============ */
.sp-hero{
  position: relative;
  background:
    linear-gradient(90deg, rgba(6,12,24,.3) 0%, rgba(10,20,40,.65) 55%, rgba(10,20,40,.2) 100%),
    url('images/bg-hero-extintos.webp');
  background-position: center 80%;
  background-size: cover;

  padding: 6rem 0 5rem;
  color: var(--sp-white);
  overflow: hidden;
}
.sp-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(226,35,26,.18), transparent 40%);
  pointer-events: none;
}
.sp-hero-overlay{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background: var(--sp-yellow);
}

.sp-hero-copy{ position: relative; z-index: 2; }

.sp-hero-title{
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
}

.sp-hero-subtitle{
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.6rem;
}

.sp-hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.sp-hero-image-col{
  position: relative;
  z-index: 2;
}
.sp-hero-static-img{
  margin: 0 auto;
  filter: drop-shadow(0 25px 35px rgba(0,0,0,.45));
}

.sp-hero-badge{
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 150px;
  height: 150px;
  object-fit: contain;
  z-index: 3;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.35));
}

/* ============ Experiencia ============ */
.sp-experience-grid .sp-rounded-img{
  border-radius: var(--sp-radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.sp-experience-badge{
  background: linear-gradient(120deg, #1a1a1a 0%, #2b1206 100%);
  border: 2px solid var(--sp-yellow);
  border-radius: var(--sp-radius);
  height: 100%;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--sp-white);
}
.sp-experience-badge span{
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.sp-experience-badge strong{
  font-family: var(--sp-font-display);
  font-size: 1.5rem;
  color: var(--sp-yellow);
  letter-spacing: .04em;
}

.sp-dictamen{
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--sp-gray-light);
  border-radius: var(--sp-radius-sm);
  padding: 1rem 1.1rem;
  margin-top: 1.5rem;
}
.sp-dictamen-icon{
  flex: 0 0 auto;
  width: 80px;
  height: auto;
  border-radius: 50%;
 
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.sp-dictamen-text{ display: flex; flex-direction: column; gap: .1rem; }
.sp-dictamen-title{
  color: var(--sp-red);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
}
.sp-dictamen-text strong{
  font-size: .82rem;
  color: var(--sp-ink);
}
.sp-dictamen-text small{
  color: var(--sp-gray-mid);
  font-size: .7rem;
  line-height: 1.3;
  margin: .2rem 0;
}
.sp-dictamen-nom{
  color: var(--sp-red);
  font-weight: 800;
  font-size: .9rem;
}

/* ============ CTA catálogo ============ */
.sp-catalog-cta{
  background: var(--sp-navy);
  padding: 2.4rem 0;
}

/* ============ Servicios ============ */
.sp-services{
  background: var(--sp-yellow);
  padding: 3.5rem 0 4.5rem;
}

.sp-service-card{
  background: var(--sp-white);
  border-radius: var(--sp-radius);
  overflow: hidden;
  height: 100%;
  box-shadow: 0 12px 28px rgba(10,30,58,.08);
}
.sp-service-img{
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.sp-service-body{ padding: 1.5rem; }
.sp-service-body h3{
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.sp-service-lead{
  font-weight: 600;
  color: var(--sp-ink);
  font-size: .92rem;
  margin-bottom: .5rem;
}
.sp-service-desc{
  color: var(--sp-gray-mid);
  font-size: .88rem;
  margin-bottom: 1.2rem;
}

/* ============ Certificaciones ============ */
.sp-certifications{
  background: #222;
}
.sp-certifications .sp-h2{ color: var(--sp-white); }
.sp-certifications .sp-h2 .sp-text-yellow{ color: var(--sp-yellow); }
.sp-certifications .sp-subtitle{ color: rgba(255,255,255,.65); }

.sp-cert-img{
  border-radius: var(--sp-radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* Acordeón */
.sp-accordion .accordion-item{
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.sp-accordion .accordion-item:first-of-type,
.sp-accordion .accordion-item:last-of-type{
  border-radius: 0;
}
.sp-accordion .accordion-header{ margin: 0; }

.sp-accordion .accordion-button{
  background: transparent;
  color: var(--sp-white);
  font-family: var(--sp-font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  padding: 1.1rem 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0 !important;
}
.sp-accordion .accordion-button::after{
  display: none; /* quitamos la flecha por defecto de Bootstrap */
}
.sp-accordion .accordion-button:focus{
  box-shadow: none;
}
.sp-accordion .accordion-button:not(.collapsed){
  color: var(--sp-yellow);
}

.sp-accordion .accordion-button .sp-accordion-icon{
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--sp-yellow);
  color: var(--sp-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: background .2s ease, color .2s ease;
}
.sp-accordion .accordion-button .sp-accordion-icon::before{
  content: "+";
}
.sp-accordion .accordion-button:not(.collapsed) .sp-accordion-icon{
  background: var(--sp-yellow);
  color: var(--sp-navy);
}
.sp-accordion .accordion-button:not(.collapsed) .sp-accordion-icon::before{
  content: "\2013"; /* signo menos */
}

.sp-accordion .accordion-body{
  color: rgba(255,255,255,.7);
  font-size: .92rem;
  line-height: 1.7;
  padding: 0 0 1.3rem;
}
.sp-accordion .accordion-body ul{
  margin: .6rem 0 0;
  padding-left: 1.1rem;
}
.sp-accordion .accordion-body ul li{
  margin-bottom: .3rem;
}

@media (max-width: 991.98px){
  .sp-cert-img{ aspect-ratio: 4/3; margin-bottom: .5rem; }
}

/* ============ Banner Evita Riesgos ============ */
.sp-risk-banner{
  background: var(--sp-navy);
  border-radius: var(--sp-radius);
  overflow: hidden;
}
.sp-risk-copy{
  padding: 3rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
}
.sp-risk-copy h2{
  color: var(--sp-white);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.25;
}
.sp-risk-copy .sp-btn-yellow{ align-self: flex-start; }
.sp-risk-img{
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

/* ============ Clientes / Swiper marquee ============ */
.sp-clients{ padding-bottom: 3rem; }
.sp-clients-swiper-wrap{
  margin-top: 2.5rem;
  padding: 0 0;
}
.sp-clients-swiper{
  width: 100%;
  overflow: hidden;
}
.sp-clients-swiper .swiper-wrapper{
  transition-timing-function: linear !important;
}
.sp-clients-swiper .swiper-slide{
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-clients-swiper .swiper-slide img{
  height: 56px;
  width: auto;
  filter: grayscale(15%);
  opacity: .9;
}

/* ============ Contacto ============ */
.sp-contact-list{
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.sp-contact-list li{
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.sp-contact-list i{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sp-gray-light);
  color: var(--sp-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex: 0 0 auto;
}
.sp-contact-list span{
  display: block;
  font-weight: 700;
  font-size: .82rem;
  color: var(--sp-gray-mid);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.sp-contact-list a{
  color: var(--sp-ink);
  font-size: 1rem;
}
.sp-contact-img{
  border-radius: var(--sp-radius);
  width: 100%;
  object-fit: cover;
}

/* ============ Formulario ============ */
.sp-form-section{
  position: relative;
  padding: 5rem 0;
  background:
    url('images/bg-footer.webp') center/cover no-repeat;
}
.sp-form-card{
  background: var(--sp-white);
  border-radius: var(--sp-radius);
  padding: 2.6rem;
  box-shadow: 0 25px 45px rgba(0,0,0,.25);
}
.sp-form .form-label{
  font-weight: 600;
  font-size: .88rem;
  color: var(--sp-ink);
}
.sp-input{
  border-radius: var(--sp-radius-sm);
  border: 1.5px solid #e2e4e9;
  padding: .65rem .9rem;
  font-size: .95rem;
}
.sp-input:focus{
  border-color: var(--sp-yellow);
  box-shadow: 0 0 0 3px rgba(245,197,24,.25);
}
.sp-phone-code{ flex: 0 0 auto; }
.sp-form-note{
  margin-top: 1rem;
  text-align: center;
  font-size: .85rem;
  color: var(--sp-gray-mid);
}

/* ============ Footer ============ */
.sp-footer{
  background: var(--sp-navy);
  color: rgba(255,255,255,.85);
  padding-top: 3.5rem;
  position: relative;
}
.sp-footer h4{
  color: var(--sp-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.sp-footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.sp-footer-links a{
  color: var(--sp-yellow);
  font-size: .88rem;
}
.sp-footer-links a:hover{ color: var(--sp-white); }

.sp-footer-text{
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}

.sp-footer-contact{
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: .88rem;
}
.sp-footer-contact i{ width: 20px; color: var(--sp-yellow); }

.sp-footer-social{ display: flex; gap: .6rem; }
.sp-footer-social a{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--sp-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}
.sp-footer-social a:hover{ background: var(--sp-yellow); color: var(--sp-navy); }

.sp-footer-bottom{
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.1rem 0;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
}

.sp-scroll-top{
  position: absolute;
  right: 26px;
  top: -22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sp-yellow);
  color: var(--sp-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

/* ============ Responsive ============ */
@media (max-width: 991.98px){
  .sp-hero{ padding: 4rem 0 3rem; text-align: center; }
  .sp-hero-actions{ justify-content: center; }
  .sp-hero-image-col{ margin-top: 2.5rem; }
  .sp-risk-copy{ text-align: center; align-items: center; }
  .sp-risk-copy .sp-btn-yellow{ align-self: center; }
  .sp-float-chat{ top: auto; bottom: 24px; right: 22px; }

  .sp-hero-badge{
    position: static;
    display: block;
    width: 150px;
    height: 150px;
    margin: 2rem auto 0;
  }
}

@media (max-width: 575.98px){
  .sp-hero-title{ font-size: 1.9rem; }
  .sp-h2{ font-size: 1.6rem; }
  .sp-form-card{ padding: 1.6rem; }
}
