/*
 * SINGLE CURSOS
 * Ubicación: wp-content/themes/astra-child/assets/css/av-single-cursos.css
 */

body.single-cursos .av-single-course{
    width:100%;
    max-width:none;
    padding-bottom:64px;
    overflow:hidden;
    background:#fff;
    color:var(--av-texto);
}

body.single-cursos .av-single-course .av-container{
    width:min(1240px,calc(100% - 40px));
    max-width:1240px;
    margin-left:auto;
    margin-right:auto;
}

.av-course-breadcrumb{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
    padding-top:24px;
    padding-bottom:24px;
    color:#6f7975;
    font-size:13px;
}

.av-course-breadcrumb a{color:#6f7975;text-decoration:none}
.av-course-breadcrumb a:hover{color:var(--av-verde)}
.av-course-breadcrumb svg{width:15px;height:15px}

.av-course-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:40px;
    align-items:start;
}

.av-course-main{min-width:0;overflow:hidden}
.av-course-hero{border-radius:18px;background:linear-gradient(135deg,#fbfbfa,#f4f3f0)}
.av-course-hero-inner{display:block;padding:42px}

.av-course-hero-heading{
    display:block;
    width:100%;
    margin:0 0 28px;
}

.av-course-labels{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:12px;
}

.av-course-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 10px;
    border-radius:999px;
    background:#edf3f0;
    color:var(--av-verde);
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
}

.av-course-badge--gold{background:var(--av-dorado);color:#fff}

.av-course-title{
    width:100%;
    max-width:none;
    margin:0;
    color:var(--av-verde);
    font-family:Cinzel,Georgia,serif;
    font-size:clamp(32px,3.2vw,46px)!important;
    font-weight:700!important;
    line-height:1.08!important;
    letter-spacing:-.015em;
    overflow-wrap:anywhere;
    text-wrap:balance;
}

.av-course-subtitle{
    width:100%;
    max-width:none;
    margin:0;
    color:var(--av-verde);
    font-family:Montserrat,Arial,sans-serif;
    font-size:22px!important;
    font-weight:700!important;
    line-height:1.34!important;
    text-transform:none;
}

.av-course-hero-content{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(280px,.88fr);
    gap:38px;
    align-items:center;
}

.av-course-objective,.av-course-objective p{
    color:#47514d;
    font-family:Montserrat,Arial,sans-serif;
    font-size:16px!important;
    line-height:1.72!important;
}

.av-course-objective p:last-child{margin-bottom:0}
.av-course-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}
.av-course-hero-media{margin:0}

.av-course-hero-media img{
    display:block;
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    border-radius:15px;
    box-shadow:0 14px 27px rgba(0,0,0,.14);
}

.av-course-summary-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    margin:0 42px 38px;
    overflow:hidden;
    border:1px solid var(--av-borde);
    border-radius:12px;
    background:#fff;
}

.av-course-summary-grid>div{
    display:flex;
    gap:11px;
    padding:17px;
    border-right:1px solid var(--av-borde);
}

.av-course-summary-grid>div:last-child{border-right:0}
.av-course-summary-grid svg{width:29px;height:29px;color:var(--av-verde)}
.av-course-summary-grid strong{display:block;color:var(--av-verde);font-size:13px}
.av-course-summary-grid span{color:#66716c;font-size:12px;line-height:1.4}

.av-course-section{margin-top:42px}

.av-section-heading{margin-bottom:22px}
.av-section-heading>span{
    display:block;
    margin-bottom:4px;
    color:var(--av-dorado);
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.av-section-heading h2{
    margin:0;
    color:var(--av-verde);
    font-family:Cinzel,Georgia,serif;
    font-size:32px!important;
    font-weight:600;
    line-height:1.2!important;
}

.av-course-results-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.av-course-result{
    position:relative;
    padding:26px 23px;
    text-align:center;
}

.av-course-result>span{
    position:absolute;
    top:12px;
    right:14px;
    color:#c7cfc9;
    font-size:24px;
    font-weight:800;
}

.av-course-result>svg{
    width:42px;
    height:42px;
    margin-bottom:12px;
    color:var(--av-verde);
}

.av-course-result p{margin:0;color:#5d6763;font-size:14px;line-height:1.65}

.av-course-modules{display:grid;gap:13px}

.av-course-module{
    border-radius:12px;
}

.av-course-module summary{
    display:grid;
    grid-template-columns:42px minmax(0,1fr) auto;
    gap:14px;
    align-items:center;
    padding:18px 20px;
    cursor:pointer;
    list-style:none;
}

.av-course-module summary::-webkit-details-marker{display:none}

.av-course-module summary>span{
    display:grid;
    width:38px;
    height:38px;
    place-items:center;
    border-radius:50%;
    background:var(--av-verde);
    color:#fff;
    font-size:12px;
    font-weight:800;
}

.av-course-module summary strong{color:var(--av-verde);font-size:17px}
.av-course-module summary>svg{width:20px;height:20px;color:var(--av-dorado)}
.av-course-module[open] summary>svg{transform:rotate(180deg)}

.av-course-module-content{
    padding:0 20px 20px 76px;
    color:#59635f;
    line-height:1.7;
}

.av-course-method-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:19px;
}

.av-course-info-card{padding:25px 22px}
.av-course-info-card>svg{width:38px;height:38px;color:var(--av-verde)}
.av-course-info-card h3{margin:12px 0 10px;color:var(--av-verde);font-size:19px}
.av-course-info-card div,.av-course-info-card p{color:#5d6763;line-height:1.65}
.av-course-info-card ul{display:grid;gap:9px;margin:0;padding:0;list-style:none}
.av-course-info-card li{display:flex;align-items:flex-start;gap:8px;color:#5d6763;font-size:14px}
.av-course-info-card li svg{width:18px;height:18px;color:var(--av-dorado)}

.av-course-audience,
.av-course-certification,
.av-course-teacher{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:20px;
    align-items:start;
    padding:25px;
}

.av-course-audience>svg,
.av-course-certification>svg{
    width:48px;
    height:48px;
    color:var(--av-verde);
}

.av-course-audience div,
.av-course-certification p{
    color:#5d6763;
    line-height:1.7;
}

.av-course-careers{
    margin:14px 0 0;
    padding-top:14px;
    border-top:1px solid var(--av-borde);
}

.av-course-certification-content{min-width:0}
.av-course-certification h3{
    margin:0 0 10px;
    color:var(--av-verde);
    font-size:20px;
}

.av-course-certification-description{
    color:#5d6763;
    line-height:1.7;
}

.av-course-certification-description p{
    margin-top:0;
    margin-bottom:12px;
}

.av-course-certifiers{
    margin-top:20px;
    padding-top:18px;
    border-top:1px solid var(--av-borde);
}

.av-course-certifiers-title{
    display:block;
    margin-bottom:11px;
    color:var(--av-verde);
    font-size:13px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.av-course-certifiers-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.av-course-certifier-card{
    display:flex;
    align-items:flex-start;
    gap:11px;
    min-height:76px;
    padding:14px 15px;
    border:1px solid var(--av-borde);
    border-radius:10px;
    background:linear-gradient(135deg,#fff,#faf8f4);
    color:#5d6763;
    box-shadow:0 5px 15px rgba(4,44,35,.05);
}

.av-course-certifier-card>svg{
    width:27px;
    height:27px;
    min-width:27px;
    color:var(--av-dorado);
}

.av-course-certifier-card span{
    font-size:13px;
    line-height:1.45;
}

.av-course-certifier-card strong{
    display:block;
    margin-bottom:3px;
    color:var(--av-verde);
    font-size:12px;
}

.av-course-teacher{grid-template-columns:150px 1fr;align-items:center}
.av-course-teacher img,.av-course-teacher-placeholder{
    width:150px;
    height:170px;
    border-radius:12px;
}

.av-course-teacher img{object-fit:cover}
.av-course-teacher-placeholder{display:grid;place-items:center;background:#edf3f0;color:var(--av-verde)}
.av-course-teacher-placeholder svg{width:55px;height:55px}
.av-course-teacher h3{margin:0 0 4px;color:var(--av-verde);font-size:23px}
.av-course-teacher strong{display:block;margin-bottom:12px;color:var(--av-dorado)}
.av-course-teacher div div{color:#5d6763;line-height:1.7}

.av-course-cta{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:20px;
    align-items:center;
    margin-top:38px;
    padding:28px;
    border-radius:14px;
    background:linear-gradient(135deg,var(--av-verde),#075141);
    color:#fff;
    box-shadow:0 12px 30px rgba(4,44,35,.18);
}

.av-course-cta>svg{width:52px;height:52px;color:var(--av-dorado)}
.av-course-cta h2{margin:0 0 4px;color:#fff;font-size:23px!important}
.av-course-cta p{margin:0;color:#dfe9e5}

.av-course-testimonial{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:18px;
    margin-top:26px;
    padding:24px;
}

.av-course-testimonial>svg{width:38px;height:38px;color:var(--av-dorado)}
.av-course-testimonial blockquote{margin:0;color:#5b6561;font-style:italic;line-height:1.7}
.av-course-testimonial cite{display:block;margin-top:10px;color:var(--av-verde);font-style:normal;font-weight:700}
.av-course-testimonial cite span{display:block;color:#69736e;font-size:12px;font-weight:400}

.av-course-related-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:17px;
}

.av-course-related-card{
    overflow:hidden;
    border:1px solid var(--av-borde);
    border-radius:12px;
    background:#fff;
    box-shadow:var(--av-sombra-suave);
}

.av-course-related-media{display:block;height:145px;background:#e9eee9}
.av-course-related-media img{width:100%;height:100%;object-fit:cover}
.av-course-related-media>span{display:grid;width:100%;height:100%;place-items:center;color:var(--av-verde)}
.av-course-related-media svg{width:48px;height:48px}
.av-course-related-body{padding:17px}
.av-course-related-type{display:flex;align-items:center;gap:6px;color:var(--av-dorado);font-size:11px;font-weight:800;text-transform:uppercase}
.av-course-related-body h3{margin:7px 0;color:var(--av-verde);font-size:17px}
.av-course-related-body h3 a{color:inherit;text-decoration:none}
.av-course-related-body p{margin:0 0 12px;color:#66716c;font-size:13px;line-height:1.55;text-align:justify}

.av-course-sidebar{position:sticky;top:100px}

.av-course-enrollment-card{
    margin-bottom:24px;
    padding:26px;
    border-radius:16px;
    background:linear-gradient(160deg,var(--av-verde),#063b30);
    color:#fff;
    box-shadow:0 14px 34px rgba(4,44,35,.2);
}

.av-course-enrollment-icon{width:42px;height:42px;color:var(--av-dorado)}
.av-course-enrollment-card h2{margin:12px 0 18px;color:#fff;font-size:25px!important}
.av-course-enrollment-data{display:grid;gap:15px;margin-bottom:20px}
.av-course-enrollment-data>div{display:flex;align-items:flex-start;gap:10px}
.av-course-enrollment-data svg{width:21px;height:21px;color:var(--av-dorado)}
.av-course-enrollment-data span{color:#dbe7e3;font-size:13px}
.av-course-enrollment-data strong{display:block;color:#fff;font-size:13px}
.av-course-enrollment-card .av-btn{width:100%}

.av-course-open-label{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    margin-top:13px;
    color:#d8f6e9;
    font-size:12px;
    font-weight:700;
}

.av-course-contact-card,
.av-other-courses{padding:21px;margin-bottom:24px}

.av-course-contact-card h2,
.av-other-courses h2{
    margin:0 0 14px;
    color:var(--av-verde);
    font-size:23px!important;
}

.av-course-contact-card>p{color:#66716c;line-height:1.6}
.av-course-contact-card>div{display:flex;gap:10px;margin-bottom:13px}
.av-course-contact-card>div svg{width:21px;height:21px;color:var(--av-dorado)}
.av-course-contact-card span{color:#66716c;font-size:13px}
.av-course-contact-card strong{display:block;color:var(--av-verde)}

.av-side-course{
    display:grid;
    grid-template-columns:82px 1fr;
    gap:11px;
    margin-bottom:14px;
    padding:9px;
    border:1px solid var(--av-borde);
    border-radius:11px;
    color:var(--av-texto);
    text-decoration:none;
    transition:.2s ease;
}

.av-side-course:last-child{margin-bottom:0}
.av-side-course:hover{transform:translateY(-2px);box-shadow:var(--av-sombra-suave)}
.av-side-course img,.av-side-course-placeholder{width:82px;height:92px;border-radius:8px}
.av-side-course img{object-fit:cover}
.av-side-course-placeholder{display:grid;place-items:center;background:#eef3f1;color:var(--av-verde)}
.av-side-course-placeholder svg{width:34px;height:34px}
.av-side-course strong{display:block;color:var(--av-verde);font-size:14px;line-height:1.3}
.av-side-course small{display:block;margin-top:4px;color:#66716c;font-size:12px}
.av-side-course em{display:flex;align-items:center;gap:4px;margin-top:8px;color:var(--av-dorado);font-size:11px;font-style:normal;font-weight:800}

@media(max-width:1100px){
    .av-course-layout{grid-template-columns:1fr}
    .av-course-sidebar{position:static;display:grid;grid-template-columns:1fr 1fr;gap:24px}
}

@media(max-width:900px){
    .av-course-hero-content{grid-template-columns:1fr}
    .av-course-summary-grid{grid-template-columns:1fr 1fr}
    .av-course-results-grid,.av-course-method-grid,.av-course-related-grid{grid-template-columns:1fr}
    .av-course-sidebar{grid-template-columns:1fr}
}

@media(max-width:650px){
    body.single-cursos .av-single-course .av-container{width:min(100% - 24px,1240px)}
    .av-course-hero-inner{padding:26px 20px}
    .av-course-title{font-size:clamp(28px,9vw,36px)!important}
    .av-course-subtitle{font-size:19px!important}
    .av-course-summary-grid{grid-template-columns:1fr;margin:0 20px 24px}
    .av-course-summary-grid>div{border-right:0;border-bottom:1px solid var(--av-borde)}
    .av-course-summary-grid>div:last-child{border-bottom:0}
    .av-course-actions{display:grid}
    .av-course-cta{grid-template-columns:1fr}
    .av-course-teacher{grid-template-columns:1fr}
    .av-course-teacher img,.av-course-teacher-placeholder{width:120px;height:140px}
    .av-course-module-content{padding-left:20px}
    .av-course-certifiers-grid{grid-template-columns:1fr}
}
