/* ==================== RESET Y BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.5;
}
.naosa-badge {
    display:inline-block;
    padding:4px 10px;
    border-radius:8px;
    font-size:13px;
    font-weight:600;
    min-width:90px;
    text-align:center;
}

.naosa-badge.success {
    background:#d1fae5;
    color:#065f46;
    border:1px solid #34d399;
}

.naosa-badge.warn {
    background:#fef3c7;
    color:#92400e;
    border:1px solid #fbbf24;
}

.naosa-badge.muted {
    background:#e5e7eb;
    color:#374151;
    border:1px solid #9ca3af;
}
/* ================================
   BOTONES PREMIUM NAOSA
================================ */

.naosa-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.naosa-btn,
.naosa-btn-sm,
.naosa-btn-danger,
.naosa-btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: 0.15s ease-in-out;
}

/* Tamaño pequeño uniforme */
.naosa-btn-sm {
  padding: 6px 12px !important;
  font-size: 13px !important;
}

/* Botón base (Detalles e Historial) */
.naosa-btn {
  background: #00609c;
  color: #fff;
}
.naosa-btn:hover {
  background: #004b70;
  filter: brightness(.95);
}

/* Asignar (Verde) */
.naosa-btn-success {
  background: #0a8754;
  color: #fff !important;
}
.naosa-btn-success:hover {
  background: #086c43;
  filter: brightness(.95);
}

/* Devolver (Rojo) */
.naosa-btn-danger {
  background: #d63c3c;
  color: #fff !important;
}
.naosa-btn-danger:hover {
  background: #b52b2b;
  filter: brightness(.95);
}

/* Asegurar que el form no rompa el layout */
.naosa-actions form {
  display: inline-flex !important;
  margin: 0;
  padding: 0;
}

/* Iconos */
.naosa-btn svg,
.naosa-btn-sm svg,
.naosa-btn-danger svg,
.naosa-btn-success svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}


/* ===== Botones NAOSA paginación ===== */

.btn-lite {
  padding: 8px 14px;
  background: #00609c;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
}

.btn-lite:hover:not(:disabled) {
  background: #004f7a;
}

.btn-lite:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-alt {
  background: #eaeaea;
  color: #333;
  border: 1px solid #ccc;
}

.btn-alt:hover:not(:disabled) {
  background: #d5d5d5;
}

/* ===== Botones numéricos ===== */

.page-num {
  padding: 6px 12px;
  background: #ffffff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
}

.page-num:hover:not(.active):not(.disabled) {
  background: #f1f1f1;
}

.page-num.active {
  background: #00609c;
  color: #fff;
  border-color: #00609c;
}

.page-num.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Contenedor general de la paginación */
.pager {
  width: 95%;
  margin: 15px auto;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

/* === Etiquetas base === */
label, .label {
  display: block;
  position: static;
  float: none;
  margin: 0 0 4px 0;
  padding: 0;
  color: #333;
  font-weight: 600;
}
.label-inline {
  display: inline-block;
  margin-left: 8px;
  font-weight: 600;
}

/* ==================== TOOLBAR FEED ==================== */
.feed_ticketsA_toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.feed_image_btn {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f9f9f9;
  color: #00609c;
  cursor: pointer;
  font-size: 14px;
}
.feed_image_btn:hover {
  background: #f1f1f1;
}
.feed_ticketsA_send {
  padding: 8px 16px;
  background: #00609c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.feed_ticketsA_send:hover {
  background: #004b70;
}
/* ==================== BOTÓN VOLVER ESTILO UNIVERSE ==================== */
.btn_back_naosa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 3em;
  width: 120px;
  margin: 20px;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  letter-spacing: 1px;
  font-weight: 600;
  color: #00609c;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 6px 6px 20px #d1d1d1, -6px -6px 20px #ffffff;
}

.btn_back_naosa > svg {
  fill: #00609c;
  transition: transform 0.3s ease;
}

.btn_back_naosa:hover > svg {
  transform: translateX(-5px);
}

.btn_back_naosa:hover {
  box-shadow: 9px 9px 33px #d1d1d1, -9px -9px 33px #ffffff;
  transform: translateY(-2px);
  background-color: #f8fbff;
}

/* ==================== OPCIONAL: VERSIÓN FLOTANTE ==================== */
.btn_back_naosa.fijo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  margin: 0;
}

/* Efecto glow azul NAOSA (solo si quieres que brille un poco) */
.btn_back_naosa.fijo:hover {
  box-shadow: 0 0 15px rgba(0, 96, 156, 0.5), 6px 6px 20px #d1d1d1, -6px -6px 20px #ffffff;
}


/* ==================== CARDS USUARIOS ==================== */
.cards_user {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  height: 100%;
  flex-direction: inherit;
}
.card_user {
  width: 28%;
  height: 30vh;
  margin: 30px;
}
.a_user {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 10;
  text-decoration: none;
}
.card_user-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.999s;
}
.card_user:hover .card_user-inner {
  transform: rotateY(180deg);
}
.card_user-front,
.card_user-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}
.card_user-front {
  background-color: white;
  color: #00609c;
  display: flex;
  align-items: center;
  border: 10px solid white;
  border-radius: 10px;
  justify-content: center;
  font-size: 24px;
  transform: rotateY(0deg);
}
.card_user-back {
  position: relative;
  background-color: #00609c;
  color: white;
  display: flex;
  align-items: center;
  border: 10px solid #00609c;
  border-radius: 10px;
  justify-content: center;
  font-size: 24px;
  transform: rotateY(180deg);
}

/* ==================== CARDS PORTALES (FLIP) ==================== */
.card_portales {
  width: 30%;
  height: 30vh;
  margin: 30px;
  perspective: 1000px;
}
.card_portales-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  transform: rotateY(0deg);
}
.card_portales:hover .card_portales-inner {
  transform: rotateY(180deg);
}
.card_portales-front,
.card_portales-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}
.card_portales-front {
  background-color: white;
  color: #00609c;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 10px solid white;
  font-size: 24px;
  transform: rotateY(0deg);
  z-index: 2;
}
.card_portales-front .front-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 0;
}
.card_portales-front > *:not(.front-bg) {
  position: relative;
  z-index: 1;
}
.card_portales-back {
  background-color: #00609c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 10px solid #00609c;
  font-size: 24px;
  transform: rotateY(180deg);
  z-index: 1;
}

/* ==================== LOADER ==================== */
#login-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}

#login-loader.active {
  opacity: 1;
  visibility: visible;
}

#login-loader img {
  width: 90px;
  height: auto;
  margin-bottom: 15px;
  animation: pulse 1.5s infinite;
  filter: drop-shadow(0 0 10px rgba(0,96,156,0.4));
}

#login-loader p {
  font-size: 1.1rem;
  color: #004b70;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: .8; }
}

/* ==================== TICKETS ==================== */
.admin_ticketsA {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: white;
  padding: 20px;
}
.header_ticketsA {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.header_logo_ticketsA {
  display: block;
  height: 80px;
}

/* --- Botón volver (genérico) --- */
.back_ticketsA {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px;
  text-decoration: none;
  background: #f2f2f2;
  padding: 8px 12px;
  border-radius: 6px;
  color: #333;
  border: 1px solid #e0e0e0;
}
.back_ticketsA:hover {
  background: #e9e9e9;
}

/* --- Título --- */
.title_ticketsA {
  text-align: center;
  color: #333;
  margin: 10px 0 20px;
  font-size: 22px;
  font-weight: 700;
}

/* --- Filtros --- */
.filter_form_ticketsA {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.filter_label_ticketsA {
  font-weight: 600;
}
.filter_select_ticketsA {
  padding: 6px 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}

/* --- Grid contenedor --- */
.cards_portales {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  height: 100%;
  flex-direction: inherit;
}

/* --- Link overlay --- */
.a_portales {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 10;
  text-decoration: none;
}

/* --- Hero --- */
.hero_TicketsA, .hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero_TicketsA {
  flex-direction: column;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero-content {
  position: relative;
  z-index: 1;
}

/* ==================== FORMULARIO NUEVO TICKET ==================== */
.page_wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsividad del contenedor principal */
@media (max-width: 900px) {
  .page_wrap {
    padding: 0.8rem;
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 600px) {
  .page_wrap {
    padding: 0.6rem;
    gap: 0.6rem;
  }
}
@media (max-width: 400px) {
  .page_wrap {
    padding: 0.4rem;
    gap: 0.4rem;
  }
}

/* === TARJETA DEL FORMULARIO === */
.new_ticket-card {
  width: 100%;
  max-width: 650px;
  margin: 2rem auto;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e3e3e3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: all 0.3s ease-in-out;
}
.new_ticket-form h2 {
  color: #00609c;
  text-align: center;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin-bottom: 1rem;
}
.org-badges {
  display: flex;
  gap: .5rem;
  margin: .5rem 0 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.new_ticket-inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.new_ticket-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.new_ticket-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  font-size: 1rem;
  color: #333;
  transition: all 0.2s ease;
}
.new_ticket-input:focus {
  outline: none;
  border-color: #00609c;
  box-shadow: 0 0 0 3px rgba(0, 96, 156, 0.15);
}
textarea.new_ticket-input {
  resize: vertical;
  min-height: 100px;
}
.new_ticket-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.new_ticket-btn-primary,
.new_ticket-btn-secondary {
  flex: 1;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  text-align: center;
  border: none;
}
.new_ticket-btn-primary {
  background: #00609c;
  color: #fff;
}
.new_ticket-btn-primary:hover {
  background: #004b70;
  transform: scale(1.02);
}
.new_ticket-btn-secondary {
  background: #f3f4f6;
  color: #333;
  border: 1px solid #e5e7eb;
}
.new_ticket-btn-secondary:hover {
  background: #e5e7eb;
  transform: scale(1.02);
}
@media (max-width: 900px) {
  .new_ticket-card {
    padding: 1.5rem;
    margin: 1rem;
  }
  .new_ticket-actions {
    flex-direction: column;
  }
  .new_ticket-btn-primary,
  .new_ticket-btn-secondary {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .new_ticket-card {
    padding: 1.2rem;
    border-radius: 10px;
  }
  .new_ticket-input {
    font-size: .95rem;
  }
}
@media (max-width: 400px) {
  .new_ticket-card {
    padding: .8rem;
    margin: .5rem;
  }
  .new_ticket-btn-primary,
  .new_ticket-btn-secondary {
    font-size: .9rem;
    padding: .7rem;
  }

}

/* ==================== FOOTER ==================== */
.footer {
  width: 100%;
  background-color: #00609c;
  color: #ecf0f1;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: space-between;
  margin: 0 auto;
  text-decoration: none;
}
.footer-section {
  flex: 1;
  min-width: 200px;
  text-decoration: none;
  margin: 20px;
  font-size: 0.9rem;
  letter-spacing: 2px;
 
}
.footer-section h4 {
  margin-bottom: .5rem;
  border-bottom: 2px solid #3498db;
  padding-bottom: .5rem;
  font-size: 1.0rem;
    text-decoration: none;
}

.footer a{
  text-decoration: none;

}
.footer-section p {
  font-size: .9rem;
  margin: .25rem 0;
    text-decoration: none;

}
.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;

  /* Tamaño y espacio */
  height: 6vh;
  padding: 10px 0;

  /* Tipografía elegante */
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* Colores */
  color: #ffffff;
  background: linear-gradient(
    90deg,
    rgba(0, 96, 156, 1) 0%,
    rgba(0, 135, 199, 1) 50%,
    rgba(0, 96, 156, 1) 100%
  );

  /* Línea inferior suave */
  border-bottom: 2px solid rgba(255,255,255,0.5);

  /* Sombras sutiles */
  text-shadow: 0px 2px 6px rgba(0,0,0,0.4);
}

.footer-section p {
  font-size: .9rem;
  margin: .35rem 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #eaeaea;
  white-space: nowrap; /* 🔥 evita que se corte y baje */
}

.footer-section p i {
  font-size: 0.95rem;
  color: #ffffff;
  opacity: 0.8;
}

.footer-section a {
  color: #ffffff;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-section a:hover {
  color: #bcdfff;
}



.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  font-size: .8rem;
  border-top: 1px solid #7f8c8d;
  padding-top: .5rem;
  color: #bdc3c7;
}

.footer-section p i {
  transition: 0.15s ease;
}

.footer-section p:hover i {
  transform: translateX(3px);
  opacity: 1;
}

.footer-section a {
  position: relative;
}

.footer-section a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: #fff;
  transition: width 0.2s ease;
}

.footer-section a:hover::after {
  width: 100%;
}


/* ==================== BREAKPOINTS ==================== */
@media (max-width: 768px) {
  .hero {
    padding: 1rem;
  }
  .cards_user {
    flex-direction: column;
  }
  .card_user {
    width: 80%;
    height: 30vh;
  }
  .cards_portales {
    flex-direction: column;
  }
  .card_portales {
    width: 80%;
    height: 30vh;
  }
}
