/* ============================================================
   Abogado InfoBox — Estilos del front-end
   ============================================================ */

.aib-box {
    margin: 2.5em 0 1em;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f7f4;
    box-shadow: 0 2px 16px rgba(0,0,0,.08), 0 0 0 1px rgba(139,109,56,.15);
    font-family: Georgia, 'Times New Roman', serif;
}

/* ── Cabecera ─────────────────────────────────────────── */
.aib-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a2744;
    padding: 16px 22px;
}

.aib-icon {
    font-size: 1.4em;
    line-height: 1;
    flex-shrink: 0;
}

.aib-titulo {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.05em !important;
    font-weight: 700 !important;
    color: #e8d8a0 !important;
    letter-spacing: .02em;
    text-transform: uppercase;
    border: none !important;
    font-family: Georgia, 'Times New Roman', serif !important;
}

/* ── Descripción ─────────────────────────────────────── */
.aib-descripcion {
    margin: 0 !important;
    padding: 18px 22px 14px;
    font-size: .95em;
    color: #4a4235;
    line-height: 1.65;
    border-bottom: 1px solid rgba(139,109,56,.18);
    font-style: italic;
}

/* ── Rejilla de datos ────────────────────────────────── */
.aib-datos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    padding: 4px 0 6px;
}

.aib-dato {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 22px;
    border-bottom: 1px solid rgba(139,109,56,.1);
    transition: background .15s ease;
}

.aib-dato:last-child {
    border-bottom: none;
}

.aib-dato:hover {
    background: rgba(139,109,56,.06);
}

.aib-dato-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a2744;
    color: #e8d8a0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.aib-dato-icon svg {
    width: 15px;
    height: 15px;
}

.aib-dato-label {
    display: block;
    font-size: .7em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9a8a6a;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
}

.aib-dato-valor {
    display: block;
    font-size: .93em;
    color: #2c2416;
    font-weight: 500;
    line-height: 1.35;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Links ───────────────────────────────────────────── */
.aib-link {
    color: #1a2744 !important;
    text-decoration: none !important;
    border-bottom: 1px dotted rgba(26,39,68,.35) !important;
    transition: color .15s ease, border-color .15s ease;
}

.aib-link:hover {
    color: #8b6d38 !important;
    border-color: #8b6d38 !important;
}

/* ── Contenedor icono + texto ────────────────────────── */
.aib-dato > span:last-child,
.aib-dato > a {
    flex: 1;
    min-width: 0;
}

/* Envuelve label + valor */
.aib-dato-text {
    flex: 1;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
    .aib-datos {
        grid-template-columns: 1fr;
    }

    .aib-titulo {
        font-size: .95em !important;
    }

    .aib-header,
    .aib-descripcion,
    .aib-dato {
        padding-left: 16px;
        padding-right: 16px;
    }
}
