/* Estilos específicos para tablets (600px a 1024px) */

/* Importa las fuentes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Poppins:wght@300;400;600&display=swap');

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

html, body {
    min-height: 100vh;
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background-color: #F9FAFB;
    color: #1F2937;
    padding: 0.625rem;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Contenedor principal */
.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    height: auto;
}

/* Secciones principales */
.profile,
.content-section, 
.content-section-information {
    background-color: #00549F;
    padding: 1.5625rem;
    border-radius: 0.625rem;
    display: flex;
    flex-direction: column;
    height: auto;
}

/* Sección de información con scroll */
.content-section-information {
    overflow-y: auto;
    max-height: calc(100vh - 1.875rem);
}

/* Estructura del perfil */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0.9375rem;
}

.profile-header img {
    width: 55%;
    max-width: 11.25rem;
    border-radius: 50%;
    border: 0.25rem solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
}

.profile-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 0.3125rem;
}

.profile-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.825rem !important;
    max-width: 95%;
}

.bio {
    color: #E5E7EB;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    text-align: center;
    padding: 0 0.9375rem;
    margin: 1rem 0;
}

/* Botones */
.botones {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.button {
    background: transparent;
    border: 0.0625rem solid #ccc;
    padding: 0.4375rem 0.9375rem;
    border-radius: 1.875rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    text-decoration: none;
    transition: 0.3s;
}

.button:hover {
    background: #006ece;
}

.counter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1rem;
    color: #fff;
    font-size: 1.300rem;
    font-family: 'Poppins', sans-serif; /* Fuente personalizada */
}

/* Tarjetas de información - Siempre 2 columnas */
.informations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.875rem;
}

.information {
    background: #e5f0facb;
    border-radius: 0.625rem;
    padding: 1.25rem;
    min-height: 11.25rem;
    display: flex;
    flex-direction: column;
}

.information h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15em;
    color: #00549F;
    text-align: center;
    margin-bottom: 0.75rem;
}

.information p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875em;
    flex-grow: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 84, 159, 0.3);
    border-radius: 10px;
}

/* Modo oscuro */
.dark-mode .profile,
.dark-mode .content-section,
.dark-mode .content-section-information {
    background-color: #003B70;
}

.dark-mode .information {
    background: #1E3A54;
    color: #E5E7EB;
}

/* Ajustes para orientación horizontal */
@media (orientation: landscape) {
    .profile-header {
        flex-direction: row;
        text-align: left;
        gap: 1.875rem;
    }
    
    .profile-header img {
        width: 35%;
        max-width: 9.375rem;
    }
    
    .bio {
        text-align: left;
    }
    
    /* En landscape muy estrecho, cambiar a 1 columna */
    @media (max-width: 700px) {
        .informations {
            grid-template-columns: 1fr;
        }
    }
}