/* ==========================================================================
   WordPress Gutenberg Block Library Essentials & Site Custom CSS
   ========================================================================== */

/* Columns Block */
.wp-block-columns {
    display: flex;
    margin-bottom: 1.75em;
    box-sizing: border-box;
    flex-wrap: wrap !important;
    align-items: initial !important;
    gap: 2em;
}

@media (min-width: 782px) {
    .wp-block-columns {
        flex-wrap: nowrap !important;
    }
}

.wp-block-column {
    flex-grow: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 782px) {
    .wp-block-column {
        flex-basis: 0;
        flex-grow: 1;
    }
}

/* Cover Block (used on Homepage /) */
.wp-block-cover {
    position: relative;
    background-size: cover;
    background-position: 50%;
    min-height: 430px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
    box-sizing: border-box;
    overflow: hidden;
}

.wp-block-cover .wp-block-cover__background {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
    opacity: 0.5;
    background-color: #000;
}

.wp-block-cover .wp-block-cover__background.has-background-dim-20 {
    opacity: 0.2;
}

.wp-block-cover .wp-block-cover__image-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    outline: none;
    border: none;
    box-shadow: none;
    z-index: 0;
}

.wp-block-cover .wp-block-cover__inner-container {
    width: 100%;
    z-index: 2;
    color: #fff;
}

/* Gallery & Image Blocks */
.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin: 0 0 1.5em 0;
    gap: 16px;
}

.wp-block-gallery .wp-block-image,
.wp-block-gallery .blocks-gallery-item {
    flex: 1 1 calc(33.333% - 16px);
    min-width: 200px;
    margin: 0;
}

.wp-block-gallery .wp-block-image img,
.wp-block-gallery .blocks-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.wp-block-image {
    margin: 0 0 1em 0;
}

.wp-block-image .aligncenter,
.wp-block-image.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-image .alignleft,
.wp-block-image.alignleft {
    float: left;
    margin-right: 1.5em;
}

.wp-block-image .alignright,
.wp-block-image.alignright {
    float: right;
    margin-left: 1.5em;
}

.wp-block-image figcaption,
.wp-element-caption,
.wp-caption-text {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 0.5em;
    margin-bottom: 1em;
}

/* Group Flex Layout */
.wp-block-group {
    box-sizing: border-box;
}

/* Table Block */
.wp-block-table {
    margin: 0 0 1.5em 0;
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
    padding: 0.5em;
    border: 1px solid #ddd;
}

/* Text Alignment & Typography Helpers */
.has-text-align-center {
    text-align: center;
}

.has-large-font-size {
    font-size: 36px;
    line-height: 1.4;
}

.has-background {
    padding: 1.25em 2.375em;
}

/* WordPress Customizer Custom CSS (migrated from XML custom_css) */
.entry_item p {
    column-count: 1 !important;
    -moz-column-count: 1 !important;
    -webkit-column-count: 1 !important;
}

.texto-blanco {
    color: white !important;
}

.texto-blanco > a {
    color: white !important;
}
