/* Importación de fuente moderna y profesional */
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&display=swap');

:root {
    --primary: #0056b3;
    --primary-hover: #004494;
    --accent: #e67e22;
    --bg-gray: #f0f2f5;
    --white: #ffffff;
    --text-dark: #1c1e21;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-gray);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Encabezados */
h1 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    color: var(--primary);
    text-align: center;
    margin: 20px 0 30px;
    max-width: 900px;
    text-transform: uppercase;
}

h3, h4 {
    margin-bottom: 15px;
    text-align: center;
}

/* Formularios Adaptables */
form {
    background: var(--white);
    padding: 30px;
    width: 100%;
    max-width: 700px; /* Ancho ideal para Tablets y Portátiles */
    border-radius: 12px;
    box-shadow: var(--shadow);
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

input[type="text"], 
input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

/* Grid de Deportes (Optimizado para Tablet) */
.deportes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.deporte-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.deporte-item:hover {
    border-color: var(--primary);
    background: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.deporte-item img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid var(--white);
}

/* Botones Principales */
input[type="submit"], 
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    transition: background 0.3s;
}

input[type="submit"]:hover {
    background-color: var(--primary-hover);
}

/* Botón Volver */
.volverAtras {
    display: inline-block;
    margin-top: 20px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: all 0.2s;
}

.volverAtras:hover {
    background: #eee;
    color: var(--text-dark);
}

/* --- ESTILOS VISUALIZAR DATOS (AGRADECIMIENTO) --- */
.card-success {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.img-resultado {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    margin: 20px 0;
    border: 6px solid var(--bg-gray);
}

.nombre-destacado {
    color: var(--primary);
    font-size: 1.4rem;
    margin: 10px 0;
}

#visualizar_datos_usuario a{
    text-decoration: none;
    display: block;
    margin-top: 15px;
}

/* Menú Inicial */
.menu-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 450px;
}

.menu-item a {
    display: block;
    background: var(--white);
    color: var(--primary);
    padding: 25px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    border: 2px solid var(--primary);
    text-align: center;
    transition: 0.3s;
}

.menu-item a:hover {
    background: var(--primary);
    color: white;
}

#menu_inicial h4{
    color: #666; 
    margin-bottom: 40px;
}

/*LOGO COLE*/
.logo-cole {
    position: absolute;
    top: 20px;
    right: 40px;
    width: 150px; /* Ajusta el tamaño según sea necesario */
    height: auto;
    object-fit: contain;
    z-index: 100; /* Asegura que esté por encima de otros elementos */
}


@media (max-width: 1280px) {
    .logo-cole{
        position: absolute;
        top: 20px;
        right: 20px;
        width: 100px; /* Ajusta el tamaño según sea necesario */
        height: auto;
        object-fit: contain;
        z-index: 100;
    }
}