/**
 * Apixelar - Bloques Full Width
 * Estilos para el frontend
 */

.apixelar-fullwidth-block {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 100px;
    margin-bottom: 100px;
    overflow: hidden;
}

.fullwidth-inner {
    display: flex;
    align-items: stretch;
    min-height: 400px;
    max-width: 100%;
}

.apixelar-fullwidth-block.img-left .fullwidth-inner {
    flex-direction: row-reverse;
}

.fullwidth-text {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 120px;
    text-align: left;
}

.fullwidth-title {
    margin-bottom: 15px;
}

.fullwidth-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    opacity: 0.85;
}

.fullwidth-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    white-space: pre-line;
}

.fullwidth-description p {
    margin-bottom: 10px;
}

.fullwidth-btn {
    display: inline-block;
    padding: 12px 35px;
    background: #e73c2f;
    color: #fff !important;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.fullwidth-btn:hover {
    background: #c42f24;
    color: #fff !important;
    text-decoration: none;
}

.fullwidth-image {
    flex: 0 0 50%;
    width: 50%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.fullwidth-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Responsive Tablet */
@media (max-width: 991px) {
    .apixelar-fullwidth-block {
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .fullwidth-inner {
        flex-direction: column !important;
        min-height: auto;
    }

    .fullwidth-text {
        flex: 0 0 100%;
        width: 100%;
        padding: 50px 40px;
    }

    .fullwidth-image {
        flex: 0 0 100%;
        width: 100%;
        min-height: 350px;
    }

    .fullwidth-image img {
        width: 100%;
        height: 100%;
    }
}

/* Responsive Móvil */
@media (max-width: 575px) {
    .apixelar-fullwidth-block {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .fullwidth-text {
        padding: 35px 20px;
    }

    .fullwidth-title {
        font-size: 22px;
    }

    .fullwidth-subtitle {
        font-size: 17px;
    }

    .fullwidth-description {
        font-size: 15px;
    }

    .fullwidth-image {
        min-height: 250px;
    }

    .fullwidth-btn {
        width: 100%;
        text-align: center;
    }
}
