@import url('https://fonts.googleapis.com/css2?family=Titan+One&display=swap');

.titan-one-regular {
  font-family: "Titan One", sans-serif;
  font-weight: 400;
  font-style: normal;
}


* {
    font-family: Arial, sans-serif;
    font-size: medium;
}

h1, h2 {
    font-family: 'Titan One', sans-serif;
    color: #333366;
}


html, body {
    height: 100%;
} 

body {
    display: grid;
    grid-template-rows: 56px 1fr 100px;
} 

.background-image {
    background-image: url('/img/fondo-rompecabezas.jpg');
    background-position: center;
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    background-size: cover;
    width: 100%;
    height: 85vh;
    position: relative;
}

.background-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}

.background-image .content {
    position: relative;
    z-index: 2; 
}

.color-letras {
    color: #333366;
}

/* Footer Página principal */
footer {
    background-color: #5d5da7;
}

@media (max-width: 768px) {
    footer {
        flex-wrap: wrap;
        text-align: center;
    }

    footer > p {
        width: 100%; 
        text-align: center; 
    }

    footer > a {
        width: 100%; 
        justify-content: center; 
    }

    .footer-links {
        display: none; 
    }
}


/* Estilo para los botones */
.button-container button {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: none;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transform: translateY(-3px);
}

/* Botón celeste */
.celeste {
    background-color: #5d5da7;
    color: white;
    font-weight: 700;
    box-shadow: 0 5px 0 #333366; 
}

.celeste:hover {
    background-color: #5d5da7;
    transform: translateY(-4px);
    box-shadow: 0 5px 0 #333366; 
}

/* Botón blanco */
.blanco {
    background-color: #e4e4e4;
    font-weight: 700;
    color: #333366; 
    box-shadow: 0 5px 0 #5d5da7;
}

.blanco:hover {
    background-color: #dbdbdb;
    transform: translateY(-4px);
    box-shadow: 0 5px 0 #5d5da7;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; 
}

.feed {
    top: 73px; 
    z-index: 1050;
}

/* Barra de navegación horizontal */
.navbar-horizontal {
    height: 4.5rem;
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.1);
}

.navbar-horizontal.logged-in {
    display: none;
}

/* Barra de navegación vertical */
.navbar-vertical {
    height: 100%;
    width: calc(6.5%);
    min-width: 90px;
    background-color: #6a6aa76e;
    box-shadow: 3px 0px 5px rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar-vertical .nav-item {
    margin: 10px 0;
    width: 100%; 
    display: flex;
    justify-content: center;
}

.navbar-vertical .nav-link {
    font-size: 1.2rem;
    color: #333366;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.navbar-vertical .nav-link:hover {
    color: #f0f0f0; 
}

/* Barra de navegación mobile */
.navbar-mobile {
    display: none;
    background-color: #333366;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 10%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1050;
}

.navbar-mobile .nav-item {
    text-align: center;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-mobile .nav-link {
    color: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar-mobile .nav-link svg {
    width: 24px;
    height: 24px;
}

.bg-fondo {
    background-color: #333366;
}

/* Agenda */
/* Prioridad alta */
.bg-alta {
    border: solid 2px#CC3366;
    background-color: #CC3366;
}

.bg-alta .card-header{
    border-bottom: solid 2px#CC3366;
    background-color: transparent;
}

.bg-alta h2 {
    color: #CC3366;
}

/* Prioridad media */
.bg-media {
    border: solid 2px #FF9933;
    background-color: #FF9933;
}

.bg-media .card-header{
    border-bottom: solid 2px#FF9933;
    background-color: transparent;
}

.bg-media h2 {
    color: #FF9933;
}

/* Prioridad baja */
.bg-baja {
    border: solid 2px #6699CC;
    background-color: #6699CC;
}

.bg-baja .card-header{
    border-bottom: solid 2px#6699CC;
    background-color: transparent;
}

.bg-baja h2 {
    color: #6699CC;
}

/* Botón editar */
.boton-editar {
    background-color: #dbdbdb;
    border-radius: 10px;
}

.boton-editar:hover {
    background-color: #bababa;
}

/* Botón eliminar */
.boton-eliminar {
    background-color: #5d5da7;
    color: white;
    border-radius: 10px;
}

.boton-eliminar:hover {
    background-color: #333366;
    color: white;
}

/* Color de prioridades */
.alta {
    color: #CC3366;
}
.media {
    color: #FF9933;
}
.baja {
    color: #6699CC;
}

/* Card blanca */
@media (min-width: 950px) {
    .card-grande {
        background-color: white;
        box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.1);
        border-radius: 30px;
        padding: 40px;
    }
}

/* Grilla agenda */
.calendar {
    display: grid;
    grid-template-columns: repeat(1, 2fr);
    grid-gap: 1rem;
    font-weight: 500;
    justify-content: center;
}

.calendar-header {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 0rem;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    padding: 0.5rem;
    position: relative;
}

.calendar-day.empty {
    background-color: #f0f0f0;
}

.calendar-date {
    font-weight: bold;
    text-align: center;
}

.tasks {
    margin-top: 0.5rem;
    flex-grow: 1;
}

.task {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
}

.add-task {
    margin-top: 1rem;
    text-align: center;
}

.add-task a {
    font-size: 0.8rem;
}

.calendar-day.today {
    background-color: #5d5da708; 
    border: 2px solid #5d5da7; 
    font-weight: bold;
}

/* Botones anterior/siguiente/agregar */
.boton-contorno {
    color: #5d5da7;
    border-color: #5d5da7;
    background-color: transparent;
}

.boton-contorno:hover {
    color: #fff;
    background-color: #5d5da7;
    border-color: #5d5da7;
}

.boton-contorno:focus,
.boton-contorno.foco {
    box-shadow: 0 0 0 0.25rem #5d5da7;
}

.boton-contorno:active {
    color: #fff;
    background-color: #5d5da7;
}

/* Biblioteca */
.archivo-nombre {
    display: inline-block;
    max-width: 60%; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.link-olvidaste {
    color: #333366;
    font-family: 'Titan One';
}

/* Perfil */
.fondo {
    background-image: url('../img/fondo.jpg');
    background-size: 300px; 
    background-position: center;
    background-repeat: repeat;
    height: 15em;
}

.card {
    background-color: white;
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.1);
}

.perfil-header {
    position: relative;
    height: 300px;
    background-image: url('../img/fondo3.jpg');
    background-size: 350px; 
    background-position: center;
    background-repeat: repeat;
    border-radius: 20px;
}

.perfil-img {
    position: absolute;
    bottom: -50px;
    left: 20px;
    border: 4px solid white;
    border-radius: 20px;
    width: 10em;
    height: 10em;
    object-fit: cover;
}

/* Barra de navegación mobile */
@media (max-width: 868px) {
    .navbar-horizontal {
        display: none;
    }

    .navbar-vertical, .boton-nav-desplegable {
        display: none;
    }

    .navbar-mobile {
        display: flex;
        justify-content: space-around;
    }
    
    main {
        padding-bottom: 100px !important; 
    }
}

@media (max-width: 869px) {
    .navbar-horizontal {
        display: block !important;
    }
}