/********** Moovle Academy — Style **********/

:root {
    --primary:   #3A4FA2;
    --primary-d: #2f4190;
    --secondary: #86D0CB;
    --accent:    #6bbfb8;
    --bg:        #f7f5f1;
    --bg-alt:    #f0eeea;
    --ink:       #1a1a18;
    --muted:     #20232a;
    --line:      rgba(26, 26, 24, 0.1);
    --card-bg:   #ffffff;
    --card-hov:  #f5fffe;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

/* Grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Nunito', sans-serif; font-weight: 600; color: var(--ink); }
p { font-weight: 300; line-height: 1.8; color: var(--muted); margin-bottom: 0; }
a { text-decoration: none; transition: color .2s; }
strong { font-weight: 600; color: var(--ink); }

/* ── Navbar ── */
.ma-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(247,245,241,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s;
}

.ma-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.ma-navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ma-navbar-logo img {
    height: 130px;
    width: auto;
    display: block;
    transition: opacity .2s;
}

.ma-navbar-logo:hover img { opacity: .75; }

.ma-nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.ma-nav-links a {
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.5rem 0.9rem;
    position: relative;
    transition: color .2s;
}

.ma-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.9rem;
    right: 0.9rem;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .3s ease;
}

.ma-nav-links a:hover { color: var(--ink); }
.ma-nav-links a:hover::after { transform: scaleX(1); }

.ma-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 2px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--ink);
    align-items: center;
    justify-content: center;
}

.ma-nav-mobile {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--line);
    padding: 1rem 2rem;
}

.ma-nav-mobile.open { display: flex; }

.ma-nav-mobile a {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
}

.ma-nav-mobile a:last-child { border-bottom: none; }
.ma-nav-mobile a:hover { color: var(--ink); }

@media (max-width: 991px) {
    .ma-nav-links { display: none; }
    .ma-nav-toggle { display: flex; }
}


/* ── Sections ── */
.ma-section {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
}

.ma-section-alt {
    background: var(--bg);
}

/* ── Section divider (estilo banderas) ── */
.ma-divider {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0 calc((100% - 1140px) / 2);
    margin: 0 1rem;
}

.ma-divider::before,
.ma-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.ma-divider span {
    font-size: 0.62rem;
    font-weight: 300;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.ma-hero {
    position: relative;
    z-index: 1;
    padding-top: 110px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg);
}

.ma-section-header {
    margin-bottom: 3.5rem;
}

.ma-section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.ma-section-line {
    height: 1px;
    background: var(--line);
    margin-top: 1rem;
    max-width: 400px;
}

/* ── Labels ── */
.ma-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.20rem;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.ma-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}


/* ── Hero ── */
.ma-hero-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.18;
    color: var(--ink);
    margin: 0.5rem 0 1.2rem;
}

.ma-hero-text {
    font-size: 1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.ma-hero-text2 {
    font-size: 1rem;
    max-width: 1500px;
    margin-bottom: 2rem;
}

.ma-hero-btns {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.ma-hero-img {
    max-width: 100%;
    max-height: 360px;
    width: auto;
    animation: fadeIn .9s .3s both;
}


/* ── Buttons ── */
.ma-btn {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.7rem 1.8rem;
    border-radius: 2px;
    background: var(--ink);
    color: var(--bg);
    border: 1px solid var(--ink);
    transition: background .25s, color .25s, transform .25s;
}

.ma-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.ma-btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.ma-btn-outline:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}


/* ── Cards ── */
.ma-card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 1rem 1.1rem 0.9rem;
    position: relative;
    overflow: hidden;
    transition: border-color .25s, transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}

.ma-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 2px;
    background: var(--accent);
    transition: width .3s ease;
}

.ma-card-label {
    display: block;
    font-size: 0.60rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.ma-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.15rem;
}

.ma-card-text {
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.5;
}


/* ── Dot list ── */
.ma-dot-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.ma-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}


/* ── Tabs ── */
.ma-tabs {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.ma-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    transition: color .2s, background .2s, border-bottom .2s;
    border-bottom: 2px solid transparent;
}

.ma-tab-btn:hover { color: var(--ink); background: var(--bg-alt); }

.ma-tab-btn.active {
    color: var(--ink);
    background: var(--bg-alt);
    border-bottom-color: var(--accent);
}

.ma-tab-content { display: none; }
.ma-tab-content.active { display: block; }


/* ── Filters (cursos) ── */
.ma-filters {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ma-filters li {
    font-size: 0.62rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
}

.ma-filters li:hover,
.ma-filters li.active {
    color: var(--ink);
    border-color: var(--accent);
}


/* ── Course images ── */
.ma-course-img {
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid var(--line);
}

.ma-course-img img {
    display: block;
    width: 100%;
    transition: transform .4s ease;
}

.ma-course-img:hover img { transform: scale(1.04); }


/* ── Partner cards ── */
.ma-partner-link { display: block; text-decoration: none; }

.ma-partner-card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 1.2rem 1rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color .15s, transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .15s;
}

.ma-partner-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 2px;
    background: var(--accent);
    transition: width .2s ease;
}

.ma-partner-card:hover {
    border-color: rgba(107,191,184,.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.06);
}

.ma-partner-card:hover::after { width: 100%; }

.ma-partner-card img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter .15s;
}

.ma-partner-card:hover img { filter: grayscale(0%); }

.ma-partner-card p {
    font-size: 0.62rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.6rem;
}


/* ── Contact ── */
.ma-contact-email {
    display: block;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--ink);
    letter-spacing: 0.03em;
    margin-bottom: 2rem;
    transition: color .2s;
}

.ma-contact-email:hover { color: var(--accent); }

.ma-hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 1.5rem 0;
}

.ma-social-label {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.ma-social-links { display: flex; gap: 0.5rem; }

.ma-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--muted);
    font-size: 0.8rem;
    transition: border-color .25s, color .25s, transform .25s;
}

.ma-social-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}


/* ── Footer ── */
.ma-footer {
    background: var(--ink);
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.ma-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ma-footer span {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,.3);
    font-weight: 300;
}


/* ── Back to top ── */
.ma-back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
    width: 38px; height: 38px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, background .25s, transform .25s;
}

.ma-back-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.ma-back-top:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}


/* ── Fade animations ── */
.ma-fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ma-fade-in {
    opacity: 1;
    transition: opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ma-fade-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ma-fade-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Solo animar si JS ha añadido la clase 'js-ready' al body */
body.js-ready .ma-fade-up {
    opacity: 0;
    transform: translateY(80px);
}

body.js-ready .ma-fade-in {
    opacity: 0;
}

body.js-ready .ma-fade-left {
    opacity: 0;
    transform: translateX(-80px);
}

body.js-ready .ma-fade-right {
    opacity: 0;
    transform: translateX(80px);
}

body.js-ready .ma-fade-up.visible,
body.js-ready .ma-fade-in.visible,
body.js-ready .ma-fade-left.visible,
body.js-ready .ma-fade-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Animaciones escalonadas solo para tarjetas informativas (no cursos ni partners) */
.ma-card {
    transition-delay: 0s;
}

.row .col-sm-6:nth-child(1) .ma-card,
.row .col-12:nth-child(1) .ma-card {
    transition-delay: 0.3s;
}

.row .col-sm-6:nth-child(2) .ma-card,
.row .col-12:nth-child(2) .ma-card {
    transition-delay: 0.6s;
}

.row .col-sm-6:nth-child(3) .ma-card,
.row .col-12:nth-child(3) .ma-card {
    transition-delay: 0.9s;
}

.row .col-sm-6:nth-child(4) .ma-card,
.row .col-12:nth-child(4) .ma-card {
    transition-delay: 1.2s;
}

.row .col-sm-6:nth-child(5) .ma-card,
.row .col-12:nth-child(5) .ma-card {
    transition-delay: 1.5s;
}

.row .col-sm-6:nth-child(6) .ma-card,
.row .col-12:nth-child(6) .ma-card {
    transition-delay: 1.8s;
}

/* Cursos y partners sin delay - aparecen todos a la vez */
.ma-course-card,
.ma-partner-card {
    transition-delay: 0s !important;
}



/* ── Course cards ── */
.ma-course-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 1.4rem 1.4rem 1.2rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    height: 100%;
    transition: border-color .15s, transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .15s, background .15s;
}

.ma-course-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 2px;
    background: var(--accent);
    transition: width .2s ease;
}

/* Activo: hover */
a.ma-course-card:hover {
    background: var(--card-hov);
    border-color: rgba(107,191,184,.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.06);
}

a.ma-course-card:hover::after { width: 100%; }

.ma-course-cat {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

.ma-course-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.3;
}

.ma-course-desc {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.5;
    flex: 1;
}

.ma-course-arrow {
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 0.3rem;
    transition: transform .25s ease;
}

a.ma-course-card:hover .ma-course-arrow {
    transform: translateX(4px);
}

/* Próximamente */
.ma-course-soon {
    cursor: default;
    pointer-events: none;
}

.ma-course-soon .ma-course-name,
.ma-course-soon .ma-course-desc,
.ma-course-soon .ma-course-cat {
    opacity: 0.3;
}

.ma-course-soon-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(247, 245, 241, 0.72);
    transform: rotate(-15deg) scale(1.15);
}

/* ── Category title ── */
.ma-category-title {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Fix para altura uniforme de cursos */
.ma-course-card {
    min-height: 170px;
}

/* ══════════════════════════════════════════════════════════════
   COUNTRY SELECTOR STYLES
   ══════════════════════════════════════════════════════════════ */

.country-selector-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 5rem;
}

/* Logo */
.selector-logo {
    text-align: center;
    margin-bottom: 3.5rem;
    animation: fadeDown 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.selector-logo img {
    height: 140px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.selector-logo-sub {
    font-weight: 200;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-top: 0.55rem;
}

/* Divider */
.selector-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 560px;
    margin-bottom: 2.8rem;
    animation: fadeUp 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.selector-divider::before,
.selector-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.selector-divider span {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    font-weight: 300;
}

/* Countries grid */
.selector-countries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.1rem;
    max-width: 680px;
    animation: fadeUp 0.9s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Country cards */
.selector-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    padding: 1.4rem 1.6rem 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    width: 200px;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.selector-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.selector-card:hover {
    background: var(--card-hov);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.selector-card:hover::after {
    width: 100%;
}

.selector-flag {
    font-size: 2.4rem;
    line-height: 1;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.12));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.selector-card:hover .selector-flag {
    transform: scale(1.12);
}

.selector-name {
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s ease;
}

.selector-card:hover .selector-name {
    color: var(--ink);
}

/* Soon cards */
.selector-soon {
    cursor: default;
    pointer-events: none;
}

.selector-soon .selector-flag {
    opacity: 0.3;
    filter: grayscale(50%);
}

.selector-soon .selector-name {
    opacity: 0.3;
}

.selector-soon::before {
    content: 'Soon';
    position: absolute;
    inset: 0;
    background: rgba(247, 245, 241, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--muted);
    transform: rotate(-20deg) scale(1.2);
}

.selector-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--line);
    background: var(--card-bg);
}

.selector-soon:hover::after {
    width: 0%;
}

/* Footer */
.selector-footer {
    position: fixed;
    bottom: 1.8rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--line);
    animation: fadeUp 1s 0.5s ease both;
}

/* Animations */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Staggered cards */
.selector-card:nth-child(1)  { animation: cardIn 0.6s 0.30s both; }
.selector-card:nth-child(2)  { animation: cardIn 0.6s 0.37s both; }
.selector-card:nth-child(3)  { animation: cardIn 0.6s 0.44s both; }
.selector-card:nth-child(4)  { animation: cardIn 0.6s 0.51s both; }
.selector-card:nth-child(5)  { animation: cardIn 0.6s 0.58s both; }
.selector-card:nth-child(6)  { animation: cardIn 0.6s 0.65s both; }
.selector-card:nth-child(7)  { animation: cardIn 0.6s 0.72s both; }
.selector-card:nth-child(8)  { animation: cardIn 0.6s 0.79s both; }
.selector-card:nth-child(9)  { animation: cardIn 0.6s 0.86s both; }
.selector-card:nth-child(10) { animation: cardIn 0.6s 0.93s both; }
.selector-card:nth-child(11) { animation: cardIn 0.6s 1.00s both; }
.selector-card:nth-child(12) { animation: cardIn 0.6s 1.07s both; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive */
@media (max-width: 480px) {
    .selector-card {
        min-width: 90px;
        padding: 1.1rem 1.2rem 1rem;
    }
    .selector-flag {
        font-size: 2rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   LOGO DROPDOWN NAVIGATION
   ══════════════════════════════════════════════════════════════ */

.ma-navbar-logo-dropdown {
    position: relative;
}

.ma-logo-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity .2s;
}

.ma-logo-toggle:hover {
    opacity: 0.8;
}

.ma-current-logo {
    height: 100px;
    width: auto;
    display: block;
}

.ma-logo-toggle i {
    font-size: 0.9rem;
    color: var(--muted);
    transition: transform .2s;
}

.ma-logo-toggle:hover i {
    transform: translateY(2px);
}

.ma-logo-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(247,245,241,0.98);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s, transform .2s;
    transform: translateX(-50%) translateY(-10px);
    z-index: 200;
    margin-top: 0.5rem;
}

.ma-logo-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ma-logo-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    text-decoration: none;
    border-radius: 2px;
    transition: background .2s;
}

.ma-logo-item:hover {
    background: var(--card-hov);
}

.ma-logo-item.active {
    background: var(--card-hov);
    pointer-events: none;
}

.ma-logo-item img {
    height: 40px;
    width: auto;
}

.ma-logo-item span {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.ma-logo-item:hover span {
    color: var(--ink);
}

/* ══════════════════════════════════════════════════════════════
   ECOSYSTEM CARDS
   ══════════════════════════════════════════════════════════════ */

.ma-ecosystem-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 2rem 1.8rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: border-color .25s, transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}

.ma-ecosystem-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 2px;
    background: var(--accent);
    transition: width .3s ease;
}

.ma-ecosystem-card:hover {
    border-color: rgba(107,191,184,.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.06);
}

.ma-ecosystem-card:hover::after {
    width: 100%;
}

.ma-ecosystem-icon {
    margin-bottom: 1rem;
}

.ma-ecosystem-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.8rem;
}

.ma-ecosystem-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1rem;
}

.ma-ecosystem-arrow {
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform .25s;
}

.ma-ecosystem-card:hover .ma-ecosystem-arrow {
    transform: translateX(4px);
}
