* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f2;
    color: #1a1a1a;
}

/* =========================
   BARRA DE NAVEGACION
========================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.content {
    background-color: #e1ded6;
    min-height: 80px;
    position: relative;
}

.menu {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: bold;
}

.menu .navbar ul li {
    float: left;
}

.menu .navbar ul li a {
    font-size: 18px;
    padding: 20px;
    color: #ffffff;
    display: block;
    font-weight: bold;
}

.menu .navbar ul li a:hover {
    color: #b1aaa4;
}

#menu {
    display: none;
}

.menu-icono {
    width: 25px;
}

.menu label {
    cursor: pointer;
    display: none;
}

/* =========================
   MENÚ MÓVIL
========================= */

@media (max-width: 991px) {

    .content {
        min-height: 70px;
    }

    .menu {
        position: relative;
        top: 0;
        padding: 20px;
    }

    .menu label {
        display: initial;
    }

    .menu .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #e1ded6;
        display: none;
        z-index: 1001;
    }

    .menu .navbar ul li {
        width: 100%;
    }

    #menu:checked ~ .navbar {
        display: block;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f2;
    color: #1a1a1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.content {
    background-color: #e1ded6;
    min-height: 80px;
    position: relative;
}

.menu {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: bold;
}

.menu .navbar ul li {
    float: left;
}

.menu .navbar ul li a {
    font-size: 18px;
    padding: 20px;
    color: #ffffff;
    display: block;
    font-weight: bold;
}

.menu .navbar ul li a:hover {
    color: #b1aaa4;
}

#menu {
    display: none;
}

.menu-icono {
    width: 25px;
}

.menu label {
    cursor: pointer;
    display: none;
}

/* Menú móvil */
@media (max-width: 991px) {
    .content { min-height: 70px; }
    .menu { position: relative; top: 0; padding: 20px; }
    .menu label { display: initial; }
    .menu .navbar { position: absolute; top: 100%; left: 0; right: 0; background-color: #e1ded6; display: none; z-index: 1001; }
    .menu .navbar ul li { width: 100%; }
    #menu:checked ~ .navbar { display: block; }
}

main#perfil {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

main#perfil h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.tarjeta {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.tarjeta h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #000;
    border-bottom: 2px solid #e1ded6;
    padding-bottom: 0.5rem;
}

.tarjeta ul {
    list-style: none;
    line-height: 1.6;
}

.tarjeta ul li {
    margin-bottom: 0.5rem;
}

.tarjeta .item {
    margin-bottom: 1rem;
}

.tarjeta .item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.tarjeta .item p {
    font-size: 1rem;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .menu .navbar ul li a { padding: 15px; font-size: 16px; }
    main#perfil { padding: 0 1rem; }
    .tarjeta { padding: 1rem; }
}

/* Contenedor de tarjetas en grid */
.tarjetas-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Mantener responsive */
@media (max-width: 768px) {
    .tarjetas-container {
        grid-template-columns: 1fr; /* todas las tarjetas apiladas en móvil */
    }
    .tarjeta.formacion {
        grid-column: auto;
    }
}

.redes {
    display: flex;
    flex-direction: column; /* ← CLAVE */
    gap: 0.8rem;
}

.red {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.red img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.red {
    transition: opacity 0.2s ease;
}

.red:hover {
    opacity: 0.7;
}

.red {
    color: #1a1a1a;      /* mismo color que el texto */
    text-decoration: none;
}

.red:visited {
    color: #1a1a1a;
}
