/* ─── Mentor Alumni — Buscador por geolocalización ─────────────────────── */

.ma-cerca-wrap {
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Intro y botón ─────────────────────────────────────────────────────── */

.ma-cerca-intro {
    text-align: center;
    padding: 2rem 1rem;
}

.ma-cerca-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .75rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    background: #f35f02;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
}

.ma-cerca-btn:hover:not(:disabled) {
    background: #ca4f00;
}

.ma-cerca-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.ma-cerca-hint {
    margin-top: .75rem;
    font-size: .85rem;
    color: #666;
}

/* ── Estado / mensajes ─────────────────────────────────────────────────── */

.ma-cerca-estado {
    min-height: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.ma-cerca-estado--loading {
    color: #555;
    font-style: italic;
}

.ma-cerca-error {
    color: #c0392b;
    font-weight: 500;
    padding: .6rem 1rem;
    background: #fdecea;
    border-left: 4px solid #c0392b;
    border-radius: 4px;
    text-align: left;
}

.ma-cerca-vacio {
    color: #777;
    font-style: italic;
}

.ma-cerca-count {
    font-size: .9rem;
    color: #555;
    margin-bottom: 1rem;
}

/* ── Lista de tarjetas ──────────────────────────────────────────────────── */

.ma-cerca-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.ma-cerca-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}

.ma-cerca-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

.ma-cerca-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    margin-bottom: .4rem;
}

.ma-cerca-card__nombre {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
}

.ma-cerca-card__dist {
    font-size: .8rem;
    font-weight: 600;
    color: #f35f02;
    white-space: nowrap;
    background: #fff4ee;
    padding: .1rem .4rem;
    border-radius: 4px;
}

.ma-cerca-card__empresa {
    font-size: .95rem;
    color: #333;
    margin: 0 0 .3rem;
    font-weight: 500;
}

.ma-cerca-card__lugar {
    font-size: .85rem;
    color: #666;
    margin: 0 0 .6rem;
}

.ma-cerca-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .5rem;
}

.ma-cerca-link {
    font-size: .8rem;
    padding: .2rem .55rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity .15s;
}

.ma-cerca-link:hover {
    opacity: .8;
}

.ma-cerca-link--web {
    background: #e8f4fd;
    color: #1a73e8;
}

.ma-cerca-link--linkedin {
    background: #e8f0fe;
    color: #0a66c2;
}

.ma-cerca-link--caso {
    background: #fef9e7;
    color: #b7770d;
}

/* ── Botón de contacto en tarjeta ──────────────────────────────────────── */

.ma-cerca-card__contact {
    margin-top: .75rem;
    padding-top: .6rem;
    border-top: 1px solid #f0f0f0;
}

.ma-cerca-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .75rem;
    font-size: .82rem;
    font-weight: 600;
    background: #fff;
    color: #f35f02;
    border: 1.5px solid #f35f02;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s, color .2s;
    line-height: 1.4;
}

.ma-cerca-contact-btn:hover {
    background: #f35f02;
    color: #fff;
}

/* ── Modal overlay ─────────────────────────────────────────────────────── */

.ma-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ma-modal-overlay[hidden] {
    display: none;
}

body.ma-modal-open {
    overflow: hidden;
}

/* ── Modal contenedor ──────────────────────────────────────────────────── */

.ma-modal {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .22);
    padding: 2rem 2rem 1.5rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.ma-modal__close {
    position: absolute;
    top: .75rem;
    right: .9rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: .25rem .4rem;
    border-radius: 4px;
    transition: color .15s, background .15s;
}

.ma-modal__close:hover {
    color: #222;
    background: #f0f0f0;
}

.ma-modal__title {
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    padding-right: 2rem;
    line-height: 1.35;
}

/* ── Campos del formulario ─────────────────────────────────────────────── */

.ma-modal__field {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.ma-modal__field label {
    font-size: .88rem;
    font-weight: 600;
    color: #333;
}

.ma-modal__field input,
.ma-modal__field textarea {
    width: 100%;
    padding: .5rem .75rem;
    font-size: .95rem;
    border: 1.5px solid #d0d0d0;
    border-radius: 6px;
    background: #fafafa;
    color: #1a1a1a;
    transition: border-color .2s;
    box-sizing: border-box;
    font-family: inherit;
}

.ma-modal__field input:focus,
.ma-modal__field textarea:focus {
    outline: none;
    border-color: #f35f02;
    background: #fff;
}

.ma-modal__field textarea {
    resize: vertical;
    min-height: 110px;
}

/* Fila de checkbox ── */

.ma-modal__field--check {
    margin-bottom: .85rem;
}

.ma-modal__check-label {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .88rem;
    color: #333;
    cursor: pointer;
    line-height: 1.45;
    font-weight: normal;
}

.ma-modal__check-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: .15rem;
    accent-color: #f35f02;
    cursor: pointer;
}

.ma-modal__check-label a {
    color: #f35f02;
    text-decoration: underline;
}

/* ── Estado / feedback ─────────────────────────────────────────────────── */

.ma-modal__status {
    min-height: 1.4rem;
    margin-bottom: .75rem;
    font-size: .88rem;
}

.ma-modal__status--loading {
    color: #555;
    font-style: italic;
}

.ma-modal__status--success {
    color: #197c3b;
    font-weight: 600;
}

.ma-modal__status--error {
    color: #c0392b;
    font-weight: 600;
}

/* ── Botón submit ──────────────────────────────────────────────────────── */

.ma-modal__submit {
    display: inline-block;
    width: 100%;
    padding: .65rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: #f35f02;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
}

.ma-modal__submit:hover:not(:disabled) {
    background: #ca4f00;
}

.ma-modal__submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

