
.app-container {
  min-height: 100vh;
  background-color: #000000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
}

body {
  margin: 0;
  padding: 0;
  background-color: #000000;
  color: #fff;
}

.main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #000000;
}

/* Personalizar la barra de desplazamiento */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000000;
  padding: 12px 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
  opacity: 1;
  transform: translateY(-2px);
}

.nav-item svg {
  font-size: 24px;
  margin-bottom: 4px;
}

.nav-item span {
  font-size: 12px;
  font-weight: 500;
}

/* Estilos para las páginas */
.page-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.page-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}

.page-title {
  color: #fff;
  font-size: clamp(1.8em, 8vw, 2.4em);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0;
  padding: 0 16px;
  text-align: center;
  word-break: break-word;
  white-space: nowrap;
}

/* Estilos para los componentes */
.component-container {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.component-title {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #888;
  text-decoration: none;
  font-size: 0.75rem;
  padding: 6px 8px;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.navbar a:hover, .navbar a.active {
  background: #fffde7;
  color: #ff9800;
}

/* Estilos para la barra de navegación */
.navbar {
  margin-top: 0; /* Eliminado el margen superior para subir la barra */
  height: 56px;
  background-color: #000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-bottom: 1px solid #222;
}

/* Asegura que el contenido no quede debajo del navbar */
.app-container {
  padding-top: 56px; /* altura total del navbar */
}

.main-content {
  max-width: 98vw;
  width: 100%;
  margin: 1.5em auto 0 auto;
  background: #232526;
  padding: 1.2em 0.7em 2.2em 0.7em;
  border-radius: 18px;
  box-shadow: 0 2px 18px 1px rgba(255,179,0,0.16), 0 1.5px 8px 0 rgba(0,0,0,0.28);
  min-height: 70vh;
}

/* Tarjetas generales */
.card, .bitacora-card, .faq-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(255,179,0,0.10), 0 1.5px 6px 0 rgba(0,0,0,0.04);
  padding: 1.3em 1em;
  margin-bottom: 1.5em;
  transition: box-shadow 0.2s;
}
.card:hover, .bitacora-card:hover, .faq-card:hover {
  box-shadow: 0 4px 18px 2px rgba(255,179,0,0.16), 0 2px 8px 0 rgba(0,0,0,0.06);
}

/* Inputs y botones modernos */
input, textarea, select {
  font-family: inherit;
  font-size: 1.07em;
  border-radius: 12px;
  border: 1.5px solid #ffe082;
  padding: 0.85em 1em;
  margin-bottom: 0.7em;
  background: #fffefa;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #ffb300;
  box-shadow: 0 0 0 2px #ffe082;
}
button {
  font-family: inherit;
  font-size: 1.07em;
  border-radius: 14px;
  border: none;
  padding: 0.9em 1.5em;
  background: linear-gradient(90deg,#ffb300 0%,#ff9800 100%);
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 8px 0 rgba(255,179,0,0.11);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.08s;
}
button:hover {
  background: linear-gradient(90deg,#ff9800 0%,#ffb300 100%);
  box-shadow: 0 4px 14px 1px rgba(255,179,0,0.14);
  transform: translateY(-2px) scale(1.03);
}

h1, h2, h3, h4 {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  color: #ff9800;
  margin-bottom: 0.5em;
}

/* Safe Area Support (para Android y iOS) */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
}

label {
  font-weight: 500;
  color: #ff9800;
  margin-bottom: 0.3em;
}

/* Bitácora imágenes */
img, .bitacora-img {
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(255,179,0,0.10);
}

.modelo-img {
  max-width: 240px;
  border-radius: 22px;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: 0 6px 32px 0 rgba(255, 200, 50, 0.13), 0 2px 20px 0 rgba(0,0,0,0.19);
  animation: modeloFadePop 0.55s cubic-bezier(.25,1.5,.4,1), modeloGlow 2.5s ease-in-out infinite alternate;
  transition: box-shadow 0.25s;
  display: block;
}
@keyframes modeloFadePop {
  0% { opacity: 0; transform: scale(0.92); }
  60% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes modeloGlow {
  0% { box-shadow: 0 6px 32px 0 rgba(255, 200, 50, 0.13), 0 2px 20px 0 rgba(0,0,0,0.19); }
  100% { box-shadow: 0 6px 44px 6px rgba(255, 220, 90, 0.19), 0 2px 24px 0 rgba(0,0,0,0.23); }
}


/* Responsive */
/* Estilos para BottomNav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1e1e1e;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 4px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.bottom-nav::-webkit-scrollbar {
  display: none;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.65rem;
  padding: 4px 6px;
  min-width: 50px;
  transition: all 0.2s ease-in-out;
  flex-shrink: 0;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus {
  color: #ffb300;
  transform: translateY(-2px);
}

.bottom-nav-item.active {
  color: #ffb300;
  background: rgba(255, 179, 0, 0.1);
  border-radius: 8px;
}

.bottom-nav-icon {
  font-size: 1.4rem;
  margin-bottom: 2px;
  transition: transform 0.2s ease-in-out;
}

.bottom-nav-item:hover .bottom-nav-icon,
.bottom-nav-item.active .bottom-nav-icon {
  transform: scale(1.05);
}

.bottom-nav-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  text-align: center;
}

/* Asegurar que el contenido principal no se oculte detrás del BottomNav */
.main-content {
  padding-bottom: 60px;
}

@media (max-width: 700px) {
  .main-content {
    max-width: 100vw;
    padding: 0.7em 0.2em 1.5em 0.2em;
    border-radius: 0;
    margin: 0;
    min-height: 90vh;
    width: 100%;
    box-sizing: border-box;
  }
  .navbar {
    flex-wrap: wrap;
    gap: 0.3em;
    font-size: 1em;
    border-radius: 0 0 18px 18px;
    padding: 0.18em 0.5em 0.18em 0.5em;
  }
  .navbar a {
    padding: 0.25em 0.7em;
    font-size: 0.98em;
  }
  h1, h2, h3, h4 {
    font-size: 1.08em;
  }
  input, textarea, select, button {
    font-size: 1em;
    padding: 0.75em 0.8em;
  }
}










::-webkit-scrollbar {
  width: 8px;
  background: #fffbe6;
}
::-webkit-scrollbar-thumb {
  background: #ffe082;
  border-radius: 8px;
}
/* Estilos de reinicio y base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Configuración de desplazamiento suave */
html {
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

/* Estilos base del cuerpo */
body, #root {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #000000;
  color: #ffffff;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

/* Mejorar la experiencia táctil en dispositivos móviles */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

*:focus {
  outline: none;
}

/* Asegurar que los elementos de formulario hereden la fuente */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
}

/* Estilos para la barra de navegación */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-top: env(safe-area-inset-top);
  height: calc(56px + env(safe-area-inset-top));
  background-color: #1a1a1a;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid #333;
  overflow: hidden;
  /* Asegurar que el color de fondo cubra el área segura */
  background-clip: padding-box;
}

.nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 56px;
  padding: 0 4px;
  width: 100%;
  box-sizing: border-box;
  margin-top: calc(-1 * env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ccc;
  text-decoration: none;
  padding: 4px 2px;
  margin: 0;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex: 1 1 auto;
  min-width: 0;
  height: 54px;
  font-size: 0.7rem;
  width: 100%;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-link.active {
  color: #ffb300;
  background-color: rgba(255, 179, 0, 0.1);
}

.nav-icon {
  font-size: 1.1rem;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.nav-link span {
  font-size: 0.6rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
  width: auto;
  text-align: center;
  padding: 0 2px;
  box-sizing: border-box;
  display: inline-block;
}

/* Ajustes para pantallas más pequeñas */
@media (max-width: 360px) {
  .nav-link {
    font-size: 0.6rem;
    padding: 2px 1px;
    flex: 0 1 auto;
  }
  
  .nav-icon {
    font-size: 1rem;
  }
  
  .nav-link span {
    font-size: 0.55rem;
  }
}

/* Mejorar la legibilidad del texto */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: 0.5em;
}

/* Estilos para enlaces */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Imágenes responsivas */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
