/* Reset y configuración básica */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #000;
    color: #fff;
    padding: 2rem 0 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

/* Navigation */
.header-nav {
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 0;
    top: -60px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background-color: #fff;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.nav-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Alternancia automática de colores en secciones */
section:nth-child(even) {
    background-color: #fff;
}

section:nth-child(odd) {
    background-color: #f9f9f9;
}

/* Sección Descripción */
.description {
    padding: 4rem 0;
    scroll-margin-top: 120px;
}

.description-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.description-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000;
}

.description-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.8;
}

.description-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.description-image img,video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.description-image img:hover,video:hover {
    transform: scale(1.02);
}

/* Sección Proceso de Creación */
.creation-process {
    padding: 4rem 0;
    scroll-margin-top: 120px;
}

.creation-process h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #000;
    position: relative;
    padding-bottom: 1rem;
}

.creation-process h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a9eff, #000);
    border-radius: 2px;
}

.process-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    margin-bottom: 4rem;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.process-step.reverse .step-content {
    direction: rtl;
}

.process-step.reverse .step-text {
    direction: ltr;
}

.process-step.reverse .step-media {
    direction: ltr;
}

.step-text {
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -20px;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
    z-index: 0;
}

.step-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
    position: relative;
    z-index: 1;
}

.step-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 0.5rem;
}

.github-link:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.step-media {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.step-media video,
.step-media img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.step-media.dual-video {
    display: flex;
    gap: 0;
    align-items: center;
    max-height: 500px;
}

.step-media.dual-video video {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

.step-media.dual-video video:first-child {
    border-radius: 12px 0 0 12px;
}

.step-media.dual-video video:last-child {
    border-radius: 0 12px 12px 0;
}

.step-media.video-crop-4-3 {
    position: relative;
    aspect-ratio: 4 / 3;
    height: auto;
}

.step-media.video-crop-5-4 {
    position: relative;
    aspect-ratio: 5 / 5;
    height: auto;
}

.step-media.video-crop-5-4 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.step-media.video-crop-4-3 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.step-media.video-crop-5-4.center-intro video {
    object-position: center 65%;
}

.step-media:hover video,
.step-media:hover img {
    transform: scale(1.05);
}

/* Sección Quen Somos */
.team {
    padding: 4rem 0;
    scroll-margin-top: 120px;
}

.team h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #000;
    position: relative;
    padding-bottom: 1rem;
}

.team h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a9eff, #000);
    border-radius: 2px;
}

.team-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-photo {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 4rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.team-photo:hover img {
    transform: scale(1.02);
}

.team-members {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.member-image {
    width: 220px;
    height: 220px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
}

.member-role {
    font-size: 1rem;
    font-weight: 600;
    color: #4a9eff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    transition: all 0.3s ease;
}

.member-social a:hover {
    background-color: #4a9eff;
    color: #fff;
    transform: translateY(-3px);
}

.member-social svg {
    width: 20px;
    height: 20px;
}

/* Sección Materiales */
.materials {
    padding: 4rem 0;
    scroll-margin-top: 120px;
}

.materials h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #000;
    position: relative;
    padding-bottom: 1rem;
}

.materials-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.video-item {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

.video-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
}

.video-item p {
    color: #666;
    font-size: 1rem;
}

/* Galería */
.gallery {
    padding: 4rem 0;
    scroll-margin-top: 120px;
}

.gallery h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #000;
    position: relative;
    padding-bottom: 1rem;
}

.gallery h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a9eff, #000);
    border-radius: 2px;
}

.gallery-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Footer */
.footer {
    background-color: #000;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #ccc;
    line-height: 1.6;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4a9eff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    /* border-top: 1px solid #333; */
}

.footer-bottom p {
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .header {
        position: relative;
        top: auto;
    }

    .header h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .menu-toggle {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1002;
        background-color: #000;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        z-index: 1001;
    }

    .nav-menu.active {
        max-height: 100vh;
        padding: 80px 0 2rem;
    }

    .nav-menu li {
        border-bottom: 1px solid #333;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        padding: 1.2rem 2rem;
        border-radius: 0;
        font-size: 1.2rem;
    }

    .description-content {
        grid-template-columns: 1fr;
    }

    .team-members {
        grid-template-columns: 1fr;
    }

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

    .step-content {
        grid-template-columns: 1fr;
    }

    .process-step.reverse .step-content {
        direction: ltr;
    }

    .step-number {
        font-size: 3.5rem;
        left: -10px;
    }

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

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .description-text h2,
    .materials h2,
    .team h2,
    .gallery h2,
    .creation-process h2 {
        font-size: 1.6rem;
    }

    .step-text h3 {
        font-size: 1.4rem;
    }

    .step-text p {
        font-size: 1rem;
    }

    .step-number {
        font-size: 3rem;
        left: -5px;
    }

    .team-members {
        grid-template-columns: 1fr;
    }

    .member-image {
        width: 200px;
        height: 200px;
    }

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

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}