/* ==========================================================================
   Ajustes de diseño 2026 (se carga después de style.css)
   ========================================================================== */

/* ---- Espaciado más compacto entre secciones ---- */
body main section.ct-u-paddingTop100 { padding-top: 70px; }
body main section.ct-u-paddingBottom100,
body main section.ct-u-paddingBottom80 { padding-bottom: 60px; }
body main section.ct-u-paddingBottom200 { padding-bottom: 70px; }

body .ct-headerBox.ct-headerBox--type2 { margin-bottom: 50px; }
body .ct-headerBox.ct-headerBox--type2 .ct-headerBox-media {
    width: 120px !important;
    padding-bottom: 10px !important;
    margin: 0 auto;
}
body .ct-headerBox.ct-headerBox--type2 .ct-headerBox-media img { width: 100% !important; height: auto; }

body .ct-form-container.ct-u-marginBottom100 { margin-bottom: 0; }
body .ct-bradcrumb.ct-u-marginBottom130 { margin-bottom: 60px; }

/* Texto de apoyo bajo los títulos de sección */
.em-lead {
    max-width: 720px;
    margin: -30px auto 40px;
    color: #bbbbbb;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

/* ---- Tarjeta oscura reutilizable ---- */
.em-card {
    height: 100%;
    padding: 28px;
    border: 1px solid #222;
    border-top: 3px solid #e01515;
    border-radius: 8px;
    background: #111;
}
.em-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.em-card-icon {
    display: inline-flex;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(224, 21, 21, .12);
    color: #e01515;
    font-size: 24px;
}
.em-card-header h4 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.em-card-list { margin: 0; padding: 0; list-style: none; }
.em-card-list li {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #1f1f1f;
    color: #fff;
}
.em-card-list li:last-child { border-bottom: 0; }
.em-card-list i { margin-top: 3px; color: #e01515; }
.em-card-list .fa-star { color: #ffd700; }
.em-card-list em { color: #ccc; }
.em-row-eq { display: flex; flex-wrap: wrap; }
.em-row-eq > [class*="col-"] { margin-bottom: 30px; }

/* ---- Videos del Dojo ---- */
.em-videos {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border: 1px solid #222;
    border-radius: 8px;
    background: #111;
}
.em-videos-stage { position: relative; flex: 1 1 auto; min-width: 0; background: #000; border-radius: 4px; overflow: hidden; }
.em-video-slide { display: none; }
.em-video-slide.is-active { display: block; }
.em-video-slide video,
.em-video-slide figure img {
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;
    background: #000;
}
.em-video-slide video { object-fit: contain; }
.em-video-slide figure img { object-fit: cover; }
.em-videos-nav {
    position: absolute; top: 50%; z-index: 5;
    width: 44px; height: 44px; margin-top: -22px;
    border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, .6); color: #fff;
    font-size: 18px; line-height: 44px; text-align: center;
    cursor: pointer; transition: background .2s;
}
.em-videos-nav:hover, .em-videos-nav:focus { background: #e01515; outline: none; }
.em-videos-prev { left: 10px; }
.em-videos-next { right: 10px; }

.em-videos-side { display: flex; flex: 0 0 320px; flex-direction: column; gap: 8px; align-self: stretch; }
.em-videos-side-title { margin: 0 0 4px; color: #888; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.em-videos-thumb {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 8px;
    border: 0; border-left: 3px solid transparent; border-radius: 4px;
    background: #181818; color: #fff; text-align: left;
    cursor: pointer; transition: background .2s, border-color .2s;
}
.em-videos-thumb:hover, .em-videos-thumb:focus { background: #222; outline: none; }
.em-videos-thumb.is-active { border-left-color: #e01515; background: #222; }
.em-videos-thumb-img { position: relative; flex: 0 0 110px; }
.em-videos-thumb-img img { display: block; width: 110px; height: 62px; border-radius: 3px; object-fit: cover; }
.em-videos-thumb-img small {
    position: absolute; right: 4px; bottom: 4px; padding: 1px 5px;
    border-radius: 2px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 11px;
}
.em-videos-thumb-text { min-width: 0; }
.em-videos-thumb-text strong { display: block; font-size: 13px; line-height: 1.3; text-transform: uppercase; }
.em-videos-thumb-text span { display: block; margin-top: 3px; color: #aaa; font-size: 12px; line-height: 1.3; }
.em-videos-thumb.is-active .em-videos-thumb-text strong { color: #e01515; }
.em-videos-channel {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: auto; padding: 10px; border: 1px solid #333; border-radius: 4px;
    color: #fff; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
    transition: border-color .2s, color .2s;
}
.em-videos-channel:hover, .em-videos-channel:focus { border-color: #e01515; color: #fff; text-decoration: none; }
.em-videos-channel i { color: #e01515; font-size: 16px; }

/* ---- Contacto ---- */
.em-contact-item { display: flex; align-items: flex-start; gap: 16px; }
.em-contact-item + .em-contact-item { margin-top: 22px; padding-top: 22px; border-top: 1px solid #1f1f1f; }
.em-contact-item h4 { margin: 0 0 4px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.em-contact-item p { margin: 0; color: #ccc; }
.em-contact-item .em-card-icon.is-whatsapp { background: rgba(37, 211, 102, .12); color: #25D366; }
.em-contact-wa {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 10px; padding: 8px 16px; border-radius: 4px;
    background: #25D366; color: #fff; font-size: 13px; font-weight: 600;
}
.em-contact-wa:hover, .em-contact-wa:focus { background: #1ebe5a; color: #fff; text-decoration: none; }
.em-contact-social { display: flex; gap: 10px; margin-top: 8px; }
.em-contact-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border: 1px solid #333; border-radius: 50%;
    color: #fff; transition: background .2s, border-color .2s;
}
.em-contact-social a:hover, .em-contact-social a:focus { border-color: #e01515; background: #e01515; color: #fff; }
/* ---- Celular ---- */
@media (max-width: 991px) {
    .em-row-eq > [class*="col-"] { width: 100%; }
    .em-videos { flex-direction: column; align-items: stretch; }
    .em-videos-side { flex-basis: auto; }
}
@media (max-width: 767px) {
    body main section.ct-u-paddingTop100 { padding-top: 50px; }
    body main section.ct-u-paddingBottom100,
    body main section.ct-u-paddingBottom80,
    body main section.ct-u-paddingBottom200 { padding-bottom: 40px; }
    body .ct-headerBox.ct-headerBox--type2 { margin-bottom: 30px; }
    body .ct-headerBox.ct-headerBox--type2 .ct-headerBox-media { width: 90px !important; }
    .em-lead { margin: -15px auto 25px; font-size: 15px; }
    .em-card { padding: 20px; }
    .em-videos { padding: 10px; }
    .em-videos-nav { width: 36px; height: 36px; margin-top: -18px; line-height: 36px; }
}
