/**
 * Segunda Compañía de Bomberos de Monte Patria — "Bomba Del Reino de Bélgica"
 * Refinamientos de baja especificidad (:where) para Header (27) y Footer (39).
 * Todos los colores, tipografías y dimensiones base viven en controles nativos de Elementor.
 */

:where(.seg-shell-header, .seg-shell-footer) :where(a:any-link, button, [role="button"]):focus-visible {
  outline: 3px solid var(--e-global-color-ece45db, #fbcc05);
  outline-offset: 3px;
  border-radius: 6px;
}

:where(.seg-shell-header, .seg-shell-footer) :where(.e-con, .elementor-widget) {
  min-inline-size: 0;
}

:is(.seg-shell-header, .seg-shell-footer) :where(.elementor-widget-heading p, .elementor-widget-text-editor p) {
  margin-block: 0;
}

/* ==========================================================================
   1. HEADER INSTITUCIONAL — "BOMBA DEL REINO DE BÉLGICA" (Plantilla 27)
   ========================================================================== */
:where(.seg-shell-header) {
  position: relative;
  z-index: 50;
  box-shadow: 0 6px 24px rgba(1, 8, 46, 0.36);
}

/* Filete superior institucional en colores del escudo del Reino de Bélgica */
.seg-shell-header::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  block-size: 3px;
  background: linear-gradient(
    to right,
    #0b0f19 0% 33.33%,
    #fbcc05 33.33% 66.66%,
    #d91e2a 66.66% 100%
  );
  pointer-events: none;
}

:where(.seg-shell-header, .seg-shell-footer) :where(.seg-shell-logo img) {
  display: block;
  block-size: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.42));
}

:where(.seg-shell-brand) {
  text-decoration: none;
}

:where(.seg-shell-menu .elementor-nav-menu--main .elementor-item) {
  white-space: nowrap;
}

:where(.seg-shell-header .elementor-menu-toggle) {
  min-inline-size: 44px;
  min-block-size: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 204, 5, 0.38);
}

:where(.seg-shell-header .elementor-nav-menu--dropdown) {
  border-block-end: 3px solid var(--e-global-color-ece45db, #fbcc05);
  box-shadow: 0 18px 36px rgba(1, 8, 46, 0.55);
}

/* Botones tácticos compartidos en Header y Footer */
:where(.seg-shell-button .elementor-button) {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.75rem;
  transition:
    translate 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

:where(.seg-shell-button .elementor-button-content-wrapper) {
  align-items: center;
}

:where(.seg-shell-button .elementor-button-icon svg) {
  inline-size: 0.95em;
  block-size: 0.95em;
  fill: currentColor;
}

:where(.seg-shell-btn-emergency .elementor-button) {
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 6px 18px rgba(217, 30, 42, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.seg-shell-btn-emergency .elementor-button:hover:not(:disabled) {
  translate: 0 -2px;
  box-shadow: 0 10px 24px rgba(217, 30, 42, 0.56);
}

:where(.seg-shell-btn-gold .elementor-button) {
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.seg-shell-btn-gold .elementor-button:hover:not(:disabled) {
  translate: 0 -2px;
  box-shadow: 0 10px 22px rgba(251, 204, 5, 0.32);
}

/* ==========================================================================
   2. FOOTER INSTITUCIONAL — "BOMBA DEL REINO DE BÉLGICA" (Plantilla 39)
   ========================================================================== */
:where(.seg-shell-footer) {
  position: relative;
}

/* Acento bicolor oro/carmesí bajo los títulos de columna del Footer */
:where(.seg-shell-col-heading .elementor-heading-title) {
  position: relative;
  display: inline-block;
  padding-block-end: 0.5rem;
}

.seg-shell-col-heading .elementor-heading-title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  inline-size: 2.25rem;
  block-size: 3px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #fbcc05 0% 65%,
    #d91e2a 65% 100%
  );
}

.seg-shell-footer :where(.elementor-widget-text-editor p + p) {
  margin-block-start: 0.55rem;
}

:where(.seg-shell-motto strong) {
  color: #ffffff;
}

:where(.seg-shell-links a) {
  display: inline-flex;
  align-items: center;
  min-block-size: 1.85rem;
  text-decoration: none;
  transition: color 0.2s ease, translate 0.2s ease;
}

.seg-shell-links a:hover {
  translate: 3px 0;
}

:where(.seg-shell-contact .elementor-icon-list-item, .seg-shell-contact a) {
  overflow-wrap: anywhere;
}

:where(.seg-shell-contact .elementor-icon-list-icon svg) {
  inline-size: 1em;
  block-size: 1em;
  fill: currentColor;
}

:where(.seg-shell-social .elementor-social-icon) {
  min-inline-size: 40px;
  min-block-size: 40px;
  border: 1px solid rgba(251, 204, 5, 0.35);
  transition: background-color 0.2s ease, border-color 0.2s ease, translate 0.2s ease;
}

.seg-shell-social .elementor-social-icon:hover {
  border-color: #fbcc05;
  translate: 0 -2px;
}

:where(.seg-shell-bottom a) {
  text-decoration: none;
  font-weight: 500;
}

.seg-shell-bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive móvil para el Footer y el Header */
@media (max-width: 767px) {
  .seg-shell-col-heading .elementor-heading-title::after {
    inset-inline-start: 50%;
    translate: -50% 0;
  }

  :where(.seg-shell-footer-col) {
    padding-block-end: 1.5rem;
    border-block-end: 1px solid rgba(255, 255, 255, 0.12);
  }

  :where(.seg-shell-footer-col:last-child) {
    padding-block-end: 0;
    border-block-end: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.seg-shell-header, .seg-shell-footer) *,
  :where(.seg-shell-header, .seg-shell-footer) *::before,
  :where(.seg-shell-header, .seg-shell-footer) *::after {
    transition: none;
    animation: none;
    translate: none;
  }
}

@media (forced-colors: active) {
  :where(.seg-shell-header, .seg-shell-footer) :where(.elementor-button, .elementor-menu-toggle, .elementor-social-icon) {
    border: 2px solid ButtonText;
  }
}
