.header,
.page-header,
.global-menu,
.global-menu toolbar,
.header .page-header {
  background-color: #0B2850 !important;   /* azul corporativo */
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

/* Enlaces y botones del header */
.header a,
.page-header a,
.global-menu a,
.global-menu button,
.header .i-button {
  color: #ffffff !important;
  background: transparent !important;
}
.header a:hover,
.page-header a:hover,
.global-menu a:hover,
.global-menu button:hover {
  color: #FFD700 !important; /* dorado */
}

/* Iconos del header */
.header i,
.header svg,
.header .icon {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* Cambiar el logo del header */
#header-logo img,
.header-logo {
  content: url("/static/custom/files/Escudo.png?v=20") !important;
  height: 120px !important;
  width: auto !important;
  display: inline-block !important;
  filter: none !important;
  opacity: 1 !important;
}

/* ==== LOGIN AYUNTAMIENTO DE EL EJIDO ==== */

/* Fondo azul corporativo */
.login-page,
#login-page,
.auth-page {
  background-color: #0B2850 !important;
  color: #ffffff !important;
}

/* Contenedor del login */
.login-page .auth-container,
#login-page .auth-container {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4) !important;
  padding: 30px 40px !important;
  text-align: center !important;
}

/* Logo del login */
.login-page .brand img,
#login-page .brand img {
  content: url("/static/custom/files/Escudo.png?v=20") !important;
  display: block !important;
  margin: 0 auto 20px auto !important;
  height: 120px !important;
  width: auto !important;
  filter: none !important;
}

/* Textos del login */
.login-page h1, .login-page h2, .login-page h3,
#login-page h1, #login-page h2, #login-page h3 {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Campos del formulario */
.login-page input,
#login-page input {
  border-radius: 6px !important;
  border: 1px solid #ffffff !important;
  background-color: rgba(255,255,255,0.2) !important;
  color: #ffffff !important;
}

/* Placeholder */
.login-page input::placeholder {
  color: #e0e0e0 !important;
}

/* Botón de login */
.login-page button,
#login-page button {
  background-color: #ffffff !important;
  color: #0B2850 !important;
  font-weight: bold !important;
  border-radius: 6px !important;
  padding: 10px 20px !important;
  border: none !important;
  transition: 0.3s;
}
.login-page button:hover,
#login-page button:hover {
  background-color: #FFD700 !important;
  color: #0B2850 !important;
}

/* Enlaces */
.login-page a,
#login-page a {
  color: #ffffff !important;
  text-decoration: underline;
}
.login-page a:hover,
#login-page a:hover {
  color: #FFD700 !important;
}

/* Footer */
.login-page .footer,
#login-page .footer {
  color: #cccccc !important;
  font-size: 0.9em !important;
  margin-top: 20px !important;
}

/* ==== FOOTER - AYUNTAMIENTO DE EL EJIDO ==== */

/* Fondo y texto del footer */
#footer,
.footer,
.page-footer {
  background-color: #0B2850 !important;   /* azul corporativo */
  color: #ffffff !important;
  padding: 20px 0 !important;
  text-align: center !important;
  border-top: 2px solid #FFD700 !important; /* línea dorada superior */
}

/* Textos dentro del footer */
#footer p,
.footer p,
.page-footer p,
#footer a,
.footer a,
.page-footer a {
  color: #ffffff !important;
  font-size: 0.9em !important;
  margin: 0 !important;
  text-decoration: none !important;
}
#footer a:hover,
.footer a:hover,
.page-footer a:hover {
  color: #FFD700 !important;
  text-decoration: underline !important;
}

/* Logo dentro del footer (nuevo logo corporativo) */
#footer img,
.footer img,
.page-footer img {
  content: url("/static/custom/files/Escudo.png?v=20") !important;
  display: block !important;
  margin: 10px auto 5px auto !important;
  height: 60px !important;
  width: auto !important;
  filter: none !important;
  opacity: 1 !important;
}
/* ==== OCULTAR CRÉDITO "HECHO CON INDICO v3.3.8" ==== */
.f-self-no-shrink,
.f-self-no-shrink span,
.f-self-no-shrink a,
.f-self-no-shrink .version {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
/* ==== PANTALLA DE INICIO ==== */
.home-container {
  font-family: 'Open Sans', sans-serif;
  color: #ffffff;
  background-color: #0B2850; /* azul corporativo */
}

/* Hero principal */
.hero-section {
  text-align: center;
  padding: 100px 20px 60px 20px;
  background: linear-gradient(180deg, #0B2850 0%, #0D356A 100%);
  color: white;
}

.hero-logo {
  height: 140px;
  margin-bottom: 30px;
}

.hero-section h1 {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-section .subtitle {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #e0e0e0;
}

.hero-buttons a {
  margin: 0 10px;
  padding: 12px 28px !important;
  border-radius: 6px !important;
}

.hero-buttons .highlight {
  background-color: #FFD700 !important;
  color: #0B2850 !important;
  font-weight: bold;
}

.hero-buttons .highlight:hover {
  background-color: #fff !important;
}

.hero-buttons .secondary {
  background-color: transparent !important;
  border: 2px solid #FFD700 !important;
  color: #FFD700 !important;
}

.hero-buttons .secondary:hover {
  background-color: #FFD700 !important;
  color: #0B2850 !important;
}

/* Sección informativa */
.info-section {
  background-color: #ffffff;
  color: #0B2850;
  text-align: center;
  padding: 80px 30px;
}

.info-section h2 {
  font-size: 1.8em;
  margin-bottom: 50px;
  font-weight: 700;
}

.info-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.info-card {
  background: #f2f4f8;
  border-radius: 12px;
  padding: 30px;
  width: 280px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-card h3 {
  color: #0B2850;
  font-weight: 600;
  margin-bottom: 10px;
}

.info-card p {
  color: #333;
  font-size: 0.95em;
}

/* Footer */
.custom-footer {
  background-color: #0B2850;
  color: #ffffff;
  text-align: center;
  padding: 40px 20px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  height: 60px;
  margin-bottom: 15px;
}
/* ======== MENÚS Y TOOLTIPS ======== */

/* ==== Menú principal ==== */
#global-menu {
  background-color: #002c5f; /* Azul corporativo */
  color: #fff;
  font-weight: 500;
}

#global-menu li > a,
#global-menu li > button {
  background: transparent !important;
  color: #ffffff !important;
  padding: 0.7em 1.2em;
  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#global-menu li > a:hover,
#global-menu li > button:hover {
  background-color: #004b9b !important; /* Azul más claro al pasar el ratón */
  color: #fff !important;
}

/* ==== Submenú (dropdown) ==== */
#global-menu ind-menu > menu {
  background-color: #ffffff !important;
  color: #222 !important;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  padding: 0.3em 0;
  flex-direction: column;
  min-width: 220px;
  position: absolute;
  z-index: 9999;
}

/* ?? Solo visible cuando el menú está abierto */
ind-menu[open] > menu {
  display: flex !important;
}

/* ==== Enlaces del submenú ==== */
#global-menu ind-menu > menu a {
  color: #002c5f !important;
  background: transparent !important;
  padding: 0.5em 1em;
  display: block;
  text-decoration: none;
  transition: background 0.2s ease;
}

#global-menu ind-menu > menu a:hover {
  background-color: #e6f0ff !important; /* azul muy claro */
}

/* ==== Tooltips ==== */
/* Contenedor general del tooltip */
ind-with-tooltip {
  position: relative;
  display: inline-block;
}

/* Tooltip oculto por defecto */
ind-with-tooltip > div[data-tip-content] {
  display: none;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 100%;
  transform: translateX(10px);
  background-color: #ffffff; /* Fondo blanco corporativo */
  color: #002c5f; /* Azul texto corporativo */
  border: 1px solid #004b9b; /* Azul borde corporativo */
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 10px 14px;
  max-width: 280px;
  z-index: 9999;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

/* Mostrar tooltip cuando el contenedor está activo o en hover */
ind-with-tooltip:hover > div[data-tip-content],
ind-with-tooltip[open] > div[data-tip-content] {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Ajuste de los enlaces dentro del tooltip o contenedor */
ind-with-tooltip a {
  color: #004b9b;
  text-decoration: none;
  font-weight: 500;
}

ind-with-tooltip a:hover {
  color: #002c5f;
  text-decoration: underline;
}

/* Refuerzo por si Indico aplica estilos inline grises */
ind-with-tooltip > div[data-tip-content] {
  background-color: #ffffff !important;
  color: #002c5f !important;
}
ind-with-tooltip,
ind-with-toggletip {
  --tooltip-surface-color: #ffffff !important; /* fondo blanco */
  --tooltip-text-color: #002c5f !important;    /* texto azul corporativo */
  --tooltip-border-color: #004b9b !important;  /* opcional, si Indico lo usa */
}

/* Refuerzo para el contenido dentro del tooltip */
ind-with-tooltip > div[data-tip-content],
ind-with-toggletip > div[data-tip-content] {
  background-color: var(--tooltip-surface-color) !important;
  color: var(--tooltip-text-color) !important;
  border-color: var(--tooltip-border-color, #004b9b) !important;
}

/* ==== FIN DE ESTILOS DEL MENÚ ==== */