/* editor-styles.css */

.editor-styles-wrapper .card_btn {
    cursor: pointer;
    position: relative;
}

.editor-styles-wrapper .card_btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border: 2px dashed #007cba;
    opacity: 0.5;
}

.wp-block-custom-button-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}
/* Styles for first button set */
.editor-styles-wrapper .botonerahome {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.editor-styles-wrapper .card_btn {
    flex: 1;
    min-width: 300px;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.editor-styles-wrapper .card_btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border: 2px dashed #007cba;
    opacity: 0.5;
}

/* Styles for second button set */
.editor-styles-wrapper .tarjetas-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.editor-styles-wrapper .tarjeta {
    flex: 1;
    min-width: 250px;
    background: #242c4f;
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
}

/* Estilos para el editor */
.wp-block-custom-btn-nivel1 {
    display: block;
}

.btn_nivel1.tarjeta {
    display: block;
    background: #242c4f;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}
.editor-styles-wrapper .tarjeta-heading {
    padding: 2rem 0 0 0;
    display: flex;
    justify-content: center;
}

.tarjeta-body { 
    text-align: center;
}

.icono {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* Estilos específicos del editor */
.editor-styles-wrapper .btn_nivel1.tarjeta {
    cursor: pointer;
}

.editor-styles-wrapper .btn_nivel1.tarjeta:hover {
    outline: 2px dashed #007cba;
}


/* Estilos para el editor */
.card_btn {
    display: flex; 
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    color: #000;
}

.btn_icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.btn_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Estilos específicos del editor */
.editor-styles-wrapper .card_btn {
    cursor: pointer;
}

.editor-styles-wrapper .card_btn:hover {
    outline: 2px dashed #007cba;
}

/* Estilos específicos para el editor */
.wp-block-custom-btn-nivel2 .card_btn {
    position: relative;
}

.wp-block-custom-btn-nivel2 .content-wrapper {
    display: block;
}

.wp-block-custom-btn-nivel2 .card_btn p {
    margin: 0.5em 0;
}

/* Mejorar la visibilidad de los campos editables */
.wp-block-custom-btn-nivel2 .card_btn h3[data-rich-text-placeholder],
.wp-block-custom-btn-nivel2 .card_btn p[data-rich-text-placeholder] {
    opacity: 0.5;
}

.editor-visual-editor .components-button{
    padding: 0;
}


.editor-visual-editor .wp-block-button.link_externo a{
background-color: #2e7d33;
}
.editor-visual-editor a.btn_nivel3 div { 
    color: #000;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
}




/* Estilos específicos del editor */
.editor-styles-wrapper .custom-tabs-block {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.editor-styles-wrapper .tab-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.editor-styles-wrapper .tab-title .components-button {
    padding: 2px 6px;
    height: auto;
    min-width: auto;
    color: rgba(255, 255, 255, 0.8);
}

.editor-styles-wrapper .tab-title .components-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.editor-styles-wrapper .tab-content {
    border: 1px solid #D9D9D9;
    margin: 1px;
}

/* Estilos para el modo de edición */
.wp-block[data-type="custom/tabs-block"] {
    margin-top: 28px;
    margin-bottom: 28px;
}

/* Mejorar la visibilidad de los campos editables */
.editor-styles-wrapper .tab-content[data-rich-text-placeholder] {
    opacity: 0.6;
}

.editor-styles-wrapper .custom-tabs-block:hover {
    outline: 2px dashed #007cba;
    outline-offset: 2px;
}

/* Estilo para el botón de agregar tab */
.editor-styles-wrapper .components-button.is-secondary {
    margin-bottom: 10px;
    width: 100%;
    justify-content: center;
    height: auto;
    padding: 8px 12px;
}

/* Estilos para los botones de control de tabs */
.wp-block-custom-tabs-block .tab-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.wp-block-custom-tabs-block .remove-tab-button {
    padding: 2px 6px !important;
    min-width: auto !important;
    height: auto !important;
}

.wp-block-custom-tabs-block .add-tab-button {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

/* Mejorar visibilidad del contenido editable */
.wp-block-custom-tabs-block .tab-content-inner {
    min-height: 100px;
    padding: 15px;
}

/* Estilo para el tab activo en el editor */
.wp-block-custom-tabs-block .tab-title.active {
    background: #242C4F;
    color: #fff;
}

.editor-styles-wrapper .tab-content{
    display: flex;
}



