/* ============================================================
   Meta100 Testimonios – CSS v1.1
   ============================================================ */

/* ---------- Variables ---------- */
:root {
    --mte-card-bg: #ffffff;
    --mte-page-bg: #f2f4f7;
    --mte-border: #e4e8ef;
    --mte-ink: #0d2b45;
    --mte-soft: #607080;
    --mte-orange: #e07d4a;
    --mte-star: #e8b84b;
    --mte-link: #b87a55;
    --mte-active-tab-bg: #f5ece5;
    --mte-active-tab-border: #d09070;
    --mte-radius-card: 20px;
    --mte-radius-pill: 999px;
    --mte-shadow: 2px 2px 10px 0 rgba(0, 0, 0, 0.20);
}

.mte-wrap {
    background: var(--mte-page-bg);
    border-radius: var(--mte-radius-card);
    padding: 32px 28px;
}

.mte-wrap,
.mte-tabs,
.mte-grid,
.mte-pagination,
.mte-form-wrap,
.mte-alert,
.mte-event-filter,
.mte-event-filter * {
    font-family: "Unbounded", Sans-serif;
}

.mte-event-filter {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
}

.mte-event-filter-label {
    font-size: 12px;
    color: var(--mte-soft);
    font-weight: 500;
}

.mte-event-filter-control {
    position: relative;
}

.mte-event-trigger {
    min-width: 240px;
    border: 1.5px solid #b8c6d6;
    border-radius: var(--mte-radius-pill);
    background: var(--mte-card-bg);
    color: #2a4a66;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    padding: 10px 42px 10px 16px;
    cursor: pointer;
    text-align: left;
}

.mte-event-trigger:focus, .mte-event-trigger:hover {
    outline: none;
    background-color:var(--mte-link);;
    border-color: var(--mte-active-tab-border);
    box-shadow: 0 0 0 2px rgba(208, 144, 112, 0.18);
}

.mte-event-filter-control::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #2a4a66;
    border-bottom: 2px solid #2a4a66;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
    transition: transform 0.18s ease;
}

.mte-event-filter-control.is-open::after {
    transform: translateY(-30%) rotate(-135deg);
}

.mte-event-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 40;
    width: 100%;
    min-width: 240px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid #d7e0ea;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--mte-shadow);
    max-height: 280px;
    overflow: auto;
}

.mte-event-option {
    width: 100%;
    border: 0;
    background: transparent;
    color: #2a4a66;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.mte-event-option:hover,
.mte-event-option.is-active {
    background: var(--mte-active-tab-bg);
    color: var(--mte-orange);
}

/* ---------- Header row ---------- */
.mte-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.mte-header-text {
    flex: 1 1 auto;
}

.mte-subtitle {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mte-orange);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mte-title {
    margin: 0;
    color: var(--mte-ink);
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ---------- Tabs (top-right) ---------- */
.mte-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    flex: 0 0 auto;
}

.mte-tab {
    text-decoration: none;
    border: 1.5px solid #b8c6d6;
    color: #2a4a66;
    border-radius: var(--mte-radius-pill);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    background: var(--mte-card-bg);
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    white-space: nowrap;
}

.mte-tab:hover,
.mte-tab.is-active {
    background: var(--mte-active-tab-bg);
    border-color: var(--mte-active-tab-border);
    color: var(--mte-orange);
}

/* ---------- Grid ---------- */
.mte-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.mte-grid.is-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

/* ---------- Card ---------- */
.mte-card {
    background: var(--mte-card-bg);
    border: 1px solid var(--mte-border);
    border-radius: var(--mte-radius-card);
    padding: 40px;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    box-shadow: var(--mte-shadow);
    align-items: start;
    align-self: start;
}

.mte-card-media {
    flex-shrink: 0;
    width: 130px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.mte-card-img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}

.mte-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.mte-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dde6f2, #eef2f8);
}

.mte-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* name + stars row */
.mte-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 2px;
}

.mte-card-ident { min-width: 0; }

.mte-card-name {
    margin: 0;
    color: var(--mte-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.mte-card-country {
    margin: 0px 0 5px 0;
    color: var(--mte-ink);
    font-size: 12px;
    font-weight: 600;
}

.mte-card-event {
    margin: 0px 0 0;
    color: #b87a55;
    font-size: 13.5px;
    font-weight: 500;
}

.mte-stars {
    margin: 0;
    color: var(--mte-star);
    font-size: 16px;
    letter-spacing: 2px;
    white-space: nowrap;
    line-height: 1.15;
    flex-shrink: 0;
}

.mte-card-text {
    color: #33495f;
    margin: 10px 0 12px;
    font-size: 14px;
    line-height: 1.65;
}

.mte-card-link {
    color: var(--mte-link);
    border:1px solid var(--mte-link);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    align-self: flex-start;
}

.mte-card-link:hover {  background-color:var(--mte-link); }

/* ---------- Empty state ---------- */
.mte-empty {
    grid-column: 1 / -1;
    padding: 24px;
    background: var(--mte-card-bg);
    border: 1.5px dashed #c2d0e2;
    border-radius: 14px;
    color: #3c5573;
    text-align: center;
}

/* ---------- Pagination ---------- */
.mte-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    width: fit-content;
    padding: 5px 5px;
    margin:40px auto 0 auto;
    border-radius: var(--mte-radius-pill);
    border:1px solid #253d57;
}

.mte-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: var(--mte-radius-pill);
    /*border: 1.5px solid #c8d6e4;*/
    background: var(--mte-card-bg);
    color: #253d57;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.mte-page:hover {
    background: var(--mte-active-tab-bg);
    border-color: var(--mte-link);
    color: var(--mte-link);
}

.mte-page.is-active {
    background: var(--mte-link);
    border-color: var(--mte-link);
    color: #fff;
}

/* ---------- Alerts ---------- */
.mte-alert {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
}

.mte-alert-ok  { background:#e7f8ee; color:#1b6e3e; border:1px solid #82cfa4; }
.mte-alert-error { background:#fdecec; color:#8b2020; border:1px solid #f0b0b0; }

.mte-alert-ok a {
    color: #1b6e3e;
    font-weight: 700;
    text-decoration: underline;
}

/* ---------- Form ---------- */
.mte-form-wrap {
    background: var(--mte-card-bg);
    border: 1px solid var(--mte-border);
    border-radius: var(--mte-radius-card);
    padding: 24px 22px;
    box-shadow: var(--mte-shadow);
    max-width: 100%;
}

.mte-form-wrap h3 {
    margin: 0 0 18px;
    color: var(--mte-ink);
    font-size: 22px;
    font-weight: 800;
}

.mte-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.mte-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mte-form-field-full {
    grid-column: 1 / -1;
}

.mte-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2b4668;
    margin-bottom: 5px;
}

.mte-form input[type="text"],
.mte-form input[type="file"],
.mte-form select,
.mte-form textarea {
    width: 100%;
    border-radius: 10px;
    border: 1.5px solid #c8d5e3;
    background: #f8fafc;
    color: #1c3652;
    font-size: 14.5px;
    padding: 10px 13px;
    transition: border-color 0.18s;
    box-sizing: border-box;
}

.mte-form input:focus,
.mte-form select:focus,
.mte-form textarea:focus {
    outline: none;
    border-color: #7da8cc;
    background: #fff;
}

.mte-form textarea { min-height: 120px; resize: vertical; }

.mte-form textarea,
.mte-form button,
.mte-form .mte-form-note,
.mte-form input[type="file"] {
    grid-column: 1 / -1;
}

.mte-form button {
    width: auto;
    justify-self: start;
    padding: 12px 32px;
    border: none;
    background: var(--mte-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--mte-radius-pill);
    cursor: pointer;
    transition: background 0.18s;
}

.mte-form button:hover { background: #0a2036; }

.mte-form-note {
    margin: 0;
    color: var(--mte-soft);
    font-size: 12.5px;
}

/* honeypot */
.mte-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Home variant ---------- */
.mte-home {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
}

.mte-home-slider {
    overflow: hidden;
    padding-bottom: 26px;
}

.mte-home-slider .swiper-slide {
    height: auto;
}

.mte-home-slider .mte-card {
    height: 100%;
}

.mte-home-pagination.swiper-pagination {
    position: static;
    margin-top: 14px;
    text-align: center;
}

.mte-home-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #b9c5d4;
    opacity: 1;
}

.mte-home-pagination .swiper-pagination-bullet-active {
    background: var(--mte-link);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .mte-grid { grid-template-columns: 1fr; }
    .mte-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .mte-wrap { padding: 16px 14px; }

    .mte-event-filter {
        width: 100%;
    }

    .mte-event-trigger,
    .mte-event-menu {
        width: 100%;
        min-width: 0;
    }

    .mte-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 12px;
    }

    .mte-card-img,
    .mte-card-img-placeholder {
        width: 100%;
        height: 100%;
    }

    .mte-card-media {
        width: 100%;
        height: 200px;
    }

    .mte-card-name { font-size: 16px; }
    .mte-form { grid-template-columns: 1fr; }
    .mte-tabs { gap: 8px; }
}
