/* Estilos generales */
.portafolio-general {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    margin-top: 0;
    position: relative;
}

.contenedores-secundarios {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 95%;
    padding: 0 20px;
    margin-top: 0;
}

.contenedor-verake,
.contenedor-dankiel,
.contenedor-ddxous {
    flex: 1;
    height: 850px;
    background-color: #e0e0e0;
    overflow: hidden;
    position: relative;
    border: 10px solid transparent;
    border-image-slice: 1;
    animation: gradient-rotate 3s linear infinite;
}

.video-portafolio {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes gradient-rotate {
    0% { border-image: linear-gradient(45deg, #000000, #a91313) 1; }
    50% { border-image: linear-gradient(45deg, #a91313, #000000) 1; }
    100% { border-image: linear-gradient(45deg, #000000, #a91313) 1; }
}

/* Botón Más Información */
.boton-mas-informacion {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #a91313;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.boton-mas-informacion:hover {
    background-color: #8a0f0f;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Estilos del Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-contenido {
    background-color: #1a1a1a;
    padding: 0;
    border-radius: 15px;
    width: 900px;
    max-width: 90%;
    height: auto;
    max-height: 90vh;
    position: relative;
    animation: fadeIn 0.5s ease;
    overflow: hidden;
    color: white;
    padding-bottom: 80px; /* Espacio para controles */
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.popup-encabezado {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.cerrar-popup {
    background-color: #a91313;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 11;
}

.cerrar-popup:hover {
    background-color: #8a0f0f;
    transform: scale(1.1);
}

/* Perfil de red social */
.perfil-red-social {
    position: relative;
    margin-bottom: 0;
}

.video-banner-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-banner-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Banner de video */
.banner-perfil {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 300px;
    overflow: hidden;
    position: relative;
    border-top: 4px solid white;
    border-bottom: 4px solid white;
    background-color: #000;
    z-index: 1; /* Establece un z-index base */
}


.banner-perfil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenedor del perfil con z-index mayor */
.perfil-contenido {
    position: relative;
    padding: 0 20px;
    margin-top: -100px;
    z-index: 10; /* Mayor que el banner para que esté encima */
    text-align: center;
}


/* Foto de perfil (estilos existentes mejorados) */
.foto-perfil {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #1a1a1a;
    overflow: hidden;
    background-color: #1a1a1a;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative; /* Aseguramos posicionamiento */
    z-index: 11; /* Aún más alto que el contenedor */
}

.foto-perfil:hover {
    transform: scale(1.1);
    border-color: #a91313;
    box-shadow: 0 6px 15px rgba(169, 19, 19, 0.4);
}

.foto-perfil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.foto-perfil:hover img {
    transform: scale(1.05);
}

.nombre-perfil h1 {
    margin: 0;
    font-size: 24px;
    color: white;
}

/* Categorías */
.categorias-perfil {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.categoria-btn {
    padding: 8px 15px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.categoria-btn:hover {
    background-color: #555;
}

.categoria-btn.active {
    background-color: #a91313;
}

/* Redes sociales */
.redes-sociales-perfil {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-red-social {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.logo-red-social:hover {
    transform: scale(1.2);
}

/* Contenido dinámico */
.contenido-dinamico {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    margin: 0 20px 20px;
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

.categoria-content {
    display: none;
}

.categoria-content.active {
    display: block;
}

/* Diseños */
.grid-diseños {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.diseño-item {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.diseño-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.diseño-item:hover img {
    transform: scale(1.05);
}

/* Visuales */
#opciones-visuales {
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

#lista-videos {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

#lista-videos li {
    padding: 8px 15px;
    background-color: #333;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#lista-videos li:hover {
    background-color: #555;
}

.mensaje-visuales {
    text-align: center;
    padding: 20px;
    color: #888;
    font-style: italic;
}

/* Contenedor de videos */
.contenedor-videos {
    margin-top: 20px;
}

.normal-view {
    display: flex;
    justify-content: center;
    padding: 15px;
}

.normal-view iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
}

.grid-view iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Botones de vista */
.vista-botones {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 50px;
}

.vista-boton {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.vista-boton:hover {
    background-color: #a91313;
    transform: scale(1.1);
}

.vista-boton.active {
    background-color: #a91313;
    box-shadow: 0 0 0 3px rgba(169, 19, 19, 0.5);
}

.vista-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Flechas de navegación */
.flechas-navegacion {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 9;
}

.flecha-navegacion {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flecha-navegacion:hover {
    background-color: #a91313;
}

/* Acerca de mí */
.acerca-texto {
    padding: 20px;
    text-align: center;
}

.acerca-texto h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .contenedores-secundarios {
        flex-direction: column;
    }
    
    .contenedor-verake,
    .contenedor-dankiel,
    .contenedor-ddxous {
        height: 400px;
        width: 100%;
    }
    
    .grid-diseños {
        grid-template-columns: 1fr;
    }
    
    .popup-contenido {
        width: 95%;
    }
    
    .normal-view iframe {
        height: 250px;
    }
    
    .grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vista-boton {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .grid-view {
        grid-template-columns: 1fr;
    }
    
    .grid-view iframe {
        height: 180px;
    }
    
    .vista-boton {
        width: 40px;
        height: 40px;
    }
    
    .vista-icon {
        width: 20px;
        height: 20px;
    }
    
    .flechas-navegacion {
        padding: 0 10px;
    }
}

/* Estilos para las opciones de diseños */
#opciones-diseños {
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

#lista-diseños {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

#lista-diseños li {
    padding: 8px 15px;
    background-color: #333;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#lista-diseños li:hover {
    background-color: #555;
}

.mensaje-diseños {
    text-align: center;
    padding: 20px;
    color: #888;
    font-style: italic;
}

/* Contenedor de diseños */
.contenedor-diseños {
    margin-top: 20px;
}

.normal-view .contenedor-diseños {
    display: flex;
    justify-content: center;
    padding: 15px;
}

.normal-view .contenedor-diseños img {
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.grid-view .contenedor-diseños {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
}

.grid-view .contenedor-diseños img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Efecto hover para los diseños */
.contenedor-diseños img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contenedor-diseños img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Estilos para la navegación de diseños */
.contenedor-diseños .diseño-item {
    position: relative;
    overflow: hidden;
}

/* Asegurar que las imágenes mantengan su relación de aspecto */
.contenedor-diseños img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive para diseños */
@media (max-width: 768px) {
    .grid-view .contenedor-diseños {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .normal-view .contenedor-diseños img {
        max-height: 300px;
    }
    
    .grid-view .contenedor-diseños img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .grid-view .contenedor-diseños {
        grid-template-columns: 1fr;
    }
    
    .grid-view .contenedor-diseños img {
        height: 160px;
    }
    
    #lista-diseños {
        flex-direction: column;
        align-items: center;
    }
    
    #lista-diseños li {
        width: 80%;
        text-align: center;
    }
}

/* Estilos para las pestañas */
.pestanas-portafolio {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 20px;
  }
  
  .pestana {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
    z-index: 1;
  }
  
  .pestana:hover {
    background-color: #555;
  }
  
  .pestana.active {
    background-color: #a91313;
    font-weight: bold;
  }

  