@import url('https://fonts.googleapis.com/css2?family=Texturina:ital,opsz,wght@0,12..72,100..900;1,12..72,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

.barra_nav{
    position: fixed;
    width: 100%;
    background-image: url('imagenes/Barra_Nav.png');
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Texturina';
    padding: 0.5rem 2rem;
    z-index: 1000;
    transition: transform 0.3s ease;
    animation: fadeIn 1s ease-in;
}

.logo-nav {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.barra_nav.hidden {
    transform: translateY(-100%);
}

.barra_nav .max_width{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    width: 100%;
    margin: auto;
    padding: 0 20px;
}



.barra_nav .portfolio a{
    color: white;
    font-size: 5rem;
    font-weight: 500;
    margin-left: -3rem;
}

.barra_nav .menu li{
    display: inline-block;
}

.barra_nav .menu li a{
    color:white;
    font-size: 1.5rem;
    font-family: 'Texturina';
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.barra_nav .menu li a:hover{
    color: #310a0a;
}

/* Home */

.home{
    display: flex;
    background: url("imagenes") no-repeat center;
    font-family: 'Texturina';
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 40px;
    text-align: center;
}

.home_width {
    max-width: 1400px;
    width: 100%;
}

.home .nombre{
    font-size: 6rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.home .profesion{
    font-size: 4rem;
    font-weight: 200;
    color: rgb(66, 66, 78);
}

.max_width {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.sobre_mi {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 40px;
}

.habilidades {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 40px;
}

.trabajos {
    background-color: #f0f0f0;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    padding: 80px 40px;
}

.contacto {
    background-image: url('imagenes/Pie_Pagina.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: auto;
    padding: 60px 20px 40px;
    animation: fadeIn 1.5s ease-in;
}

.titulo_seccion {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
    font-family: 'Texturina';
}


.contacto .titulo_seccion {
    font-size: 2rem;
    color: white;
    margin-bottom: 40px;
}
/* Sobre mi */
.sobre-mi-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.foto-perfil {
    flex: 0 0 350px;
    text-align: center;
}

.mi-foto {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgb(122, 51, 39);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.texto-sobre-mi {
    flex: 1;
}

.texto-sobre-mi p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #555;
    font-family: 'Texturina';
    text-align: justify;
}

/* Sección Habilidades */
.habilidades-content {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    max-width: 1300px;
    margin: 0 auto;
}

.habilidades-texto {
    flex: 0 0 400px;
}

.habilidades-texto h3 {
    font-size: 2rem;
    color: #333;
    font-family: 'Texturina';
    margin-bottom: 20px;
    line-height: 1.4;
}

.habilidades-barras {
    flex: 1;
}

.habilidad {
    margin-bottom: 30px;
}

.habilidad-nombre {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Texturina';
}

.barra-progreso {
    width: 100%;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progreso {
    height: 100%;
    background: linear-gradient(90deg, rgb(190, 226, 245), #ff6b35);
    border-radius: 6px;
    transition: width 2s ease-in-out;
}

.progreso[data-porcentaje="80%"] { width: 80%; }
.progreso[data-porcentaje="90%"] { width: 90%; }
.progreso[data-porcentaje="70%"] { width: 70%; }
.progreso[data-porcentaje="65%"] { width: 65%; }
.progreso[data-porcentaje="50%"] { width: 50%; }

.porcentaje {
    text-align: right;
    font-size: 1rem;
    color: #666;
    margin-top: 8px;
    font-family: 'Texturina';
    font-weight: 500;
}

/* Sección Trabajos */
.trabajo-seccion {
    margin-bottom: 60px;
}

.trabajo-titulo {
    font-size: 2.2rem;
    color: rgb(58, 26, 22);
    margin-bottom: 15px;
    text-align: center;
    font-family: 'Texturina';
    font-weight: 600;
    position: relative;
}

.trabajo-descripcion {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    font-family: 'Texturina';
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.trabajo-titulo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: rgb(122, 51, 39);
    border-radius: 2px;
}

/* Modelos 3D */
.modelos-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.modelo-viewer {
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    background-color: #2a2a2a;
}

model-viewer {
    width: 100%;
    height: 100%;
    background-color: #2a2a2a;
}

.modelo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.modelo-viewer:hover .modelo-info {
    transform: translateY(0);
    opacity: 1;
}

.modelo-info h4 {
    font-size: 1.5rem;
    font-family: 'Texturina';
    margin-bottom: 8px;
    font-weight: 600;
}

.modelo-info p {
    font-size: 1rem;
    font-family: 'Texturina';
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Videos - Mejorado para pantallas grandes */
.videos-animacion, .videos-vfx {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.video-item {
    text-align: center;
}

.video-item video, .video-item iframe {
    width: 100%;
    height: 350px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gif-animacion {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background-color: #f5f5f5;
}

.video-item p {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #555;
    font-family: 'Texturina';
    font-weight: 500;
}

/* Para pantallas muy grandes, hacer videos aún más grandes */
@media (min-width: 1400px) {
    .videos-animacion, .videos-vfx {
        grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
        gap: 50px;
    }
    
    .video-item video, .video-item iframe {
        height: 400px;
    }
    
    .modelos-3d {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 50px;
    }
    
    .modelo-viewer {
        height: 500px;
    }
}

/* Carruseles */
.carruseles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.carrusel-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.carrusel-wrapper {
    position: relative;
    height: 500px;
}

.carrusel {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carrusel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #2a2a2a;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carrusel-img:hover {
    transform: scale(1.02);
}

.carrusel-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    z-index: 5;
}

.carrusel-wrapper:hover .carrusel-info {
    transform: translateY(0);
    opacity: 1;
}

.carrusel-info h4 {
    font-size: 1.4rem;
    font-family: 'Texturina';
    margin-bottom: 8px;
    font-weight: 600;
}

.carrusel-info p {
    font-size: 0.95rem;
    font-family: 'Texturina';
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Indicadores de posición */
.carrusel-indicadores {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicador.activo {
    background-color: rgb(58, 26, 22);
    border-color: white;
    transform: scale(1.2);
}

.indicador:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(58, 26, 22);
    color: white;
    border: none;
    padding: 18px 22px;
    font-size: 1.6rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carrusel-btn:hover {
    background: rgb(58, 26, 22);
    transform: translateY(-50%) scale(1.1);
}

.carrusel-btn.prev {
    left: 15px;
}

.carrusel-btn.next {
    right: 15px;
}

/* Galería de Fotos */
.galeria-fotos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.foto-galeria {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.foto-galeria:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

/* Para pantallas grandes, más columnas en la galería */
@media (min-width: 1400px) {
    .galeria-fotos {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
    
    .foto-galeria {
        height: 300px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sobre_mi, .habilidades, .trabajos, .contacto {
        padding: 80px 20px;
    }
    
    .sobre-mi-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .foto-perfil {
        flex: none;
    }
    
    .mi-foto {
        width: 250px;
        height: 250px;
    }
    
    .habilidades-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .habilidades-texto {
        flex: none;
        text-align: center;
    }
    
    .modelos-3d {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modelo-viewer {
        height: 350px;
    }
    
    .videos-animacion, .videos-vfx {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .video-item video, .video-item iframe {
        height: 250px;
    }
    
    .gif-animacion {
        height: 250px;
    }
    
    .galeria-fotos {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .foto-galeria {
        height: 200px;
    }
    
    .carruseles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .carrusel-wrapper {
        height: 350px;
    }
    
    .carrusel {
        height: 350px;
    }
    
    .carrusel-img {
        min-height: 350px;
    }
    
    .carrusel-indicadores {
        bottom: 15px;
    }
    
    .indicador {
        width: 10px;
        height: 10px;
    }
    
    .carrusel-btn {
        padding: 12px 16px;
        font-size: 1.3rem;
    }
    
    .trabajo-seccion {
        margin-bottom: 50px;
    }
}
/* Sección Contacto - Pie de página */
.contacto-content {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

.contacto-info {
    flex: 2;
}

.contacto-info h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
    font-family: 'Texturina';
}

.contacto-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-family: 'Texturina';
}

.email-contacto {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: white;
}

.email-contacto i {
    color: #ffae00;
    font-size: 1.3rem;
}

.email-contacto a {
    color: white;
    text-decoration: none;
    font-family: 'Texturina';
    transition: color 0.3s ease;
}

.redes-sociales {
    flex: 1;
    text-align: right;
}

.redes-sociales h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
    margin-right: 3.5rem;
    font-family: 'Texturina';
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-family: 'Texturina';
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-color: white;
}

.social-link i {
    font-size: 1.3rem;
}

.social-link span {
    display: none;
}

.social-link.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-link.artstation:hover {
    background: #13aff0;
    border-color: #13aff0;
}

.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

/* Menú tres barritas */
.menu-btn {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
        z-index: 999;
    }
    
    .menu-btn.active i:before {
        content: "\f00d";
    }
    
    .barra_nav .menu {
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%;
        top: 0;
        background: rgb(122, 51, 39);
        text-align: center;
        padding-top: 80px;
        transition: all 0.3s ease;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
    }
    
    .barra_nav .menu.active {
        left: 0;
    }
    
    .barra_nav .menu li {
        display: block;
        margin: 20px 0;
    }
    
    .barra_nav .menu li a {
        display: inline-block;
        margin: 0;
        font-size: 2rem;
        padding: 10px 20px;
        border-radius: 5px;
    }
    
    .barra_nav .menu li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .barra_nav .portfolio {
        display: none;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .logo-nav {
        margin-left: 0;
    }
    
    .home {
        padding-left: 2rem;
        padding-right: 2rem;
        text-align: center;
    }
    
    .home .nombre {
        font-size: 3rem;
    }
    
    .home .profesion {
        font-size: 2rem;
    }

    .contacto-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .redes-sociales {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .barra_nav .portfolio {
        display: none;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .logo-nav {
        margin-left: 0;
    }
    
    .home .nombre {
        font-size: 2.5rem;
    }
    
    .home .profesion {
        font-size: 1.5rem;
    }
    
    .titulo_seccion {
        font-size: 2rem;
    }
    
    .trabajo-titulo {
        font-size: 1.5rem;
    }
    
    .carrusel-container h4 {
        font-size: 1.2rem;
    }
    
    .contacto-info h3, .redes-sociales h3 {
        font-size: 1.5rem;
    }
}
.programas-galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    max-width: 350px;
}

.programa-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.programa-logo:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Responsive para programas */
@media (max-width: 768px) {
    .programas-galeria {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        max-width: 280px;
        margin: 30px auto 0;
    }
    
    .programa-logo {
        width: 50px;
        height: 50px;
    }
}
/* Modal para galería de fotos */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-description {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-family: 'Texturina';
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #ccc;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    padding: 20px 25px;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Hacer las imágenes de la galería clickeables */
.foto-galeria {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.foto-galeria:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    
    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .modal-image {
        max-height: 70vh;
    }
    
    .modal-nav {
        padding: 15px 18px;
        font-size: 1.5rem;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-description {
        font-size: 0.95rem;
        padding: 12px 20px;
    }
}

/* Animación de fundido de entrada */
@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}
