body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
}

#reloj {
position: absolute;
top: 50%;
right: 15px;
background-color: rgba(192, 19, 19, 0.9);
color: white;
padding: 10px 15px;
border-radius: 8px;
font-size: 14px;
text-align: center;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
z-index: 1000;
}

.container.global {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 20px;
}

.menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.menu-opcion {
    text-decoration: none;
    color: #333;
    width: 200px;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    background: white;
}

.menu-opcion:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    transition: all 0.5s ease;
}

.menu-opcion:hover .card-content {
    transform: translateX(-100%);
}

.card-back {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    background-color: #c01313;
    color: white;
    transition: all 0.5s ease;
}

.menu-opcion:hover .card-back {
    transform: translateX(-100%);
}

.menu-opcion img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.menu-opcion h2 {
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: 600;
    text-align: center;
}

.card-back p {
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
}

.action-button {
    background-color: white;
    color: #c01313;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 14px;
    width: 80%;
    text-align: center;
}

.action-button:hover {
    background-color:rgb(255, 255, 255);
}

header, footer {
    text-align: center;
    padding: 15px;
    background-color: #c01313;
    color: white;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.external-link {
    margin-top: 40px;
    text-align: center;
}

.external-link a {
    background-color: #c01313;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(192, 19, 19, 0.3);
}

.external-link a:hover {
    background-color: #a01010;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .menu {
        gap: 15px;
    }
    
    .menu-opcion {
        width: 160px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .menu {
        gap: 10px;
    }
    
    .menu-opcion {
        width: 140px;
        height: 200px;
    }
    
    .menu-opcion h2 {
        font-size: 16px;
    }
    
    .card-back p {
        font-size: 12px;
    }
    
}