/* ============================================
   Portal de Seguros MX - Hoja de Estilos Extra
   Archivo complementario al index.html
   ============================================ */

/* Animaciones de entrada */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tab-panel.active {
  animation: fadeIn 0.25s ease-out;
}

/* Scroll suave global */
html {
  scroll-behavior: smooth;
}

/* Mejoras de impresión */
@media print {
  #tab-nav-wrapper, #sidebar, .ad-top, footer { display: none !important; }
  #main-wrapper { grid-template-columns: 1fr !important; }
  .content-card { box-shadow: none !important; border: 1px solid #ccc !important; }
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
  :root {
    --navy: #000066;
    --blue: #0000cc;
    --text: #000000;
  }
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto !important; }
}

/* Estilos adicionales para tablas en móvil */
@media (max-width: 600px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  th, td {
    min-width: 100px;
    font-size: 0.82rem;
    padding: 7px 10px;
  }
}

/* Estilos para el botón de scroll-to-top */
#scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--blue, #2563eb);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
  z-index: 500;
}
#scroll-top.visible { opacity: 1; }
#scroll-top:hover { background: #1d4ed8; }

/* Highlight en búsqueda */
mark {
  background: #fef08a;
  padding: 1px 3px;
  border-radius: 3px;
}
