/* ===========================================================
   Maya Tours — Catalogo Internacional (WordPress Plugin)
   Mismo diseño que el Calendario Nacional pero sin fechas/precios.
   Usa prefijo .mt-cat- para no chocar con el nacional (.mt-cal-)
   =========================================================== */

.mt-cat-shell {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #1a2a3a;
}

/* ---- Grid de cards ---- */
.mt-cat-shell .mt-cat-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    justify-content: center !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}
/* 4 cols desktop */
.mt-cat-shell .mt-cat-card {
    flex: 0 0 calc(25% - 11px) !important;
    width: calc(25% - 11px) !important;
    max-width: calc(25% - 11px) !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    border: 1px solid #e0e7ef !important;
    cursor: pointer !important;
    text-align: left !important;
    padding: 0 !important;
    font: inherit !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
}
.mt-cat-shell .mt-cat-card:hover,
.mt-cat-shell .mt-cat-card:focus,
.mt-cat-shell .mt-cat-card:active,
.mt-cat-shell .mt-cat-card:focus-visible {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: inherit !important;
    text-decoration: none !important;
}
.mt-cat-shell .mt-cat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
}
.mt-cat-shell .mt-cat-card:focus-visible { box-shadow: 0 0 0 3px rgba(0,137,123,.4) !important; }

@media (max-width: 1023px) {
    .mt-cat-shell .mt-cat-card {
        flex: 0 0 calc(33.333% - 10px) !important;
        width: calc(33.333% - 10px) !important;
        max-width: calc(33.333% - 10px) !important;
    }
}
@media (max-width: 767px) {
    .mt-cat-shell .mt-cat-card {
        flex: 0 0 calc(50% - 7px) !important;
        width: calc(50% - 7px) !important;
        max-width: calc(50% - 7px) !important;
    }
}
@media (max-width: 420px) {
    .mt-cat-shell .mt-cat-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Forced columns via [columns="N"] attribute */
.mt-cat-shell[data-cols="2"] .mt-cat-card { flex: 0 0 calc(50% - 7px) !important; width: calc(50% - 7px) !important; max-width: calc(50% - 7px) !important; }
.mt-cat-shell[data-cols="3"] .mt-cat-card { flex: 0 0 calc(33.333% - 10px) !important; width: calc(33.333% - 10px) !important; max-width: calc(33.333% - 10px) !important; }
.mt-cat-shell[data-cols="4"] .mt-cat-card { flex: 0 0 calc(25% - 11px) !important; width: calc(25% - 11px) !important; max-width: calc(25% - 11px) !important; }

.mt-cat-card__visual {
    position: relative;
    height: 170px;
    background-size: cover;
    background-position: center;
    background-color: #e0e7ef;
}
.mt-cat-card__body { padding: 0.875rem 1rem; }
.mt-cat-card__name {
    font-size: 13px;
    font-weight: 800;
    color: #00695c;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mt-cat-empty {
    background: #f0f4f8;
    border-radius: 12px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #6a84a0;
    font-size: 14px;
}
.mt-cat-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e7ef;
    text-align: right;
    color: #8aa0b8;
    font-size: 11px;
}

/* ===========================================================
   MODAL — 2-column (media + content)
   =========================================================== */
body.mt-cat-modal-open { overflow: hidden; }
.mt-cat-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.mt-cat-modal--open { display: flex; }
.mt-cat-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 26, 0.88);
    backdrop-filter: blur(6px);
}
.mt-cat-modal__dialog {
    position: relative;
    background: #001e1a;
    border-radius: 20px;
    max-width: 980px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
    animation: mtCatModalIn 0.25s ease;
    border: 1px solid rgba(255,255,255,0.08);
}
@keyframes mtCatModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.mt-cat-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: #00695c;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mt-cat-modal__close:hover { background: #ffffff; color: #00897b; }

.mt-cat-modal__layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    max-height: 90vh !important;
    min-height: 0 !important;
    height: 90vh !important;
    width: 100% !important;
}

.mt-cat-modal__media {
    position: relative !important;
    background: #001e1a !important;
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.mt-cat-modal__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
    max-width: none !important;
    max-height: none !important;
}
.mt-cat-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #001e1a;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.mt-cat-modal__nav:hover { background: #ffffff; }
.mt-cat-modal__nav--prev { left: 12px; }
.mt-cat-modal__nav--next { right: 12px; }
.mt-cat-modal__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.mt-cat-modal__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none; padding: 0; cursor: pointer;
    transition: all 0.2s ease;
}
.mt-cat-modal__dot.is-active { background: #ffffff; width: 24px; border-radius: 4px; }

.mt-cat-modal__content {
    background: #ffffff !important;
    padding: 1.75rem 1.75rem 1.5rem !important;
    overflow-y: auto !important;
    min-height: 0 !important;
    max-height: 90vh !important;
    height: 100% !important;
    color: #2c3e50 !important;
    flex: 1 1 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    min-width: 0 !important;
}
.mt-cat-modal__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8aa0b8;
    margin-bottom: 0.35rem;
}
.mt-cat-modal__title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #00695c !important;
    margin: 0 0 1.25rem 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.3px !important;
    text-transform: uppercase;
}
.mt-cat-modal__panel {
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e0e7ef;
    overflow: hidden;
}
.mt-cat-modal__panel-head {
    padding: 0.75rem 1rem 0.5rem;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px solid #e0e7ef;
}
.mt-cat-modal__panel-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00897b;
    margin: 0 0 0.25rem;
}
.mt-cat-modal__panel-note {
    font-size: 11px;
    color: #8aa0b8;
    margin: 0;
    line-height: 1.5;
}
.mt-cat-modal__details {
    padding: 1rem 1.125rem;
    font-size: 13.5px;
    line-height: 1.65;
    color: #2c3e50;
}
.mt-cat-modal__details h1,
.mt-cat-modal__details h2,
.mt-cat-modal__details h3,
.mt-cat-modal__details h4,
.mt-cat-modal__details h5,
.mt-cat-modal__details h6 {
    color: #00897b;
    font-weight: 800 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1rem 0 0.5rem !important;
}
.mt-cat-modal__details h1:first-child,
.mt-cat-modal__details h2:first-child,
.mt-cat-modal__details h3:first-child { margin-top: 0 !important; }
.mt-cat-modal__details p { margin: 0 0 0.75rem !important; }
.mt-cat-modal__details strong { color: #00695c; }
.mt-cat-modal__details ul,
.mt-cat-modal__details ol { margin: 0.5rem 0 0.75rem !important; padding-left: 1.125rem !important; }
.mt-cat-modal__details li { margin-bottom: 0.35rem !important; padding-left: 0.25rem !important; }
.mt-cat-modal__details a { color: #00897b; }
.mt-cat-modal__details img { max-width: 100%; height: auto; border-radius: 6px; margin: 0.5rem 0; }
.mt-cat-modal__include-head { color: #2e7d32 !important; }
.mt-cat-modal__exclude-head { color: #c0392b !important; }
.mt-cat-modal__empty {
    color: #8aa0b8;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    margin: 0;
}
/* Panel de cotizaciones (social proof) */
.mt-cat-modal__quotes {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mt-cat-quote-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid #e0e7ef;
    border-radius: 10px;
    padding: 0.625rem 0.875rem;
}
.mt-cat-quote-item__main { flex: 1; min-width: 0; }
.mt-cat-quote-item__price {
    font-size: 14px;
    font-weight: 800;
    color: #00897b;
    line-height: 1.2;
}
.mt-cat-quote-item__price span {
    font-size: 10px;
    font-weight: 600;
    color: #8aa0b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}
.mt-cat-quote-item__dates {
    font-size: 11.5px;
    color: #4a6080;
    margin-top: 2px;
    font-weight: 600;
}
.mt-cat-quote-item__advisor {
    font-size: 10.5px;
    color: #8aa0b8;
    margin-top: 3px;
}
.mt-cat-quote-item__advisor strong { color: #2c3e50; font-weight: 700; }
.mt-cat-quote-item__btn {
    display: inline-flex;
    align-items: center;
    background: #00897b;
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.mt-cat-quote-item__btn:hover { background: #00695c; color: #ffffff !important; text-decoration: none !important; }

.mt-cat-modal__actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e7ef;
    text-align: center;
}
.mt-cat-modal__cta {
    display: inline-block;
    background: #00897b;
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s ease;
}
.mt-cat-modal__cta:hover { background: #00695c; color: #ffffff !important; text-decoration: none !important; }

@media (max-width: 768px) {
    .mt-cat-modal__layout {
        flex-direction: column !important;
        height: 95vh !important;
        max-height: 95vh !important;
    }
    .mt-cat-modal__media {
        flex: 0 0 240px !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
    }
    .mt-cat-modal__content {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(95vh - 240px) !important;
        height: auto !important;
        padding: 1.25rem 1.25rem 1.25rem !important;
    }
    .mt-cat-modal__title { font-size: 1.25rem !important; margin-bottom: 1rem !important; }
    .mt-cat-modal__dialog { max-height: 95vh; }
}
@media (max-width: 640px) {
    .mt-cat-modal { padding: 0.5rem; }
    .mt-cat-modal__nav { width: 36px; height: 36px; font-size: 20px; }
}
