/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #222;
    background: #f4f4f4;
    line-height: 1.6;
}

/* LAYOUT GENERAL */
body {
    display: flex;
}

/* SIDEBAR IZQUIERDA (DESKTOP) */
.sidebar {
    width: 220px;
    height: auto;
    background: #ffffff;
    border-right: 1px solid #e5e5e5;
    padding: 30px 20px;
    position: fixed;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* PERFIL */
.perfil {
    text-align: left;
    margin-bottom: 40px;
}

.foto-perfil {
    width: 100%;
    max-width: 140px;
    height: auto;
    object-fit: cover;
    margin-bottom: 10px;
}

.perfil h3 {
    font-size: 1rem;
    letter-spacing: 1px;
}

.perfil h5 {
    font-size: 0.8rem;
    color: #777;
    margin-left:15px;
}

/* MENÃš */
.menu ul {
    list-style: none;
}

.menu li {
    margin-bottom: 15px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: 0.2s;
}

.menu a:hover {
    color: #999;
}

/* DROPDOWN */
.dropdown-content {
   display: none;
    background: #f9f9f9;
    padding: 10px;
    max-height: 300px; /* Para que no ocupe toda la pantalla */
    overflow-y: auto;  /* Scroll si hay muchos cuadros */
    margin-top: 10px;
    border-radius: 5px; 
     
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    font-size: 0.8rem;
    padding: 4px 0;
    color: #666;
    
}

/* CONTENIDO PRINCIPAL */
.contenido {
    margin-left: 240px;
    padding: 60px 40px;
    max-width: 900px;
}

/* TEXTOS */
h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 400;
}

h2 {
    font-size: 1.3rem;
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 400;
}

p {
    margin-bottom: 2px;
    max-width: 700px;
}

/* IMÃGENES */
.hero-image img,
.hero img,
.foto-lateral {
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 5px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 4px solid #fff;
}

/* PIE DE FOTO */
figcaption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 3px;
    margin-bottom: 5px;
    font-style: italic;
}
/* PIE */
.pie {
    margin-top: 60px;
    font-size: 0.8rem;
    color: #666;
}

/* SIDEBAR DERECHA (DESKTOP) */
.sidebar-derecha {
    position: fixed;
    right: 0;
    top: 0;
    width: 180px;
    height: 100vh;
    background: violet;
    border-left: 1px solid #e5e5e5;
    padding: 20px;
    font-size: 0.8rem;
}

.sidebar-derecha a {
    display: block;
    margin-bottom: 8px;
    color: #555;
    text-decoration: none;
}

.sidebar-derecha a:hover {
    color: #000;
}

.foto-lateral {
    margin-top: 20px;
    border:4px solid yellow;
     
}

/* CONTADOR */
.contador-artistico {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #777;
}

/* LISTAS */
ul, ol {
    margin: 20px 0;
    padding-left: 20px;
}

/* ========================= */
/* ðŸ“± MOBILE FIRST */
/* ========================= */

@media (max-width: 768px) {

    body {
        display: block;
    }

    /* CABECERA */
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        border-bottom: 1px solid #ddd;
    }

    .perfil {
        display: flex;
        align-items: center;
        margin-bottom: 0;
    }

    .foto-perfil {
        width: 50px;
        height: 65px;
        margin-right: 10px;
    }

    .menu ul {
        display: flex;
        gap: 15px;
    }

    .menu li {
        margin: 0;
    }

    /* CONTENIDO */
    .contenido {
        margin-left: 0;
        padding: 20px;
    }

    /* IMÃGENES FULL */
    .hero-image img,
    .hero img,
    .foto-lateral {
        width: 100%;
        max-width: 100%;
    }

    /* OCULTAR SIDEBAR DERECHA */
    .sidebar-derecha {
        display: none;
    }

    /* TEXTOS MÃS CÃ“MODOS */
    h1 {
        font-size: 1.4rem;
    }

    p {
        font-size: 0.95rem;
    }
}