/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; 
    overflow-x: hidden;
}

/* ARTICULAT CF FONT */
@import url("https://use.typekit.net/xvn5ozw.css"); 

:root {
    --primary-color: #00f0ff;
    --text-color: #ffffff;
    --background-color: #000000;
    --font-size-h1: 4.5rem;
    --font-size-h2: 2.4rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1rem;
    --font-size-h5: 4rem;
    --font-size-p: 1rem;
    --font-weight-thin: 100;
    --font-weight-regular: 500;
    --font-weight-bold: 800;
    --scroll-direction: 1;

    @media (min-width:2000px){
        --font-size-h1: 5rem;   
        --font-size-h2: 3.5rem; 
        --font-size-h3: 2.3rem; 
        --font-size-h4: 2.1rem;
        --font-size-h5: 1.6rem;
        --font-size-p: 1.8rem; 
    }

    @media (max-width:1200px){
        --font-size-h1: 2.9rem;
        --font-size-h2: 2.4rem;
        --font-size-h3: 1.5rem;
        --font-size-h4: 1.3rem;
        --font-size-h5: 1.2rem;
        --font-size-p: 1rem;
    }

    @media (max-width:992px){
        --font-size-h1: 2.8rem;
        --font-size-h2: 2.4rem;
        --font-size-h3: 1.3rem;
        --font-size-h4: 1.1rem;
        --font-size-h5: 1rem;
        --font-size-p: 0.9rem;
    }

    @media (max-width:576px){
        --font-size-h1: 2.4rem;
        --font-size-h2: 1.7rem;
        --font-size-h3: 1.2rem;
        --font-size-h4: 1rem;
        --font-size-h5: 0.9rem;
        --font-size-p: 0.9rem;
    }

}

body {
    font-family: "articulat-cf", sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* Header styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background-color: transparent;
    backdrop-filter: blur(10px);
}

.logo {
    width: 50px;
    height: auto;
    flex: 1;
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: auto;
    animation: logoPulse 3s ease-in-out infinite;
}

.logo:hover img {
    animation-play-state: paused;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5%;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 5rem;
}

.nav-links1 {
    flex: 2;
    display: flex;
    justify-content: center;
}

/* Container for the presupuesto button */
.nav-links:last-child {
    flex: 1;
    justify-content: flex-end;
}

.nav-links1 a {
    position: relative;
    text-decoration: none;
}

.nav-links1 a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.nav-links1 a:hover::after {
    width: 100%;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: var(--font-size-p);
    transition: color 0.3s ease;
}

.presupuesto-btn {
    font-weight: bold;
    padding: 0.6rem 3rem;
    border: 2px solid var(--primary-color);
    position: relative;
    color: var(--text-color);
    background: transparent;
    transition: color 0.3s ease-in-out;
    z-index: 1;
    overflow: hidden;
    animation: glowPulse 2s infinite;
}

.presupuesto-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
    z-index: -1;
}

.presupuesto-btn:hover {
    color: var(--background-color);
}

.presupuesto-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.video-background video {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100vw;
    min-height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    margin: 0 10%
}

.hero-content h1 {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-thin);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(
        120deg,
        var(--text-color) 30%,
        rgba(149, 149, 149, 0.9) 47%,
        rgba(255, 255, 255, 1) 50%,
        rgba(167, 167, 167, 0.9) 53%,
        var(--text-color) 70%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: elegantShine 6s ease-in-out infinite;
    /* text-shadow: 0 0 20px rgba(255, 255, 255, 0.1); */
    position: relative;
}

.hero-content h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(8px);
    opacity: 0.2;
    z-index: -1;
}

.hero-content p {
    max-width: 600px;
    margin-bottom: 2rem;
    font-size: var(--font-size-p);
}

.primary-btn {
    font-weight: bold;
    font-size: var(--font-size-p);
    padding: 0.6rem 3rem;
    border: 2px solid var(--primary-color);
    position: relative;
    color: var(--text-color);
    background: transparent;
    transition: color 0.3s ease-in-out;
    z-index: 1;
    overflow: hidden;
    animation: glowPulse 2s infinite;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
    z-index: -1;
}

.primary-btn:hover {
    color: var(--background-color);
}

.primary-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Features section */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0rem;
    margin: 0 10%;
}

.feature-card {
    padding: 3rem 2rem;
    background: #1a1a1a;
    border-radius: 8px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 50px;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    height: 50px;
    display: flex;
    align-items: center;
}

.feature-card h3 {
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin: 0;
    position: relative;
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
    color: var(--text-color);
    height: auto;
    min-height: unset;
    display: block;
    line-height: 1.4;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    animation: lineGlow 2s ease-in-out infinite;
}

.feature-card p {
    font-size: var(--font-size-p);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    min-height: 4.5em;
    padding-top: 1rem;
}

.feature-card .primary-btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

@keyframes lineGlow {
    0% {
        box-shadow: 0 0 2px var(--primary-color),
                   0 0 4px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 4px var(--primary-color),
                   0 0 6px var(--primary-color);
    }
    100% {
        box-shadow: 0 0 2px var(--primary-color),
                   0 0 4px var(--primary-color);
    }
}

/* Demo section */
.demo {
    padding: 4rem 0rem;
    text-align: center;
    margin: 0 10%;
}

.demo-container {
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    position: relative;
    width: 100%;
}

/* Create a wrapper for the iframe to maintain aspect ratio */
.demo-container::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (9/16 = 0.5625) */
}

.ku-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.demo h2 {
    font-size: var(--font-size-h2);
    margin-bottom: 2rem;
}

/* Services section */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0rem;
    margin: 0 10%;
}

/* Base styles for all screen sizes */
.service-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1.2;
    display: flex;
    flex-direction: column;
}

.service-image {
    height: 60%;
    width: 100%;
    overflow: hidden;
    transition: height 0.3s ease;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-content {
    padding: 2rem;
    background: #1a1a1a;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: flex 0.3s ease;
}

.service-content span {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: absolute;
    top: 3rem;
}

.service-content h4 {
    font-size: calc(var(--font-size-h4) * 1.5);
    font-weight: var(--font-weight-bold);
    transition: all 0.3s ease;
    position: absolute;
    bottom: 30%;
    left: 2rem;
    right: 2rem;
    background: linear-gradient(
        120deg,
        var(--text-color) 30%,
        rgba(149, 149, 149, 0.9) 47%,
        rgba(255, 255, 255, 1) 50%,
        rgba(167, 167, 167, 0.9) 53%,
        var(--text-color) 70%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: elegantShine 6s ease-in-out infinite;
}

.service-description {
    font-size: var(--font-size-p);
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
}

/* Desktop hover effects (above 1170px) */
@media (min-width: 1171px) {
    .service-card:hover .service-image {
        height: 40%;
    }

    .service-card:hover .service-image img {
        transform: scale(1.1);
}

.service-card:hover .service-content {
    flex: 1.5;
}

.service-card:hover .service-content span {
    font-size: var(--font-size-h4);
    bottom: calc(50% + 3rem);
}

.service-card:hover .service-content h4 {
    font-size: var(--font-size-h4);
    bottom: calc(50% + 2rem);
    color: var(--primary-color);
}

.service-card:hover .service-description {
    opacity: 1;
    transform: translateY(0);
    }
}

/* Responsive styles - No hover or click effects */
@media (max-width: 1170px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 4rem 2rem;
        margin: 0 5%;
    }

    .service-card {
        aspect-ratio: auto;
        max-width: 500px;
        margin: 0 auto;
        height: auto;
        pointer-events: none; /* Disable all interactions */
    }

    .service-image {
        height: 250px;
        transition: none !important; /* Force no transitions */
    }

    .service-image img {
        transition: none !important;
        transform: none !important;
    }

    .service-content {
        padding: 2rem;
        position: static;
        transition: none !important;
        flex: none !important; /* Prevent flex changes */
    }

    .service-content span {
        position: static;
        font-size: var(--font-size-h3);
        transition: none !important;
        margin-bottom: 1rem;
    }

    .service-content h4 {
        position: static;
        font-size: var(--font-size-h4);
        color: var(--primary-color) !important;
        margin: 1rem 0;
        transition: none !important;
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        animation: none;
    }

    .service-description {
        position: static;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        margin-top: 1rem;
    }

    /* Force disable all hover and active states */
    .service-card:hover,
    .service-card:active,
    .service-card:focus {
        pointer-events: none;
    }

    .service-card:hover .service-image,
    .service-card:active .service-image,
    .service-card:hover .service-content,
    .service-card:active .service-content,
    .service-card:hover .service-image img,
    .service-card:active .service-image img,
    .service-card:hover .service-content span,
    .service-card:active .service-content span,
    .service-card:hover .service-content h4,
    .service-card:active .service-content h4,
    .service-card:hover .service-description,
    .service-card:active .service-description {
        transform: none !important;
        transition: none !important;
        height: auto !important;
        opacity: 1 !important;
        flex: none !important;
        position: static !important;
    }

    /* Ensure fixed heights */
    .service-card .service-image,
    .service-card:hover .service-image,
    .service-card:active .service-image {
        height: 250px !important;
    }

    /* Last card centering when odd number of cards */
    .service-card:last-child:nth-child(2n + 1) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Galeria section */

.text-gallery-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    padding: 3rem;
    margin-right: 10%;
    margin-bottom: 1rem;
    padding-top: 0;
    font-size: var(--font-size-p);
    text-align: left;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 1050px) {
    .text-gallery-container {
        width: 100%
    }
}

@media (max-width: 550px) {
    .demo{
        margin: 0% 5%;
        padding-left: 0px;
        padding-right: 0px;
    }
    .text-gallery-container {
        padding: 0rem
    }
    .text-gallery-container p {
        padding-bottom: 2rem;
    }
}

.text-gallery-container h2{
    font-size: var(--font-size-h2);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
    text-align: left;
    width: 100%;
    line-height: 1.2;
    text-transform: uppercase;
    /* Add elegant shine effect */
    background: linear-gradient(
        120deg,
        var(--text-color) 30%,
        rgba(149, 149, 149, 0.9) 47%,
        rgba(255, 255, 255, 1) 50%,
        rgba(167, 167, 167, 0.9) 53%,
        var(--text-color) 70%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: elegantShine 6s ease-in-out infinite;
}

.text-gallery-container h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(8px);
    opacity: 0.2;
    z-index: -1;
}

.text-gallery-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: var(--primary-color);
    animation: lineGlow 2s ease-in-out infinite;
}



.galeria {
    padding: 4rem 0;
    text-align: center;
    margin: 0 10%;
}

.image-comparison {
    width: 100%;
    height: 600px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

.image-comparison__container {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-comparison__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-comparison__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-comparison__image--after {
    width: 100%;
    z-index: 2;
}

.image-comparison__slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    z-index: 10;
    transform: translateX(-50%);
}

.image-comparison__handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: ew-resize;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-comparison__handle-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: white;
}

.image-comparison__handle-circle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.image-comparison__handle-circle i {
    color: white;
    font-size: 0.8rem;
}

@media (min-width: 2000px) {
    .image-comparison {
        height: 900px;
    }
}

@media (max-width: 1200px) {
    .image-comparison {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .image-comparison {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .image-comparison {
        height: 300px;
    }
}

/* Planos section */

.planos {
    margin: 0% 10%;
    padding: 4rem 0;
}

.swiper {
    width: 100%;
    height: 100%;
    border-radius: 8px;
  }

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet-active, .swiper-pagination, .swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
}

.swiper-pagination-bullet-active {
    background:  var(--primary-color) !important;
}


/* About section */
.about {
    padding: 0;
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    overflow: hidden;
    background-attachment: fixed;
    perspective: 1px;
}

.about-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.about-video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
}

.about-video-background video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%) scale(1.1);
    object-fit: cover;
    z-index: -1;
}

.about-content {
    position: relative;
    z-index: 1;
    width: 40%;
    padding: 3rem;
    margin-right: 10%;
    margin-bottom: 4rem;
    backdrop-filter: blur(10px);
}

/* Add elegant shine effect to about section heading */
.about h2 {
    font-size: var(--font-size-h2);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
    text-align: right;
    width: 100%;
    /* Add elegant shine effect */
    background: linear-gradient(
        120deg,
        var(--text-color) 30%,
        rgba(149, 149, 149, 0.9) 47%,
        rgba(255, 255, 255, 1) 50%,
        rgba(167, 167, 167, 0.9) 53%,
        var(--text-color) 70%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: elegantShine 6s ease-in-out infinite;
}

/* Add glow effect behind the text */
.about h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(8px);
    opacity: 0.2;
    z-index: -1;
}

/* Keep the existing line decoration */
.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 2px;
    background-color: var(--primary-color);
    animation: lineGlow 2s ease-in-out infinite;
}

.about p {
    font-size: var(--font-size-p);
    text-align: right;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

/* Contact section */
.contact {
    padding: 4rem 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    height: 80vh;
    margin: 0 10%;
    align-items: center;
}

/* Add elegant shine effect to contact section heading */
.contact-info h2 {
    font-size: var(--font-size-h2);
    margin-bottom: 1rem;
    line-height: 1.2;
    /* Add elegant shine effect */
    background: linear-gradient(
        120deg,
        var(--text-color) 30%,
        rgba(149, 149, 149, 0.9) 47%,
        rgba(255, 255, 255, 1) 50%,
        rgba(167, 167, 167, 0.9) 53%,
        var(--text-color) 70%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: elegantShine 6s ease-in-out infinite;
    position: relative;
}

/* Add glow effect behind the text */
.contact-info h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(8px);
    opacity: 0.2;
    z-index: -1;
}

.contact-info p{
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-p);  
    line-height: 1.6;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-p);
}

.contact-info li i{
    margin-right: 1rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.social-links a {
    width: 250px;
    height: 250px;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 4rem;
    position: relative;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(0, 240, 255, 0.1);
    transform: translateY(-5px);
}

.social-links a:hover::before {
    opacity: 1;
    animation: socialGlow 1.5s infinite;
}

.social-links a i {
    transition: all 0.3s ease;
}

.social-links a:hover i {
    text-shadow: 0 0 20px var(--primary-color);
    animation: iconPulse 1.5s infinite;
}

@keyframes socialGlow {
    0% {
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.4),
                   0 0 20px rgba(0, 240, 255, 0.3),
                   0 0 30px rgba(0, 240, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.6),
                   0 0 40px rgba(0, 240, 255, 0.4),
                   0 0 60px rgba(0, 240, 255, 0.3),
                   0 0 80px rgba(0, 240, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.4),
                   0 0 20px rgba(0, 240, 255, 0.3),
                   0 0 30px rgba(0, 240, 255, 0.2);
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Footer - Original Styles with Responsive Updates */
footer {
    padding: 6rem 0;
    position: relative;
    margin: 0 10%;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    animation: lineGlow 2s ease-in-out infinite;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 4rem;
    list-style: none;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--font-size-p);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--text-color);
}

/* Tablet Styles (max-width: 1024px) */
@media (max-width: 1024px) {
    footer {
        padding: 4rem 0;
        margin: 0 5%;
    }
    
    .footer-nav ul {
        gap: 3rem;
    }
}

/* Large Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    footer {
        padding: 3rem 0;
    }
    
    .footer-nav ul {
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 1rem;
    }
    
    .footer-nav a {
        padding: 0.5rem;
        font-size: calc(var(--font-size-p) * 0.95);
    }

    footer::before {
        width: 60%;
        left: 20%;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
    footer {
        padding: 2rem 0;
    }
    
    .footer-nav ul {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-nav li {
        width: 100%;
        text-align: center;
    }
    
    .footer-nav a {
        display: block;
        padding: 0.8rem;
        font-size: calc(var(--font-size-p) * 0.9);
    }
}

/* Very Small Mobile Styles (max-width: 360px) */
@media (max-width: 360px) {
    footer {
        padding: 1.5rem 0;
    }
    
    .footer-nav ul {
        gap: 1rem;
    }
    
    .footer-nav a {
        padding: 0.6rem;
        font-size: calc(var(--font-size-p) * 0.85);
    }
}

/* Responsive design features services section*/
@media (max-width: 1200px) {
    .features {
        padding: 50px 0px;
        gap: 1rem;
        margin: 0 5%;
    }
}

@media (max-width: 1000px) {
    .features,
    .services {
        grid-template-columns: 1fr;
    }

    .contact {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .about-content {
        width: 80%;
        margin-right: 5%;
        margin-bottom: 2rem;
        padding: 2rem;
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 2px rgba(0, 240, 255, 0.3),
                   0 0 4px rgba(0, 240, 255, 0.2),
                   0 0 6px rgba(0, 240, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 4px rgba(0, 240, 255, 0.4),
                   0 0 8px rgba(0, 240, 255, 0.3),
                   0 0 12px rgba(0, 240, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 2px rgba(0, 240, 255, 0.3),
                   0 0 4px rgba(0, 240, 255, 0.2),
                   0 0 6px rgba(0, 240, 255, 0.1);
    }
}

@keyframes elegantShine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes parallax {
    0% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        transform: scale(1.1) translateY(-2%);
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader img {
    width: 100px;
    height: auto;
    animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(calc(30px * var(--scroll-direction)));
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for features and services cards */
.feature-card, .service-card {
    opacity: 0;
    transform: translateY(calc(30px * var(--scroll-direction)));
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.feature-card.visible, .service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero content animation */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About section animation */
.about-content {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Contact section animations */
.contact-info {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.contact-info.visible {
    opacity: 1;
    transform: translateX(0);
}

.social-links {
    opacity: 0;
    transform: translateY(calc(30px * var(--scroll-direction)));
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.social-links.visible {
    opacity: 1;
    transform: translateY(0);
}

/* New section animations */
.planos, .galeria, .demo {
    opacity: 0;
    transform: translateY(calc(30px * var(--scroll-direction)));
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.planos.visible, .galeria.visible, .demo.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-gallery-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.text-gallery-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.image-comparison, .swiper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.image-comparison.visible, .swiper.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll direction variable */
:root {
    --scroll-direction: 1;
}

/* Adjust transform based on scroll direction */
.fade-in, .planos, .galeria, .demo, .text-gallery-container, .image-comparison, .swiper {
    transform: translateY(calc(30px * var(--scroll-direction)));
}

/* Hamburger Menu Styles */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: transform 0.3s ease-in-out,
                opacity 0.3s ease-in-out,
                background-color 0.3s ease-in-out;
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

/* Nav container for mobile */
/* Responsive Nav Section */
@media (max-width: 930px) {
    .nav-links {
        gap: 2rem;
    }
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Responsive Navigation */
@media (max-width: 940px) {
    .hamburger-btn {
        display: block;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        padding: 2rem;
    }

    .nav-container.active {
        right: 0;
    }

    /* Combine all navigation links into one unified list */
    .nav-links, .nav-links1 {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0; /* Remove default gap */
    }

    /* Create a wrapper for all nav items */
    .nav-container {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly; /* This ensures equal spacing */
        height: 100vh;
        padding: 15vh 0; /* Add some padding top and bottom */
    }

    /* Style individual nav items */
    .nav-links li, .nav-links1 li {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease-in-out,
                    transform 0.3s ease-in-out;
        margin: 1rem 0; /* Add consistent vertical margin */
        width: 100%;
        text-align: center;
    }

    /* Make all links consistent in size */
    .nav-links a, .nav-links1 a {
        font-size: var(--font-size-h3);
        padding: 1rem;
        display: inline-block;
        width: auto;
    }

    /* Special styling for the contact button */
    .presupuesto-btn {
        margin: 1rem 0;
        padding: 1rem 3rem;
        font-size: var(--font-size-h3);
    }

    .nav-container.active .nav-links li,
    .nav-container.active .nav-links1 li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Adjust stagger delays for smoother animation */
    .nav-links1 li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links1 li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links1 li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links li:nth-child(1) { transition-delay: 0.4s; }

    /* Ensure consistent hover effects */
    .nav-links1 a:hover::after {
        width: 50%; /* Make underline effect consistent */
        left: 25%; /* Center the underline */
    }

    /* Hamburger animation */
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: var(--primary-color);
    }

    .hamburger-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: var(--primary-color);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Remove the old media query if it exists */
@media (max-width: 768px) {
    .nav-links {
        display: flex !important;
    }
}

/* Responsive Services Section */
@media (max-width: 1333px) and (min-width: 771px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 4rem 2rem;
        margin: 0 5%;
    }

    .service-card {
        aspect-ratio: auto;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
        height: auto;
    }

    /* Fixed card structure - no transitions or hover states */
    .service-image {
        height: 250px;
        width: 100%;
        transition: none;
    }

    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
        transition: none;
    }

    .service-content {
        padding: 2rem;
        background: #1a1a1a;
        min-height: 200px;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        transition: none;
    }

    /* Static positioning for all elements */
    .service-content span {
        position: static;
        font-size: var(--font-size-h3);
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 0.5rem;
        transition: none;
    }

    .service-content h4 {
        position: static;
        font-size: var(--font-size-h4);
        color: var(--primary-color);
        margin: 0.5rem 0;
        transition: none;
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        animation: none;
    }

    .service-description {
        position: static;
        opacity: 1;
        transform: none;
        font-size: calc(var(--font-size-p) * 0.9);
        color: rgba(255, 255, 255, 0.7);
        transition: none;
    }

    /* Explicitly override all hover states */
    .service-card:hover .service-image,
    .service-card:hover .service-content,
    .service-card:hover .service-image img,
    .service-card:hover .service-content span,
    .service-card:hover .service-content h4,
    .service-card:hover .service-description {
        all: unset;
        /* Reapply necessary styles */
        display: block;
        width: 100%;
    }

    .service-card:hover {
        pointer-events: none; /* Disable hover interactions completely */
    }

    /* Last card centering when odd number of cards */
    .service-card:last-child:nth-child(2n + 1) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Mobile styles */
@media (max-width: 770px) {
    .services {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 1rem;
        margin: 0 5%;
    }

    .service-card {
        aspect-ratio: auto;
        max-width: 450px;
        margin: 0 auto;
        height: auto;
        pointer-events: none; /* Disable hover interactions */
    }

    .service-image {
        height: 200px;
        width: 100%;
        transition: none;
    }

    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
        transition: none;
    }

    .service-content {
        padding: 1.5rem;
        background: #1a1a1a;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        transition: none;
    }

    .service-content span {
        position: static;
        font-size: calc(var(--font-size-h3) * 0.9);
        color: rgba(255, 255, 255, 0.7);
        transition: none;
    }

    .service-content h4 {
        position: static;
        font-size: var(--font-size-h4);
        color: var(--primary-color);
        margin: 0.5rem 0;
        transition: none;
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        animation: none;
    }

    .service-description {
        position: static;
        opacity: 1;
        transform: none;
        font-size: var(--font-size-p);
        color: rgba(255, 255, 255, 0.7);
        transition: none;
    }

    /* Explicitly override all hover states */
    .service-card:hover .service-image,
    .service-card:hover .service-content,
    .service-card:hover .service-image img,
    .service-card:hover .service-content span,
    .service-card:hover .service-content h4,
    .service-card:hover .service-description {
        all: unset;
        display: block;
        width: 100%;
    }
}

/* Tablet Responsive Styles */
@media (max-width: 1150px) {
    .contact {
        grid-template-columns: 1fr;
        gap: 3rem;
        height: auto;
        padding: 4rem 2rem;
        text-align: center;
    }

    .contact-info {
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-info h2 {
        font-size: calc(var(--font-size-h2) * 0.9);
        line-height: 1.3;
        margin-bottom: 2rem;
    }

    .contact-info ul {
        display: inline-block;
        text-align: left;
        margin: 0 auto;
    }

    .social-links {
        margin: 0 auto;
        max-width: 600px;
        gap: 2rem;
    }

    .social-links a {
        width: 300px;
        height: 100px;
        font-size: 3.5rem;
    }
}

/* Large Mobile Styles */
@media (max-width: 768px) {
    .contact {
        padding: 3rem 1.5rem;
        gap: 2.5rem;
    }

    .contact-info h2 {
        font-size: calc(var(--font-size-h2) * 0.85);
        margin-bottom: 1.5rem;
    }

    .contact-info ul {
        padding-left: 1rem;
    }

    .contact-info li {
        font-size: calc(var(--font-size-p) * 0.95);
        margin-bottom: 1rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-links a {
        width: 160px;
        height: 160px;
        font-size: 3rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .contact {
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .contact-info h2 {
        font-size: calc(var(--font-size-h2) * 0.75);
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .contact-info li {
        font-size: calc(var(--font-size-p) * 0.9);
        margin-bottom: 0.8rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 130px;
        height: 130px;
        font-size: 2.5rem;
    }

    /* Optimize hover effects for mobile */
    .social-links a::before {
        border-width: 1px;
    }

    .social-links a:hover {
        transform: translateY(-3px);
    }

    @keyframes socialGlow {
        0% {
            box-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
        }
        50% {
            box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
        }
        100% {
            box-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
        }
    }

    @keyframes iconPulse {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
        100% {
            transform: scale(1);
        }
    }
}

/* Very Small Mobile Styles */
@media (max-width: 360px) {
    .contact {
        padding: 2rem 0.5rem;
    }

    .contact-info h2 {
        font-size: calc(var(--font-size-h2) * 0.7);
    }

    .contact-info li {
        font-size: calc(var(--font-size-p) * 0.85);
    }

    .social-links a {
        width: 110px;
        height: 110px;
        font-size: 2rem;
    }
}

/* Responsive adjustments */


/* Responsive adjustments for galeria section */
@media (max-width: 1200px) {
    .galeria {
        margin: 0 5%;
    }
    
    .image-comparison {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .image-comparison {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .image-comparison {
        height: 300px;
    }
}

