/*
Theme Name: MatVill - Academia
Theme URI: https://zopitech.cl
Author: ZopiTech
Author URI: https://zopitech.cl
Description: Tema para Matvill, academia de artes marciales (WordPress).
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: academia-theme
*/

.popup-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
}

.popup-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    /* hace que en móvil se apile */
}

.popup-text {
    flex: 1 1 60%;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.popup-img-wrap {
    flex: 1 1 35%;
    text-align: right;
}

.popup-img-wrap img.popup-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-flex {
        flex-direction: column;
    }

    .popup-img-wrap {
        text-align: center;
        margin-top: 15px;
    }
}

/* ===== Card ===== */
.program-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
}

/* Imagen con altura fija */
.program-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.program-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 20px;
}

.program-info {
    flex-grow: 1;
}

.program-edad {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.program-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.program-footer {
    margin-top: auto;
    text-align: left;
}

.program-btn {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #000;
    transition: all 0.2s ease;
}

.program-btn:hover {
    color: #c00;
    border-color: #c00;
}

/* ===== Popup ===== */
.white-popup {
    position: relative;
    background: #fff;
    padding: 25px;
    width: 90%;
    max-width: 90%;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.popup-img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.popup-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    border-bottom: 2px solid #eee;
}

.popup-tabs li {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
}

.popup-tabs li.active {
    border-bottom: 3px solid #c00;
    color: #c00;
}

.popup-tab-content {
    display: none;
}

.popup-tab-content.active {
    display: block;
}

.popup-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.popup-table th,
.popup-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.popup-table th {
    background: #f4f4f4;
    font-weight: bold;
}

/* Botón de cierre */
.mfp-close {
    position: absolute;
    top: 10px !important;
    right: 10px !important;
    font-size: 24px !important;
    color: #333 !important;
    opacity: 0.8;
}

.mfp-close:hover {
    opacity: 1;
    color: #c00 !important;
}

.navbar .logo img {
    max-width: 150px;
    /* mantiene proporción */
    transition: all 0.3s ease;
}

.btn-ver-todos {
    display: inline-block;
    margin: 10px 0 20px;
    padding: 8px 14px;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    color: #222;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.btn-ver-todos:hover {
    box-shadow: 0 3px 14px rgba(0, 0, 0, .16);
}

/* ===== Mapa General ===== */
#map-clubes {
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.leaflet-container {
    background: #f8f8f8;
}

/* ===== Carrusel ===== */
.club-item {
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.club-nombre {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.club-direccion {
    font-size: 15px;
    margin-bottom: 10px;
    color: #ddd;
}

.club-horarios {
    width: 100%;
    border-collapse: collapse;
    margin: 10px auto;
}

.club-horarios th,
.club-horarios td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    font-size: 14px;
}

.club-horarios th {
    background: #f4f4f4;
    color: #000;
}

.club-instructores {
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
}

.single-post .single-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.single-post .single-meta {
    color: #999;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

.single-post .single-thumb img {
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.single-post .single-content {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

.single-post .single-tax {
    font-size: 14px;
    color: #555;
}

.single-post .single-nav {
    font-weight: 600;
}

.blog-list .blog-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.blog-list .content h4 {
    font-size: 20px;
    margin: 8px 0;
}

.blog-list .cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c00;
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.thumb-fixed {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.recent-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.recent-title {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  color: #222;
}

.recent-title:hover {
  color: #c00;
}

.blog-thumb {
  flex: 0 0 220px;
  height: 160px;
  border-radius: 8px;
  background-size: cover;      /* llena el contenedor */
  background-position: center; /* centra vertical y horizontal */
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.blog-thumb .thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  text-indent: -9999px; /* link invisible */
}

.thumb-recent img {
    height: 100px;    
    width: auto;      /* mantiene proporción */
    object-fit: cover;
    border-radius: 6px;
}


/* ======= Navbar style ======= */
.navbar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 99;
    padding-right: 0;
    padding-left: 0;
    padding-top: 0;
    padding-bottom: 0;
    height: 100px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.navbar .container-fluid {
    padding-left: 45px;
    padding-right: 45px;
}
.navbar .container {
    border: none;
}
.nav-scroll .container {
    border: none;
}
.navbar-toggler-icon {
    background-image: none;
}
.navbar .navbar-toggler-icon,
.navbar .icon-bar {
    color: #fff;
}
.navbar .navbar-nav .nav-link {
    font-family: "Oswald", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin: 1px;
    -webkit-transition: all .4s;
    transition: all .4s;
    padding-right: 12px;
    padding-left: 12px;
    text-transform: uppercase;
}
.navbar .navbar-nav .nav-link.nav-color {
    color: #141414;
}
.navbar .navbar-nav .nav-link:hover {
    color: #FFF !important;
}
.navbar .navbar-nav .nav-link:hover i {
    color: #FFF !important;
}
.navbar .navbar-nav .active {
    color: #141414 !important;
}
.navbar .navbar-nav .active i {
    color: #141414 !important;
}
.nav-scroll {
    background: #fff;
    padding: 0 0 0 0;
    position: fixed;
    top: -80px;
    left: 0;
    width: 100%;
    -webkit-transition: -webkit-transform .5s;
    transition: -webkit-transform .5s;
    transition: transform .5s;
    transition: transform .5s, -webkit-transform .5s;
    -webkit-transform: translateY(80px);
    transform: translateY(80px);
    border: none;
    -webkit-box-shadow: 0 0 50px 0 rgba(0, 0, 0, .1);
    box-shadow: 0 0 50px 0 rgba(0, 0, 0, .1);
    height: 80px;
}
.nav-scroll .navbar-toggler-icon,
.nav-scroll .icon-bar {
    color: #141414;
}
.nav-scroll .navbar-nav .nav-link {
    color: #141414;
}
.nav-scroll .navbar-nav .nav-link:hover {
    color: #141414 !important;
}
.nav-scroll .navbar-nav .nav-link:hover i {
    color: #141414 !important;
}
.nav-scroll .navbar-nav .active {
    color: #BD945A !important;
}
/* logo */
.nav-scroll .logo-wrapper .logo-img {
    width: 170px;
    margin-bottom: 0px;
}
.nav-scroll .logo-wrapper {}
.nav-scroll .logo-wrapper .logo h2 {
    display: block;
    width: 100%;
    color: #BD945A;
    position: relative;
    margin-bottom: 0;
    padding: 0;
}
.nav-scroll .logo-wrapper .logo span {
    color: #BD945A;
}
.logo-wrapper {
    float: left;
}
.logo-wrapper .logo {
    padding: 0;
}
.logo-wrapper .logo-img {
    width: 170px;
    text-align: center;
}
.logo-wrapper .logo h2 {
    font-size: 32px;
    font-weight: 400;
    display: block;
    width: 100%;
    position: relative;
    color: #fff;
    margin-bottom: 0;
    padding: 0;
    line-height: 1.25em;
}
.logo-wrapper .logo h2 span {
    color: #BD945A;
}
/* dropdown */
.dropdown .nav-link i {
    padding-left: 0px;
    font-size: 14px;
    color: #fff;
}
.nav-scroll .dropdown .nav-link i {
    color: #141414;
}
.nav-scroll .navbar-nav .active i {
    color: #BD945A !important;
}
.navbar .dropdown-menu .dropdown-item {
    padding: 10px 0;
    font-size: 17px;
    font-weight: 400;
    color: #141414;
    position: relative;
    background-color: transparent;
    -webkit-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s;
}
.navbar .dropdown-menu .dropdown-item span {
    display: block;
    cursor: pointer;
}
.navbar .dropdown-menu .dropdown-item i {
    padding: 13px 0 0 5px;
    font-size: 12px;
    float: right;
    color: #141414;
}
.navbar .dropdown-menu .dropdown:hover > .dropdown-item,
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:hover {
    color: var(--theme-base-color) !important;
}
.navbar .dropdown-toggle::after {
    display: none;
}
.navbar .dropdown-menu {
    box-shadow: 0 45px 45px 0 rgba(0, 0, 0, .05);
}
.navbar .dropdown-menu li:last-child {
    border-bottom: none;
}
/* li hover */
.navbar .dropdown-menu li {
    position: relative;
    display: block;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
    border-bottom: 1px solid rgba(104, 104, 104, 0.1);
}
.navbar .dropdown-menu li:hover {
    padding-left: 5px;
}
.navbar .dropdown-menu .dropdown-menu.pull-left {
    top: 0;
    left: auto;
    right: 100%;
}
/* navbar-right button */
.navbar .navbar-right {
    position: relative;
    display: flex;
    align-items: center;
}
.navbar .navbar-right .button {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 5;
    border-radius: 5px;
    transition: border-color 300ms ease, transform 300ms ease, background-color 300ms ease, color 300ms ease;
    transform-style: preserve-3d;
    font-family: "Oswald", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    background-color: transparent;
    padding: 4px 20px;
    border: 1px solid rgba(255,255,255,0.3);
}
.navbar .navbar-right .button i {
    font-size: 15px;
    margin-right: 5px;
}
.nav-scroll .navbar-right .button {
    color: #fff;
}
.nav-scroll .navbar-right .button i {
    color: #fff;
}
.navbar .navbar-right .button:hover {
    transform: translate3d(0px, -3px, 0.01px);
    background-color: #fff;
    color: #141414;
}
.nav-scroll .navbar-right .button:hover {
    background-color: #141414;
    color: #fff;
}
/* navbar-right phone */
.navbar .navbar-right {
    position: relative;
    display: flex;
    align-items: center;
}
.navbar .navbar-right .phone {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 5;
    transition: border-color 300ms ease, transform 300ms ease, background-color 300ms ease, color 300ms ease;
    transform-style: preserve-3d;
    font-family: "Oswald", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-left: 30px;
}
.navbar .navbar-right:hover .phone {
    color: rgba(255,255,255,0.9);
}
.navbar .navbar-right .phone p{
    font-size: 14px;
}
.navbar .navbar-right .phone i {
    font-size: 14px;
    margin-right: 3px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: var(--theme-base-color);
    color: #fff;
    border-radius: 100%;
    text-align: center;
}
.nav-scroll .navbar-right .phone {
    color: #141414;
}
.nav-scroll .navbar-right:hover .phone {
    color: var(--theme-base-color);
}
.nav-scroll .navbar-nav .dropdown:hover > .dropdown-menu{
    margin-top: 16px;
}

/* navbar media query */
@media screen and (min-width: 992px) {
    .navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
        width: 220px;
        padding: 20px 25px;
        border-radius: 0px;
        border: 0;
        background-color: #fff;
        -webkit-transition: all .3s;
        transition: all .3s;
        margin-top: 26px;
        border-top: 4px solid var(--theme-base-color);
    }
    .navbar .dropdown-menu .dropdown-menu {
        left: calc(100% + 25px);
        top: -28px;
        right: auto;
        min-width: 220px;
        transform: translateY(0);
    }
    .navbar .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

}
@media screen and (max-width: 991px) {
    .navbar {
        padding-left: 0px;
        padding-right: 0px;
        background: transparent;
        padding-top: 0px;
        padding-bottom: 0px;
        height: 90px;
        border: none;
    }
    .nav-scroll {
        background: #fff;
        height: 86px;
    }
    .logo-wrapper {
        float: left;
        padding: 26px 15px;
    }
    .nav-scroll .logo-wrapper {
        padding: 19px 15px;
        background-color: transparent;
    }
    .nav-scroll .logo-img {
        width: 150px;
    }
        .logo-wrapper .logo-img {
    width: 150px;
    text-align: center;
}
    .nav-scroll .logo-wrapper .logo-img {
    width: 150px;
    margin-bottom: -50px !important;    
    margin-top: -50px !important;

}
    .navbar .logo {
        text-align: left;
        margin-left: 0px;
    }
    .logo-img {
        margin-bottom: 0px;
        width: 130px;
        padding: 0;
    }
    .navbar button {
        margin-right: 0px;
        outline: none !important;
        background: transparent;
        margin-top: 10px;
        border: none;
    }
    .navbar button:hover {
        background: transparent;
    }
    .navbar button:active,
    .navbar button:focus,
    .navbar button:hover {
        background: transparent;
        outline: none;
        color: transparent !important;
    }
    .navbar .container {
        max-width: 100%;
        padding: 0;
    }
    .navbar .nav-link {
        margin: 0px auto !important;
    }
    .navbar .navbar-nav .nav-link {
        color: #141414;
    }
    .nav-scroll .navbar-collapse .nav-link {
        color: #141414 !important;
    }
    .nav-scroll .navbar-collapse .active {
        color: #BD945A !important;
    }
    .navbar .dropdown-menu .dropdown-item {
        color: #141414;
        padding: 10px 15px;
        font-size: 16px;
    }
    .navbar .dropdown-menu .dropdown-item.dropdown-toggle {
        font-weight: 400;
    }
    .navbar .dropdown-submenu .dropdown-toggle::after {
        right: 15px;
        font-size: 12px;
    }
    .navbar .dropdown-submenu:hover > .dropdown-toggle::after {
        transform: rotate(0deg);
    }
    .navbar .dropdown-submenu .dropdown-toggle.show::after {
        transform: rotate(90deg);
    }
    .navbar .dropdown-menu {
        border: none;
        padding: 0;
        border-radius: 0;
        margin: 0;
        background: #fff;
        box-shadow: none;
    }
    .navbar .dropdown-submenu .dropdown-menu {
        margin: 0;
        padding: 0 0 0 20px;
    }
    .navbar .dropdown-menu li a {
        padding: 0 15px;
    }
    .navbar .navbar-nav .nav-link {
        padding-right: 0px;
        padding-left: 0px;
    }
    .navbar .navbar-nav {
        padding: 20px;
    }
    .navbar .navbar-collapse {
        max-height: 500px;
        overflow: auto;
        background: #fff;
        text-align: left;
    }
    .dropdown .nav-link i {
        color: #fff;
        right: 0;
        padding: 4px;
        background-color: #d7110e;
        border-radius: 4px;
        position: absolute;
    }
    .nav-scroll .dropdown .nav-link i {
        color: #fff;
    }
    .nav-scroll .dropdown .nav-link.active i {
        color: #BD945A !important;
    }
    .navbar .dropdown-menu .dropdown-item i {
        color: #fff;
             padding: 4px;
        background-color: #d7110e;
        border-radius: 4px;
        position: absolute;
        right: 0;
    }
    .navbar .navbar-right {
        display: none;
    }
    .navbar .navbar-nav .nav-link:hover {
        color: #000 !important;
    }
    .navbar .navbar-nav .nav-link:hover i {
        color: #fff !important;
    }
}

.leer-mas {
    font-weight: 600;
    color: #c00;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.2s ease;
}
.leer-mas:hover {
    color: #000;
    text-decoration: underline;
}

.contact-form .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-form .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.contact-form h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  color: #333;
}
.contact-form button.btn-primary {
  background: linear-gradient(135deg, #0066cc, #0099ff);
  border: none;
  font-weight: 600;
}
.contact-form button.btn-primary:hover {
  background: linear-gradient(135deg, #005bb5, #0088e6);
}

.club-cascada {
    margin-bottom: 25px;
    text-align: left;
}

.club-cascada h3.club-titulo {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.club-horarios-cascada {
    border-left: 3px solid #444;
    padding-left: 15px;
}

.horario-item {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.horario-item div {
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.horario-item i {
    margin-right: 6px;
    color: #d32f2f;
}

.sin-horarios {
    font-style: italic;
    color: #777;
}


