/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #e9eef4;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header, footer {
  background-color: #002147;
  color: white;
  padding: 15px;
  text-align: center;
}



form {
  background: white;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

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

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  background-color: #00509d;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #003f7f;
}

/* ===== estos son para los botones eliminar y etc ojo ===== */

/* Botones de acción con íconos pequeños */
/* Contenedor de botones de acción en fila */
.acciones-contenedor {
  display: flex;
  gap: 6px; /* Espacio entre botones */
  align-items: center;
  justify-content: center;
}

/* Estilo para que los formularios no se apilen ni rompan */
.acciones-contenedor form {
  margin: 0;
  padding: 0;
}

/* Estilo individual de los botones */
.btn-icon {
  background-color: #ffffff;
  color: white;
  border: none;
  font-size: 14px; /* más pequeño */
  padding: 4px 8px; /* más compacto */
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background-color: #003f7f;
}

.btn-icon.editar { background-color: #0d6efd; }
.btn-icon.eliminar { background-color: #dc3545; }
.btn-icon.historial { background-color: #198754; }


.btn-eliminar {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #dc3545; /* rojo Bootstrap */
  transition: transform 0.2s ease;
}

.btn-eliminar:hover {
  transform: scale(1.2);
  filter: brightness(120%);
}

.visita-item-flex {
  background: #f9f9f9;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  border-left: 4px solid #00509d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.visita-info {
  flex-grow: 1; /* Ocupar todo el espacio disponible */
  font-size: 14px;
  color: #333;
}

.visita-info .nombre {
  font-weight: bold;
  font-size: 15px;
  color: #003366;
  margin-bottom: 4px;
}

.visita-info .detalle {
  color: #555;
  font-size: 13px;
  line-height: 1.3;
}


.btn-icono-solo {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  width: auto;
  height: auto;
  display: inline-block;
}

.btn-icono-solo:hover {
  transform: scale(1.05);
  background: transparent; /* 🔒 evita color de fondo */
}


.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo img {
  max-width: 150px;
  height: auto;
}



/* ===== Tabs de detalle_apartamento.php ===== */
  .tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 2px solid #ccc;
    flex-wrap: wrap;
  }
  .tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-bottom: none;
    margin-right: 5px;
    background: #f1f1f1;
    border-radius: 6px 6px 0 0;
  }
  .tab.active {
    background: white;
    border-top: 3px solid #003366;
    font-weight: bold;
  }
  .tab-content {
    display: none;
    border: 1px solid #ccc;
    padding: 15px;
    background: white;
    border-radius: 0 0 6px 6px;
  }
  .tab-content.active {
    display: block;
  }

.menu-dropdown {
  background-color: #003366;
  font-family: 'Segoe UI', sans-serif;
}

.menu-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.menu-dropdown ul li {
  position: relative;
}

.menu-dropdown > ul > li {
  margin: 0;
}

.menu-dropdown > ul > li > a {
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  display: block;
  font-weight: bold;
  transition: background 0.3s ease;
}

.menu-dropdown > ul > li:hover > a {
  background-color: #00509d;
}

/* Submenú oculto por defecto */
.menu-dropdown .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #004080;
  min-width: 180px;
  z-index: 1000;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.menu-dropdown .submenu li a {
  color: #fff;
  padding: 12px 16px;
  display: block;
  text-decoration: none;
  font-weight: normal;
}

.menu-dropdown .submenu li a:hover {
  background-color: #0056b3;
}

.menu-dropdown li.dropdown:hover .submenu {
  display: block;
}

/* Alinear último elemento (cerrar sesión) a la derecha */
.menu-dropdown ul li:last-child {
  margin-left: auto;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  display: none;
  z-index: 999;
}
.overlay.visible {
  display: flex;
  justify-content: center;
  align-items: center;
}
.overlay-content {
  background: white;
  width: 90%;
  max-width: 900px;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}
.cerrar-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: #b00;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.apartamentos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.apartamento-bloque {
  background: #f0f0f0;
  padding: 15px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}
.apartamento-bloque:hover {
  background: #dceeff;
}

.dashboard-panels {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.panel {
  flex: 1;
  min-width: 280px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  max-height: 500px;
  overflow-y: auto;
}
.panel h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.visita-item {
  background: #f8f9fa;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border-left: 4px solid #00509d;
  font-size: 14px;
}




.novedad-secundaria {
  display: block; /* o quitar display:flex si lo tiene */
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  background-color: #fdfaf3;
  font-family: 'Segoe UI', sans-serif;
}



.novedad-secundaria strong {
  color: #181308;
  font-size: 15px;
}

.novedad-secundaria small {
  color: #888;
  font-size: 12px;
}

/* Esto es lo que evita que el botón se estire */
.icono-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  display: inline-flex; /* ⬅ importante */
  align-items: center;
  justify-content: center;
  width: auto; /* ⬅ evita que se expanda */
  height: auto;
  flex-shrink: 0;
}


.icono-toggle:hover {
  transform: scale(1.2);
  transition: transform 0.2s ease-in-out;
}

/* Contenedor general */
.container {
  max-width: 2000px;
  margin: 0 auto;
  padding: 20px;
}

/* Título */
h1 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 30px;
  color: #002147;
}

/* Cuadrícula de torres */
.torres-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

.torre-bloque {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.torre-bloque:hover {
  transform: scale(1.05);
}

/* Overlay de apartamentos */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  display: none;
  z-index: 999;
}

.overlay.visible {
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay-content {
  background: white;
  width: 90%;
  max-width: 1000px;
  padding: 30px;
  border-radius: 12px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.cerrar-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: #b00;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.apartamentos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.apartamento-bloque {
  background: #f1f1f1;
  padding: 20px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-width: 120px;
  text-align: center;
}

.apartamento-bloque:hover {
  background-color: #dceeff;
}

/* Paneles laterales */
.dashboard-panels {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.panel {
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-height: 520px;
  overflow-y: auto;
  transition: box-shadow 0.3s ease;
}

.panel:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}


.panel h3 {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 6px;
  border-bottom: 2px solid #00509d;
  display: flex;
  align-items: center;
  gap: 8px;

}


input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.visita-item, .novedad-item {
  padding: 12px;
  background: #f5f5f5;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 14px;
}

.visita-item a {
  color: #00509d;
  font-weight: bold;
  display: inline-block;
  margin-top: 5px;
}
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* centro más ancho */
  gap: 20px;
  margin-top: 30px;
  align-items: flex-start;
}

.dashboard-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.busqueda h3,
.panel-derecho h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.busqueda-panel {
  position: relative;
  overflow: hidden;
  min-height: 800px;
  padding-top: 0px;
}

.busqueda-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background-image: url('/img/logo.png');
  background-repeat: no-repeat;
  background-position: center 250px;
  background-size: 70%;
  opacity: 0.50; /* <- Aquí controlas la transparencia */
  z-index: 0;
}

.busqueda-panel > * {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.88);
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 6px;
}




/* Estilo de campos de búsqueda */
.campo-grande {
  font-size: 20px;
  padding: 12px;
  margin-bottom: 15px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #bbb;
}

/* Buscador y resultados más compactos */
.resultado-grande {
  font-size: 18px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
   margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ccc;
}

.resultado-grande img {
  width: 160px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.resultado-grande .datos-texto {
  margin-top: 10px;
  width: 100%;
  max-width: 260px;
}

/* Panel general de novedades y visitas */
.panel {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  max-height: 400px;
  overflow-y: auto;
}

.panel h3 {
  font-size: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 6px;
}

.datos-texto strong {
  display: inline-block;
  min-width: 100px;
  font-weight: bold;
  color: #2c2b2b;
}

/* Torres con hasta 4 por fila */
.torres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-items: center;
}

.torre-bloque {
  width: 130px;
  height: 130px;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.torre-bloque:hover {
  transform: scale(1.05);
}
.torres-centro {
  max-width: 650px;
  margin: 0 auto;
}
.lista-vehiculos {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.vehiculo-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #f4f7fb;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}

.vehiculo-item:hover {
  background: #e3eef9;
}

.foto-mini img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 15px;
  border: 2px solid #ccc;
}

.datos-mini {
  font-size: 16px;
  line-height: 1.4;
}

.datos-mini button {
  margin-top: 6px;
  background-color: #00509d;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.datos-mini button:hover {
  background-color: #003f7f;
}

.apartamentos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-items: center;
  margin-bottom: 40px;
}

.apartamentos-grid .torre-bloque {
  width: 130px;
  height: 130px;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.apartamentos-grid .torre-bloque:hover {
  transform: scale(1.05);
}



.panel.panel-formulario {
  max-height: none !important;
  overflow-y: visible !important;
}
.torre-bloque.seleccionado {
  border: 4px solid #000;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transform: scale(1.05);
}
.select-estilo {
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.card-tabla {
  background-color: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 20px;
}



.tabla-estilizada {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.tabla-estilizada td,
.tabla-estilizada th {
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  vertical-align: middle;

  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.tabla-estilizada th {
  background-color: #003366;
  color: white;
}
.tabla-estilizada tr:hover {
  background-color: #f0f8ff;
}

.tabla-estilizada-container {
  overflow-x: auto;
}
.btn-accion {
  padding: 6px 10px;
  background-color: #005cbf;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  margin-right: 5px;
  font-size: 14px;
}
.btn-accion:hover {
  background-color: #004799;
}


.estado-entregado {
  color: green;
  font-weight: bold;
}

.estado-pendiente {
  color: red;
  font-weight: bold;
}


.icono-entregar {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  display: inline-block;
}

/* Icono como contenido */
.icono-entregar::before {
  content: "📦";
  font-size: 24px;
}

/* Efecto al pasar el mouse */
.icono-entregar:hover::before {
  transform: scale(1.2);
  transition: transform 0.2s ease-in-out;
}



.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.checkbox-container input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: #003366; /* Azul oscuro corporativo */
  cursor: pointer;
}

.checkbox-container label {
  font-weight: bold;
  font-size: 1rem;
}

.paginacion {
  margin-top: 15px;
  text-align: center;
}
.paginacion a {
  margin: 0 5px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
}
.pagina-activa {
  background-color: #007bff;
  color: white !important;
  border-color: #007bff;
}


.dashboard-info {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.info-card {
  flex: 1 1 40%;
  background-color: #f0f4f8;
  border-left: 5px solid #28a745;
  border-radius: 6px;
  padding: 12px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  min-width: 150px;
}

.info-card.azul {
  border-left-color: #007bff;
}

.info-card h4 {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.info-card .valor {
  font-size: 1.6rem;
  font-weight: bold;
  margin-top: 8px;
  color: #000;
}

.visita-item-flex{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:10px;border-radius:12px;background:#11182710;margin-bottom:10px}
.visita-foto .foto-circulo{width:48px;height:48px;border-radius:50%;object-fit:cover;cursor:pointer;border:2px solid #ffffff}
.visita-info .nombre{font-weight:700}
.visita-info .detalle{font-size:12px;opacity:.85}
.visita-acciones{display:flex;gap:8px;align-items:center}
.btn-icono-solo{border:none;background:transparent;font-size:18px;cursor:pointer}


.actions{
  display:flex;
  gap:8px;
  justify-content:center;
}

/* Botón icono */
.icon-btn{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  cursor:pointer;
  font-size:18px;
  text-decoration:none;
  transition:all .15s ease;
}

/* Hover suave */
.icon-btn:hover{
  background:#f9fafb;
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(0,0,0,.08);
}

/* Variantes */
.icon-btn.edit{
  border-color:#bfdbfe;
}

.icon-btn.history{
  border-color:#bbf7d0;
}

.icon-btn.delete{
  border-color:#fecaca;
}


