

/* =========================================
   ESTILOS DEL MUNDIAL MERZA (Globales)
   ========================================= */

/* Fuentes deportivas */
@import url('https://fonts.googleapis.com/css2?family=Changa:wght@600;800&family=Nunito:wght@600;800&display=swap');

/* Fondo global para todo el sitio */
body {
    background-image: url('/img/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Evita que el fondo se mueva al hacer scroll */
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Permite que el header, main y footer se apilen */
    font-family: 'Nunito', sans-serif;
}

/* Forzamos que el contenido principal ocupe todo el espacio disponible */
.main-wrapper {
    flex: 1;
    display: flex;
    align-items: center; /* Centra verticalmente el contenido */
    justify-content: center; /* Centra horizontalmente el contenido */
    padding: 2rem 1rem;
}

/* Transparencia para el Navbar y Footer para que se vea el fondo */
.navbar-custom {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
}

.footer-custom {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

/* --- ESTILOS DEL CONTENEDOR TIPO CRISTAL CON RELIEVE --- */
.crystal-shadow {
    width: 100%;
    /* Eliminamos el max-width para que la rejilla de Bootstrap trabaje libremente */
    padding: 10px;
}

.crystal-box {
    /* Bajamos la opacidad para que el blur trabaje mejor con el fondo */
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    border-radius: 35px; /* Bordes más suaves para el mundial */
    /* EL RELIEVE (Biseles) */
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-right-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.2);
    /* SOMBRAS DE PROFUNDIDAD */
    box-shadow: inset 4px 4px 8px rgba(255, 255, 255, 0.8), /* Luz superior (Relieve) */
    inset -4px -4px 8px rgba(0, 0, 0, 0.05), /* Sombra inferior (Profundidad) */
    0 15px 35px rgba(0, 0, 0, 0.15); /* Sombra proyectada al fondo */
}

/* Mejora para los inputs hexagonales con relieve */
.hex-input-wrapper {
    background: linear-gradient(90deg, #7bc027, #559c1b);
    padding: 3px;
    -webkit-clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%);
    clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); /* Relieve al input */
}

/* Estilo para las tarjetas de folios (Relieve en la lista) */
.bg-white.rounded-4.shadow-sm {
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    transition: 0.3s;
}

    .bg-white.rounded-4.shadow-sm:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
    }
    

.title-game {
    font-family: 'Changa', sans-serif;
    color: #559c1b;
    text-transform: uppercase;
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0px #fff, 4px 4px 0px rgba(85, 156, 27, 0.2);
}

.subtitle-game {
    color: #1b5e20;
    font-weight: 800;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* --- FORMULARIOS --- */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.hex-input-wrapper {
    background: linear-gradient(90deg, #7bc027, #559c1b);
    padding: 3px;
    -webkit-clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%);
    clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%);
    transition: transform 0.2s;
}

    .hex-input-wrapper:focus-within {
        background: linear-gradient(90deg, #f37021, #e65100);
        transform: scale(1.02);
    }

.hex-input-inner {
    background: white;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    -webkit-clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
}

    .hex-input-inner span {
        font-size: 1.5rem;
        margin-right: 10px;
    }

    .hex-input-inner input {
        border: none;
        outline: none;
        width: 100%;
        font-family: 'Nunito', sans-serif;
        font-weight: 800;
        color: #333;
        font-size: 1rem;
    }

.play-btn-wrapper {
    position: relative;
    margin-top: 1rem;
}

.play-btn {
    background: linear-gradient(90deg, #5de012, #248a07);
    color: white;
    border: none;
    width: 100%;
    padding: 15px 20px;
    font-family: 'Changa', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    -webkit-clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%);
    clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%);
    transition: all 0.3s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

    .play-btn:hover {
        background: linear-gradient(90deg, #6ef023, #2ea30d);
    }

.soccer-ball {
    position: absolute;
    right: -10px;
    top: -20px;
    font-size: 3.5rem;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.link-orange {
    color: #e65100;
    text-decoration: none;
    font-weight: 800;
}

@media (max-width: 400px) {
    .title-game {
        font-size: 2rem;
    }

    .play-btn {
        font-size: 1.3rem;
    }

    .crystal-box {
        padding: 2rem 1rem;
    }
}
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}