/* explore.css - AeroAlebrije Propuesta 3 Style */
body {
  background-image: url('/img/bg-explore.png');
  background-size: cover;
  background-attachment: fixed;
  background-color: #EEDDCC !important;
  color: #4A3C31 !important;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

.map-box {
  width: 80%; max-width: 850px;
  margin: 60px auto;
  background-color: #FDF5E6;
  filter: alpha(opacity=92); opacity: 0.92;
  padding: 50px;
  border: 4px double #8B4513;
  border-radius: 2px;
  box-shadow: 0px 10px 30px rgba(0,0,0,0.5);
  text-align: left;
}

.map-box h1 {
  font-size: 2.8em; color: #8B0000; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 5px; text-align: center;
}
.map-box h2 {
  font-size: 1.3em; color: #555; text-transform: uppercase; letter-spacing: 5px; margin-top: 0; margin-bottom: 30px; text-align: center; font-style: normal;
}
.map-box p {
  font-size: 1.15em; line-height: 1.8; text-align: justify; padding: 0 10px;
}

.quote {
  font-size: 1.5em !important; font-style: italic; text-align: center !important; margin: 30px 0; color: #5A0000;
}

.footer, .lang-switch {
  text-align: center;
  margin: 20px auto;
  padding: 15px;
  background-color: #FDF5E6; filter: alpha(opacity=90); opacity: 0.9;
  display: inline-block;
  border: 2px double #8B4513;
  border-radius: 5px;
}
.footer a, .lang-switch a {
  color: #8B0000;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
  font-size: 1.1em;
}
.footer a:hover, .lang-switch a:hover {
  text-decoration: underline;
  color: #B22222;
}
hr { display: none; }

/* ==========================================================
   Motor SPA y Controles Administrativos
   ========================================================== */

/* Barra Superior de Estado y Navegación Principal */
.topbar {
  background-color: #FDF5E6;
  color: #8B0000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 15px;
  border-bottom: 1px solid #8B0000;
  font-size: 0.85em;
}

.topbar-brand {
  font-weight: bold;
  letter-spacing: 1px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

/* Dropdown para Topbar User */
.dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.dropdown-label {
  font-weight: bold;
  opacity: 0.9;
}
.dropdown:hover .dropdown-label {
  opacity: 1;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #FDF5E6;
  min-width: 150px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
  border: 1px solid #8B0000;
  border-radius: 8px; /* Esquinas redondeadas según petición del usuario */
}
.dropdown-content a {
  color: #8B0000;
  padding: 8px 15px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover {
  background-color: #EEDDCC;
  color: #8B0000;
  text-decoration: none;
}
.dropdown:hover .dropdown-content {
  display: block;
}

/* Contenedor del espacio de trabajo dual */
.spa-layout {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 15px; /* Reducido según petición del usuario */
  /* Anulando las reducciones heredadas del login básico */
  width: 98% !important;
  max-width: 1400px !important;
  padding: 10px !important; /* Reducido según petición del usuario */
  margin: 10px auto !important;
  background: transparent;
}

.sidebar {
  flex: 0 0 240px;
  background-color: #FDF5E6; /* Fondo sólido Hueso */
  border: 1px solid #8B4513;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.main-content {
  flex: 1 1 auto;
  min-height: 500px;
  padding: 15px; /* Reducido según petición del usuario */
  background-color: #FDF5E6; /* Fondo sólido Hueso */
  border: 1px solid #8B4513;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: #333;
  margin-bottom: 40px;
}

/* Base UI Elements */
.btn-menu {
  background-color: transparent;
  color: #8B0000;
  border: 1px solid #8B4513;
  padding: 10px 15px;
  margin-bottom: 10px;
  font-family: inherit;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.btn-menu:hover, .btn-menu.active {
  background-color: #8B4513;
  color: #FDF5E6;
}

/* Tablas CRUD (AeroAlebrije) */
.aero-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: #fff;
  font-size: 0.95em;
}
.aero-table th, .aero-table td {
  border: 1px solid #8B4513;
  padding: 8px 12px;
  text-align: left;
}
.aero-table th {
  background-color: #8B0000;
  color: #FDF5E6;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 1px;
}

/* Formularios CRUD */
.aero-form {
  border: 1px solid #8B4513;
  padding: 20px;
  background: #EEDDCC;
  border-radius: 5px;
  max-width: 600px;
}
.aero-form label {
  display: block;
  font-weight: bold;
  margin-top: 12px;
  color: #555;
  font-size: 0.95em;
}
.aero-form input, .aero-form select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #8B4513;
  font-family: inherit;
  font-size: 1em;
  box-sizing: border-box;
}
.btn-action {
  background: #8B0000;
  color: #FDF5E6;
  border: 1px solid #5A0000;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1em;
}
.btn-action:hover {
  background: #5A0000;
}
.btn-secondary {
  background: #8B4513;
  border: 1px solid #555;
}
.btn-secondary:hover { background: #555; }
.btn-delete { background: #B22222; border: 1px solid #800000; color: white;}
.btn-delete:hover { background: #800000; }
