/*
Theme Name: Datosfera Hello Elementor Child
Theme URI: https://datosfera.co
Description: Tema hijo para Hello Elementor con personalizaciones generales y utilidades.
Author: Datosfera
Author URI: https://www.datosfera.co
Template: hello-elementor
Version: 1.2
*/

/* Ocultar el título interno "Temario del curso" del tab personalizado */
.woocommerce-Tabs-panel--tab-temario-del-curso > h2,
#tab-tab-temario-del-curso > h2 {
    display: none !important;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Estilización Profesional del Precio del Curso - ACOTEPAC
   ========================================================================== */

/* Contenedor principal del precio de WooCommerce */
.elementor-widget-woocommerce-product-price .price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    margin-bottom: 20px !important;
    line-height: 1.1 !important;
}

/* El número del precio principal ($ 150.000 o Gratis) */
.elementor-widget-woocommerce-product-price .price .amount,
.elementor-widget-woocommerce-product-price .price .free {
    font-size: 36px !important; 
    font-weight: 800 !important;
    color: #0b51b7 !important; 
    display: inline-flex !important;
    align-items: center !important;
}

/* Agregar el sufijo "COP" al lado del número del precio */
.elementor-widget-woocommerce-product-price .price .amount::after,
.elementor-widget-woocommerce-product-price .price .free::after {
    content: " COP" !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #64748b !important; 
    margin-left: 8px !important;
    letter-spacing: 0.5px !important;
}

/* Inyectar el texto aclaratorio debajo del precio con formato nativo de CSS */
.elementor-widget-woocommerce-product-price .price::after {
    content: "\2022  \00DA NICO PAGO POR EL CURSO  \2022  INCLUYE IVA" !important; 
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #10b981 !important; 
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-top: 8px !important;
    display: block !important;
}

/* Ajustes Responsivos para Dispositivos Móviles (Celulares) */
@media (max-width: 767px) {
    .elementor-widget-woocommerce-product-price .price .amount,
    .elementor-widget-woocommerce-product-price .price .free {
        font-size: 28px !important; 
    }
    .elementor-widget-woocommerce-product-price .price .amount::after,
    .elementor-widget-woocommerce-product-price .price .free::after {
        font-size: 14px !important;
    }
    .elementor-widget-woocommerce-product-price .price::after {
        font-size: 11px !important;
        letter-spacing: 0.5px !important;
        line-height: 1.4 !important;
    }
}

/* ==========================================================================
   OPTIMIZACIÓN PROFESIONAL DE INGRESO Y REGISTRO (ACOTEPAC)
   ========================================================================== */

.woocommerce .u-columns.col2-set {
    display: flex !important;
    gap: 40px !important;
    margin-top: 30px !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.woocommerce .u-column1.col-1, 
.woocommerce .u-column2.col-2 {
    flex: 1 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 35px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01) !important;
    box-sizing: border-box !important;
}

.woocommerce .u-columns.col2-set h2 {
    font-family: system-ui, -apple-system, sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0f172a !important; 
    letter-spacing: -0.5px !important;
    margin-bottom: 25px !important;
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 12px !important;
}

.woocommerce-form-row label {
    font-family: system-ui, -apple-system, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.woocommerce-form input.input-text {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 46px !important;
    transition: all 0.2s ease !important;
    background-color: #fff !important;
}

.woocommerce-form input.input-text:focus {
    border-color: #0b51b7 !important; 
    box-shadow: 0 0 0 3px rgba(11, 81, 183, 0.1) !important;
    outline: none !important;
}

.woocommerce-form .woocommerce-form-login__submit,
.woocommerce-form .woocommerce-form-register__submit {
    background-color: #0b51b7 !important; 
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    width: 100% !important; 
    height: 46px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    margin-top: 15px !important;
}

.woocommerce-form .woocommerce-form-login__submit:hover,
.woocommerce-form .woocommerce-form-register__submit:hover {
    background-color: #094093 !important;
}

.woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    margin-top: 15px !important;
    font-size: 14px !important;
    color: #64748b !important;
}

.woocommerce-form-login__rememberme input {
    margin-right: 8px !important;
    width: 16px !important;
    height: 16px !important;
}

.woocommerce-LostPassword {
    margin-top: 15px !important;
    text-align: center !important;
    font-size: 14px !important;
}

.woocommerce-LostPassword a {
    color: #00afff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.woocommerce-LostPassword a:hover {
    color: #0b51b7 !important;
    text-decoration: underline !important;
}

.woocommerce-privacy-policy-text {
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
}

@media (max-width: 767px) {
    .woocommerce .u-columns.col2-set {
        flex-direction: column !important;
        gap: 25px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .woocommerce .u-column1.col-1, 
    .woocommerce .u-column2.col-2 {
        padding: 22px !important;
    }
}

.single-product .woocommerce-notices-wrapper {
    display: none !important;
}

/* ==========================================================================
   OPTIMIZACIÓN DE LA GRILLA DE MATRÍCULAS (ACOTEPAC)
   ========================================================================== */

/* Suavizar contenedores globales de las tarjetas */
.ld-course-list-items .ld_course_grid .thumbnail.course {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    background: #ffffff !important;
    position: relative !important;
}

.ld-course-list-items .ld_course_grid .thumbnail.course:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Corrección definitiva del Badge "Inscrito" para que no ocupe todo el ancho */
.ld_course_grid .thumbnail .ld_status.enrolled,
.ld-course-list-items .ld_course_grid .thumbnail.course .ld_status.enrolled {
    background-color: #16a34a !important; 
    color: #ffffff !important;
    font-family: system-ui, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    width: auto !important; /* Evita que se estire al 100% */
    height: auto !important;
    display: inline-block !important;
    z-index: 10 !important;
}

/* Títulos de las tarjetas */
.ld-course-list-items .ld_course_grid .thumbnail.course h3,
.ld-course-list-items .ld_course_grid .thumbnail.course .entry-title {
    font-family: system-ui, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    margin: 15px !important;
}

/* Descripciones cortas */
.ld-course-list-items .ld_course_grid .thumbnail.course .entry-content,
.ld-course-list-items .ld_course_grid .thumbnail.course p {
    font-family: system-ui, sans-serif !important;
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    margin: 0 15px 20px 15px !important;
}

/* Corrección de legibilidad del botón principal (Azul con letras blancas) */
.ld_course_grid .thumbnail .caption .btn-primary,
.ld_course_grid .caption .ld_course_grid_button,
.ld-course-list-items .ld_course_grid .ld_course_grid_button a {
    background-color: #0b51b7 !important; 
    border-color: #0b51b7 !important;
    color: #ffffff !important; /* Forzar el color blanco del texto */
    font-family: system-ui, sans-serif !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 12px 20px !important;
    text-align: center !important;
    display: block !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
}

.ld_course_grid .thumbnail .caption .btn-primary:hover,
.ld_course_grid .caption .ld_course_grid_button:hover {
    background-color: #083d8b !important;
    border-color: #083d8b !important;
    color: #ffffff !important;
}

/* Barra de progreso inferior */
.ld_course_grid .thumbnail .ld_course_grid_progress,
.ld_course_grid .ld_course_grid_progress_bar_text {
    font-family: system-ui, sans-serif !important;
    font-weight: 700 !important;
    color: #0b51b7 !important; 
}

/* ==========================================================================
   TRADUCCIÓN FORZADA DEL MENSAJE DE PUNTUACIÓN DE EVALUACIONES
   ========================================================================== */

p.wpProQuiz_points.wpProQuiz_points--message {
    font-size: 0 !important; 
    color: transparent !important;
    text-align: center !important;
    font-family: system-ui, -apple-system, sans-serif !important;
}

p.wpProQuiz_points.wpProQuiz_points--message::before {
    content: "Ha alcanzado " !important;
    font-size: 15px !important; 
    font-weight: 600 !important;
    color: #475569 !important; 
}

p.wpProQuiz_points.wpProQuiz_points--message span {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0b51b7 !important; 
    display: inline-block !important;
    margin: 0 4px !important;
}

p.wpProQuiz_points.wpProQuiz_points--message span:nth-of-type(1)::after {
    content: " de un total de" !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-left: 4px !important;
}

p.wpProQuiz_points.wpProQuiz_points--message span:nth-of-type(2)::after {
    content: " puntos posibles, equivalente al" !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-left: 4px !important;
}

p.wpProQuiz_points.wpProQuiz_points--message span:nth-of-type(3) {
    color: #16a34a !important; 
}
/* ==========================================================================
   SISTEMA DE BALLOONS (TOOLTIPS) FLOTANTES PARA ÍCONOS DE CABECERA
   ========================================================================== */

/* 1. Preparar el contenedor del ícono */
[data-balloon] {
    position: relative !important;
    cursor: pointer;
}

/* 2. Crear la caja del globo de texto (Aparece invisible por defecto) */
[data-balloon]::before {
    content: attr(data-balloon);
    position: absolute;
    bottom: -42px; /* Posicionamiento exacto debajo del ícono */
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    background-color: #0b51b7 !important; /* Azul Institucional ACOTEPAC */
    color: #ffffff !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(11, 81, 183, 0.25) !important;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 99999 !important;
}

/* 3. Crear la flecha indicadora superior del globo */
[data-balloon]::after {
    content: "" !important;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #0b51b7 transparent;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 99999 !important;
}

/* 4. Efecto Hover: Despertar el globo y la flecha con una transición suave */
[data-balloon]:hover::before,
[data-balloon]:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Ajuste sutil para el segundo globo por si quedan muy juntos */
[data-balloon]:hover::before {
    bottom: -45px;
}
[data-balloon]:hover::after {
    bottom: -15px;
}
/* ==========================================================================
   PERFECCIONAMIENTO DE LA PÁGINA DE ÉXITO DE COMPRA (THANK YOU PAGE)
   ========================================================================== */

/* 1. Contenedor del Banner de Bienvenida Académica */
.acotepac-success-banner {
    background: #f8fafc !important;
    border: 2px dashed #16a34a !important; /* Borde verde éxito */
    border-radius: 12px !important;
    padding: 30px !important;
    text-align: center !important;
    margin-top: 30px !important;
    margin-bottom: 35px !important;
}

.acotepac-success-banner h2 {
    font-family: system-ui, -apple-system, sans-serif !important;
    color: #0f172a !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

.acotepac-success-banner p {
    font-family: system-ui, -apple-system, sans-serif !important;
    color: #475569 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 2. Botón de Alto Impacto para "Mis Cursos" */
.acotepac-goto-courses-btn {
    background-color: #0b51b7 !important; /* Azul Institucional */
    color: #ffffff !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 14px 35px !important;
    border-radius: 6px !important;
    display: inline-block !important;
    text-decoration: none !important;
    box-shadow: 0 4px 6px -1px rgba(11, 81, 183, 0.2) !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.acotepac-goto-courses-btn:hover {
    background-color: #094093 !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

/* 3. Ajustes de Limpieza y Modernización de la Tabla de Detalles */
.woocommerce-order-details table.shop_table {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    border-collapse: separate !important;
    overflow: hidden !important;
}

.woocommerce-order-details table.shop_table th {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    padding: 14px !important;
}

.woocommerce-order-details table.shop_table td {
    padding: 14px !important;
    border-top: 1px solid #e2e8f0 !important;
    font-size: 15px !important;
    color: #334155 !important;
}

/* Darle resalte formal al total final */
.woocommerce-order-details table.shop_table tfoot tr:last-of-type td,
.woocommerce-order-details table.shop_table tfoot tr:last-of-type th {
    font-weight: 800 !important;
    color: #0b51b7 !important;
    font-size: 16px !important;
    background-color: #f8fafc !important;
}