.hero-section {
    position: relative;
    margin-top: 100px;
    height: 75vh;
    overflow: hidden;
    background-color: var(--color-base);
    display: flex;
    flex-direction: column;
}

/* CAPAS DIAGONALES */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bg-layer {
    position: absolute;
    left: 0;
    width: 100%;
    transform: translateX(-110%);
    clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
    transition: transform 0.9s ease;
}

.layer-1 { width: 88%; height: 25vh; background: #1a1a1a; top: 0; clip-path: polygon(0 0, 95% 0, 100% 100%, 0 100%); }
.layer-2 { width: 94%; height: 25vh; background: #b5b5b5; top: 25vh; clip-path: polygon(0 0, 95% 0, 100% 100%, 0 100%); }
.layer-3 { width: 100%; height: 25vh; background: #eeeeee; top: 50vh; clip-path: polygon(0 0, 95% 0, 100% 100%, 0 100%); }

.bg-layer.visible {
    transform: translateX(0);
}

/* Contenido */
.hero-title-wrapper {
    position: absolute;
    top: 0;
    height: 25vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-base);
}

.hero-subtitle-wrapper {
    position: absolute;
    top: 25vh;
    height: 25vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 400;
    line-height: 1.5;
    max-width: 680px;
    text-align: center;
    color: #2a2a2a;
}

.hero-cta-wrapper {
    position: absolute;
    top: 50vh;
    height: 25vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-cta {
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 999px;
    background-color: var(--color-acento);
    color: var(--color-base);
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0);
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    background-color: var(--color-acento-dark);
}

/* Animaciones */
.hero-title,
.hero-subtitle{
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-title.visible {  opacity: 1; transform: translateX(0); }
.hero-subtitle.visible {  opacity: 1; transform: translateX(0); }
.hero-cta.visible {  opacity: 1; transform: translateY(0); }

/* Secciones */
.section {
    position: relative;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
    gap: 35px;
    flex-direction: column;
}

/* Posicionamineto titles */
.work-section .section-title {
    text-align: left;
    align-self: flex-start;
}

.app-section .section-title {
    text-align: center;
    align-self: center;
}

.contact-section .section-title {
    text-align: right;
    align-self: flex-end;
}

/* Fondo específico apliación */
.app-section {
    background-color: var(--color-base);
}

/* Contendio */
.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--color-negro);
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--color-gris);
    max-width: 700px;
    margin-bottom: 2rem;

    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-visible .section-subtitle {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.section-cta {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    background-color: var(--color-acento);
    color: var(--color-base);
    transition: background-color 0.4s ease, transform 0.3s ease;
}

.section-cta:hover {
    background-color: var(--color-acento-dark);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .layer-1, .layer-2, .layer-3 { width: 110%; }

    .hero-title {
        font-size: 1.9rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .hero-cta {
        padding: 0.9rem 2.4rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-cta {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }

    .work-section .section-title,
    .app-section .section-title,
    .contact-section .section-title {
        text-align: center;
        align-self: center;
    }
}