body {
    display: flex;
    justify-content: center;
    background-color: #1a042a;
}
h1 {
    font-family: "Notable", serif;
    margin-top: 0.5rem;
    position: relative;
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 3.5rem;
    color: white;
    text-shadow: 4px 4px 6px rgb(0, 0, 0);
    width: 100%;
}
h2 {
    font-family: "Dancing Script", serif;
    display: flex;
    position: relative;
    font-size: 3rem;
    color: white;
    text-shadow: 4px 4px 6px rgb(0, 0, 0);
    align-items: center;
    justify-content: center;
    margin: 0;
}
.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    padding-top: 2rem;
}
.notable-regular {
    font-family: "Notable", serif;
    font-weight: 700;
    font-style: normal;
  }
.dancing-script-special {
    font-family: "Dancing Script", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
  }
.faculty-glyphic-regular {
    font-family: "Faculty Glyphic", serif;
    font-weight: 400;
    font-style: normal;
    }
#Playlist {
    font-family: "Faculty Glyphic", serif;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 3.5rem;
    color: white;
    text-shadow: 4px 4px 6px rgb(0, 0, 0);
    }
.playlist{
    font-family: "Faculty Glyphic", serif;
    margin-top: 1rem;
    display: flex;
    text-align: center;
    font-size: 3.5rem;
    color: white;
    text-shadow: 4px 4px 6px rgb(0, 0, 0);
}
.cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
}

.card {
    width: 280px;
    height: 380px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 3px 8px 12px rgba(222, 65, 253, 0.315);
    cursor: pointer;
    text-align: center;
    background-color: black;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit:fill;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    font-family: "Faculty Glyphic", serif;
    text-shadow: 4px 4px 6px rgb(0, 0, 0);
}

.card:nth-child(1) .overlay {
    background-color: #5500a5e6;
}

.card:nth-child(2) .overlay {
    background-color: #5500a5e6;
}

.card:nth-child(3) .overlay {
    background-color: #5500a5e6;
}

.card:nth-child(4) .overlay {
    background-color: #5500a5e6;
}
.card:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.overlay p {
    color: white;
    font-size: 1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.card:hover .overlay h3,
.card:hover .overlay p {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .cards-container {
        gap: 20px;
    }
    
    .card {
        width: 280px;
        height: 350px;
    }
}
.playlist-container {
    width: 700px;
    margin: 0 auto;
    margin-top: 1rem;
}
.playlst-item {
    display: flex;
    align-items: center;
    background-color: #5500a5;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.playlst-item:hover {
    background-color: #6500c4;
    transform: translateX(10px);
}
.playlst-image {
    width: 100px;
    height: 100px;
    object-fit:fill;
    border-radius: 4px;
}
.playlst-info {
    margin-left: 1.5rem;
    flex-grow: 1;
}
.playlst-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    transition: opacity 0.3s ease;
    font-family: "Faculty Glyphic", serif;
}

.playlst-description {
    color: #ffc2ff;
    line-height: 1.4;
    transition: opacity 0.3s ease;
    font-family: "Faculty Glyphic", serif;
}

.alternate-title,
.alternate-description {
    display: none;
    transition: opacity 0.3s ease;
}

.playlst-item:hover .original-title,
.playlst-item:hover .original-description {
    display: none;
}

.playlst-item:hover .alternate-title,
.playlst-item:hover .alternate-description {
    display: block;
}
/*SIDEBAR*/
.toggle-btn {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 1001;
    background-color: #6500c4;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-family: "Faculty Glyphic", serif;
}
.toggle-btn:hover {
    background-color: #7000d8;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(220deg, #150224 0%, #3c075f 100%);
  overflow-x: hidden;
  transition: 0.4s ease;
  z-index: 1001;
  padding-top: 30px;
}

.sidebar.active {
  width: 300px;
}

.sidebar-overlay {
  font-family: "Faculty Glyphic", serif;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 1000;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}
/* NAV LINKS */
.nav-link {
  font-family: "Faculty Glyphic", serif;
  display: flex;
  gap: 12px;
  padding: 15px 25px;
  text-decoration: none;
  font-size: 18px;
  color: #e8e8f0;
  transition: 0.3s;
  font-family: "Faculty Glyphic", serif;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  background: rgba(150, 63, 255, 0.466);
  border-left: 3px solid #bb86fc;
  color: #ffffff;
  text-shadow: 0 0 8px #bb86fc;
  cursor: pointer;
}

/* SECCIÓN DE REDES */
.social-section {
  font-family: "Faculty Glyphic", serif;
  margin-top: 10px;
  border-top: 1px solid rgba(242, 179, 255, 0.2);
  padding: 0px 10px;
}

.social-section h3 {
  margin-top: 30px;
  color: #e2c2ff;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* ITEMS DE REDES */
.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0px;
  border-radius: 8px;
  transition: 0.3s;
}

.social-item:hover {
  background: rgba(150, 63, 255, 0.466);
  transform: translateX(5px);
  box-shadow: 0 0 10px rgba(219, 134, 252, 0.4);
}

/* ICONOS */
.social-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(187, 134, 252, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.social-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}
.close-btn {
  position: fixed;
  top: 20px;
  left: 310px; 
  width: 40px;
  height: 40px;
  background: #7000d8;
  border: none;
  border-radius: 8px;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1003;
  opacity: 0; 
  pointer-events: none; 
}

.sidebar.active + .close-btn {
  opacity: 1;
  pointer-events: auto;
}

.close-btn:hover {
  background: #6500c4;
  transform: scale(1.05);
}

/* Componet-profile */
.container {
    position: relative;
    width: 1200px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    -webkit-mask-image: radial-gradient(circle, black 60%, rgba(0, 0, 0, 0));
    mask-image: radial-gradient(circle, black 60%, rgba(0, 0, 0, 0));
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 120% 300px;
    mask-size: 100% 100%;
    margin-bottom: -50px;
}

/* Estructura de capas */
.layers-container {
    position: relative;
    height: 400px;
    margin-bottom: 40px;
    overflow: hidden;
}

.layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Capa 4 (fondo) */
.layer-4 {
    z-index: 1;
    display: flex;
    justify-content: space-between;
    -webkit-mask-image: linear-gradient(to bottom,  black 95%, rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to bottom,  black 95%, rgba(0, 0, 0, 0));
}

/* Capa 3 */
.layer-3 {
    z-index: 2;
    display: flex;
    justify-content: space-evenly;
    gap: -20px;
    -webkit-mask-image: linear-gradient(to bottom,  black 70%, rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to bottom,  black 70%, rgba(0, 0, 0, 0));
}

/* Capa 2 (persona) */
.layer-2 {
    z-index: 3;
    display: flex;
    justify-content: center;
    -webkit-mask-image: linear-gradient(to bottom,  black 95%, rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to bottom,  black 95%, rgba(0, 0, 0, 0));
}

/* Capa 1 (título) */
.layer-1 {
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.title-box {
    width: 80%;
    max-width: 500px;
    padding: 15px;
    background-color: var(--card-bg-color);
    border: 2px solid var(--border-color);
    text-align: center;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.title-box h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.title-box h2 {
    font-size: 18px;
    color: var(--accent-color);
}
/* Responsive Design */
@media (max-width: 768px) {
    .sidebar.active {
        width: 100%;
    }
    .main-content.shifted {
        margin-left: 0;
    }
}
@media (max-width: 768px) {
    .playlist {
        font-size: 2rem;
        margin-top: 3rem;
        text-align: center;
        width: 100%;
    }
    
    .playlist-container {
        width: 95%;
        margin-top: 1rem;
    }
    #Playlist {
        font-family: "Faculty Glyphic", serif;
        margin-top: 4.5rem;
        display: flex;
        justify-content: center;
        text-align: center;
        font-size: 1.5rem;
        color: white;
        text-shadow: 4px 4px 6px rgb(0, 0, 0);
        }
    .playlst-item {
        display: flex;
        flex-direction: row; 
        align-items: center;
        padding: 0.8rem;
    }
    
    .playlst-image {
        width: 70px;
        height: 70px;
    }
    
    .playlst-info {
        margin-left: 1rem; 
    }
    
    .playlst-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .playlst-description {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .playlist {
        font-size: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .playlist-container {
        width: 100%;
        margin-top: 0rem;
        padding: 0 10px;
    }
    #Playlist {
        font-family: "Faculty Glyphic", serif;
        margin-top: 4rem;
        display: flex;
        justify-content: center;
        text-align: center;
        font-size: 1.5rem;
        color: white;
        text-shadow: 4px 4px 6px rgb(0, 0, 0);
        }
    .playlst-image {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .playlst-info {
        margin-left: 0.8rem;
    }
    
    .playlst-item:hover {
        transform: translateX(5px);
    }
}
@media (max-width: 768px) {
    .main-content {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    h1 {
        font-size: 2.2rem;
        margin-top: 0.5rem;
        padding: 0 10px;
        text-align: center;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .title-container {
        margin-top: 0.5rem;
        padding-top: 1rem;
    }
    
    .cards-container {
        margin-top: 6rem;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    .cards-container {
        margin-top: 0rem;
    }
}