/*
Theme Name: CCMIJU Theme
Theme URI: #
Description: Tema del CCMIJU
Author: David Municio
Author URI: #
Template: Divi
Version: 1.0.0
*/

/*
  ------------------------------
  Sidebar - Single Product
  ------------------------------
*/
.elementor-widget-container #block-16 {
  display: flex;
  justify-content: center;
  padding: 10px 10px;
}
.elementor-widget-container #block-16 hr{
  width: 90%;
}

.elementor-widget-container #block-17 {
  display: flex;
  justify-content: center;
  padding: 10px 10px;
}
.elementor-widget-container #block-17 hr{
  width: 90%;
}

.force-center {
  text-align:center;
}

#sidebar .et_pb_widget{
  margin-bottom:0px;
}
/* ---- FORZAR CENTRADO del sidebar (selector específico para tu sidebar Elemento) ---- */
/* Cambia .elementor-element-078f178 por la clase/id real si cambias de widget */
#sidebar .elementor-widget-container {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  text-align: center !important;       /* centra texto e inline elements */
  width: 100% !important;
}

/* Asegura que figuras e imágenes se centran y no heredan margin reset del theme */
#sidebar .figure,
#sidebar .elementor-widget-container figure,
#sidebar .wp-block-image,
#sidebar .elementor-widget-container .wp-block-image,
#sidebar .widget_media_image,
#sidebar .elementor-widget-container .widget_media_image {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  width: auto !important;
}

/* Imagenes */
#sidebar .elementor-widget-container img,
#sidebar img {
  display: block !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Títulos, párrafos y widgets de texto */
#sidebar .elementor-widget-container h1,
#sidebar h1,
#sidebar .elementor-widget-container h2,
#sidebar h2,
#sidebar .elementor-widget-container h3,
#sidebar h3,
#sidebar .elementor-widget-container p,
#sidebar p,
#sidebar .elementor-widget-container .wp-block-heading,
#sidebar .wp-block-heading,
#sidebar .elementor-widget-container .widget_text,
#sidebar .widget_text,
#sidebar .elementor-widget-container .widget_block,
#sidebar .widget_block {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Social links (core WP social links que usan layout flex) */
#sidebar .wp-block-social-links,
#sidebar .wp-block-social-links,
#sidebar .wp-block-social-links.is-layout-flex,
#sidebar .wp-block-social-links.is-horizontal {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}

#sidebar .elementor-widget-container ul,
#sidebar ul {
  list-style: none;
}

#bapf_3 {
  margin: 0px;
}
.et_pb_widget.widget_block{
  width:100%;
}

h3.bapf_hascolarr {font-size: small;}

/*
  ------------------------------
  Woocommerce - Página Carrito
  ------------------------------
*/

/* Retocar botón*/
.wc-block-cart__submit.wp-block-woocommerce-proceed-to-checkout-block a.wc-block-components-button {
  background-color: white;
  border:1px solid #0099a1;
  border-radius: 10px;
  color: #0099a1;
  padding: 0px;
}

.wc-block-cart__submit.wp-block-woocommerce-proceed-to-checkout-block a.wc-block-components-button:hover {
  background-color: #0099a1;
  border:1px solid #0099a1;
  border-radius: 10px;
  color: white;
  padding: 0px;
}

.wc-block-components-totals-coupon__form button.wc-block-components-button {
  background-color: white;
  border:1px solid #0099a1;
  border-radius: 10px;
  color: #0099a1;
  padding: 0px;
}

.wc-block-components-totals-coupon__form button.wc-block-components-button:hover {
  background-color: #0099a1;
  border:1px solid #0099a1;
  border-radius: 10px;
  color: white;
  padding: 0px;
}

/*
  ------------------------------
  Woocommerce - Finalizar compra
  ------------------------------
*/

/* Retocar botón*/
.wc-block-checkout__actions_row button.wc-block-components-checkout-place-order-button {
  background-color: white;
  border:1px solid #0099a1;
  border-radius: 10px;
  color: #0099a1;
  padding: 10px;
}

.wc-block-checkout__actions_row button.wc-block-components-checkout-place-order-button:hover {
  background-color: #0099a1;
  border:1px solid #0099a1;
  border-radius: 10px;
  color: white;
  padding: 10px;
}

/*
  ------------------------------
  Woocommerce - Order Received
  ------------------------------
*/

/* Retocar botón*/
.order-again a.button {
  background-color: white;
  border:1px solid #0099a1;
  border-radius: 10px;
  color: #0099a1;
  padding: 2px 10px;
  font-size: small;
}

.order-again a.button:hover {
  background-color: #0099a1;
  border:1px solid #0099a1;
  border-radius: 10px;
  color: white;
  padding: 2px 10px;
  font-size: small;
}

/*
  ------------------------------
  Woocommerce - Filtro de cursos
  ------------------------------
*/
#bapf_4 h3 {
  padding-top:10px;
}


.woocommerce-order .woocommerce-order-downloads .shop_table_responsive.order_details .woocommerce-MyAccount-downloads-file {
    border: 1px solid #0099a1;
    color: #0099a1;
    padding:5px;
    margin:5px;
    font-size: small;
    border-radius: 10px;
}

.woocommerce-order .woocommerce-order-downloads .shop_table_responsive.order_details .woocommerce-MyAccount-downloads-file:hover {
    border: 1px solid #0099a1;
    background-color: #0099a1;
    color: white;
    padding:5px;
    margin:5px;
    font-size: small;
    border-radius: 10px;
}

/* Empleo - Tablas */
/* === EMPLEO DOCUMENTOS === */

.empleo-docs {
    margin: 2rem 0;
    overflow-x: auto;
}

.empleo-docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.empleo-docs-table thead {
    background-color: #04485d;
    color: #ffffff;
}

.empleo-docs-table thead tr {
  padding:0px;
}


.empleo-docs-table td {
    padding: 0.75rem 0.6rem;
    text-align: left;
    vertical-align: middle;
}

.empleo-docs-table th {
    padding: 0.35rem 0.7rem;
    text-align: left;
    vertical-align: middle;
}

.empleo-docs-table th {
    font-weight: 600;
}

.empleo-docs-table tbody tr {
    border-bottom: 1px solid #e3e6e8;
}

.empleo-docs-table tbody tr:hover {
    background-color: #f3f7f9;
}

.empleo-icon {
    width: 50px;
    text-align: center;
}

.empleo-icon img {
    max-height: 34px;
}

.empleo-name a {
    color: #04485d;
    text-decoration: none;
    font-weight: 500;
    font-size:  small;
}

.empleo-name a:hover {
    text-decoration: underline;
}

.empleo-date {
    white-space: nowrap;
    color: #444;
    font-size: 0.9rem;
}

.documento-column {
  width: 80%;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {

    .empleo-docs-table thead {
        display: none;
    }

    .empleo-docs-table,
    .empleo-docs-table tbody,
    .empleo-docs-table tr,
    .empleo-docs-table td {
        display: block;
        width: 100%;
    }

    .empleo-docs-table tr {
        margin-bottom: 1rem;
        border: 1px solid #dce3e7;
        border-radius: 4px;
        padding: 0.5rem;
    }

    .empleo-icon {
        margin-bottom: 0.4rem;
    }

    .empleo-date {
        font-size: 0.85rem;
        color: #666;
    }
}

table tr.empleo-group td {
    background-color: #d4d4d4;
    font-weight: 500;
    padding: 12px 10px;
}


/*
* Ajax Advanced Woo Search Plugin
*/

/* === Resultado de búsqueda === */
#content-area .bapf_no_products .woocommerce-no-products-found .woocommerce-info {
  background-color: white;
  color: #04485d !important;
}

/*
* Proyectos de investigación
*/

.proyectos-logo-section{
  text-align:center;
}

.proyecto-logo {
  max-height: 80px
}
