/* ==========================================
   1. ESTRUCTURA Y COMPONENTES GENERALES
   ========================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.row:after { content: ""; display: table; clear: both; }
.clearfix::after { display: block; clear: both; content: ""; }
hr.seis { 
    border: 0; height: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); margin: 30px 0 20px 0; 
}

/* ==========================================
   2. BOTONES Y BANNERS
   ========================================== */
.button-27 { 
    appearance: none; background-image: linear-gradient(92.88deg, #385b9e 9.16%, #11859d 43.89%, #04939c 64.72%); 
    border: 0px solid #1A1A1A; border-radius: 5px; color: #FFFFFF; cursor: pointer; display: flex; 
    justify-content: center; font-size: 25px; font-weight: 600; min-height: 60px; padding: 16px 24px; 
    text-align: center; text-decoration: none; transition: all 300ms cubic-bezier(.23, 1, 0.32, 1); 
}
.button-27:hover { box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px; transform: translateY(-2px); }

.banner-doble { display: flex; gap: 15px; margin-bottom: 20px; background-color: transparent; }
.banner-doble .col-banner {
    flex: 1; text-align: center; padding: 20px 15px; font-size: 18px; font-weight: bold;
    color: #2d2d2d !important; text-decoration: none !important;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background-color: #f8f9fa; border: 1px solid #f2f2f2; border-radius: 5px;
    box-shadow: none !important; -webkit-box-shadow: none !important;
}
.banner-doble .col-banner:hover {
    background-color: #fcfcfc; border-color: #f2f2f2; transform: translateY(-2px);
    box-shadow: none !important; -webkit-box-shadow: none !important; opacity: 0.8;
}
.banner-doble .col-banner:first-child { border-right: none; }

.whatsapp-btn { 
    position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: white !important; 
    padding: 10px 20px; border-radius: 50px; text-decoration: none; display: flex; 
    align-items: center; gap: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
    z-index: 1000; font-weight: 600; transition: 0.3s; 
}
.whatsapp-btn:hover { transform: translateY(-3px); text-decoration: none; color: white; }

/* ==========================================
   3. ACORDEONES
   ========================================== */
.acordeon { padding: 5px 0 0px 0; }
.accordion { margin-bottom: 10px; }
.accordion .accordion-btn { 
    border: 1px solid hsla(0, 0%, 92%, .96); border-left: 4px solid #DA291C; position: relative; 
    background-color: #9d9c97; background-image: linear-gradient(122deg, #fff, #Fff); border-radius: 4px; 
    padding: 25px 30px; text-align: left; cursor: pointer; font-weight: bold; list-style-image: none;
    -webkit-box-shadow: 0 0 8px 0 hsla(0,0%,53%,.10);
}
.accordion .accordion-btn::-webkit-details-marker { background: none; color: transparent; }
.accordion .accordion-btn::after { 
    content: "›"; position: absolute; top: 50%; right: 10px; font-size: 35px; width: 35px; height: 35px; 
    text-align: center; border-radius: 50%; color: #DA291C; border: 2px solid #DA291C; 
    transform: translate(0%, -50%) rotate(0deg); box-sizing: border-box; display: flex; 
    align-items: center; justify-content: center; font-weight: normal; transition: all .3s ease;
    padding-bottom: 4px; padding-left: 2px;
}
.accordion[open] .accordion-btn::after { transform: translate(0%, -50%) rotate(90deg); }
.accordion .accordion-content { background-color: #fff; border: 0.5px solid rgb(241, 241, 241); border-top: 0; }
.accordion .accordion-content > * { padding: 20px 20px; }
.accordion[open] summary ~ * { overflow: hidden; animation: heightUp 1s ease-in-out; }
@keyframes heightUp { 0% { max-height: 0; } 100% { max-height: 2000px; } }

/* ==========================================
   4. AVISOS, ALERTAS Y TABLAS
   ========================================== */
.info2 { padding: 20px 10px 5px 10px; margin-bottom: 20px; display: flex; border-radius: 5px; overflow: hidden; background: rgba(0, 0, 0, .05); border-left: 10px solid #DA291C; }
.alert.warning, .warning { 
    background-color: #f8f9fa !important; border: 1px solid #efefef !important; 
    border-left: 6px solid #c1bebe !important; border-radius: 10px; padding: 25px 30px; 
    color: #444 !important; margin: 20px 0; 
}
.alert.warning h6 { color: #2d2d2d !important; font-weight: bold; }
.alert.warning a { color: #2d2d2d !important; font-weight: bold; text-decoration: underline; }

.tabla-descuentos { width: 100%; border-collapse: separate; border-spacing: 0; margin: 5px 0; border: 1px solid #efefef; border-radius: 10px; overflow: hidden; }
.tabla-descuentos th { background-color: #f0f2f5; color: #003057; padding: 15px; text-align: left; font-size: 14px; border-bottom: 1px solid #efefef; }
.tabla-descuentos td { padding: 12px 15px; border-bottom: 1px solid #efefef; font-size: 14px; color: #444; }
.tabla-descuentos tr:last-child td { border-bottom: none; }
.tabla-descuentos tr:nth-child(even) { background-color: #fcfcfc; }

.tabla-pagos { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 30px 0; border: 1px solid #efefef; border-radius: 10px; overflow: hidden; }
.tabla-pagos th { background-color: #f0f2f5; color: #003057; padding: 15px; text-align: center; font-size: 16px; border-bottom: 1px solid #efefef; text-transform: uppercase; }
.tabla-pagos td { background-color: #fcfcfc; padding: 20px 15px; border-right: 1px solid #efefef; font-size: 14px; color: #444; width: 33.33%; text-align: center; vertical-align: middle; line-height: 1.4; }
.tabla-pagos td:last-child { border-right: none; }

/* ==========================================
   5. CAJAS DE INFORMACIÓN VISUAL (CMS)
   ========================================== */
.data__card, .data__info { 
    background: #fcfcfc !important; background-image: none !important; 
    border: 1px solid #efefef !important; border-radius: 10px !important; box-shadow: none !important; 
}
.data__card { display: flex !important; flex-direction: column !important; padding: 20px 40px 20px 20px !important; position: relative; }
.data__card::before { content: none !important; }
.data__card .card__col { font-size: 16px !important; }

.data__info { color: #333 !important; position: relative; float: right; padding: 10px; padding-bottom: 25px !important; margin-bottom: 30px; margin-top: 1px; }
.data__info h4 { color: #2d2d2d !important; font-weight: bold; text-transform: uppercase; margin-bottom: 1em; font-size: 1.06em; }
.data__info .data__info-list li a { color: #2d2d2d; font-weight: bold; }
.data__info .data__info-list li:before { color: #2d2d2d !important; }

.data__info::after { 
    content: "Hasta 3 cuotas sin interés"; display: block; font-size: 18px !important; font-weight: bold; 
    color: #2d2d2d !important; text-align: center; margin-top: 0px; font-family: 'Lato', sans-serif;
}
.data__info-list::after { 
    content: ""; display: block; width: 100%; border-top: 1px solid #ddd; height: 100px; margin-top: 10px; 
    background-image: url('https://lh3.googleusercontent.com/u/0/d/1dRxMM-scZLOdFn1co3jV0MfgBeGGShCj');
    background-size: contain; background-repeat: no-repeat; background-position: center; 
}

/* ==========================================
   ESTRUCTURA CAJA DE DATOS MAGNOLIA
   ========================================== */
.data__card { display: flex !important; flex-direction: column !important; }

.data__card .card__row:has([itemprop="startDate"]) { order: 1 !important; display: flex !important; }

.data__card .card__row:has([itemprop="address"]),
.data__card .card__row:has([itemprop="location"]) { order: 2 !important; display: flex !important; }

.data__card .card__row:has([itemprop="address"]) h3 { font-size: 0 !important; }
.data__card .card__row:has([itemprop="address"]) h3::after { content: "Modalidad"; font-size: 15px !important; font-weight: 700; }

.data__card .card__row:has([itemprop="location"]) dt { font-size: 0 !important; }
.data__card .card__row:has([itemprop="location"]) dt::after { content: "Modalidad"; font-size: 15px !important; font-weight: 700; }

.data__card .card__row:has([itemprop="price"]) { order: 3 !important; display: flex !important; }

.data__card .card__row:has([itemprop="audience"]),
.data__card .card__row:has([itemprop="organizer"]) { display: none !important; }

/* ==========================================
   DESCUENTO DESTACADO — manual en HTML como <dl>
   ========================================== */
#js-descuento-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    border: none !important;
    background: transparent !important;
    order: 4 !important;
}
#js-descuento-card dt {
    font-weight: 700 !important;
    width: 160px !important;
    min-width: 160px !important;

    padding-right: 12px !important;
    font-size: 15px !important;
    color: #2d2d2d !important;
    border: none !important;
    margin: 0 !important;
    background: transparent !important;
}
#js-descuento-card dd {
    color: #2d2d2d !important;
    border: none !important;
    margin: 0 0 0 10px !important;
    padding-left: 0 !important;
    background: transparent !important;
}
#js-descuento-card .js-desc-descripcion {
    color: #999 !important;
    font-weight: normal !important;
    font-size: 13px !important;
    margin-left: 6px !important;
}
#js-descuento-card .js-desc-descripcion strong {
    color: #999 !important;
    font-weight: bold !important;
}


/* ==========================================
   6. SECCIÓN CONTACTO UNIFICADA
   ========================================== */
.contacto-unificado { width: 100%; margin: 25px 0; clear: both; }
.contacto-unificado-box {
    background-color: #fcfcfc !important; border: 1px solid #f2f2f2 !important;
    border-radius: 10px !important; padding: 25px; display: flex;
    justify-content: space-between; align-items: flex-end; gap: 20px; margin: 25px 0;
}
.contacto-unificado-col { flex: 1; }
.contacto-flex-align { display: flex; align-items: center; gap: 12px; }
.contacto-icon-circular {
    background-color: #f0f2f5 !important; color: #23729E !important;
    width: 45px !important; height: 45px !important; min-width: 45px !important;
    border-radius: 50% !important; display: flex !important;
    align-items: center; justify-content: center; font-size: 18px !important;
}
.contacto-unificado-nombre {
    color: #003056 !important; font-weight: bold !important;
    font-size: 16px !important; margin: 0 !important;
}
.contacto-unificado-cargo {
    font-size: 12px !important; color: #666 !important;
    margin: 0 !important; line-height: 1.2;
}
.contacto-unificado-label {
    display: block; font-size: 10px; color: #999;
    font-weight: bold; text-transform: uppercase; margin-bottom: 8px;
}
.contacto-unificado-col a {
    color: #003056 !important; font-weight: bold; text-decoration: none; font-size: 15px;
}
.contacto-unificado-col a:hover { text-decoration: underline !important; opacity: 0.8; }

/* ==========================================
   7. TEXTOS Y DISCLAIMERS
   ========================================== */
.formas-pago-lineal {
    width: 100%; margin: 5px 0 30px 0; padding: 5px 0;
    text-align: center; font-size: 14px; color: #2D2D2D; line-height: 1.6;
}
.pago-alerta { font-weight: bold; font-style: italic; color: #444; }
.titulo-pago { font-weight: 800; text-transform: uppercase; }
.barra-separadora { color: #f2f2f2; margin: 0 15px; font-weight: normal; font-size: 18px; vertical-align: middle; }
.disclaimer-programa {
    font-size: 0.8em !important; margin-bottom: 1px !important;
    text-align: center !important; color: #666; line-height: 1.4; width: 100%; display: block;
}

/* ==========================================
   8. RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .column { width: 100% !important; display: flex; flex-direction: column; float: none; }
    .data__info { width: 100% !important; float: none !important; margin-left: 0 !important; display: block !important; clear: both; }
}
@media (max-width: 991px) {
    .contacto-unificado-box { flex-direction: column; align-items: flex-start; gap: 25px; }
    .contacto-unificado-col { width: 100%; border-bottom: 1px solid #f2f2f2; padding-bottom: 15px; }
    .contacto-unificado-col:last-child { border-bottom: none; padding-bottom: 0; }
    .contacto-unificado-label { padding-left: 0; }
    .formas-pago-lineal { font-size: 13px; padding: 10px; }
    .barra-separadora { margin: 0 8px; }
}
@media (max-width: 767px) {
    .button-27 { font-size: 20px; }
    .whatsapp-btn { bottom: 20px; right: 20px; padding: 8px 15px; font-size: 14px; }
    .banner-doble { flex-direction: column; gap: 10px; }
    .tabla-pagos td { display: block; width: 100%; border-right: none; border-bottom: 1px solid #efefef; padding: 15px; }
    .tabla-pagos td:last-child { border-bottom: none; }
}

@media (max-width: 767px) {
    #js-descuento-card {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;

        text-align: center !important;
        gap: 6px !important;
        margin-top: 10px !important;
        padding: 15px 0 !important;
        border-top: 1px solid #e3dfdf !important;
    }
    #js-descuento-card dt {
        width: auto !important;
        min-width: auto !important;
        text-align: center !important;
        padding-right: 0 !important;
        font-size: 16px !important;
    }
    #js-descuento-card dd {
        font-size: 16px !important;
        margin: 0 !important;
    }
}

/* ==========================================
   AJUSTE CARD EN UCHILE.CL
   ========================================== */
.mainConvocatoria .data__card dd, .mainCurso .data__card dd, .mainPublicacion .data__card dd {
    margin-bottom: .2em;
    padding-left: 2%;
}

section.uchile .data__card dt {
    min-width: 120px !important;
    width: 120px !important;
}



section.uchile #js-descuento-card dt {
    min-width: 120px !important;
    width: 120px !important;
    text-align: left !important;
}

.data__card h3 {

    text-align: left !important;

}

@media (max-width: 1024px) {
    .data__card h3 {
        width: 50% !important;
        text-align: left;
        margin-right: 0;
        margin-bottom: 5px;
    }



