/* ==========================================================================
   Sports Club Pro v1.1 Replica — Extras CSS (v2)
   Updated 2026-04-09: diagonal header clip-path + grid section layout
   ========================================================================== */

/* ---------- HEADER RIGHT PRO (diagonal red clip on the right) ---------- */
.header_fixer { position: relative; }
.header_fixer .container { position: relative; padding-right: 0; }

.header_right_pro {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    min-height: 80px;
    width: 55%;
    max-width: 640px;
    background: #e00606;
    color: #fff;
    clip-path: polygon(90px 0, 100% 0, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(90px 0, 100% 0, 100% 100%, 0 100%);
    padding: 18px 30px 18px 120px;
    z-index: 5;
    display: flex;
    align-items: center;
}
.header_right_pro_inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.header_right_pro_social { display: flex; align-items: center; gap: 8px; }
.header_right_pro_social a {
    display: inline-flex;
    width: 26px; height: 26px;
    align-items: center; justify-content: center;
    color: #fff;
    border: 0;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.header_right_pro_social a:hover { opacity: 0.75; transform: scale(1.1); }
.header_right_pro_email { font-size: 14px; line-height: 1.5; }
.header_right_pro_email p { margin: 0; color: #fff; }
.header_right_pro_email a { color: #fff; text-decoration: none; }
.header_right_pro_email a:hover { text-decoration: underline; }
.header_right_pro_email i { margin-right: 6px; }

/* Push logo/menu left of the red panel */
.header_fixer .container { min-height: 110px; }
.header_fixer .logo { position: relative; z-index: 10; }

/* Hide the OLD header_top (if any leftover styles referenced) */
.header_top { display: none !important; }

/* ---------- NIVO SLIDER caption ---------- */
.slider-main { position: relative; overflow: hidden; max-height: 600px; }
.nivoSlider { position: relative; }
.nivoSlider img { width: 100%; height: auto; display: block; }
.nivo-html-caption {
    background: rgba(8,8,8,0.55);
    padding: 25px 35px;
    color: #fff;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 620px;
    text-align: center;
    border-radius: 4px;
}
.nivo-html-caption h2 { color: #fff; font-size: 50px; font-weight: 700; margin: 0 0 12px; text-transform: uppercase; line-height: 1.1; }
.nivo-html-caption p { color: #fff; font-size: 18px; margin: 0 0 18px; }
.nivo-html-caption .button {
    display: inline-block;
    padding: 12px 32px;
    background: #e00606;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}
.nivo-html-caption .button:hover { background: #fff; color: #e00606; }

/* ---------- SECTIONS — CSS GRID so boxes layout regardless of .row wrapper ---------- */
.menu_page { padding: 70px 0; }
.menu_page .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.menu_page .section-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    align-items: stretch;
}
/* Force max 3 cols for video/awards sections, max 4 for horarios */
#section1 .section-inner { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
#section3 .section-inner { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
#section10 .section-inner { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.menu_page .section_title {
    text-align: center;
    font-size: 38px;
    color: #222;
    margin: 0 0 40px;
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    grid-column: 1 / -1;
}
.menu_page .section_title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #e00606;
}

/* Elements that must span all columns in the grid */
.menu_page .section-inner > .row,
.menu_page .section-inner > p:empty,
.menu_page .section-inner > .subtitle,
.menu_page .section-inner > .clear,
.menu_page .section-inner > .btn-wrap {
    grid-column: 1 / -1;
}
.menu_page .section-inner > .row:empty { display: none; }

/* Also handle the wrapper <p> that WP sometimes adds */
.menu_page .section-inner > p {
    grid-column: 1 / -1;
    margin: 0;
}

/* ---------- HORARIOS (.servicesbox) ---------- */
.servicesbox { }
.servicesboxbg {
    padding: 35px 25px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 6px;
    height: 100%;
    transition: all 0.3s;
    background: #fff;
}
.servicesboxbg:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.12); transform: translateY(-4px); }
.servicesboxbg:hover .services-title h5 { color: #e00606; }
.services-thumb { margin-bottom: 20px; }
.services-thumb a { display: inline-block; }
.services-thumb img { max-width: 80px; height: auto; }
.services-content { text-align: center; }
.services-title h5 { font-size: 18px; color: #222; margin: 0 0 15px; line-height: 1.4; font-weight: 600; }
.services-title a { text-decoration: none; }
.services-description { color: #555; font-size: 14px; line-height: 1.6; }

/* ---------- VIDEOS (.most_video) ---------- */
.most_video { }
.most_video_bg {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    min-height: 220px;
    background: #111;
    height: 100%;
}
.most_video_bg img { width: 100%; height: auto; display: block; opacity: 0.75; transition: all 0.3s; }
.most_video_bg:hover img { opacity: 0.45; }
.video-title-desc {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    color: #fff;
    text-align: center;
    z-index: 2;
}
.video-title-desc h3 { color: #fff; font-size: 22px; margin: 0 0 8px; font-weight: 600; }
.video-title-desc p { color: #fff; font-size: 14px; margin: 0 0 12px; opacity: 0.9; }
.youtube-link {
    display: inline-flex;
    width: 56px; height: 56px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: #e00606;
    color: #fff;
    font-size: 26px;
    text-decoration: none;
    transition: all 0.2s;
}
.youtube-link:hover { background: #fff; color: #e00606; transform: scale(1.1); }

/* ---------- TROFEOS (.awards-lists + .facilities) ---------- */
.awards-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    grid-column: 1 / -1;
    margin-top: 20px;
}
.facilities { }
.facilitiesbg {
    text-align: center;
    padding: 30px 18px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    height: 100%;
    transition: all 0.3s;
}
.facilitiesbg:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.12); transform: translateY(-3px); }
.facilitiesbg a { text-decoration: none; color: inherit; display: block; }
.facilities-icon { margin-bottom: 15px; }
.facilities-icon img { max-width: 80px; height: auto; }
.facilities-icon h5 { display: none; }
.facilitiesbg > a > h5 { font-size: 13px; color: #222; line-height: 1.5; margin: 10px 0 0; font-weight: 600; }
.facilitiesbg:hover > a > h5 { color: #e00606; }

/* ---------- SUBTITLE / BUTTONS ---------- */
.subtitle { text-align: center; margin-bottom: 30px; grid-column: 1 / -1; }
.btn-wrap { margin: 20px 0; }
.btn-wrap .button, .button {
    display: inline-block;
    padding: 12px 32px;
    background: #e00606;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    border: 0;
    cursor: pointer;
}
.btn-wrap .button:hover, .button:hover { background: #222; color: #fff; }

.col-one_half, .col-one_half_last, .col-one_third, .col-one_third_last, .col-one_fourth, .col-one_fourth_last { margin-bottom: 25px; }

/* ---------- CONTACT DETAILS INLINE ---------- */
.contact-details { margin-bottom: 12px; font-size: 15px; }
.contact-details i { width: 20px; margin-right: 8px; color: #e00606; }
.contact-details strong { margin-right: 4px; }

/* ---------- FOOTER (Pro replica: Contact + Menu col) ---------- */
#footer-wrapper { background: #262a31; padding: 60px 0 0; color: #ababab; }
#footer-wrapper .container.footer { display: flex; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
#footer-wrapper .cols-2 { display: flex; gap: 60px; width: 100%; flex-wrap: wrap; }
#footer-wrapper .widget-column-1, #footer-wrapper .widget-column-2 { flex: 1 1 400px; }
#footer-wrapper h5 { color: #fff; font-size: 20px; margin: 0 0 25px; text-transform: uppercase; position: relative; padding-bottom: 12px; font-weight: 700; }
#footer-wrapper h5:after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 2px; background: #e00606; }
#footer-wrapper .contactdetail p { color: #ababab; margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
#footer-wrapper .contactdetail i { width: 18px; color: #fff; margin-right: 10px; }
#footer-wrapper .contactdetail a { color: #ababab; text-decoration: none; }
#footer-wrapper .contactdetail a:hover { color: #fff; }
#footer-wrapper .menu-vobg-container ul { list-style: none; margin: 0; padding: 0; }
#footer-wrapper .menu-vobg-container ul li { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 10px 0; }
#footer-wrapper .menu-vobg-container ul li a { color: #ababab; text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: 0.3px; transition: color 0.2s; }
#footer-wrapper .menu-vobg-container ul li a:hover { color: #fff; }
#footer-wrapper .menu-vobg-container ul ul.sub-menu { margin: 8px 0 0; padding-left: 18px; }
#footer-wrapper .menu-vobg-container ul ul.sub-menu li { border: 0; padding: 6px 0; }

.copyright-wrapper { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 50px; padding: 25px 0; }
.copyright-wrapper .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.copyright-wrapper .design-by { display: flex; gap: 25px; align-items: center; }
.footer-logo img { max-width: 80px; height: auto; }
.footer-social .social-icons { display: inline-flex; gap: 8px; }
.footer-social .social-icons a {
    display: inline-flex;
    width: 34px; height: 34px;
    align-items: center; justify-content: center;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.footer-social .social-icons a:hover { background: #e00606; border-color: #e00606; }
.copyright-txt { color: #ababab; font-size: 13px; }

#back-top { position: fixed; bottom: 30px; right: 30px; z-index: 999; }
#back-top a {
    display: inline-block;
    width: 40px; height: 40px;
    background: #e00606;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 4px;
    text-decoration: none;
}
#back-top a:hover { background: #222; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
    .header_right_pro {
        position: relative;
        width: 100%;
        max-width: none;
        clip-path: none;
        -webkit-clip-path: none;
        padding: 12px 20px;
    }
    .header_right_pro_inner { flex-direction: row; justify-content: center; gap: 20px; flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .menu_page { padding: 45px 0; }
    .menu_page .section_title { font-size: 28px; }
    .nivo-html-caption { padding: 15px 20px; bottom: 20px; max-width: 90%; }
    .nivo-html-caption h2 { font-size: 24px; }
    .nivo-html-caption p { font-size: 14px; }
    #footer-wrapper .cols-2 { flex-direction: column; gap: 30px; }
    .copyright-wrapper .container { flex-direction: column; gap: 15px; text-align: center; }
    .copyright-wrapper .design-by { flex-direction: column; }
}
