html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #0C6734;
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .logo {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    height: 50px;
    width: auto;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-family: Arial, sans-serif;
    text-align: center;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        padding: 0.5rem;
    }

    header .logo {
        position: static;
        margin-bottom: 0.5rem;
        transform: none;
    }

    header h1 {
        font-size: 1.5rem;
    }
}

main {
    flex: 1;
    padding: 1rem;
    display: flex;
    justify-content: center;
}

.eventos-container {
    width: 100%;
    max-width: 800px;
}

#eventos-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.evento-item {
    background-color: white;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: Arial, sans-serif;
}

.evento-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.evento-info h2 {
    margin: 0 0 0.5rem 0;
    color: #0C6734;
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
}

.evento-info p {
    margin: 0.2rem 0;
    font-family: Arial, sans-serif;
}

.boton {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #0C6734;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 14px;
    transition: background-color 0.2s;
}

.boton:hover {
    background-color: #094d29;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #0C6734;
    color: white;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.carrera-item {
    margin: 0.5rem 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 1rem;
}

.carrera-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carrera-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
    gap: 1rem;
}

.carrera-texto {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
}

.carrera-nombre {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.carrera-horario {
    font-size: 1rem;
    color: #666;
    margin-top: 0.2rem;
}

.carrera-estado-container {
    grid-column: 3 / 4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carrera-estado {
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-align: center;
}

.carrera-estado.azul-claro {
    background-color: #007bff;
}

.carrera-estado.verde {
    background-color: #28a745;
}

.carrera-estado.rojo {
    background-color: #dc3545;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.evento-item {
    margin: 0.5rem 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 1rem;
}

.evento-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.evento-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.evento-imagen {
    width: 150px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.evento-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.evento-nombre {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
}

.evento-localidad {
    font-size: 1rem;
    color: #666;
    margin-top: 0.2rem;
}

.evento-detalles {
    font-size: 1rem;
    color: #666;
    margin-top: 0.2rem;
}

.evento-boton-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.boton {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #0C6734;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.boton:hover {
    background-color: #094d29;
}

.boton-pasadas {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background-color: #0C6734;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid white;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, transform 0.2s;
}

.boton-pasadas:hover {
    background-color: #094d29;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
    .boton-pasadas {
        position: static;
        margin-top: 0.5rem;
        transform: none;
        width: auto;
        text-align: center;
        padding: 0.7rem 1.2rem;
    }
}

.icono {
    width: 24px;
    height: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.no-eventos {
    text-align: center;
    padding: 2rem;
    color: #555;
    font-size: 1.2rem;
    font-weight: 600;
}

.no-eventos p {
    margin: 0;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: inline-block;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .evento-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .evento-imagen {
        width: 80%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .evento-texto {
        text-align: center;
    }

    .evento-boton-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .boton {
        width: auto;
        padding: 0.8rem 1.5rem;
    }
}
