/* ========================================
   SHVI - Estilos CSS Minimalistas
   Solo blanco y negro
======================================== */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    color: #000000;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Contenedor principal */
.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 2vh 2vw;
    gap: 3vh;
    box-sizing: border-box;
    overflow: hidden;
}

/* Cabecera */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: min(400px, 80vw);
    flex-shrink: 0;
}

.logo {
    max-height: min(15vh, 120px);
    width: 100%;
    max-width: min(400px, 80vw);
    height: auto;
    object-fit: contain;
    filter: contrast(1.2);
}

/* Menú principal */
.main-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: min(400px, 80vw);
    flex-shrink: 1;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: min(20px, 2vh);
    align-items: center;
    width: 100%;
}

/* Nuevo estilo: botón grande de JUGAR */
.play-area {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: min(18px, 3vh);
}

.play-btn {
    background-color: #000000;
    color: #ffffff;
    border: none;
    width: min(320px, 70vw);
    height: min(140px, 25vh);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: min(36px, 6.5vh, 8vw);
    font-weight: 900;
    letter-spacing: min(3px, 0.5vw);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.play-btn:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(0,0,0,0.3); }

/* Icon inside the large play button */
.play-btn .play-icon {
    width: min(96px, 18vh);
    height: auto;
    display: block;
}

/* Botones secundarios rectangulares */
.secondary-buttons {
    width: 100%;
    max-width: min(720px, 90vw);
    display: flex;
    flex-direction: row;
    gap: min(12px, 1.8vh);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.rect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: transparent;
    border: 3px solid #000;
    padding: min(8px, 1.2vh) min(12px, 2vw);
    border-radius: 10px;
    width: auto;
    height: min(60px, 9vh);
    flex: 1 1 140px; /* flexible, with a preferred min width */
    max-width: 220px;
}

.rect-btn .btn-icon-left {
    width: min(44px, 7vh);
    height: auto;
    display: inline-block;
}

.rect-btn:hover { background-color: #000; color: #fff; }

/* Ensure svg icons inherit color on hover */
.rect-btn svg { fill: currentColor; }

/* Image icon behavior */
.rect-btn img { display: block; }
.rect-btn:hover img { filter: invert(1) contrast(1.2); }

/* Responsive: stack secondary buttons on narrow screens */
@media (max-width: 480px) {
    .secondary-buttons { flex-direction: column; gap: min(10px, 1.4vh); }
    .rect-btn { max-width: none; width: 100%; }
    .play-btn { height: min(120px, 20vh); font-size: min(30px, 6vh); }
}

/* Botones del menú */
.menu-btn {
    background-color: transparent;
    color: #000000;
    border: 3px solid #000000;
    padding: min(15px, 2vh) min(40px, 5vw);
    font-size: min(24px, 4vh, 6vw);
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    letter-spacing: min(2px, 0.3vw);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: min(400px, 80vw);
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Efectos hover y focus */
.menu-btn:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.menu-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.menu-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #000000;
}

/* Pie de página */
.footer {
    display: block;
    width: 100%;
    max-width: min(400px, 80vw);
    text-align: center;
    padding: min(10px, 1vh);
    background-color: #ffffff;
    flex-shrink: 0;
}

.footer-text {
    font-size: min(12px, 2vh, 3vw);
    color: #000000;
    font-weight: normal;
    letter-spacing: min(0.5px, 0.1vw);
    margin: 0;
    line-height: 1.2;
}

.footer-text strong {
    font-weight: bold;
    font-size: min(13px, 2.2vh, 3.2vw);
}

/* Media query para pantallas muy pequeñas - ajuste adicional */
@media (max-height: 500px) {
    .container {
        gap: 1vh;
        padding: 1vh 2vw;
    }
    
    .logo {
        max-height: min(10vh, 80px);
    }
    
    .menu-btn {
        font-size: min(18px, 3vh, 5vw);
        padding: min(10px, 1.5vh) min(30px, 4vw);
    }
    
    .menu-buttons {
        gap: min(10px, 1vh);
    }
    
    .footer-text {
        font-size: min(10px, 1.5vh, 2.5vw);
    }
    
    .footer-text strong {
        font-size: min(11px, 1.7vh, 2.7vw);
    }
}

/* Media query para pantallas muy estrechas - ajuste adicional */
@media (max-width: 350px) {
    .menu-btn {
        letter-spacing: min(1px, 0.2vw);
        padding: min(12px, 2vh) min(20px, 3vw);
    }
}

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

.container {
    animation: fadeIn 0.6s ease-out;
}

.menu-btn {
    animation: fadeIn 0.8s ease-out;
}

.menu-btn:nth-child(1) { animation-delay: 0.1s; }
.menu-btn:nth-child(2) { animation-delay: 0.2s; }
.menu-btn:nth-child(3) { animation-delay: 0.3s; }
.menu-btn:nth-child(4) { animation-delay: 0.4s; }