/* =========================================================
   SERVICOM - Ajustes de la modernización (se aplican por partes)
   ========================================================= */

/* Parte 1: botones de la portada (ícono + título + descripción) */
#hero .sv-box {
  position: relative;
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.35);
}
#hero .sv-box img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
#hero .sv-box h3 {
  margin-top: 14px;
}
#hero .sv-box p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.5;
  margin: 10px 0 0;
}
#hero .sv-box:hover {
  border-color: #ffc451;
  background: rgba(0, 0, 0, 0.55);
}
#hero .sv-box:hover img {
  transform: translateY(-4px);
}
#hero .sv-box:hover h3 a {
  color: #ffc451;
}

/* Parte 2: botones de acción de la portada */
.sv-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}
.sv-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}
.sv-btn-yellow {
  background: #ffc451;
  color: #151515;
  border: 2px solid #ffc451;
}
.sv-btn-yellow:hover {
  background: transparent;
  color: #ffc451;
}
.sv-btn-line {
  border: 2px solid #fff;
  color: #fff;
}
.sv-btn-line:hover {
  border-color: #ffc451;
  color: #ffc451;
}

/* Parte 3: mapa de Contáctanos con la ubicación del visitante */
.sv-mapa {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.sv-mapa iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 300px;
}
.sv-mapa-nota {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #151515;
  color: #fff;
  font-size: 14px;
}
.sv-mapa-nota i {
  color: #ffc451;
}
.sv-mapa-nota button {
  margin-left: auto;
  background: #ffc451;
  color: #151515;
  border: 0;
  border-radius: 4px;
  padding: 6px 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.3s ease;
}
.sv-mapa-nota button:hover {
  background: #ffcd6b;
}

/* Campo trampa para robots del formulario */
.sv-oculto {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Parte 4: sección App SERVICOM */
.sv-app {
  background: #151515;
  color: #d9dbe0;
  padding: 80px 0;
}
.sv-app .section-title p { color: #fff; }
.sv-app .section-title h2 { color: #aaaaaa; }
.sv-app-lead {
  font-size: 18px;
  line-height: 1.7;
  color: #fff;
  margin-bottom: 28px;
}
.sv-app-funciones {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}
.sv-app-funciones li { display: flex; gap: 14px; align-items: flex-start; }
.sv-app-ico {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: #ffc451;
  color: #151515;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.sv-app-funciones h4 { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.sv-app-funciones p { font-size: 14px; margin: 0; color: #b9bcc3; }
.sv-app-descarga {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 34px;
}
.sv-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #151515;
  border-radius: 8px;
  padding: 10px 22px;
  transition: all 0.3s ease;
}
.sv-btn-play i { font-size: 28px; }
.sv-btn-play span { display: flex; flex-direction: column; line-height: 1.1; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 18px; }
.sv-btn-play small { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
.sv-btn-play:hover { background: #ffc451; color: #151515; transform: translateY(-2px); }
.sv-app-rating { display: flex; flex-direction: column; font-size: 13px; color: #b9bcc3; }
.sv-app-rating strong { font-size: 22px; color: #fff; font-family: "Poppins", sans-serif; }
.sv-app-rating strong i { color: #ffc451; font-size: 18px; }
.sv-app-qr { border-radius: 6px; background: #fff; padding: 4px; }
.sv-app-foto { max-height: 560px; border-radius: 16px; }

.sv-app-bloque { margin-top: 70px; }
.sv-app-h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 26px;
}
.sv-app-h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #ffc451;
  margin-top: 10px;
}
.text-center .sv-app-h3::after { margin-left: auto; margin-right: auto; }
.sv-paso {
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 26px 22px;
  transition: all 0.3s ease;
}
.sv-paso:hover { border-color: #ffc451; transform: translateY(-4px); }
.sv-paso-num {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffc451;
  color: #151515;
  align-items: center;
  justify-content: center;
  font: 700 18px "Poppins", sans-serif;
  margin-bottom: 14px;
}
.sv-paso h4 { color: #fff; font-size: 18px; font-weight: 700; }
.sv-paso p { font-size: 14px; margin: 0; color: #b9bcc3; }
.sv-app-pantallas { border-radius: 12px; }
.sv-app-pie { margin-top: 14px; font-size: 14px; color: #8f939c; }
.sv-ideal {
  height: 100%;
  background: #1f1f1f;
  border-top: 3px solid #ffc451;
  padding: 22px 18px;
}
.sv-ideal i { font-size: 28px; color: #ffc451; }
.sv-ideal h4 { font-size: 16px; font-weight: 700; color: #fff; margin: 10px 0 6px; }
.sv-ideal p { font-size: 13px; margin: 0; color: #b9bcc3; }
.sv-cobertura {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sv-cobertura li {
  background: #1f1f1f;
  padding: 14px 16px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #fff;
}
.sv-cobertura i { color: #ffc451; margin-right: 6px; }
.sv-app-mini { font-size: 14px; color: #8f939c; margin-top: 12px; }
.sv-app-nota {
  margin: 60px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #8f939c;
}
.sv-app-nota i { color: #ffc451; margin-right: 4px; }
@media (max-width: 767px) {
  .sv-app-funciones { grid-template-columns: 1fr; }
  .sv-app { padding: 60px 0; }
}

/* Parte 5: slider de pantallas de la app */
.sv-app-slider {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 46px;
}
.sv-app-slider .swiper-slide {
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.45;
  transform: scale(0.88);
}
.sv-app-slider .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}
.sv-app-slider img {
  width: 100%;
  max-width: 210px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.sv-app-slider p {
  margin: 14px 0 0;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}
.sv-app-slider .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.4;
}
.sv-app-slider .swiper-pagination-bullet-active {
  background: #ffc451;
  opacity: 1;
}

/* Parte 6: página Fábrica de software (software.php) */
#hero.sv-sw-hero {
  height: auto;
  min-height: 70vh;
  padding: 150px 0 90px;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("../img/hero-bg.jpg") center center / cover;
}
#hero.sv-sw-hero h1 {
  font-size: 46px;
  line-height: 1.2;
}
#hero.sv-sw-hero h2 {
  font-size: 19px;
  line-height: 1.6;
  margin-top: 18px;
}
.sv-sw-eyebrow {
  color: #ffc451;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}
.services .sv-sw-box .icon i {
  font-size: 30px;
  color: #151515;
}
.services .sv-sw-box h4 {
  font-weight: 700;
  font-size: 20px;
}
.services .sv-sw-box p {
  font-size: 14px;
}
.sv-sw-proceso {
  background: #151515;
  padding: 80px 0;
}
.sv-sw-proceso .section-title p {
  color: #fff;
}
.sv-sw-pasos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sv-sw-pasos li {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 26px 22px;
  transition: all 0.3s ease;
}
.sv-sw-pasos li:hover {
  border-color: #ffc451;
  transform: translateY(-4px);
}
.sv-sw-pasos h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.sv-sw-pasos p {
  color: #b9bcc3;
  font-size: 14px;
  margin: 0;
}
.sv-sw-proyecto {
  display: flex;
  gap: 22px;
  align-items: center;
  background: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  padding: 22px;
  height: 100%;
  border-bottom: 3px solid #ffc451;
}
.sv-sw-proyecto img {
  width: 120px;
  flex: none;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.sv-sw-proyecto h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0 8px;
}
.sv-sw-proyecto p {
  font-size: 14px;
  color: #555;
}
.sv-sw-proyecto a {
  font-weight: 600;
  color: #151515;
  border-bottom: 2px solid #ffc451;
}
.sv-sw-tag {
  display: inline-block;
  background: #151515;
  color: #ffc451;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
}
.sv-sw-mini {
  height: 100%;
  border: 1px solid #ececec;
  padding: 22px;
  transition: all 0.3s ease;
}
.sv-sw-mini:hover {
  border-color: #ffc451;
}
.sv-sw-mini i {
  font-size: 30px;
  color: #ffc451;
}
.sv-sw-mini h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 10px 0 6px;
}
.sv-sw-mini p {
  font-size: 14px;
  color: #555;
  margin: 0;
}
.sv-sw-tec {
  background: #f6f6f6;
  padding: 50px 0;
  text-align: center;
}
.sv-sw-tec h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
}
.sv-sw-tec ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.sv-sw-tec li {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 10px 18px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sv-sw-tec li i {
  font-size: 22px;
  color: #151515;
}
@media (max-width: 991px) {
  .sv-sw-pasos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .sv-sw-pasos { grid-template-columns: 1fr; }
  #hero.sv-sw-hero h1 { font-size: 32px; }
  .sv-sw-proyecto { flex-direction: column; text-align: center; }
}

/* Parte 7: página de registro (registro.php) */
#hero.sv-reg-hero {
  min-height: 0;
  padding: 140px 0 60px;
}
.sv-reg {
  padding: 60px 0 80px;
}
.sv-reg .container {
  max-width: 980px;
}
.sv-reg-paso {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 18px;
}
.sv-reg-paso:first-of-type {
  margin-top: 0;
}
.sv-reg-paso > span:first-child {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffc451;
  color: #151515;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  flex: none;
}
.sv-reg-tipos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sv-reg-tipo {
  cursor: pointer;
  margin: 0;
}
.sv-reg-tipo input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sv-reg-tipo-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  height: 100%;
  padding: 26px 18px;
  border: 2px solid #e3e3e3;
  background: #fff;
  transition: all 0.25s ease;
}
.sv-reg-tipo-in i {
  font-size: 40px;
  color: #151515;
}
.sv-reg-tipo-in strong {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
}
.sv-reg-tipo-in small {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}
.sv-reg-tipo:hover .sv-reg-tipo-in {
  border-color: #ffc451;
}
.sv-reg-tipo input:checked + .sv-reg-tipo-in {
  border-color: #ffc451;
  background: #151515;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.sv-reg-tipo input:checked + .sv-reg-tipo-in i {
  color: #ffc451;
}
.sv-reg-tipo input:checked + .sv-reg-tipo-in small {
  color: #c9ccd2;
}
.sv-reg-tipo input:focus-visible + .sv-reg-tipo-in {
  outline: 3px solid #ffc451;
  outline-offset: 2px;
}
.sv-reg .form-label {
  font-weight: 600;
  font-size: 14px;
}
.sv-reg .form-control:focus,
.sv-reg .form-select:focus {
  border-color: #ffc451;
  box-shadow: 0 0 0 0.2rem rgba(255, 196, 81, 0.35);
}
.sv-reg .form-check-input:checked {
  background-color: #151515;
  border-color: #151515;
}
.sv-reg-ayuda {
  color: #888;
}
.sv-reg-legal {
  font-size: 13px;
  color: #555;
}
.sv-reg .sv-btn {
  cursor: pointer;
}
.sv-reg-ok {
  text-align: center;
  padding: 40px 20px;
}
.sv-reg-ok > i {
  font-size: 72px;
  color: #ffc451;
}
.sv-reg-ok h3 {
  font-weight: 700;
  margin: 10px 0;
}
.sv-reg-ok p {
  color: #555;
  max-width: 560px;
  margin: 0 auto;
}
.sv-btn-dark-line {
  border: 2px solid #151515;
  color: #151515;
}
.sv-btn-dark-line:hover {
  background: #151515;
  color: #fff;
}
@media (max-width: 767px) {
  .sv-reg-tipos { grid-template-columns: 1fr; }
}

/* Parte 8: página de Alarmas (alarmas.php) */
#hero.sv-al-hero {
  min-height: 0;
  padding: 140px 0 70px;
}
#hero.sv-al-hero h1 {
  font-size: 42px;
}
.sv-al-marco {
  display: inline-block;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  border: 6px solid #151515;
  box-shadow: 0 0 0 2px rgba(255, 196, 81, 0.6), 0 30px 60px rgba(0, 0, 0, 0.6);
  background: #000;
}
.sv-al-marco video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sv-al-slider-sec {
  padding: 70px 0;
}
.sv-al-slider {
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 50px;
}
.sv-al-slider img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}
.sv-al-caption {
  text-align: center;
  padding: 18px 10px 0;
}
.sv-al-caption h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.sv-al-caption p {
  color: #555;
  margin: 0 auto;
  max-width: 640px;
}
.sv-al-slider .swiper-button-prev,
.sv-al-slider .swiper-button-next {
  color: #ffc451;
  background: rgba(21, 21, 21, 0.85);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  top: 40%;
}
.sv-al-slider .swiper-button-prev::after,
.sv-al-slider .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}
.sv-al-slider .swiper-pagination-bullet-active {
  background: #ffc451;
}
.sv-al-video {
  background: #f6f6f6;
  padding: 70px 0;
}
.sv-al-video h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 18px;
}
.sv-al-lista {
  padding-left: 20px;
  margin-bottom: 24px;
}
.sv-al-lista li {
  margin-bottom: 10px;
  color: #444;
}
.sv-al-lista li::marker {
  color: #b8860b;
  font-weight: 700;
}
.sv-al-video .sv-btn-play {
  background: #151515;
  color: #fff;
}
.sv-al-video .sv-btn-play:hover {
  background: #ffc451;
  color: #151515;
}
.sv-al-player {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  background: #000;
}
.sv-al-player video {
  width: 100%;
  display: block;
  aspect-ratio: 640 / 352;
}
.sv-al-pasos {
  grid-template-columns: repeat(4, 1fr);
}
.sv-al-quien {
  display: block;
  width: 100%;
  color: inherit;
}
.services .sv-al-quien:hover h4,
.sv-al-quien:hover {
  color: inherit;
}
.sv-al-mas {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #151515;
  border-bottom: 2px solid #ffc451;
}
.sv-al-medios {
  background: #151515;
  padding: 70px 0;
}
.sv-al-medios .section-title p {
  color: #fff;
}
.sv-al-vertical {
  max-width: 300px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 196, 81, 0.5);
  background: #000;
}
.sv-al-vertical video {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.sv-al-vtitulo {
  text-align: center;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
}
.sv-al-vtitulo i {
  color: #ffc451;
}
.sv-al-nota {
  font-size: 13px;
  color: #777;
  padding: 24px 0;
  margin: 0;
}
.sv-al-nota i {
  color: #b8860b;
}
@media (max-width: 991px) {
  .sv-al-pasos { grid-template-columns: 1fr 1fr; }
  #hero.sv-al-hero h1 { font-size: 34px; }
}
@media (max-width: 575px) {
  .sv-al-pasos { grid-template-columns: 1fr; }
}

/* Parte 9: burbuja flotante de WhatsApp (todas las páginas) */
.sv-wa-burbuja {
  position: fixed;
  right: 15px;
  bottom: 70px;
  z-index: 998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
  animation: sv-wa-pulso 2.5s infinite;
}
.sv-wa-burbuja:hover {
  color: #fff;
  transform: scale(1.08);
}
.sv-wa-texto {
  position: absolute;
  right: 66px;
  white-space: nowrap;
  background: #fff;
  color: #151515;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.25s ease;
  pointer-events: none;
}
.sv-wa-burbuja:hover .sv-wa-texto,
.sv-wa-burbuja:focus-visible .sv-wa-texto {
  opacity: 1;
  transform: none;
}
@keyframes sv-wa-pulso {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 6px 18px rgba(0, 0, 0, 0.3); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 6px 18px rgba(0, 0, 0, 0.3); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 6px 18px rgba(0, 0, 0, 0.3); }
}
@media (prefers-reduced-motion: reduce) {
  .sv-wa-burbuja { animation: none; }
}
