/* =========================================
   MAIN HOMEPAGE STYLES
   Role: Specific layouts for the Homepage (Hero, Projects, Journey)
   Order: Hero > Projects > Journey > Responsive
   ========================================= */

/* -----------------------------------------
   1. HERO SECTION
   ----------------------------------------- */
.hero-wrapper {
    background-color: var(--bg-white);
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 6rem;
}

.hero-text {
    flex: 1;
}

.special-text {
    background-color: var(--accent-yellow);
    color: var(--navy-dark);
    font-style: italic;
    font-size: 2rem;
    font-weight: 600;
    padding: 0 8px;
    display: inline-block;
    transform: skew(-5deg);
}

.hero-image {
    flex: 1;
    position: relative;
    padding: 20px;
}

/* Decorative Corners */
.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-top: 4px solid var(--accent-yellow);
    border-left: 4px solid var(--accent-yellow);
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border-bottom: 4px solid var(--navy-dark);
    border-right: 4px solid var(--navy-dark);
    z-index: 1;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-l);
    border: 3px solid var(--navy-dark);
    box-shadow: var(--tactile-shadow-xl), 24px 24px 0px var(--accent-yellow);
    transition: var(--transition-smooth);
}

.hero-image:hover img {
    transform: translate(var(--hover-lift), var(--hover-lift));
    box-shadow: 18px 18px 0px var(--navy-dark), 28px 28px 0px var(--accent-yellow);
}

/* -----------------------------------------
   2. PROJECTS SECTION
   ----------------------------------------- */
.projects {
    width: 100%;
    background-color: var(--bg-soft-blue-grey);
    padding: 10rem 2rem;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.03);
}

.portfolio-section,
.projects-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* -----------------------------------------
   3. JOURNEY SECTION
   ----------------------------------------- */
.journey-preview {
    background-color: var(--bg-white);
    padding: 10rem 2rem;
    width: 100%;
    position: relative;
    z-index: 2;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.04), 0 20px 40px rgba(0, 0, 0, 0.04);
}

.journey-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    background: var(--bg-white);
    padding: 5rem;
    position: relative;
    border: 2px solid #eee;
    border-radius: var(--radius-m);
    box-shadow: 12px 12px 0px var(--bg-tech-grey), 4px 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 15px solid var(--accent-yellow);
}

.categoria {
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 1000;
}

.journey-container strong {
    background-color: var(--accent-yellow);
    color: var(--navy-dark);
    padding: 0 4px;
}

/* =========================================
   4. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {

    /* Hero */
    .hero {
        flex-direction: column-reverse;
        gap: 2rem;
        padding: var(--section-padding-mobile);
    }

    .hero-text,
    .hero-image {
        flex: none;
        width: 100%;
    }

    .hero .btn-primario {
        padding: 0.85rem 1.5rem;
        font-size: 0.85rem;
        width: auto;
        max-width: 250px;
    }

    .special-text {
        font-size: 1.2rem;
    }

    /* Hero Image */
    .hero-image {
        padding: 15px;
    }

    .hero-image::before,
    .hero-image::after {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .hero-image img {
        box-shadow: var(--tactile-shadow-l), 16px 16px 0px rgba(0, 89, 255, 0.1);
    }

    .hero-image:hover img {
        transform: translate(-3px, -3px);
        box-shadow: var(--tactile-shadow-xl), 18px 18px 0px rgba(0, 89, 255, 0.1);
    }

    /* Projects */
    .projects {
        padding: var(--section-padding-mobile);
    }

    .portfolio-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Journey */
    .journey-preview {
        padding: var(--section-padding-mobile);
    }

    .journey-container {
        padding: 2rem;
        box-shadow: 8px 8px 0px #f0f0f0, 4px 4px 10px rgba(0, 0, 0, 0.05);
        border-left-width: 8px;
    }

    .categoria {
        font-size: 0.9rem;
    }
}

/* Tablet (768px+) */
@media (min-width: 768px) {

    /* Hero */
    .hero {
        gap: 3rem;
        padding: var(--section-padding-desktop);
    }

    .hero-image {
        padding: 18px;
    }

    .hero-image::before,
    .hero-image::after {
        width: 50px;
        height: 50px;
    }

    .hero-image img {
        box-shadow: var(--tactile-shadow-xl), 20px 20px 0px rgba(0, 89, 255, 0.1);
    }

    .hero-image:hover img {
        transform: translate(-4px, -4px);
        box-shadow: 14px 14px 0px var(--navy-dark), 24px 24px 0px rgba(0, 89, 255, 0.1);
    }

    .special-text {
        font-size: 1.75rem;
    }

    /* Projects */
    .projects {
        padding: var(--section-padding-desktop);
    }

    .portfolio-section {
        margin-bottom: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* Journey */
    .journey-preview {
        padding: var(--section-padding-desktop);
    }

    .journey-container {
        padding: 3.5rem;
        box-shadow: 10px 10px 0px #f0f0f0, 4px 4px 12px rgba(0, 0, 0, 0.05);
        border-left-width: 12px;
    }

    .categoria {
        font-size: 1rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {

    /* Hero */
    .hero {
        flex-direction: row;
        gap: 4rem;
        padding: var(--section-padding-desktop);
    }

    .hero-text {
        flex: 1;
    }

    .hero-image {
        flex: 1;
        padding: 20px;
    }

    .hero-image::before,
    .hero-image::after {
        width: 60px;
        height: 60px;
        border-width: 4px;
    }

    .hero-image img {
        box-shadow: var(--tactile-shadow-xl), 24px 24px 0px rgba(0, 89, 255, 0.1);
    }

    .hero-image:hover img {
        transform: translate(var(--hover-lift), var(--hover-lift));
        box-shadow: 18px 18px 0px var(--navy-dark), 28px 28px 0px rgba(0, 89, 255, 0.1);
    }

    .special-text {
        font-size: 2rem;
    }

    /* Projects */
    .projects {
        padding: var(--section-padding-desktop);
    }

    /* Journey */
    .journey-preview {
        padding: var(--section-padding-desktop);
    }

    .journey-container {
        padding: 5rem;
        box-shadow: 12px 12px 0px var(--bg-tech-grey), 4px 4px 15px rgba(0, 0, 0, 0.05);
        border-left-width: 15px;
    }

    .categoria {
        font-size: 1.125rem;
    }
}