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

/* Estilos generales */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* Cabecera */
header {
    background-color: #003366;
    color: #ffffff;
    padding: 20px;
}

header h1 {
    margin-bottom: 10px;
     text-align: center;
}


/* Navegación */
nav {
    background-color: #002244;
    padding: 10px;
    border-radius: 5px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    display: block;
    padding: 8px 15px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: #ffffff;
    color: #002244;
}


/* Contenido principal */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;

    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    flex: 1;
}

/* Enlaces dentro del contenido */
main a {
    color: #003366;
    text-decoration: underline;
    font-weight: 500;
}

main a:hover {
    color: #005599;
}


/* Secciones */
section {
    margin-bottom: 30px;
}

section h2 {
    margin-bottom: 10px;
    color: #003366;
}

section h3 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #005599;
}

section h4 {
    margin-top: 10px;
    color: #333;
}

/* Listas */
ul {
    margin-left: 20px;
    margin-top: 10px;
}

ul li {
    margin-bottom: 5px;
}

/* Imágenes */
img {
    max-width: 100%;
    height: auto;
    margin-right: 10px;
    margin-top: 10px;
}
/* CV layout */
.cv-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.cv-photo img {
    max-width: 180px;
    border-radius: 8px;
}

.cv-content {
    flex: 1;
}


/* Formularios */
form {
    margin-top: 25px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

form div {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #003366;
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 4px rgba(0, 51, 102, 0.4);
}

/* Botón del formulario */
form button {
    display: block;
    margin: 0 auto;
    background-color: #003366;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #005599;
}


label {
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #003366;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #005599;
}

.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

.social-links a {
    display: inline-block;
}

.social-links img {
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
    cursor: pointer;
    pointer-events: auto;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* Network*/
.network-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
}

.network-card {
    background-color: #f4f4f4;
    border-radius: 10px;
    padding: 25px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.network-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.network-card h3 {
    margin-bottom: 15px;
}

.network-card a {
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
}

.network-card a:hover {
    text-decoration: underline;
}
#network-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #0066cc;
}

/*Grado*/
.year-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.year-selector a {
    padding: 10px 18px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.year-selector a:hover {
    background-color: #004999;
}

.year-content {
    display: none;
    margin-top: 25px;
}

/* Mostrar solo la sección destino */
.year-content:target {
    display: block;
}

/* Mostrar primero por defecto */
.year-content:first-of-type {
    display: block;
}


/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background-color: #003366;
    color: #ffffff;
    margin-top: 40px;
}
