:root {
    --background-color: #121212;
    --primary-color: #ff69b4;
    --secondary-color: #ff1493;
    --text-color: #ffffff;
    --border-color: rgba(85,18,89, 0.8);
    --hover-color: #ff1493;
    --button-bg: #8a2be2;
    --dark-bg: #000000;
    --card-bg: rgba(18, 18, 18, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/background.png') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.2;
    z-index: -1;
}

header {
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.profile-info h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.bio {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

.gallery-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 20px;
    padding: 0 20px;
}

.search-container {
    width: 100%;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.control-btn {
    padding: 8px 16px;
    background-color: #2c2c2c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-btn:hover {
    background-color: #404040;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: var(--dark-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filters {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--dark-bg);
    border: none;
    border-radius: 20px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--hover-color); /* #ff1493 */
    color: var(--primary-color);
}

.filter-btn.active {
    background: #8a2be2; /* Color seleccionado especificado */
    color: var(--text-color);
}

.gallery-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem;
}

.project-list {
    height: 70vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.project-item {
    padding: 8px 12px;
    margin: 3px 0;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
    font-size: 14px;
}

.project-item:hover {
    background-color: var(--hover-color); /* #ff1493 */
    color: white;
    /* font-size and font-weight changes removed */
}

.project-item.active {
    background-color: #8a2be2; /* Color seleccionado especificado */
    color: white;
    /* font-size and font-weight changes removed */
}

.project-preview {
    height: 70vh;
    display: flex;
    flex-direction: column;
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-content h3 {
    font-size: 1.25rem; /* Tamaño de fuente más pequeño para el título del preview */
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.preview-image {
    width: 100%;
    height: 300px;
    height: 100%;
    /* background-color: var(--dark-bg); */
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-info {
    padding: 1rem;
}

.preview-link {
    display: inline-block;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: var(--hover-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
}

.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: var(--dark-bg);
    color: var(--text-color);
    border-radius: 15px;
    font-size: 0.9rem;
}

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

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--hover-color);
    border-radius: 4px;
}

.project-preview {
    transition: opacity 0.5s ease;
}

.project-preview.transitioning {
    opacity: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        text-align: center;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }

    .project-list {
        height: auto;
        max-height: 300px;
    }

    .project-preview {
        height: auto;
    }
}
#galleryautoplay {
    display: none;
}
.autoplay-btn{
    display: none;
}

/* Estilos para el contenedor de video de YouTube */
/* Técnica para mantener la relación de aspecto 16:9 */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 (9/16 = 0.5625) */
    overflow: hidden;
    background-color: transparent;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Ajustes para la vista previa normal */
.preview-image .video-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

/* Estilos específicos para embeds de Instagram */
.instagram-wrapper {
    padding-bottom: 0; /* Remover padding-bottom para Instagram */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    min-height: 650px;
}

.instagram-container {
    position: relative;
    width: 100%;
    max-width: 540px;
    height: auto;
    margin: 0 auto;
}

.instagram-container iframe,
.instagram-container blockquote {
    position: relative;
    width: 100%;
    max-width: 540px;
    min-height: 650px;
    border: none;
    overflow: visible !important;
}

/* Botón de play para Instagram */
.instagram-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #ff69b4, #ff1493, #8a2be2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.instagram-play-overlay::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #ff69b4, #ff1493, #8a2be2);
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(10px);
}

.instagram-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 12px 48px rgba(255, 105, 180, 0.6);
}

.instagram-play-overlay:hover::before {
    opacity: 0.8;
}

.instagram-play-overlay svg {
    width: 45px;
    height: 45px;
    fill: white;
    margin-left: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.instagram-play-overlay.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    pointer-events: none;
}

/* Ajustes responsive para Instagram */
@media (max-width: 768px) {
    .instagram-wrapper {
        min-height: 550px;
    }
    
    .instagram-container iframe,
    .instagram-container blockquote {
        max-width: 100%;
        min-height: 550px;
    }
    
    .instagram-play-overlay {
        width: 60px;
        height: 60px;
    }
    
    .instagram-play-overlay svg {
        width: 30px;
        height: 30px;
    }
}

