/* =========================================================
   Tipografía y estilos base
   ========================================================= */
body,
html,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.xrm-attribute-value,
.xrm-attribute-value-encoded,
.btn,
.btn-primary,
.seprotec-footer__link {
  font-family: "Manrope", sans-serif !important;
  font-weight: 400;
}

.navbar-static-top.navbar .menu-bar > .navbar-nav > li > a {
  font-family: "Manrope", sans-serif !important;
  font-weight: 400;
}

html, body{
  width: 100%;
  overflow-x: hidden; /* evita desplazamientos/scroll */
}

body {
  background-color: transparent;
}

/* Ocultar secciones por id genérico */
[id="section_hide"] {
  display: none !important;
}

/* =========================================================
   CAPAS DE FONDO (ACTUALIZADO)
   ========================================================= */

/* Fondo base */
.page-background-blur{
  position: fixed;
  inset: 0;
  z-index: -2;              /* <-- debajo de todo */
  pointer-events: none;
  background-image: url('/background-image');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: none;
}

/* Overlay patrón (si el CSS carga tarde, el inline del header manda igual) */
.page-overlay-pattern{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;              /* <-- encima del fondo */
  pointer-events: none;
  overflow: hidden;
  opacity: 0.25;
}

.page-overlay-pattern svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;

  /* derecha -> izquierda */
  transform: scaleX(-1);
  transform-origin: center;
}

/* Asegura que contenido quede por encima */
.minimal-header{ position: relative; z-index: 1; }
main#mainContent,
.row.sectionBlockLayout{ position: relative; z-index: 1; }

/* =========================================================
   Header minimal + usuario
   ========================================================= */
.user-menu[hidden] {
  display: none !important;
}

.user-welcome {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 0.8rem;
  text-align: right;
  color: #002147;
  z-index: 50;
}

.user-trigger {
  background: transparent;
  border: none;
  padding: 0;
  margin-left: .35rem;
  cursor: pointer;
  font: inherit;
  color: #002147;
}

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .25rem);
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: .5rem;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.12);
  padding: .5rem;
  min-width: 180px;
}

.user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  font: inherit;
  padding: .5rem .75rem;
  cursor: pointer;
  color: #002147;
}

.user-menu button:hover,
.user-menu button:focus {
  background: rgba(0,0,0,.05);
  border-radius: .375rem;
}

/* Header minimal */
.minimal-header {
  width: 100%;
  padding: 0.75rem 0;
  background-color: transparent;
  padding-top: 2.5rem !important;
  position: relative;
  overflow: visible;
  text-align: center !important;
}

.minimal-header .skip-to-content a {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.minimal-header .skip-to-content a:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  text-decoration: none;
  border-radius: 0.5rem;
}

.minimal-header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Solo el logo tiene hover */
.minimal-header-link {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.minimal-header-link svg {
  display: block;
  transition: transform 0.3s ease;
}

.minimal-header-link:hover svg,
.minimal-header-link:focus svg {
  transform: scale(1.1);
}

/* Responsivo header */
@media (max-width: 767.98px) {
  .user-welcome {
    position: static;
    display: block;
    padding-right: .75rem;
    margin-top: .25rem;
    text-align: right;
  }

  .user-menu {
    right: .75rem;
  }

  .minimal-header {
    padding: 0.75rem 1rem;
    padding-bottom: 2rem !important;
  }

  .minimal-header-container {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .minimal-header {
    padding: 1rem 0;
  }

  .minimal-header-container {
    justify-content: center;
  }
}

/* =========================================================
   Modales
   ========================================================= */
.modal-backdrop,
.modal-backdrop.show,
.modal-backdrop.fade.show,
.modal-backdrop.in {
  background-color: transparent !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 100 !important;
}

.modal {
  z-index: 100 !important;
}

/* =========================================================
   Footer genérico
   ========================================================= */
.seprotec-footer {
  position: static;
  background-color: #00263e;
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  text-align: center;
}

.seprotec-footer.seprotec-footer--fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 100;
}

.seprotec-footer span,
.seprotec-footer small {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

.seprotec-footer strong {
  color: #ffffff;
}

/* =========================================================
   Enlaces tipo botón
   ========================================================= */
.btn-link {
  color: #002147 !important;
}

.btn-link:hover {
  color: #92DEFF !important;
  text-decoration: none;
}

/* =========================================================
   Icono usuario
   ========================================================= */
.custom-user-icon {
  display: inline-block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #002147;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.custom-user-icon svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

.dropdown-toggle .username,
.dropdown-toggle .caret {
  display: none !important;
}

a.nav-link.dropdown-toggle::after {
  display: none !important;
}

a.nav-link.dropdown-toggle,
a.nav-link.dropdown-toggle:hover,
a.nav-link.dropdown-toggle:focus,
a.nav-link.dropdown-toggle:focus-visible,
a.nav-link.dropdown-toggle:active,
a.nav-link.dropdown-toggle.show {
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

a.nav-link.dropdown-toggle:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

a.nav-link.dropdown-toggle::-moz-focus-inner {
  border: 0 !important;
}

/* =========================================================
   Botón volver (flecha)
   ========================================================= */
.back-button-header {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.back-button-header svg {
  width: 26px;
  height: 26px;
  stroke: #002147;
  transition: transform 0.2s ease;
}

.back-button-header:hover svg {
  transform: scale(1.15);
}

@media (max-width: 767px) {
  .back-button-header {
    top: 0.75rem;
    left: 0.75rem;
  }

  .back-button-header svg {
    width: 22px;
    height: 22px;
  }
}

.service-detail-wrapper .survey-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(16px, 4vh, 32px);
  margin-bottom: clamp(24px, 6vh, 48px);
  width: 100%;
}

.service-detail-wrapper .survey-btn {
  display: inline-block;
  padding: clamp(12px, 1.6vh, 16px) clamp(32px, 4vw, 40px);
  background-color: #002147;
  color: #ffffff;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: min(320px, 90vw);
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out, opacity 0.15s;
}

.service-detail-wrapper .survey-btn:hover,
.service-detail-wrapper .survey-btn:focus {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.service-detail-wrapper .survey-btn:disabled {
  background-color: #a7a7a7 !important;
  color: #eeeeee !important;
  cursor: not-allowed !important;
  opacity: 0.8;
  transform: none !important;
  box-shadow: none !important;
}