/* ==========================================================================
   Builder Frontend Styles
   Responsive layouts for Proyectos Blocks
   ========================================================================== */

/* Base container */
.rnz-proyecto-builder {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 0;
}

.rnz-block {
    position: relative;
    width: 100%;
}

.rnz-block-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.rnz-block-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.rnz-block-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.rnz-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

/* =========================================
   Block 1: Text Left, Image Right
   ========================================= */
@media (min-width: 768px) {
    .rnz-block-1 .rnz-block-container {
        flex-direction: row;
        align-items: center;
    }

    .rnz-block-1 .rnz-block-content {
        flex: 1;
        padding-right: 40px;
    }

    .rnz-block-1 .rnz-block-image {
        flex: 1;
    }
}

/* =========================================
   Block 2: Image Left, Text Right
   ========================================= */
@media (min-width: 768px) {
    .rnz-block-2 .rnz-block-container {
        flex-direction: row;
        align-items: center;
    }

    .rnz-block-2 .rnz-block-content {
        flex: 1;
        padding-left: 40px;
        order: 2;
        /* Ensure reading order */
    }

    .rnz-block-2 .rnz-block-image {
        flex: 1;
        order: 1;
    }
}

/* =========================================
   Block 3: Background Image with Overlay
   ========================================= */
.rnz-block-3 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    color: #fff;
}

.rnz-block-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.rnz-block-3 .rnz-block-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.rnz-block-3 .rnz-block-title {
    color: #fff;
    font-size: 2.5rem;
}

.rnz-block-3 .rnz-block-text {
    color: #f1f1f1;
    font-size: 1.25rem;
}

/* =========================================
   Block 4: Header Top, Body (Image/Text) Flex
   ========================================= */
.rnz-block-4 .rnz-block-header {
    text-align: center;
    margin-bottom: 20px;
}

.rnz-block-4 .rnz-block-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 768px) {
    .rnz-block-4 .rnz-block-body {
        flex-direction: row;
        align-items: flex-start;
    }

    .rnz-block-4 .rnz-block-image,
    .rnz-block-4 .rnz-block-text {
        flex: 1;
    }
}

/* Standard Responsive Resets */
@media (max-width: 767px) {
    .rnz-block-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .rnz-block-text {
        font-size: 1rem;
    }

    .rnz-block-3 {
        padding: 60px 0;
    }

    .rnz-block-3 .rnz-block-title {
        font-size: 2rem;
    }
}