* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --gradient: linear-gradient(45deg, #ff3366, #ff6b6b, #4834d4, #686de0);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --border: 1px solid rgba(255, 255, 255, 0.1);
    --shadow: 0 32px 60px 0 rgba(236, 0, 165, 0.37);
}

body {
    background: #0a0a0a;
    min-height: 100vh;
}

/* Preloader Styles */
.ctn-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1s ease;
}

.ctn-preloader.hide-preloader {
    opacity: 0;
    visibility: hidden;
}

.animation-preloader {
    text-align: center;
}

.spinner {
    position: relative;
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
}

.spinner-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #007BFF;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preloader-content {
    margin-top: 20px;
}

.txt-loading {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.letters-loading {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    animation: letterFadeIn 0.3s ease forwards;
}

.letters-loading:nth-child(1) { animation-delay: 0.1s; }
.letters-loading:nth-child(2) { animation-delay: 0.2s; }
.letters-loading:nth-child(3) { animation-delay: 0.3s; }
.letters-loading:nth-child(4) { animation-delay: 0.4s; }
.letters-loading:nth-child(5) { animation-delay: 0.5s; }
.letters-loading:nth-child(6) { animation-delay: 0.6s; }
.letters-loading:nth-child(7) { animation-delay: 0.7s; }
.letters-loading:nth-child(8) { animation-delay: 0.8s; }
.letters-loading:nth-child(9) { animation-delay: 0.9s; }
.letters-loading:nth-child(10) { animation-delay: 1.0s; }
.letters-loading:nth-child(11) { animation-delay: 1.1s; }

@keyframes letterFadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 0.8; transform: scale(1); }
}

.loader {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader .row {
    display: flex;
    width: 100%;
    height: 100%;
}

.loader-section {
    flex: 1;
    height: 100%;
}

.loader-section .bg {
    background: #0a0a0a;
    height: 100%;
    transition: transform 1s ease;
}

.loader-section.section-left .bg {
    transform: translateX(-100%);
}

.loader-section.section-right .bg {
    transform: translateX(100%);
}

.ctn-preloader.hide-preloader .loader-section.section-left .bg,
.ctn-preloader.hide-preloader .loader-section.section-right .bg {
    transform: translateX(0);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(0.8rem, 2vw, 1.2rem) 5%;
    backdrop-filter: blur(12px);
    background: var(--glass-bg);
    border-bottom: var(--border);
    z-index: 1000;
}

.navbar.scrolled {
    padding: clamp(0.6rem, 1.5vw, 0.8rem) 5%;
    background: rgba(10, 10, 10, 0.95);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    letter-spacing: 0.3px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    border-radius: 50%;
    background: var(--glass-bg);
    border: var(--border);
}

.mobile-nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-toggle .bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-toggle .bar:nth-child(1) { top: 14px; }
.mobile-nav-toggle .bar:nth-child(2) { top: 19px; }
.mobile-nav-toggle .bar:nth-child(3) { top: 24px; }

.mobile-nav-toggle.active .bar:nth-child(1) {
    transform: translateX(-50%) translateY(5px) rotate(45deg);
}

.mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .bar:nth-child(3) {
    transform: translateX(-50%) translateY(-5px) rotate(-45deg);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* General Section Styles */
section {
    min-height: 100vh;
    padding: clamp(60px, 10vw, 80px) 5% clamp(40px, 8vw, 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-content {
    max-width: 1400px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.section-description {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-family: 'Roboto', sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.8;
    color: white;
}

.section-description_2 {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 800px;
    padding: clamp(20px, 5vw, 40px) 20px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.8;
    color: rgb(0, 0, 0);
}

/* Animated Title in #home */
.section-title {
    display: flex;
    justify-content: center;
    gap: clamp(0.5rem, 1vw, 1rem);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.title-part {
    opacity: 0;
    transform: translateX(0);
}

.title-part-left {
    transform: translateX(-100vw);
    animation: slideInLeft 1s ease-out forwards;
}

.title-part-right {
    transform: translateX(100vw);
    animation: slideInRight 1s ease-out forwards;
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-100vw); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(100vw); }
    100% { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        flex-direction: column;
        align-items: center;
        gap: clamp(0.3rem, 1vw, 0.5rem);
    }

    .title-part-left,
    .title-part-right {
        animation-duration: 0.8s; /* Animación más rápida en móviles */
    }
}

/* Home Section */
#home {
    background: #cecece;
}

#home .typing-text {
    display: inline-block;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid white;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    opacity: 0.8;
    color: white;
    min-height: 1.6em;
}

#home .typing-text.black-text {
    color: #000000;
    border-right: 2px solid #000000;
}

.navbar.black-text .nav-links a {
    color: #000000;
}

/* About Section */
#about .section-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
}

#about .section-content {
    position: relative;
    z-index: 1;
}

#about .bg-effect {
    z-index: 0;
}

/* Services Section */
#services {
    position: relative;
    padding: clamp(40px, 8vw, 60px) 5%;
    background-color: #c0c0c0;
    overflow: hidden;
}

#services .bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 10%, transparent 70%);
    z-index: 0;
    opacity: 0.3;
}

#services .section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: rgb(0, 0, 0);
    text-align: center;
    margin-bottom: clamp(20px, 3vw, 30px);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

#services .section-description_1 {
    text-align: left;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-family: 'Roboto', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: rgb(0, 0, 0);
}

#services .service-line {
    display: block;
    margin-bottom: 20px;
}

#services .service-line strong {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #000;
    display: inline-block;
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
}

#services .service-list {
    list-style: none;
    padding-left: 20px;
}

#services .service-item {
    position: relative;
    padding-left: 30px;
    margin: 10px 0;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgb(0, 0, 0);
}

#services .service-item::before {
    content: '➜';
    position: absolute;
    left: 0;
    color: rgb(0, 0, 0);
    font-weight: bold;
}

#services .service-item:hover {
    transform: translateX(10px);
    color: rgba(0, 0, 0, 0.8);
}

#services .conoce-mas-btn {
    display: inline-block;
    padding: clamp(10px, 2vw, 12px) clamp(20px, 4vw, 24px);
    background: rgb(0, 0, 0);
    color: white;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 500;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

#services .conoce-mas-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

#services .conoce-mas-btn:hover::after {
    left: 100%;
}

#services .conoce-mas-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Portfolio Section */
#portfolio .section-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
}

#portfolio .section-content {
    position: relative;
    z-index: 1;
}

#portfolio .bg-effect {
    z-index: 0;
}

/* Estilos para el contenedor del iframe en la sección de portafolio */
.portfolio-items-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.portfolio-item {
    margin-top: 2rem;
    text-align: center;
    display: none;
}

.portfolio-item.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.portfolio-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.portfolio-description {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.portfolio-iframe-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: rgba(204, 204, 204, 0.473);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(14, 97, 112, 0.733);
    backdrop-filter: blur(5px);
    transition: max-width 0.5s ease, padding-bottom 0.5s ease, box-shadow 0.3s ease;
}

.portfolio-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-iframe-container.expanded {
    max-width: 900px;
    padding-bottom: 56.25%;
    background-image: none !important;
}

.portfolio-iframe-container.expanded iframe {
    opacity: 1;
}

.expand-project-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(255, 255, 255);
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 10px 20px;
    border: 1px solid rgba(19, 138, 138, 0.808);
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.expand-project-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) scale(1.05);
}

.portfolio-iframe-container.expanded .expand-project-btn {
    display: none;
}

.close-project-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.7);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.close-project-btn:hover {
    background: rgba(255, 0, 0, 0.9);
    transform: scale(1.05);
}

.portfolio-iframe-container:not(.expanded) .close-project-btn {
    display: none;
}

.visit-website-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ff3366, #686de0);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visit-website-btn:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.portfolio-iframe-container:not(.expanded) .visit-website-btn {
    display: none;
}

.portfolio-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.portfolio-prev-btn,
.portfolio-next-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff3366, #686de0);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 500;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.3s ease, background 0.3s ease;
}

.portfolio-prev-btn:hover,
.portfolio-next-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #ff6b6b, #4834d4);
}

.portfolio-prev-btn:disabled,
.portfolio-next-btn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
}

/* Contact Section */
#contact {
    background-color: #c0c0c0;
}

/* Legal Section */
#legal {
    position: relative;
    min-height: 80vh;
    padding: clamp(40px, 8vw, 60px) 5%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#legal .bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 10%, transparent 70%);
    z-index: 0;
    opacity: 0.3;
}

#legal .section-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

#legal .legal-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: clamp(20px, 3vw, 30px);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#legal .legal-section-description {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    max-width: 100%;
    padding: 10px;
    color: #fff;
}

#legal .legal-service-line {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    max-width: 250px;
    min-width: 200px;
    padding: 15px;
    background: var(--glass-bg);
    border: var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

#legal .legal-service-line strong {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: white;
    display: inline-block;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
}

#legal .legal-service-list {
    list-style: none;
    padding-left: 10px;
    margin-bottom: 8px;
    flex-grow: 1;
}

#legal .legal-service-item {
    position: relative;
    padding-left: 20px;
    margin: 5px 0;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: white;
    max-width: 250px;
}

#legal .legal-service-item::before {
    content: '➜';
    position: absolute;
    left: 0;
    color: white;
    font-weight: bold;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
}

#legal .legal-service-item:hover {
    transform: translateX(5px);
    color: rgba(255, 255, 255, 0.8);
}

#legal .contact-button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 350px;
    max-width: 500px;
    min-width: 300px;
    padding: 20px;
    background: var(--glass-bg);
    border: var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

#legal .contact-button-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #2a1a3d91, #f0b1b19f, #6900cc86, #1a1a1aad);
    background-size: 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 400% 50%; }
    100% { background-position: 0% 50%; }
}

.contact-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #000000;
    width: 0;
    animation: typing 2s steps(10, end) forwards, blink 0.75s step-end infinite;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: #fff; }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
    font-family: 'Roboto', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

.legal-button {
    display: inline-block;
    padding: clamp(6px, 1.5vw, 8px) clamp(12px, 3vw, 16px);
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 500;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
    margin-top: auto;
}

.legal-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.4s ease;
}

.legal-button:hover::after {
    left: 100%;
}

.legal-button:hover {
    transform: scale(1.05);
    background: #2a2a2a;
    box-shadow: var(--shadow);
}

#legal .contact-button-container .legal-button {
    padding: clamp(8px, 2vw, 10px) clamp(16px, 4vw, 24px);
    font-size: clamp(0.9rem, 2vw, 1rem);
    align-self: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navbar */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75%;
        max-width: 280px;
        background: rgba(238, 238, 238, 0.95);
        border-left: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(1.5rem, 5vw, 2rem);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .nav-links::before {
        content: 'Menú';
        font-family: 'Montserrat', sans-serif;
        font-size: clamp(1.5rem, 4vw, 1.8rem);
        font-weight: 700;
        color: rgb(255, 253, 253);
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 20px;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links a {
        color: rgb(0, 0, 0);
        font-size: clamp(1.2rem, 3vw, 1.4rem);
        padding: 0.8rem;
        width: 100%;
        text-align: center;
        border-radius: 10px;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.05);
    }

    .mobile-nav-toggle {
        display: block;
    }

    .section-video {
        opacity: 0.3;
        object-fit: cover;
        filter: blur(2px);
    }
}

.section-video {
    pointer-events: none;
}

@media (max-width: 480px) {
    .logo {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }

    .nav-links a {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }

    .section-title {
        font-size: clamp(1.2rem, 4vw, 2rem);
    }

    .section-description,
    .section-description_2 {
        font-size: clamp(0.8rem, 2vw, 1rem);
    }
}

/* Footer Styles */
.footer {
    background-color: #c0c0c0;
    padding: clamp(1rem, 2vw, 1.5rem);
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.footer-text {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 400;
    color: #000000;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .footer {
        padding: clamp(0.8rem, 2vw, 1rem);
    }

    .footer-text {
        font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    }
}

/* Animaciones para títulos */
@keyframes slideInFromLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

.slide-in-left {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

/* Animaciones para servicios */
@keyframes fadeFromRight {
    0% { opacity: 0; transform: translateX(100px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeFromLeft {
    0% { opacity: 0; transform: translateX(-100px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeItem {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Estado inicial */
.service-line {
    opacity: 0;
}

.service-item {
    opacity: 0;
}

/* Clases activadas con JS */
.fade-from-right {
    animation: fadeFromRight 1s ease-out forwards;
}

.fade-from-left {
    animation: fadeFromLeft 1s ease-out forwards;
}

.show-item {
    animation: fadeItem 0.8s ease forwards;
}

/* Estilo general */
.service-line {
    display: block;
    margin-bottom: 30px;
}

/* Animación legal */
.fade-in {
    opacity: 0;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.fade-in.animate {
    animation-name: fadeIn;
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-timing-function: ease-out;
    animation-delay: calc(var(--i) * 0.05s);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media queries para pantallas más pequeñas */
@media (max-width: 768px) {
    .portfolio-iframe-container {
        max-width: 250px;
        padding-bottom: 75%;
    }

    .portfolio-iframe-container.expanded {
        max-width: 100%;
        padding-bottom: 75%;
    }

    .portfolio-title {
        font-size: 1.5rem;
    }

    .portfolio-description {
        font-size: 1rem;
    }
}

/* Media queries para pantallas muy pequeñas */
@media (max-width: 480px) {
    .portfolio-iframe-container {
        max-width: 200px;
        padding-bottom: 100%;
    }

    .portfolio-iframe-container.expanded {
        max-width: 100%;
        padding-bottom: 100%;
    }
}