/* Fuentes */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700');

/* Estilos globales */
html, body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 1.5em;
}

.fixed-bottom-right {
    position: fixed;
    bottom: 2vw; /* Ajusta la distancia desde la parte inferior */
    right: 2vw; /* Ajusta la distancia desde la derecha */
    z-index: 9999;
    width: 10vw; /* Ajusta el ancho de la imagen */
    height: auto; /* Mantiene la proporción de aspecto */
}

.jello-vertical {
    animation: jello-vertical 0.9s infinite both;
}

@keyframes jello-vertical {
    0% {
        transform: scale3d(1, 1, 1);
    }
    30% {
        transform: scale3d(0.75, 1.25, 1);
    }
    40% {
        transform: scale3d(1.25, 0.75, 1);
    }
    50% {
        transform: scale3d(0.85, 1.15, 1);
    }
    65% {
        transform: scale3d(1.05, 0.95, 1);
    }
    75% {
        transform: scale3d(0.95, 1.05, 1);
    }
    100% {
        transform: scale3d(1, 1, 1);
    }
}

/* Cabecera */
header {
    background-color: #4CAF50;
    color: #fff;
    padding: 20px;
    margin-top: 0 !important;
}

.navbar-verde {
    background-color: #8BC34A;
}

.logo-header {
    height: 50px;
    width: auto;
    margin-right: 10px;
    transition: all 0.5s ease-in-out;
}

.logo-header:hover {
    border-radius: 50%;
    -webkit-border-radius: 50%;
    box-shadow: 0px 0px 15px 15px #ec731e;
    -webkit-box-shadow: 0px 0px 15px 15px #ec731e;
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
}

@keyframes logo-header-animation {
    0% {
        border-radius: 0;
        box-shadow: none;
        transform: rotate(0deg);
    }
    100% {
        border-radius: 50%;
        box-shadow: 0px 0px 15px 15px #ec731e;
        transform: rotate(360deg);
    }
}

.logo-header-animate {
    animation: logo-header-animation 1s ease-in-out;
}

.nav-item {
    display: inline-block;
    margin-right: 20px;
}

.nav-link {
    font-weight: bold;
    color: white;
}

.nav-link.active {
    color: #ffdd00;
}

.nav-link:not(.active) {
    opacity: 0.7;
}

.nav-link:hover {
    color: #ffdd00;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Pie de página */
footer {
    background-color: #4CAF50;
    color: #fff;
    padding: 20px;
    margin-top: auto;
}

/* Formularios */
form {
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="number"],
form select {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

form input[type="submit"] {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
}

.form-control {
    max-width: 400px;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
}

table thead th,
table tbody td {
    padding: 10px;
    text-align: left;
}

table thead th {
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

table tbody td {
    border-bottom: 1px solid #ddd;
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    min-width: 600px;
}

.table .lote-no-disponible {
    background-color: rgba(0, 128, 0, 0.3) !important;
}
.lote-casa {
    background-color: rgba(0, 128, 0, 0.3) !important; /* Verde semi-transparente */
}

.lote-terreno {
    background-color: rgba(139, 69, 19, 0.3) !important; /* Marrón claro semi-transparente */
}

.lote-construccion {
    background-color: rgba(255, 140, 0, 0.3) !important; /* Naranja semi-transparente */
}
@keyframes pulso-alquilado {
    0%, 100% {
        transform: scale(1);
        background-color: rgba(255, 165, 0, 0.7); /* Naranja más opaco */
    }
    50% {
        transform: scale(1.2);
        background-color: rgba(255, 69, 0, 0.9); /* Rojo-naranja casi opaco */
    }
}

.lote-alquilado {
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.bg-warning .bi-house-heart-fill {
    color: #000;
}

@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#contadorAlquilados.badge-update {
    animation: countPulse 0.5s ease-in-out;
}

.pulso-alquilado {
    animation: pulso-alquilado 2s infinite;
}

.pulso-alquilado .lote-contenido {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    line-height: 1.2;
    width: 100%;
}

.pulso-alquilado .lote-alq {
    display: block;
    margin-top: 5px;
    font-size: 0.8em;
}



/* Login */
.login-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border: 2px solid #4CAF50;
    border-radius: 15px;
    background: white;
}

.login-logo img {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

/* Botones */
.button {
    display: inline-block;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    text-decoration: none;
    margin-right: 10px;
}

.button:hover {
    background-color: #388E3C;
}

/* Listas */
.categories-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.categories-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #ccc;
}

/* Saldos */
.positive-balance {
    color: green;
}

.negative-balance {
    color: red;
}

/* Alturas fijas */
.fixed-height {
    height: 200px;
}

/* Botones de acción */
.btn-action {
    width: 90px;
}

/* Celdas */
.celda-vacia {
    background-color: transparent;
    color: transparent;
    border: 0px solid transparent;
}

.celda-numero {
    border: 1px solid black;
    min-width: 50px;
    max-width: 100px;
    word-wrap: break-word;
}

.texto-centrado {
    text-align: center;
    border: none;
    font-weight: bold;
}

.fila-texto {
    background-color: transparent;
}

/* Tarjetas */
.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #28a745;
    max-width: 100%;
    max-height: 500px;
    overflow: auto;
}

.card-img-custom {
    width: 50%;
    height: 150px;
    object-fit: cover;
    margin: auto;
    margin-top: 10px;
}

.card-custom {
    margin: 10px;
    padding: 10px;
}

.card-panel-control {
    width: 250px;
    height: auto;
    margin: 10px;
    position: relative;
}

.card-panel-control .card-title {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.card-panel-control:hover .card-title,
.card-panel-control.touch-active .card-title {
    opacity: 1;
}

.card-panel-control.touch-active .img-overlay {
    opacity: 1;
}

/* Superposición */
.overlay {
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.3s;
    cursor: pointer;
}

.overlay:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Efecto de hover en imágenes */
.img-hover-zoom {
    position: relative;
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform .5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
    opacity: 0.3;
}

.img-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-hover-zoom:hover .img-overlay {
    opacity: 1;
}

.img-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.img-overlay-content i {
    color: white;
    font-size: 24px;
}

.img-overlay-content h5 {
    color: white;
    font-size: 24px;
    margin: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
/* Colores */
.fondo-verde-suave {
    background-color: #e3f2fd;
}

.overdue {
    color: red;
    font-weight: bold;
}

.piscina {
    color: blue;
    font-size: smaller;
}

.reservorio {
    color: green;
    font-size: smaller;
}

/* Línea separadora */
.linea-separadora {
    border-top: 1px solid #ccc;
    width: 100%;
}

/* Campos de contraseña */
.input-group-password {
    display: flex;
    max-width: 400px;
    width: 100%;
}

.btn-outline-secondary {
    width: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.password-field-container {
    min-height: 48px;
}

.password-field-container .form-control {
    padding-right: 40px;
}

.password-field-container i.bi {
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
}

/* Autocompletado */
.ui-autocomplete {
    position: absolute;
    z-index: 1050;
    cursor: default;
    padding: 0;
    list-style: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.ui-autocomplete .ui-menu-item-wrapper {
    padding: 0.5rem 1rem;
    color: #212529;
    cursor: pointer;
}

.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

/* Empleados */
.empleado-card {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap;
}

.empleado-header {
    font-weight: bold;
    margin-bottom: 10px;
}

.empleado-content {
    display: flex;
    align-items: center;
}

.empleado-item {
    display: inline-block;
    vertical-align: top;
    margin-right: 20px;
    width: 200px;
}

.empleado-info {
    margin-bottom: 5px;
}

.empleado-arrow {
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
}

.empleado-edit {
    display: inline-block;
    vertical-align: middle;
}

/* Media Queries */
@media (max-width: 767.98px) {
    .login-container {
        margin-top: 0;
    }

    .col-md-6:not(:last-child) {
        margin-bottom: 15px;
    }

    .col-md-4.mb-4 {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-nav .nav-link {
        font-size: 14px;
    }

    .navbar-brand {
        font-size: 18px;
    }
}

