/**
 * Archivo: app.pantalla.ar/css/style.css
 * Propósito: Estilos generales para el panel de administración, tipografía y variables.
 */

:root {
  --primary-color: #ff0045; /* Identidad, CTA principal */
  --primary-color-hover: #ff6d94; /* Identidad, CTA principal */
  --secondary-color: #6c757d; /* Elementos de baja jerarquía */
  --success-color: #00c851; /* Éxito / Confirmación */
  --error-color: #dc3545; /* Error / Peligro */
  --warning-color: #ffc107; /* Advertencia / Precaución */
  --info-color: #17a2b8; /* Informativo / Enlaces secundarios */

  --background-light: #f4f7f9; /* Fondo de tema claro */
  --background-dark: #121923; /* Fondo de tema oscuro */ 


  --text-dark: #343a40; /* Texto principal sobre fondo claro */
  --text-light: #ffffff; /* Texto principal sobre fondo oscuro */
  --border-color: #dee2e6;
  --border-color-dark: #232c3a;

  --header-height: 60px;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Ubuntu", sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--background-dark);
  padding-top: var(--header-height);

  display: flex;
  justify-items: center;
  flex-direction: column;
}

h1,
h2,
h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

a {
  color: var(--primary-color); 
  text-decoration: none;
}

a:hover { 
  color: var(--primary-color-hover); 
  transition: background-color 0.5s, color 0.5s; 
}

/* Header & Navigation */
header {
  width: 100%;
  background-color: var(--background-dark);
  padding: 20px; 
  display: flex;
  align-items: center;
  flex-direction: column;
  position: fixed;
  top: 0; 
  z-index: 1000;
  box-shadow: -1px 20px 20px 14px #00000015;
}

header h1 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: lighter;
  color: var(--secondary-color);
}

header nav a {  
  color: var(--secondary-color);
  padding: 8px 12px;
  transition: color 0.2s;
}

header nav a:hover {
  color: var(--primary-color);
}

header nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

header nav li {
  display: inline-block;
  padding: 10px;
  margin-right: 5px;
}

.header-main-nav {
  width: 90%; 
  max-width: 1200px;
  border-bottom: 1px solid #ffffff21;

  display: flex;
  justify-items: center;
  justify-content: space-between;
}

/* Main Content Area */
main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  justify-items: center;
  align-items: center;
  flex-direction: column;
}

.card-icon {
  width: 50%;
}


/* Forms & Inputs */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

input[type="text"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-top: 5px;
  font-size: 1rem;
  background-color: #ffffff; /* Fondo blanco para mejor visibilidad */
}

textarea {
  resize: vertical;
}

/* Buttons */
.btn-guardar,
.login-btn,
.btn-galeria {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  transition: background-color 0.3s, opacity 0.3s;
  margin-top: 10px;
}

.btn-guardar:hover:not(:disabled),
.login-btn:hover:not(:disabled),
.btn-galeria:hover:not(:disabled) {
  background-color: var(--secondary-color);
}

.btn-guardar:disabled {
  background-color: var(--secondary-color);
  opacity: 0.6;
  cursor: not-allowed;
}

/* Messages */
.message-status {
  margin-top: 10px;
  padding: 8px;
  border-radius: 4px;
  font-weight: bold;
  display: none; /* Controlado por JS */
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.app-logo {
  height: 24px; 
  width: auto;
}

/* SECCIÓN: Cards Responsive con CSS Grid */
.access-cards {
  display: grid; 
  grid-template-columns: 1fr;
  gap: 25px;
  margin-top: 30px;
}

/* MEDIA QUERY: Tabletas y Escritorio */
@media (min-width: 768px) {
  .access-cards { 
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .access-cards { 
    grid-template-columns: repeat(3, 1fr);
  }
}

/* FOOTER: simple y discreto */
footer {
  text-align: center;
  padding: 15px;
  color: var(--secondary-color);
  font-size: 0.8rem;
  margin-top: 40px;
}

/* Estilos Responsivos (Móviles) */
@media (max-width: 768px) {
  body {
    padding-top: 0; 
  }
  header {
    position: static; 
    flex-direction: column;
    height: auto;
    padding: 10px 10px 5px 10px;
  }
  header h1 {
    margin-bottom: 10px;
    font-size: 1.3rem;
  }
  header nav {
    text-align: center;
    width: 100%; 
    display: flex;
    justify-content: flex-end;
  }
  header nav a {
    padding: 5px 6px;
    font-size: 0.9rem;
  }

  main {
    padding: 10px;
  }
}

/* ========================================= */
/* 8. Barra de Navegación Inferior */
/* ========================================= */

.bottom-nav-bar {
  position: fixed; /* CRÍTICO: Fija la posición */
  bottom: 0;
  left:0;
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 40px;
}


.bottom-nav-bar-content {
  width: 90%;
  z-index: 1000; 
  /* background-color: #1b2635;  */
  background-color: #111925c0; 
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.226); 
  padding: 10px 0px;
  border: 1px solid var(--border-color-dark);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.bottom-nav-bar ul {
  display: flex;
  justify-content: space-around; /* Distribuye los 5 botones equitativamente */
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 500px; /* Limita el ancho del menú en dispositivos muy anchos */
  margin: 0 auto;
}

/* Color por defecto (inactivo) */
.bottom-nav-bar .nav-item {
  color: var(--text-secondary); /* Este valor se hereda al SVG */
}

/* Color Activo */
.bottom-nav-bar .nav-item .active {
  color: var(--primary-color); /* ¡Este valor se hereda al SVG y lo cambia a rojo! */
}

/* Estilización del icono */
.bottom-nav-bar .nav-icon {
  width: 1.5rem; 
  height: 1.5rem;
  color: var(--text-light);
}



.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 10px 5px 10px;
  text-decoration: none;
  color: var(--text-secondary); /* Color inactivo */
  flex-grow: 1; /* Permite que el botón crezca para ocupar espacio */
  transition: color 0.2s;
}

.nav-item .icon {
  font-size: 1.5rem; 
}

.icon img {
  width: 50%; 
} 

.nav-item .label {
  font-size: 0.7rem; /* Texto pequeño y legible */
  font-weight: 500;
}

/* Estado Activo y Hover */
.nav-item:hover,
.nav-item.active {
  color: var(--primary-color); /* Color de Identidad */
}

.nav-item.nav-logout {
  color: var(--error-color); /* Resaltar el botón Salir */
}

/* ========================================= */
/* 8. Barra de navegacion inferior */
/* ========================================= */  
 
@media (min-width: 767px) { 
  .bottom-nav-bar-content {
      max-width: 30%; 
  }
} 