* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0a0e27;
    color: #fff;
    overflow-x: hidden;
}

/* ------------------------- Navbar ------------------------- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 60px;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #667eea;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s;
}

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

/* ------------------------- Hero Section ------------------------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-content img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease-out;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.scroll-arrow {
    font-size: 48px;
    color: #fff;
    animation: bounce 2s infinite;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* ------------------------- Video Section ------------------------- */
.video-section {
    padding: 100px 50px;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}

.project-wrapper {
    flex: 1;
    overflow: visible;
    padding: 30px 0;
}

.project-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    opacity: 1;
}

.project-container[data-layout="right"] {
    direction: rtl;
}

.project-container[data-layout="right"] > * {
    direction: ltr;
}

.project-arrow {
    background: rgba(255,255,255,0.1);
    border: 2px solid #667eea;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-arrow:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: scale(1.1);
}

.project-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px 0;
}

.project-website {
    color: #667eea;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
}

.project-website:hover {
    color: #764ba2;
    transform: translateX(5px);
}

.project-dots {
    display: flex;
    gap: 15px;
    padding: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.dot.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255,255,255,0.5);
}

.project-navigation button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}

.project-navigation button:hover {
    transform: translateY(-2px);
}

#project-indicator {
    color: #a0aec0;
    font-size: 16px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(102, 126, 234, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-text {
    padding: 20px;
}

.video-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.video-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #a0aec0;
}

/* ------------------------- Gallery Section ------------------------- */
.gallery {
    padding: 100px 60px;
    background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
}

.gallery h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
}

.gallery-slider {
    position: relative;
    max-width: 1000px;
    /*height: 600px;*/
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    /*height: 100%;*/
}

.gallery-item {
    min-width: 100%;
    /*height: 100%;*/
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
}

.gallery-item img {
    width: 100%;
    height: auto;
    /*object-fit: contain;*/
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.gallery-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.gallery-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* ------------------------- Newsletter Section ------------------------- */
.newsletter {
    padding: 100px 50px;
    background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
    text-align: center;
}

.newsletter h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

#newsletter-social {
    justify-content: center;
    padding: 10px 0 50px;
} 

.newsletter p {
    font-size: 18px;
    color: #a0aec0;
    margin-bottom: 40px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid #667eea;
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.newsletter-form input:focus {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.newsletter-form button {
    padding: 18px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
    align-self: center;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

/* ------------------------- Team Section ------------------------- */
.team {
    padding: 100px 50px;
    text-align: center;
}

.team h2 {
    font-size: 48px;
    margin-bottom: 40px;
}

.team-desc {
    max-width: 705px;
    margin: 0 auto;
    padding: 0 0 30px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Para forzar máximo 3 columnas en pantallas grandes */
@media (min-width: 769px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1200px) {
    .team-grid {
        gap: 50px;
    }
}

@media (min-width: 1400px) {
    .team-grid {
        gap: 80px;
    }
}

.team-member {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.team-member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
    position: relative;
}

.team-member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-member h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.team-member p {
    color: #a0aec0;
}

/* ------------------------- Contact Section ------------------------- */
.contact {
    padding: 100px 50px;
}

.contact h2 {
    font-size: 48px;
    margin-bottom: 60px;
    text-align: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-text {
    padding-left: 40px;
    padding-top: 0;
}

.contact-text p {
    font-size: 18px;
    color: #a0aec0;
    line-height: 1.8;
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 18px 25px;
    border: 2px solid #667eea;
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 15px;
    font-size: 16px;
    outline: none;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 18px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.contact-form button:hover {
    transform: translateY(-5px);
}

/* ------------------------- Footer ------------------------- */
footer {
    padding: 30px 30px;
    background: #050811;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
}

.footer-left {
    color: #a0aec0;
    font-size: 18px;
    text-align: left;
    padding-left: 20px;
}

.footer-right {
    color: #a0aec0;
    font-size: 18px;
    text-align: right;
    padding-right: 20px;
}

.footer-right a, .footer-left a {
    text-decoration: none;
    color: #a0aec0;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-right a:hover, .footer-left a:hover {
    transform: translateY(-3px);
    color: #ffcc00;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-text {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.footer-text p {
    color: #a0aec0;
    font-size: 16px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 30px;
}

.social-icons a {
    display: block;
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

.social-icons img {
    width: 100%;
    height: 100%;
    filter: brightness(0.7);
    transition: filter 0.3s;
}

.social-icons a:hover img {
    filter: brightness(1);
}

.social-text {
    color: #667eea;
    font-size: 14px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    /* Navbar */
    nav {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 22px;
    }

    .nav-links {
        gap: 20px;
        font-size: 16px;
    }

    /* Hero */
    .hero-content img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .scroll-arrow {
        font-size: 36px;
    }

    /* Video Section */
    .video-section {
        flex-direction: column;
        padding: 60px 20px;
        gap: 30px;
    }

    .project-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-container[data-layout="right"] {
        direction: ltr;
    }

    .project-arrow {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .project-arrow-left,
    .project-arrow-right {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .project-arrow-left {
        left: 10px;
    }

    .project-arrow-right {
        right: 10px;
    }

    .video-text h2 {
        font-size: 32px;
    }

    .video-text p {
        font-size: 16px;
    }

    /* Newsletter */
    .newsletter {
        padding: 60px 20px;
    }

    .newsletter h2 {
        font-size: 32px;
    }

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

    .social-icons a {
        width: 35px;
        height: 35px;
    }

    /* Team */
    .team {
        padding: 60px 20px;
    }

    .team h2 {
        font-size: 32px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-desc {
        font-size: 16px;
        padding: 0 10px 20px;
    }

    /* Gallery */
    .gallery {
        padding: 60px 30px;
    }

    .gallery h2 {
        font-size: 32px;
    }

    .gallery-slider {
        height: auto;
        max-height: 400px;
    }

    .gallery-item {
        font-size: 32px;
    }
    
    .gallery-item img {
        max-height: 400px;
        max-width: 100%;
        width: 100%;
    }

    /* Contact */
    .contact {
        padding: 60px 20px;
    }

    .contact h2 {
        font-size: 32px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-text {
        padding-left: 0;
        text-align: center;
    }

    /* Footer */
    footer {
        padding: 40px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        text-align: center;
        padding: 0;
    }

    .footer-text {
        flex-direction: column;
        gap: 20px;
    }
}