/* ============================================================
   Guía Meetsite — Ficha individual de academia (Fase 2)
   ============================================================ */

/* ---------- Cabecera de la ficha ---------- */
.ficha-header {
    background: white;
    border: 1px solid var(--border, #d8e8e9);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow, 0 1px 3px rgba(15,122,126,.08));
}
.ficha-header.is-destacada {
    border-color: var(--teal, #1f9498);
    box-shadow: 0 2px 8px rgba(15,122,126,.12), 0 8px 28px rgba(15,122,126,.10);
}
.ficha-foto-principal {
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: #eef7f7;
}
.ficha-foto-principal img {
    width: 100%; height: 100%; object-fit: cover;
}
.ficha-header-content {
    padding: 28px 26px 26px;
    position: relative;
}
.ficha-logo {
    width: 76px; height: 76px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--border, #d8e8e9);
    overflow: hidden;
    margin-bottom: 14px;
    padding: 6px;
}
.ficha-logo img {
    width: 100%; height: 100%; object-fit: contain;
}
.ficha-titulo {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    margin: 8px 0 6px;
    color: var(--ink, #0e1d20);
}
.ficha-tagline {
    font-size: 16.5px;
    color: var(--muted, #5a6b6e);
    margin: 0 0 14px;
    line-height: 1.5;
}
.ficha-pills {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 18px;
}
.dir-pill.is-clickable {
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease;
}
.dir-pill.is-clickable:hover {
    background: rgba(131, 203, 206, .45);
}
.ficha-acciones {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.ficha-btn {
    display: inline-flex; align-items: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.ficha-btn-primary {
    background: var(--teal-dark, #0F7A7E);
    color: white;
    border-color: var(--teal-dark, #0F7A7E);
}
.ficha-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,122,126,.25);
    color: white;
}
.ficha-btn-ghost {
    background: white;
    color: var(--teal-dark, #0F7A7E);
    border-color: var(--border, #d8e8e9);
}
.ficha-btn-ghost:hover {
    border-color: var(--teal-dark, #0F7A7E);
    background: rgba(131,203,206,.1);
}
.ficha-btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ---------- Layout principal en 2 columnas ---------- */
.ficha-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}
.ficha-main { min-width: 0; }
.ficha-aside {
    display: flex; flex-direction: column; gap: 18px;
    position: sticky; top: 16px;
}

/* ---------- Bloques del cuerpo ---------- */
.ficha-bloque {
    background: white;
    border: 1px solid var(--border, #d8e8e9);
    border-radius: 14px;
    padding: 22px 22px;
    margin-bottom: 18px;
}
.ficha-bloque h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--ink, #0e1d20);
}
.ficha-prosa {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink, #0e1d20);
}

/* ---------- Tags grid (idiomas, examenes) ---------- */
.ficha-tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.ficha-tag-card {
    background: rgba(131, 203, 206, .12);
    border: 1px solid rgba(131, 203, 206, .35);
    border-radius: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--ink, #0e1d20);
    display: flex; flex-direction: column; gap: 4px;
    transition: background .15s ease, border-color .15s ease;
}
.ficha-tag-card:hover {
    background: rgba(131, 203, 206, .25);
    border-color: var(--teal, #1f9498);
}
.ficha-tag-name {
    font-weight: 600;
    font-size: 15px;
}
.ficha-tag-meta {
    font-size: 12.5px;
    color: var(--muted, #5a6b6e);
}
.ficha-tag-cta {
    font-size: 12.5px;
    color: var(--teal-dark, #0F7A7E);
    font-weight: 500;
}

/* ---------- Sidebox (cajas del sidebar) ---------- */
.ficha-sidebox {
    background: white;
    border: 1px solid var(--border, #d8e8e9);
    border-radius: 14px;
    padding: 18px 18px;
}
.ficha-sidebox h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--ink, #0e1d20);
}
.ficha-info {
    margin: 0;
    font-size: 14.5px;
}
.ficha-info dt {
    font-weight: 600;
    color: var(--muted, #5a6b6e);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 12px;
}
.ficha-info dt:first-child { margin-top: 0; }
.ficha-info dd {
    margin: 4px 0 0 0;
    color: var(--ink, #0e1d20);
    line-height: 1.5;
}
.ficha-info dd a { color: var(--teal-dark, #0F7A7E); text-decoration: none; }
.ficha-info dd a:hover { text-decoration: underline; }
.ficha-redes {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.ficha-redes a {
    font-size: 22px;
    text-decoration: none;
    transition: transform .12s ease;
    display: inline-block;
}
.ficha-redes a:hover { transform: scale(1.15); }
.ficha-horario { font-size: 13.5px; }
.ficha-horario div { margin: 2px 0; }

/* ---------- Mapa ---------- */
#ficha-mapa {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    background: #eef7f7;
}
.ficha-mapa-link {
    margin: 6px 0 0;
    font-size: 13.5px;
    text-align: center;
}
.ficha-mapa-link a {
    color: var(--teal-dark, #0F7A7E);
    text-decoration: none;
}
.ficha-mapa-link a:hover { text-decoration: underline; }

/* ---------- CTA reclamar ficha ---------- */
.ficha-cta-claim {
    background: linear-gradient(135deg, rgba(131,203,206,.18), rgba(131,203,206,.05));
    border-color: rgba(131, 203, 206, .55);
}
.ficha-cta-claim p {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--muted, #5a6b6e);
    line-height: 1.5;
}

/* ---------- Formulario ---------- */
.ficha-form {
    display: flex; flex-direction: column; gap: 14px;
}
.ficha-form label {
    display: flex; flex-direction: column;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink, #0e1d20);
}
.ficha-form input,
.ficha-form textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border, #d8e8e9);
    border-radius: 9px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink, #0e1d20);
    background: white;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}
.ficha-form input:focus,
.ficha-form textarea:focus {
    outline: none;
    border-color: var(--teal, #1f9498);
    box-shadow: 0 0 0 3px rgba(131,203,206,.25);
}
.ficha-form textarea {
    resize: vertical;
    min-height: 110px;
    font-family: inherit;
}
.ficha-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.ficha-form-captcha {
    background: rgba(131, 203, 206, .12);
    border: 1px dashed rgba(131, 203, 206, .55);
    border-radius: 9px;
    padding: 12px 14px;
}
.ficha-form-captcha span {
    font-size: 14px;
    color: var(--ink, #0e1d20);
    margin-bottom: 6px;
}
.ficha-form-captcha input {
    max-width: 100px;
    text-align: center;
    font-size: 16px;
}
.ficha-form-aviso {
    font-size: 12.5px;
    color: var(--muted, #5a6b6e);
    margin: 0;
    line-height: 1.5;
}
.ficha-form-aviso a {
    color: var(--teal-dark, #0F7A7E);
}
.ficha-form button[type="submit"] {
    align-self: flex-start;
}

/* ---------- Alertas ---------- */
.ficha-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin: 0 0 18px;
    font-size: 14.5px;
    line-height: 1.5;
}
.ficha-alert-ok {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}
.ficha-alert-error {
    background: #fdecec;
    border: 1px solid #c0392b;
    color: #8b1f15;
}

/* ---------- Otras academias ---------- */
.ficha-otras {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border, #d8e8e9);
}
.ficha-otras h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 18px;
    color: var(--ink, #0e1d20);
}

/* ---------- Móvil ---------- */
@media (max-width: 880px) {
    .ficha-grid {
        grid-template-columns: 1fr;
    }
    .ficha-aside {
        position: static;
    }
    .ficha-form-row {
        grid-template-columns: 1fr;
    }
    .ficha-foto-principal {
        aspect-ratio: 16 / 9;
    }
    .ficha-header-content {
        padding: 22px 18px 22px;
    }
    .ficha-bloque {
        padding: 18px 16px;
    }
}
