/* ---- RESET Y BASE ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(24,194,241,0.16), transparent 26%),
    radial-gradient(circle at 86% 72%, rgba(239,49,70,0.14), transparent 26%),
    linear-gradient(180deg, #081633 0%, #0a1f4a 100%);
  color: #f7f8fb;
  letter-spacing: 0.01em;
  min-height: 100%;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}

/* ---- ANIMACIÓN ---- */
@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---- MENÚ SUPERIOR / NAV ---- */
.top-nav-bar-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0 26px 0;
}
.top-nav {
  background: rgba(13,33,79,0.9);
  border-radius: 999px;
  color: #fff;
  min-height: 54px;
  max-width: 880px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(6,18,46,0.38);
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
  overflow-x: auto;
}
.top-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0 12px;
  width: 100%;
}
.top-nav li {
  margin: 0;
}
.top-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 20px;
  transition: background 0.14s, color 0.13s, transform 0.14s;
  background: none;
}
.top-nav a.active,
.top-nav a:hover,
.top-nav a:focus {
  background: rgba(24, 194, 241, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}
.top-nav a i {
  font-size: 16px;
  min-width: 18px;
}
.menu-underline {
  display: none;
}

.brand-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 2px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* Responsive nav */
@media (max-width: 700px) {
  .top-nav-bar-wrapper {
    width: 100vw;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
  }
  .top-nav {
    min-width: 550px;
    max-width: 99vw;
    width: max-content;
    font-size: 15.5px;
    border-radius: 14px;
    margin: 0 auto;
  }
  .top-nav ul {
    flex-wrap: nowrap;
    gap: 0;
    padding: 0 4px;
  }
  .top-nav a {
    min-width: 95px;
    padding: 8px 14px;
    font-size: 15.3px;
  }
}
@media (max-width: 400px) {
  .top-nav {
    min-width: 340px;
    font-size: 14px;
  }
  .top-nav a {
    min-width: 78px;
    font-size: 13.5px;
    padding: 7px 7px;
  }
}

/* ---- LOGO ---- */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0 18px 0;
  width: 100%;
}
.logo-fcee {
  max-width: 110px;
  width: 110px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(6,18,46,0.28);
}

/* ---- CONTENEDOR CENTRAL ---- */
.center-wrapper {
  /*display: flex;/* ---- para el ancho de la bsuqueda deshabilitar---- */
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  background: none;
  padding: 0;
  flex: 1 1 auto;
}
.center-wrapper.con-resultados {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* ---- TARJETA PRINCIPAL ---- */
.site-card-main {
  min-height: 78vh;
  width: 100%;
  max-width: 980px;
  background: rgba(255,255,255,0.98);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(6,18,46,0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px 4vw 0 4vw;
  margin: 4vh auto;
  box-sizing: border-box;
  transition: box-shadow .23s, transform .23s;
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  animation: cardFadeIn 1.05s cubic-bezier(0.19, 1, 0.22, 1) 0.18s forwards;
  overflow: visible;
}
@media (max-width: 700px) {
  .site-card-main {
    max-width: 99vw;
    padding: 12px 8px 0 8px;
    border-radius: 13px;
    margin: 1vh auto;
  }
}

/* ---- LOGIN SELECTOR ---- */
.login-selector {
  text-align: center;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}
.login-selector h2 {
  font-size: 1.22rem;
  font-weight: 700;
  color: #0d214f;
  margin-bottom: 28px;
  margin-top: 0;
  letter-spacing: 0.01em;
}

/* ---- TARJETAS DE INGRESO ---- */
.ingreso-cards {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 26px;
  flex-wrap: wrap;
}
.ingreso-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(6,18,46,0.12);
  display: flex;
  align-items: center;
  padding: 13px 11px;
  min-width: 185px;
  max-width: 225px;
  flex: 1 1 0;
  transition: box-shadow 0.15s, background 0.14s, color 0.12s, transform 0.15s;
  gap: 7px;
  position: relative;
}
.ingreso-card:hover {
  box-shadow: 0 18px 36px rgba(6,18,46,0.16);
  transform: translateY(-3px) scale(1.01);
}
@media (max-width: 700px) {
  .ingreso-card {
    max-width: 92vw;
    width: 92vw;
    margin: 0 auto;
    border-radius: 13px;
    padding: 13px 11px;
  }
}

/* ---- ICONOS EN TARJETAS ---- */
.icon-circle {
  min-width: 27px;
  min-height: 27px;
  border-radius: 50%;
  background: #eaf1fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #256fd7;
  margin-right: 7px;
}
.icon-circle.purple { background: #e9e8fd; }
.icon-circle.pink { background: #f2f4fc; }

/* ---- TEXTO EN TARJETAS ---- */
.ingreso-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
}
.ingreso-content h3 {
  margin: 0;
  font-size: 0.88rem;
  color: #22375a;
  font-weight: 700;
}
.ingreso-content p {
  margin: 1px 0 3px 0;
  font-size: 0.69rem;
  color: #4c607e;
  min-height: 14px;
  line-height: 1.15;
}

/* ---- BOTÓN ---- */
.login-btn-modern {
  padding: 8px 0;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #ef3146 0%, #ff5b6b 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.83rem;
  cursor: pointer;
  transition: background 0.13s, transform 0.11s;
  text-decoration: none;
  margin-top: 1px;
  box-shadow: 0 8px 18px rgba(239,49,70,0.25);
  min-width: 100px;
  text-align: center;
  display: inline-block;
}
.login-btn-modern:hover {
  background: linear-gradient(90deg, #d8293c 0%, #ff5b6b 100%);
  transform: translateY(-1px) scale(1.03);
}

/* ---- FOOTER ESTILIZADO ---- */
.footer {
  flex-shrink: 0;
  width: 100%;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(10, 26, 60, 0.95), rgba(8, 22, 51, 0.98));
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: auto;
  padding: 16px 0 12px;
}
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(24, 194, 241, 0.7), rgba(239, 49, 70, 0.45));
  width: 100%;
  margin-bottom: 16px;
  opacity: 0.8;
}
.footer-contenido {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(420px, 2fr);
  align-items: center;
  gap: 20px;
  padding: 0 16px 0;
}
.footer-contenido-grid {
  align-items: flex-start;
}
.footer-titulo {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.footer-visitas {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-weight: 700;
}
.footer-visitas strong {
  font-size: 1.05em;
}
.footer-logos-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}
.footer-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  min-width: 110px;
}
.footer-logo-link img {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}
.footer-logo-link span {
  font-size: 9px;
  line-height: 1.2;
}
.footer-col-izq {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 6px;
}
.footer-logo-marca {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-gitec-img {
  height: 30px;
  width: auto;
  display: block;
}
.footer-gitec-marca {
  font-weight: 700;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}
.footer-redes {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: flex-start;
}
.footer-redes a {
  color: #ffffff;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.12s;
}
.footer-redes a:hover {
  color: #18c2f1;
}
.footer-col-der {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 6px;
}
.footer-desarrollador {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.28;
}

/* ---- FOOTER RESPONSIVE ---- */
@media (max-width: 700px) {
  .footer-contenido {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: center;
  }
  .footer-col-izq,
  .footer-col-der {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .footer-logo-marca {
    justify-content: center;
  }
  .footer-redes {
    justify-content: center;
  }
  .footer-col-der {
    margin-top: 2px;
  }
  .footer-logos-row {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

/* ---- BUSCADOR (sin modificar) ---- */
.buscador-box {
  width: 100%;
  max-width: 600px;  /* Aumenta el ancho máximo */
  margin: 0 auto;
  transition: all 0.3s ease-in-out;
  display: flex;
}
.center-wrapper:not(.con-resultados) .buscador-box {
  width: 100%;
  max-width: 600px;  /* Aumenta el ancho máximo */
  margin: 0 auto;
  transition: all 0.3s ease-in-out;
  display: flex;
}

.form-buscador {
  display: flex;
  width: 100%;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(6,18,46,0.18);
  border: 1px solid rgba(13,33,79,0.1);
}
.form-buscador input[type="text"] {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 50px 0 0 50px;
  outline: none;
}
.form-buscador button {
  background-color: #ef3146;
  color: white;
  border: none;
  padding: 0 20px;
  font-size: 18px;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: background-color 0.3s;
}
.form-buscador button:hover {
  background-color: #d8293c;
}

/* ---- RESULTADOS DE LA TABLA (sin modificar) ---- */
.resultados {
  margin-top: 40px;
  width: 100%;
  max-width: 800px;
  text-align: left;
  color: #0d214f;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 6px;
  box-shadow: 0 16px 32px rgba(6, 18, 46, 0.18);
  margin-bottom: 28px;
}
.resultados h2 {
  color: #0d214f;
}
.resultados table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #ffffff;
}
.resultados th, .resultados td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
  color: #0d214f;
}
.resultados th {
  background-color: #f2f2f2;
  color: #0d214f;
}
.mensaje-no-resultados {
  margin-top: 30px;
  text-align: center;
}
.center-wrapper.con-resultados {
  display: flex;
}

.center-wrapper.sin-resultados {
  display: block; /* o lo que quieras */
}
/* ---- TARJETAS DE INGRESO (Modificación: aumentar tamaño) ---- */
.ingreso-card {
  background: #f7faff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(42,123,228,0.05);
  display: flex;
  align-items: center;
  padding: 13px 11px;
  min-width: 250px;    /* Valor aumentado de 185px a 250px */
  max-width: 300px;    /* Valor aumentado de 225px a 300px */
  flex: 1 1 0;
  transition: box-shadow 0.15s, background 0.14s, color 0.12s;
  gap: 7px;
  position: relative;
}
