/* ========================== */
/* Común a todos los HTML */
/* ========================== */
body {
    margin: 0;
    font-family: 'Dela Gothic One', sans-serif;
    background-color: black;
    color: white;
    text-align: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: black;
    z-index: 1000
}

.logo {
    font-size: 32px;
    font-weight: bold;
    font-family: 'Bagel Fat One';
    color: white;
    text-decoration: none;

}


nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.nav-icon { 
    display: none; 
    font-size: 24px; 
    cursor: pointer; 
    color: white; 
}

a {
    color: white;
    text-decoration: none;
    display: block;
}

/* ========================== */
/* HTML de "index" */
/* ========================== */

.carousel {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    margin-bottom: 0;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding-top: 30px;
}

.service-list {
    text-align: center;
    margin-bottom: 20px;
}

.service-list p {
    margin: 15px 0;
    font-size: 36px;
    font-weight: bold;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.service-icon img {
    width: 150px;
    height: 150px;
}

/* ========================== */
/* Animación de Scroll */
/* ========================== */
.scroll-animate-left, .scroll-animate-right {
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-animate-left {
    transform: translateX(-100%);
}

.scroll-animate-right {
    transform: translateX(100%);
}

.scroll-animate-left.visible, .scroll-animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-left.invisible {
    opacity: 0;
    transform: translateX(-100%);
}

.scroll-animate-right.invisible {
    opacity: 0;
    transform: translateX(100%);
}

.software-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 30px;
    position: relative;
    padding: 20px 0;
}

.software-icons img {
    width: 80px;
    height: auto;
    margin: 10px;
    animation: slide 6s infinite;
}

@keyframes slide {
    0%, 20% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(100px);
    }
    70%, 90% {
        transform: translateX(-100px);
    }
    100% {
        transform: translateX(0);
    }
}

.cta {
    margin: 50px 0;
}

.cta p {
    font-size: 24px;
}

.cta h1 {
    font-size: 36px;
    margin: 15px 0;
}

.cta button {
    margin-top: 50px;
    background-color: white;
    color: black;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 25px;
    transition: background-color 0.3s;
    font-family: 'Dela Gothic One', sans-serif;
}

.cta button:hover {
    background-color: lightgray;
}

/* ========================== */
/* HTML de "contacto"         */
/* ========================== */
.intro {
    margin-top: 30px;
    font-family: 'Dela Gothic One';
}

.intro h1 {
    font-size: 36px;
    margin: 0;
}

.intro p {
    font-size: 36px;
    margin: 10px 0;
}

.message {
    margin: 30px 0;
    font-size: 16px;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.social-icons img {
    width: 50px;
    height: 50px;
}

.notification {
    display: none;
    padding: 15px 20px;
    background-color: white;
    color: black;
    border: 2px solid #000;
    border-radius: 15px;
    font-size: 18px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    font-family: 'Dela Gothic One', sans-serif;
}

.notification::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid white;
    border-bottom-color: white;
}

/* ========================== */
/* HTML de "Work"             */
/* ========================== */
.work-image {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.work-image img {
    max-width: 100%;
    height: auto;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.categories li {
    margin: 0;
}

.categories a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    display: block;
    margin: 10px 0;
}

.project-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.project-item {
    position: relative;
    overflow: hidden;
}

.project-item img,
.project-item video,
.project-item iframe {
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.project-item:hover .overlay {
    opacity: 1;
}

.photo-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
}

.photo-item img, video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Media Queries */
@media (max-width: 767px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }

    .logo {
        font-size: 30px;
        margin-left: 10px;
    }

    .nav-links { 
        display: none; 
        flex-direction: column; 
        background-color: rgb(27, 27, 27); 
        position: absolute; 
        top: 70px; 
        right: 0; 
        width: 100%; 
        text-align: center; 
        z-index: 1001;
    
    } 

    .nav-links.active {
        display: flex;
    } 

    .nav-icon { 
        display: block; 
        font-size: 45px;
        margin-right: 10px;
     
    }

    nav ul {
        flex-direction: row;
        justify-content: center;
        padding: 0;
    }

    nav a {
        font-size: 16px; 
    }

    .carousel {
        height: 30vh;
        margin-top: 60px;
    }

    .service-list p {
        font-size: 24px;
    }

    .service-icon img {
        width: 100px;
        height: 100px;
    }

    .cta p {
        font-size: 18px;
    }

    .cta h1 {
        font-size: 24px;
    }

    .cta button {
        font-size: 16px;
        padding: 8px 16px;
    }
    .intro {
         margin-top: 140px;
    }
    .intro h1, .intro p {
        font-size: 24px;
    }

    .message {
        font-size: 14px;
    }

    .social-icons img {
        width: 40px;
        height: 40px;
    }

    .work-image img {
        max-width: 100%;
    }

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

    .photo-gallery {
        grid-template-columns: 1fr;
    }
    .categories a {
    font-size: 15px;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
    .carousel {
        height: 60vh; /* Incrementa la altura del carrusel */
    }

    nav ul {
        flex-direction: row;
        justify-content: center;
    }

    .services {
        flex-direction: row;
    }

    .service-list {
        text-align: left;
        margin-right: 30px;
    }

    .service-list p {
        font-size: 48px;
    }

    .service-icon img {
        width: 200px;
        height: 200px;
    }

    .cta p {
        font-size: 36px;
    }

    .cta h1 {
        font-size: 72px;
    }

    .cta button {
        font-size: 24px;
    }

    .intro h1,
    .intro p {
        font-size: 48px;
    }

    .message {
        font-size: 20px;
    }

    .social-icons img {
        width: 50px;
        height: 50px;
    }

    .work-image img {
        max-width: 45%;
    }

    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .carousel {
        height: 70vh; /* Incrementa la altura del carrusel para pantallas grandes */
    }

    .services {
        flex-direction: row;
        justify-content: center;
    }

    .service-list {
        text-align: left;
        margin-right: 30px;
    }

    .service-list p {
        font-size: 56px;
    }

    .service-icon img {
        width: 250px;
        height: 250px;
    }

    .cta p {
        font-size: 48px;
    }

    .cta h1 {
        font-size: 108px;
    }

    .cta button {
        font-size: 36px;
    }

    .intro h1,
    .intro p {
        font-size: 56px;
    }

    .message {
        font-size: 24px;
    }

    .social-icons img {
        width: 80px;
        height: 80px;
    }

    .work-image img {
        max-width: 45%;
    }

    .project-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1440px) {
    .carousel {
        height: 80vh; /* Incrementa la altura del carrusel para pantallas extra grandes */
    }

    .services {
        flex-direction: row;
        justify-content: center;
    }

    .service-list {
        text-align: left;
        margin-right: 50px;
    }

    .service-list p {
        font-size: 64px;
    }

    .service-icon img {
        width: 300px;
        height: 300px;
    }

    .cta p {
        font-size: 56px;
    }

    .cta h1 {
        font-size: 120px;
    }

    .cta button {
        font-size: 48px;
    }

    .intro h1,
    .intro p {
        font-size: 64px;
    }

    .message {
        font-size: 26px;
    }

    .social-icons img {
        width: 100px;
        height: 100px;
    }

    .work-image img {
        max-width: 45%;
    }

    .project-gallery {
        grid-template-columns: repeat(4, 1fr);
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
