/* ============================================================
   Meet The Team — Stylesheet v3
   Color principal: #012353
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap');

.mtt-wrapper {
    --mtt-blue:      #012353;
    --mtt-blue-lite: #e8edf5;
    --mtt-white:     #ffffff;
    --mtt-text:      #1a1e2e;
    --mtt-muted:     #6b7280;
    --mtt-radius:    12px;
    --mtt-shadow:    0 4px 24px rgba(1,35,83,.10);
    --mtt-shadow-h:  0 16px 48px rgba(1,35,83,.22);
    font-family: 'Barlow', sans-serif;
    width: 100%;
    box-sizing: border-box;
}
*, *::before, *::after { box-sizing: border-box; }

/* ══════════════════════════════════════════════════════════════
   FILTER BUTTONS — simples, tamaño al texto
   ══════════════════════════════════════════════════════════════ */
.mtt-wrapper .mtt-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 44px;
}

.mtt-wrapper .mtt-filter-btn {
    display: inline-block;
    width: fit-content;
    white-space: nowrap;
    padding: 0 22px;
    height: 42px;
    line-height: 42px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    outline: none;
    position: relative;
    /* Gradiente de dos bloques: azul abajo, blanco arriba */
    background-image: linear-gradient(to top, #012353 50%, #ffffff 50%);
    background-size: 100% 200%;
    background-position: top;
    color: #012353;
    box-shadow: 0 2px 8px rgba(1,35,83,.12);
    transition: background-position 0.4s cubic-bezier(.4,0,.2,1),
                color             0.4s cubic-bezier(.4,0,.2,1),
                box-shadow        0.3s ease,
                transform         0.2s ease;
}

.mtt-wrapper .mtt-filter-btn:hover {
    background-position: bottom;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(1,35,83,.28);
}

.mtt-wrapper .mtt-filter-btn.active {
    background-position: bottom;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(1,35,83,.30);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   SECTION HEADER
   ══════════════════════════════════════════════════════════════ */
.mtt-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.mtt-section-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #012353;
    opacity: .55;
    margin: 0 0 10px;
}
.mtt-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: #012353;
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: .01em;
}
.mtt-section-title span {
    color: #012353;
    position: relative;
    display: inline;
}
.mtt-section-title span::after {
    display: none;
}
.mtt-section-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #012353, #0a5ccc);
    border-radius: 2px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   GRID
   ══════════════════════════════════════════════════════════════ */
.mtt-grid {
    display: grid;
    grid-template-columns: repeat(var(--mtt-cols, 3), 1fr);
    gap: 28px;
    align-items: start;
}

[data-columns="1"] .mtt-grid { --mtt-cols: 1; }
[data-columns="2"] .mtt-grid { --mtt-cols: 2; }
[data-columns="3"] .mtt-grid { --mtt-cols: 3; }
[data-columns="4"] .mtt-grid { --mtt-cols: 4; }

@media (max-width: 1100px) { [data-columns="4"] .mtt-grid { --mtt-cols: 3; } }
@media (max-width: 860px)  { .mtt-grid { --mtt-cols: 2 !important; } }
@media (max-width: 520px)  {
    .mtt-grid { --mtt-cols: 1 !important; }
    .mtt-wrapper .mtt-filters { gap: 8px; }
    .mtt-wrapper .mtt-filter-btn .mtt-btn-sizer { font-size: 11px; padding: 0 14px; }
    .mtt-wrapper .mtt-filter-btn::before,
    .mtt-wrapper .mtt-filter-btn::after { font-size: 11px; padding: 0 14px; }
}

/* ══════════════════════════════════════════════════════════════
   CARD
   ══════════════════════════════════════════════════════════════ */
.mtt-card {
    position: relative;
    background: var(--mtt-white);
    border-radius: var(--mtt-radius);
    box-shadow: var(--mtt-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(1,35,83,.07);
    transition: opacity .38s ease, transform .38s ease, box-shadow .3s ease;
    will-change: opacity, transform;
}
.mtt-card:hover {
    box-shadow: var(--mtt-shadow-h);
    transform: translateY(-5px);
}

/* Línea azul inferior que se dibuja en hover */
.mtt-card-accent-line {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #012353 0%, #0a5ccc 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .38s ease;
    z-index: 4;
}
.mtt-card:hover .mtt-card-accent-line { transform: scaleX(1); }

/* Triángulo esquina superior derecha */
.mtt-card-corner {
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 26px 26px 0;
    border-color: transparent rgba(1,35,83,.10) transparent transparent;
    z-index: 3;
    pointer-events: none;
}

/* ── Foto — ratio retrato ───────────────────────────────────── */
.mtt-card-photo-wrap {
    position: relative;
    width: 100%;
    padding-top: 118%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--mtt-blue-lite);
}

.mtt-card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .55s cubic-bezier(.4,0,.2,1);
    display: block;
}
.mtt-card-photo-main {
    z-index: 1;
    transition: opacity .45s ease, transform .55s cubic-bezier(.4,0,.2,1);
}

/* Segunda foto — encima, invisible en reposo */
.mtt-card-photo-hover {
    z-index: 2;
    opacity: 0;
    transition: opacity .45s ease;
}
.mtt-card.has-photo2:hover .mtt-card-photo-main {
    opacity: 0;
    transform: scale(1.04);
}
/* Sin segunda foto: zoom normal en hover */
.mtt-card:not(.has-photo2):hover .mtt-card-photo-main {
    transform: scale(1.07);
}
.mtt-card:hover .mtt-card-photo-hover {
    opacity: 1;
}

/* Tinte azul al hover — sin blur */
.mtt-card-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(1,35,83,0);
    transition: background .45s ease;
    z-index: 1;
    pointer-events: none;
}
.mtt-card:hover .mtt-card-photo-wrap::after { background: rgba(1,35,83,.22); }

/* Sin foto */
.mtt-no-photo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mtt-no-photo svg { width: 64px; height: 64px; opacity: .35; }

/* Overlay WhatsApp al hover (desktop) */
.mtt-photo-wa-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
    text-decoration: none;
}
.mtt-card:hover .mtt-photo-wa-overlay { opacity: 1; pointer-events: auto; }
.mtt-photo-wa-overlay svg {
    width: 48px; height: 48px;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,.35));
}
.mtt-photo-wa-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.55);
    text-align: center;
    padding: 0 14px;
    line-height: 1.4;
}

/* Badge WA siempre visible */
.mtt-wa-badge {
    position: absolute;
    bottom: 10px; right: 10px;
    z-index: 3;
    width: 34px; height: 34px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    transition: transform .25s ease;
    text-decoration: none;
}
.mtt-wa-badge svg { width: 20px; height: 20px; fill: #fff; }
.mtt-card:hover .mtt-wa-badge { transform: scale(1.18); }

/* ── Cuerpo de la card ──────────────────────────────────────── */
.mtt-card-body {
    padding: 18px 20px 24px;
    display: flex;
    flex-direction: column;
}
.mtt-card-role {
    display: none;
}
.mtt-card-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--mtt-text);
    margin: 0 0 3px;
    line-height: 1.15;
}
.mtt-card-position {
    font-size: 14px;
    font-weight: 700;
    color: #012353;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mtt-blue-lite);
}
.mtt-card-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #3a4060;
    font-weight: 500;
    margin: 0;
}

/* Hint táctil WhatsApp (móvil) */
.mtt-wa-tap-hint {
    display: none;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #25D366;
    text-decoration: none !important;
}
.mtt-wa-tap-hint svg { width: 18px; height: 18px; fill: #25D366; flex-shrink: 0; }

@media (hover: none) {
    .mtt-wa-tap-hint { display: flex; }
    .mtt-photo-wa-overlay { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════
   ANIMACIÓN DE FILTROS
   ══════════════════════════════════════════════════════════════ */
.mtt-card.mtt-hiding {
    opacity: 0;
    transform: scale(.94) translateY(6px);
    pointer-events: none;
}
.mtt-card.mtt-gone { display: none; }
.mtt-card.mtt-showing {
    animation: mttShow .38s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes mttShow {
    from { opacity: 0; transform: scale(.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1)   translateY(0);    }
}

/* Empty */
.mtt-empty {
    text-align: center;
    color: var(--mtt-muted);
    font-size: 15px;
    padding: 40px 0;
}
