#left-header p {
    text-align: left;
}


/* TÍTULOS DE SECCIÓN */

#main-tittle {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 25px;
    gap: 20px;
}


/* Texto "escrito a mano" */


html {
    scroll-behavior: smooth;
}

/* Hueco de la imagen del header mientras no tenga imagen */
#right-header img[src=""] {
    visibility: hidden;
}


/* DESTACADO + PRÓXIMOS */

#first-section {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

#destacado-section {
    width: 48%;
    display: flex;
    flex-direction: column;
}

#destacado-card {
    flex: 1;
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    overflow: hidden;
    background: #1d051d;
    box-shadow: 0 0 10px -3px rgb(255, 165, 240);
    border: 0.5px solid #ffd1ec;
}

#destacado-img {
    position: relative;
    width: 42%;
    background: #381321;
    flex-shrink: 0;
}

#destacado-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#destacado-img .frase-mano {
    position: absolute;
    left: 15px;
    bottom: 20px;
    text-align: left;
}

#destacado-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#destacado-info h3 {
    font-family: "Abril Fatface", serif;
    font-size: 28px;
}

#destacado-info small {
    margin-top: -8px;
    font-size: 13px;
}

#destacado-datos {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#destacado-datos li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: bold;
}

#destacado-datos svg {
    height: 20px;
    width: 20px;
    color: #ff9fe9;
    flex-shrink: 0;
}

#destacado-info > p {
    font-size: 13px;
    line-height: 1.5;
}

#participar-btn {
    align-self: flex-start;
    margin-top: auto;
}

#proximos-eventos {
    width: 52%;
    display: flex;
    flex-direction: column;
}

#proximos-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.evento-card {
    padding: 20px 12px;
    border-radius: 10px;
    background: #1d051d;
    box-shadow: 0 0 10px -3px rgb(255, 165, 240);
    border: 0.5px solid #ffd1ec;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.evento-icon {
    height: 42px;
    width: 42px;
    color: #ff9fe9;
}

.evento-card h5 {
    font-family: "Abril Fatface", serif;
    font-size: 17px;
}

.evento-card > p {
    font-size: 13px;
    line-height: 1.5;
}

.evento-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    padding-left: 10px;
}

.evento-tags span {
    padding: 3px 10px;
    border-radius: 5px;
    background: #381321;
    color: #ffa8db;
    font-size: 12px;
}

.evento-extra {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    text-align: left;
}

.evento-extra svg {
    height: 22px;
    width: 22px;
    color: #ff9fe9;
    flex-shrink: 0;
}

.evento-extra p {
    font-size: 13px;
}

.evento-fecha {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 13px;
}

.evento-fecha svg {
    height: 14px;
    width: 14px;
    color: #ff9fe9;
}


/* EVENTOS PASADOS */

#pasados-section .section-header {
    margin-top: 0;
}

#pasados-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pasado-card {
    border-radius: 10px;
    overflow: hidden;
    background: #1d051d;
    box-shadow: 0 0 10px -3px rgb(255, 165, 240);
    border: 0.5px solid #ffd1ec;

    display: flex;
    flex-direction: column;
}

.pasado-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    background: #381321;
}

.pasado-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pasado-info h5 {
    font-family: "Abril Fatface", serif;
    font-size: 16px;
}

.pasado-info p {
    font-size: 13px;
}

.pasado-info small {
    margin-top: 4px;
    font-size: 12px;
    color: #ffa8db;
}


/* BANNER FINAL */

#banner-final {
    position: relative;
    margin-top: 30px;
    padding: 25px 60px;
    border-radius: 10px;
    overflow: hidden;
    background: #1d051d;
    box-shadow: 0 0 10px -3px rgb(255, 165, 240);
    border: 0.5px solid #ffd1ec;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

#banner-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


#banner-texto h3 {
    font-family: "Abril Fatface", serif;
    font-size: 28px;
    margin-bottom: 8px;
}

#banner-texto p {
    font-size: 14px;
}

#banner-final .server-btn,
#banner-final .frase-mano {
    position: relative;
}

#banner-final .frase-mano {
    font-size: 15px;
}


/* MODAL: CALENDARIO */

#calendario-layout {
    display: flex;
    flex-direction: row;
    gap: 25px;
}

#calendario {
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#calendario-cabecera {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#calendario-mes {
    font-family: "Abril Fatface", serif;
    font-size: 20px;
}

.calendario-nav {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    border: 1px solid #ffd1ec;
    background: #1d051d;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.calendario-nav:hover {
    background: #381321;
}

#calendario-semana,
#calendario-dias {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

#calendario-semana span {
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #ffa8db;
}

.calendario-dia {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 0.5px solid transparent;
    background: #13001c;
    color: white;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.calendario-dia:hover {
    background: #381321;
}

.calendario-dia.vacio {
    background: none;
    cursor: default;
}

.calendario-dia.hoy {
    border-color: #ffd1ec;
}

.calendario-dia.con-evento {
    background: #381321;
    font-weight: bold;
}

.calendario-dia.seleccionado {
    background: #ff6fc8;
    border-color: #ff6fc8;
}

.calendario-puntos {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    display: flex;
    justify-content: center;
    gap: 3px;
}

.calendario-puntos i {
    height: 4px;
    width: 4px;
    border-radius: 50%;
    background: #ff6fc8;
}

.calendario-dia.seleccionado .calendario-puntos i {
    background: white;
}

#calendario-hoy {
    align-self: center;
    padding: 6px 20px;
    border-radius: 6px;
    border: 1px solid #ffd1ec;
    background: none;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

#calendario-hoy:hover {
    background: #381321;
}

#calendario-detalle {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 25px;
    border-left: 0.5px solid #381321;
}

#calendario-detalle-titulo {
    font-family: "Abril Fatface", serif;
    font-size: 18px;
}

#calendario-detalle-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendario-evento {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #13001c;
    border-left: 3px solid #ff6fc8;
}

.calendario-evento.tipo-destacado {
    border-left-color: #ffd1ec;
}

.calendario-evento.tipo-pasado {
    border-left-color: #381321;
    opacity: 0.75;
}

.calendario-evento svg {
    height: 24px;
    width: 24px;
    color: #ff9fe9;
    flex-shrink: 0;
}

.calendario-evento h6 {
    font-family: "Abril Fatface", serif;
    font-size: 15px;
    font-weight: normal;
}

.calendario-evento small {
    font-size: 13px;
    opacity: 0.8;
}

.calendario-tipo {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 5px;
    background: #381321;
    color: #ffa8db;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}


/* MODAL: TODOS LOS EVENTOS PASADOS */

#pasados-todos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 5px;
}

.pasado-fecha {
    opacity: 0.8;
}


/* PANTALLAS CHICAS */

@media (max-width: 1200px) {
    #first-section {
        flex-direction: column;
    }

    #destacado-section,
    #proximos-eventos {
        width: 100%;
    }
}

@media (max-width: 800px) {
    .main {
        padding: 30px 20px;
    }

    header {
        height: auto;
        flex-direction: column;
    }

    #left-header,
    #right-header {
        width: 100%;
        padding: 20px;
    }

    #destacado-card {
        flex-direction: column;
    }

    #destacado-img {
        width: 100%;
        height: 200px;
    }

    #proximos-container,
    #pasados-container {
        grid-template-columns: 1fr;
    }

    #banner-final {
        flex-direction: column;
        padding: 25px;
    }

    #calendario-layout {
        flex-direction: column;
    }

    #calendario {
        width: 100%;
    }

    #calendario-detalle {
        padding-left: 0;
        padding-top: 20px;
        border-left: none;
        border-top: 0.5px solid #381321;
    }

    #pasados-todos {
        grid-template-columns: 1fr;
    }
}
