:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* General styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    font-family: serif;
}

h1 {
    text-align: left;
}

#footer-copyright {
    background-color: gray;
    color: white;
    font-size: small;
}

#logouti, #logini {
    /* color: white; */
    font-size: 15px;
    margin-left: 10px;
    margin-top: 10px;
}

#div-aceptar-cookies {
    background-color: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 1rem;
    text-align: center;
}

#div-aceptar-cookies p {
    margin-bottom: 0.5rem;
}

#div-content {
    flex: 1;
    padding: 2rem;
    background-color: #ffffff;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    overflow: auto;
    /* border-bottom-left-radius: 10px; */
}

#boton-aceptar-cookies {
    margin: auto;
    width: auto;
    padding-left: 3em;
    padding-right: 3em;
}

.bg-image {
    /* background-image: url("/public/static/images/andalucia3.png");
    height: 100vh; */
    background-color: snow;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

div.ancho-limitado {
    margin: auto;
    max-width: 600px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card styles */
.card {
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

/* Form styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button styles */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-borrar:hover{
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color:white
}

/* Alert styles */
.alert {
    margin-bottom: 1rem;
    border: none;
    border-radius: 0.5rem;
}

/* Footer styles */
footer {
    margin-top: auto;
    background-color: #212529;
    color: white;
    padding: 1rem 0;
}

/* ============ desktop view ============ */
@media all and (min-width: 992px) {
    .dropdown-menu li {
        position: relative;
    }
    .nav-item .submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: -7px;
    }
    .nav-item .submenu-left {
        right: 100%;
        left: auto;
    }
    .dropdown-menu > li:hover {
        background-color: #f1f1f1;
    }
    .dropdown-menu > li:hover > .submenu {
        display: block;
    }
}
/* ============ desktop view .end// ============ */

/* ============ small devices ============ */
@media (max-width: 991px) {
    .dropdown-menu .dropdown-menu {
        margin-left: 0.7rem;
        margin-right: 0.7rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    #div-content {
        padding: 1rem;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Utility classes */
.text-muted {
    color: var(--secondary-color) !important;
}

.shadow-hover {
    transition: box-shadow 0.3s ease-in-out;
}

.shadow-hover:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}